/* SYT Storage Size Guide — Visual layout. Scoped to .syt-sg-wrap--visual */

.syt-sg-wrap--visual *,
.syt-sg-wrap--visual *::before,
.syt-sg-wrap--visual *::after {
  box-sizing: border-box;
}

/* ── Header ── */
.syt-sg-wrap--visual {
  --syt-navy:      #2d3082;
  --syt-green:     #6ab04c;
  --syt-orange:    #e84040;
  --syt-bg:        #f5f6f8;
  --syt-border:    #e0e4ea;
  --syt-text:      #333333;
  --syt-text-light:#666666;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--syt-text);
  background: var(--syt-bg);
  padding: 24px 0 36px;
}

.syt-vg-header {
  text-align: center;
  margin-bottom: 24px;
}

.syt-vg-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--syt-navy);
  margin: 0 0 6px;
  line-height: 1.2;
}

.syt-vg-subheading {
  font-size: 16px;
  color: var(--syt-text-light);
  margin: 0;
  line-height: 1.5;
}

/* ── Tab bar ── */
.syt-vg-tab-bar {
  display: flex;
  justify-content: center;
  gap: 4px;
  border-bottom: 2px solid var(--syt-border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.syt-vg-tab-bar::-webkit-scrollbar {
  display: none;
}

.syt-vg-tab-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 18px 11px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--syt-text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.2;
}

.syt-vg-tab-btn.active,
.syt-vg-tab-btn[aria-selected="true"] {
  color: var(--syt-navy);
  border-bottom-color: var(--syt-green);
}

.syt-sg-wrap--visual .syt-vg-tab-btn:hover,
.syt-sg-wrap--visual .syt-vg-tab-btn:focus {
  background: rgba(45, 48, 130, 0.08);
  color: var(--syt-navy);
}

.syt-vg-tab-meta {
  font-size: 11px;
  font-weight: 400;
  color: var(--syt-text-light);
  opacity: 0.8;
}

.syt-vg-tab-btn.active .syt-vg-tab-meta,
.syt-vg-tab-btn[aria-selected="true"] .syt-vg-tab-meta {
  color: var(--syt-green);
  opacity: 1;
}

/* ── Card grid ── */
.syt-vg-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .syt-vg-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Unit card ── */
.syt-vg-unit-card {
  background: #fff;
  border: 1px solid var(--syt-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.syt-vg-unit-card:hover {
  box-shadow: 0 4px 16px rgba(45, 48, 130, 0.10);
  border-color: #c8cfe0;
}

/* ── Unit visual section ── */
.syt-vg-unit-visual {
  background: #eae8e3; /* matches image background so narrow-card gaps are invisible */
  border-bottom: 1px solid var(--syt-border);
  position: relative;
  height: 340px;
  overflow: hidden;
}

/* Show the full image at correct proportions — same as object-fit: contain. */
.syt-vg-unit-img {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  transition: transform 0.35s ease;
}

/* Gradient overlay that masks the person silhouette on the right side of each image.
   The person sits at ~67–75% from the left of the container across all card widths.
   The overlay starts transparent at 62% and reaches solid at ~67%, using the same
   colour as the container background so it blends seamlessly. */
.syt-vg-unit-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 62%,
    #eae8e3 67%
  );
  pointer-events: none;
}

.syt-vg-unit-card:hover .syt-vg-unit-img {
  transform: scale(1.06);
}

.syt-vg-floor-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.syt-vg-floor-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--syt-text-light);
}

.syt-vg-floor-scene {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
}

.syt-vg-floor-box {
  background: rgba(45, 48, 130, 0.10);
  border: 2px solid var(--syt-navy);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--syt-navy);
  min-width: 40px;
  min-height: 28px;
}

/* ── Unit body ── */
.syt-vg-unit-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.syt-vg-unit-dim {
  font-size: 36px;
  font-weight: 900;
  color: var(--syt-navy);
  line-height: 1;
  margin-bottom: 8px;
}

.syt-vg-unit-badge {
  display: inline-block;
  background: var(--syt-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.syt-vg-unit-meta {
  font-size: 14px;
  color: var(--syt-text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.syt-vg-meta-dot {
  color: var(--syt-border);
}

.syt-vg-analogy {
  font-size: 15px;
  font-weight: 600;
  color: var(--syt-navy);
  font-style: italic;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--syt-border);
}

/* ── Good for list ── */
.syt-vg-good-for {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}

.syt-vg-good-for li {
  font-size: 15px;
  color: var(--syt-text);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.syt-vg-good-for li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--syt-green);
  font-weight: 700;
  font-size: 14px;
}

/* ── Card CTA button ── */
.syt-vg-card-cta {
  display: block;
  text-align: center;
  background: var(--syt-navy);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
  margin-top: auto;
}

.syt-vg-card-cta:hover {
  background: #23267a;
  color: #fff;
}

/* ── Per-card disclaimer ── */
.syt-vg-card-disclaimer {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--syt-text-light);
  line-height: 1.5;
  text-align: center;
}

/* ── Bottom CTA banner ── */
.syt-vg-cta-banner {
  margin-top: 32px;
  background: var(--syt-navy);
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.syt-vg-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}

.syt-vg-cta-text strong {
  font-size: 18px;
  font-weight: 700;
}

.syt-vg-cta-text span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.syt-vg-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.syt-vg-phone-btn {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.syt-vg-phone-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.syt-vg-rates-btn {
  display: inline-block;
  background: var(--syt-green);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.15s;
  white-space: nowrap;
}

.syt-vg-rates-btn:hover {
  background: #5a9640;
  color: #fff;
}

@media (max-width: 600px) {
  .syt-vg-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .syt-vg-cta-actions {
    width: 100%;
  }

  .syt-vg-phone-btn,
  .syt-vg-rates-btn {
    flex: 1;
    text-align: center;
  }
}

/* ── Focus styles ── */
.syt-sg-wrap--visual .syt-vg-tab-btn:focus-visible,
.syt-sg-wrap--visual .syt-vg-card-cta:focus-visible,
.syt-sg-wrap--visual .syt-vg-phone-btn:focus-visible,
.syt-sg-wrap--visual .syt-vg-rates-btn:focus-visible {
  outline: 2px solid var(--syt-green);
  outline-offset: 2px;
}

/* ── Disclaimer ── */
.syt-vg-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--syt-text-light);
  margin-top: 16px;
}

/* ── Small phone adjustments (≤ 480px) ── */
@media (max-width: 480px) {
  .syt-sg-wrap--visual {
    padding: 16px 0 24px;
  }

  .syt-vg-heading {
    font-size: 20px;
  }

  .syt-vg-tab-btn {
    padding: 8px 12px 9px;
    font-size: 14px;
  }

  .syt-vg-unit-dim {
    font-size: 28px;
  }

  .syt-vg-unit-body {
    padding: 14px 14px 16px;
  }
}
