/* ==========================================================================
   AGUA AZUL VENTURE · CASE STUDY & LIVE OPERATION SHOWCASE
   Scoped to alojamiento/ (.cs-*). Preserves landing header/footer (style.css)
   and leaves habitacion/ (property.css) completely untouched.
   Dials: ENERGY 2 · RHYTHM 3 · MOTION 1
   ========================================================================== */

:root {
  --cs-radius-frame: 18px;
  --cs-radius-card: 12px;
  --cs-radius-inner: 8px;
  --cs-surface-tint: #f4fafb;
  --cs-surface-aqua: #edf8fa;
  --cs-verified: #0b705d;
  --cs-verified-bg: rgba(11, 112, 93, 0.08);
  --cs-verified-border: rgba(11, 112, 93, 0.22);
}

/* Main wrapper */
.cs-main {
  background: var(--white);
  color: var(--ink);
}

.cs-container {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

/* Reusable typographic kicker (replaces decorative eyebrow pills - R-09) */
.cs-kicker {
  display: inline-block;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}

.cs-kicker--light {
  color: #8ed7e3;
}

.cs-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ==========================================================================
   BAND 1: EDITORIAL CASE STUDY HERO + ARCHITECTURAL GALLERY
   ========================================================================== */
.cs-hero-band {
  padding: 28px 0 56px;
  background: linear-gradient(180deg, var(--pale) 0%, var(--white) 38%);
}

.cs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.cs-breadcrumb a {
  color: var(--muted);
  transition: color var(--dur-fast) ease;
}

.cs-breadcrumb a:hover {
  color: var(--blue);
}

.cs-breadcrumb__sep {
  color: #b7cfd5;
  font-size: 12px;
}

.cs-breadcrumb__current {
  color: var(--navy);
  font-weight: 600;
}

/* Asymmetric Hero Split: 1.45fr editorial thesis + 1fr operational fact sheet */
.cs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.cs-hero-copy h1 {
  font-size: clamp(30px, 4.1vw, 46px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.cs-hero-copy h1 em {
  font-style: normal;
  color: var(--blue);
}

.cs-hero-lead {
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 24px;
}

.cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--navy);
  cursor: pointer;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.cs-btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 59, 74, 0.16);
}

.cs-btn-airbnb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--navy);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.cs-btn-airbnb:hover {
  border-color: var(--coral);
  color: #c90a39;
  background: rgba(255, 56, 92, 0.03);
}

.cs-btn-airbnb svg {
  width: 15px;
  height: 15px;
  fill: var(--coral);
  flex-shrink: 0;
}

/* Operational Fact Sheet (Right column of Hero) */
.cs-dossier-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.cs-dossier-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cs-dossier-card__label {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cs-verified);
}

.cs-status-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs-verified);
}

.cs-dossier-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}

.cs-dossier-row dt {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 2px;
}

.cs-dossier-row dd {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.cs-dossier-row dd.is-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

.cs-dossier-row dd.is-rating {
  color: #c90a39;
}

/* Curated Architectural Gallery (5-photo mosaic) */
.cs-gallery {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  grid-template-rows: 248px 248px;
  gap: 12px;
  border-radius: var(--cs-radius-frame);
  overflow: hidden;
  border: 1px solid var(--line);
}

.cs-gallery__item {
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  background-color: var(--navy-dark);
}

.cs-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 48, 61, 0) 58%, rgba(13, 48, 61, 0.72) 100%);
  transition: opacity var(--dur-normal) ease;
}

.cs-gallery__item:hover::after {
  opacity: 0.92;
}

.cs-gallery__item:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.cs-gallery__item--main {
  grid-row: span 2;
}

.cs-gallery__caption {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  pointer-events: none;
}

.cs-gallery__all-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(13, 48, 61, 0.92);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.cs-gallery__all-btn:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

/* ==========================================================================
   BAND 2: SPECS LEDGER (CLEAN HAIRLINE STRIP, ZERO EMOJI CARDS)
   ========================================================================== */
.cs-specs-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.cs-specs-ledger {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.cs-spec-item {
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-spec-item:first-child {
  padding-left: 0;
}

.cs-spec-item:last-child {
  border-right: none;
  padding-right: 0;
}

.cs-spec-item__icon {
  color: var(--blue);
  margin-bottom: 4px;
}

.cs-spec-item strong {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.cs-spec-item span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* ==========================================================================
   BAND 3: REAL AIRBNB REVIEWS CENTERPIECE (HIGH-AUTHORITY PROOF)
   ========================================================================== */
.cs-reviews-band {
  padding: 72px 0;
  background: var(--cs-surface-tint);
  border-bottom: 1px solid var(--line);
}

.cs-reviews-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.cs-reviews-header h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 10px;
}

.cs-reviews-header p {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.6;
  max-width: 660px;
  margin: 0;
}

.cs-reviews-scorecard {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-card);
  padding: 16px 22px;
}

.cs-reviews-scorecard__num {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cs-reviews-scorecard__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-reviews-scorecard__meta strong {
  font-size: 13.5px;
  color: #c90a39;
  font-weight: 800;
}

.cs-reviews-scorecard__meta span {
  font-size: 12.5px;
  color: var(--muted);
}

.cs-reviews-canvas {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-frame);
  padding: 28px 28px 22px;
  box-shadow: var(--shadow-sm);
}

.cs-reviews-widget-slot {
  width: 100%;
  min-height: 240px;
}

/* Editorial Reviews Layout (for Case Studies without embedded widget) */
.cs-reviews-editorial {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cs-review-anchor {
  background: var(--cs-surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-card);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(200px, 0.7fr);
  gap: 28px;
  align-items: center;
}

.cs-review-anchor__quote {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin: 0;
}

.cs-review-anchor__meta {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-review-stars {
  color: var(--coral);
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1;
}

.cs-review-author {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
}

.cs-review-context {
  font-size: 12.5px;
  color: var(--muted);
}

.cs-reviews-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cs-review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.cs-review-card__quote {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  margin: 10px 0 0;
}

.cs-review-card__foot {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-reviews-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.cs-reviews-foot__verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
}

.cs-reviews-foot__verified svg {
  color: var(--cs-verified);
}

.cs-reviews-foot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  color: var(--blue);
  transition: color var(--dur-fast) ease;
}

.cs-reviews-foot__link:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ==========================================================================
   BAND 4: OPERATIONAL BREAKDOWN (ASYMMETRIC STICKY SPLIT + 3 PILLARS)
   ========================================================================== */
.cs-breakdown-band {
  padding: 80px 0;
  background: var(--white);
}

.cs-breakdown-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: 56px;
  align-items: start;
}

.cs-breakdown-sticky {
  position: sticky;
  top: 108px;
}

.cs-breakdown-sticky h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 14px;
}

.cs-breakdown-sticky p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 24px;
}

/* Technical Dossier Modal Triggers (clean stacked links, no clutter) */
.cs-dossier-links {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-dossier-links__title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.cs-dossier-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--cs-surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-inner);
  padding: 13px 16px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.cs-dossier-trigger:hover {
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}

.cs-dossier-trigger span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
}

/* Numbered Operational Pillars */
.cs-pillars {
  display: flex;
  flex-direction: column;
}

.cs-pillar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.cs-pillar:first-child {
  padding-top: 0;
  border-top: none;
}

.cs-pillar__num {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cs-pillar__body h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.cs-pillar__body p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 14px;
}

.cs-pillar__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.cs-pillar__points li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

.cs-pillar__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1.5px;
  background: var(--blue);
}

.cs-pillar__points strong {
  color: var(--navy);
  font-weight: 700;
}

/* ==========================================================================
   BAND 5: SPACE-BY-SPACE TOUR & AUDITED PROOF (AQUA-SOFT SURFACE)
   ========================================================================== */
.cs-spaces-band {
  padding: 76px 0;
  background: var(--cs-surface-aqua);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cs-spaces-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.cs-spaces-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.cs-spaces-head p {
  font-size: 15px;
  color: var(--ink);
  max-width: 620px;
  margin: 0;
  line-height: 1.55;
}

.cs-rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.cs-room-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-normal) var(--ease-out-quint), border-color var(--dur-fast) ease, box-shadow var(--dur-normal) ease;
}

.cs-room-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 136, 165, 0.45);
  box-shadow: 0 12px 28px rgba(18, 59, 74, 0.08);
}

.cs-room-card__img {
  height: 210px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-dark);
}

.cs-room-card__body {
  padding: 20px;
}

.cs-room-card__index {
  display: block;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.cs-room-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}

.cs-room-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Audited Accessibility Visual Proof Strip */
.cs-audit-strip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-card);
  padding: 24px 26px;
}

.cs-audit-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.cs-audit-strip__head h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 2px;
}

.cs-audit-strip__head p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.cs-audit-strip__btn {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.cs-audit-strip__btn:hover {
  background: var(--blue);
  color: var(--white);
}

.cs-audit-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cs-audit-thumb {
  position: relative;
  height: 118px;
  border-radius: var(--cs-radius-inner);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 1px solid var(--line);
}

.cs-audit-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 48, 61, 0.08) 35%, rgba(13, 48, 61, 0.78) 100%);
}

.cs-audit-thumb span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

/* ==========================================================================
   BAND 6: DUAL-AUDIENCE CLOSING BAND (CLEAR SEPARATION: CONSULTING VS STAY)
   ========================================================================== */
.cs-close-band {
  padding: 72px 0;
  background: var(--white);
}

.cs-close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.cs-close-primary {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--cs-radius-frame);
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.cs-close-primary h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  margin: 0 0 12px;
}

.cs-close-primary p {
  font-size: 15px;
  color: #cfe4e8;
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

.cs-close-primary .cs-btn-light {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--navy);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.cs-close-primary .cs-btn-light:hover {
  background: var(--aqua);
  transform: translateY(-1px);
}

.cs-close-secondary {
  background: var(--cs-surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-frame);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.cs-close-secondary h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.cs-close-secondary p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   MODALS & LIGHTBOX (CLEAN MANROPE + DM SANS TYPOGRAPHY, ZERO EMOJI SLOP)
   ========================================================================== */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(13, 48, 61, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-normal) ease, visibility var(--dur-normal) ease;
}

.cs-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.cs-modal__dialog {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-frame);
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 70px rgba(13, 48, 61, 0.28);
  overflow: hidden;
  transform: translateY(10px);
  transition: transform var(--dur-normal) var(--ease-out-quint);
}

.cs-modal.is-open .cs-modal__dialog {
  transform: translateY(0);
}

.cs-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--cs-surface-tint);
}

.cs-modal__header h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.cs-modal__close {
  background: var(--white);
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 16px;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.cs-modal__close:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.cs-modal__body {
  padding: 26px 28px;
  overflow-y: auto;
  flex: 1;
}

.cs-modal__intro {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cs-modal-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}

.cs-modal-cat h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--aqua);
}

.cs-modal-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-modal-cat li {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}

.cs-modal-cat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1.5px;
  background: var(--blue);
}

.cs-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-modal-item {
  background: var(--cs-surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--cs-radius-card);
  padding: 16px 20px;
}

.cs-modal-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.cs-modal-item__head strong {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  color: var(--navy);
}

.cs-verified-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cs-verified);
  background: var(--cs-verified-bg);
  border: 1px solid var(--cs-verified-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.cs-modal-item p {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}

/* Lightbox */
.cs-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 32, 42, 0.94);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cs-lightbox.is-open {
  display: flex;
}

.cs-lightbox__content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-lightbox__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.cs-lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--cs-radius-card);
  object-fit: contain;
}

.cs-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 48, 61, 0.8);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}

.cs-lightbox__nav:hover {
  background: var(--blue);
}

.cs-lightbox__nav--prev { left: 12px; }
.cs-lightbox__nav--next { right: 12px; }

.cs-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  gap: 16px;
}

.cs-lightbox__caption {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 600;
}

.cs-lightbox__counter {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.cs-lightbox__close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .cs-hero-grid,
  .cs-breakdown-grid,
  .cs-close-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cs-breakdown-sticky {
    position: static;
  }

  .cs-specs-ledger {
    grid-template-columns: repeat(3, 1fr);
  }

  .cs-spec-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 14px;
  }

  .cs-spec-item:nth-child(3n) {
    border-right: none;
  }

  .cs-spec-item:nth-child(n + 4) {
    border-bottom: none;
  }

  .cs-reviews-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cs-reviews-scorecard {
    width: fit-content;
  }
}

@media (max-width: 860px) {
  .cs-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 175px 175px;
  }

  .cs-gallery__item--main {
    grid-column: span 2;
    grid-row: span 1;
  }

  .cs-rooms-grid,
  .cs-reviews-trio {
    grid-template-columns: 1fr;
  }

  .cs-review-anchor {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

  .cs-review-anchor__meta {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .cs-audit-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-pillar__points,
  .cs-modal-cats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cs-container {
    width: calc(100% - 28px);
  }

  .cs-hero-band {
    padding: 20px 0 40px;
  }

  .cs-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-btn-primary,
  .cs-btn-airbnb {
    width: 100%;
  }

  .cs-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 240px repeat(4, 145px);
  }

  .cs-gallery__item--main {
    grid-column: span 1;
  }

  .cs-specs-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-spec-item {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .cs-spec-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .cs-spec-item:nth-child(2n) {
    border-right: none;
  }

  .cs-spec-item:nth-child(n + 5) {
    border-bottom: none;
  }

  .cs-reviews-band,
  .cs-breakdown-band,
  .cs-spaces-band,
  .cs-close-band {
    padding: 48px 0;
  }

  .cs-reviews-canvas,
  .cs-close-primary,
  .cs-close-secondary {
    padding: 24px 20px;
  }

  .cs-pillar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cs-audit-thumbs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   CASE STUDY PAGES · OCEAN TWILIGHT DARK THEME
   ========================================================================== */
html[data-theme="dark"] {
  --cs-surface-tint: #16303e;
  --cs-surface-aqua: #152e3b;
  --cs-verified: #5ad4b0;
  --cs-verified-bg: rgba(90, 212, 176, 0.12);
  --cs-verified-border: rgba(90, 212, 176, 0.3);
}

html[data-theme="dark"] .cs-main {
  background: #112530;
  color: var(--ink);
}

html[data-theme="dark"] .cs-hero-band {
  background: linear-gradient(180deg, #16303e 0%, #112530 42%);
}

html[data-theme="dark"] .cs-btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #081a22;
}

html[data-theme="dark"] .cs-btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #081a22;
}

html[data-theme="dark"] .cs-btn-airbnb {
  background: #1b3b4c;
  border-color: var(--line);
  color: #eaf5f8;
}

html[data-theme="dark"] .cs-btn-airbnb:hover {
  border-color: var(--coral);
  color: #ff859b;
  background: rgba(255, 107, 134, 0.1);
}

html[data-theme="dark"] .cs-dossier-card,
html[data-theme="dark"] .cs-reviews-scorecard,
html[data-theme="dark"] .cs-reviews-canvas,
html[data-theme="dark"] .cs-review-card,
html[data-theme="dark"] .cs-room-card,
html[data-theme="dark"] .cs-audit-strip,
html[data-theme="dark"] .cs-modal__dialog {
  background: #1b3b4c;
  border-color: var(--line);
}

html[data-theme="dark"] .cs-dossier-row dd.is-rating,
html[data-theme="dark"] .cs-reviews-scorecard__meta strong {
  color: #ff7a93;
}

html[data-theme="dark"] .cs-specs-band,
html[data-theme="dark"] .cs-breakdown-band,
html[data-theme="dark"] .cs-close-band {
  background: #112530;
  border-color: var(--line);
}

html[data-theme="dark"] .cs-close-primary {
  background: #0e222d;
  border: 1px solid var(--line);
}

html[data-theme="dark"] .cs-close-primary h2 {
  color: #eaf5f8;
}

html[data-theme="dark"] .cs-close-primary p {
  color: #bfd7df;
}

html[data-theme="dark"] .cs-close-primary .cs-btn-light {
  background: var(--blue);
  color: #081a22;
}

html[data-theme="dark"] .cs-close-primary .cs-btn-light:hover {
  background: var(--blue-hover);
}

html[data-theme="dark"] .cs-modal__header {
  background: #112530;
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .cs-modal__close {
  background: #1b3b4c;
  border-color: var(--line);
  color: #eaf5f8;
}

html[data-theme="dark"] .cs-modal__close:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Dark theme alignment · Ocean Blue / #38B6D8 */
html[data-theme="dark"] .cs-main {
  background:
    radial-gradient(ellipse at 14% 0%, rgba(91, 211, 239, .24), transparent 40%),
    linear-gradient(145deg, #246F88 0%, #164B60 54%, #103B50 100%);
  color: #F4FCFF;
}

html[data-theme="dark"] .cs-hero-band,
html[data-theme="dark"] .cs-specs-band,
html[data-theme="dark"] .cs-breakdown-band,
html[data-theme="dark"] .cs-close-band {
  background: linear-gradient(180deg, #246F88 0%, #164B60 100%);
  border-color: #4B9FB5;
}

html[data-theme="dark"] .cs-dossier-card,
html[data-theme="dark"] .cs-reviews-scorecard,
html[data-theme="dark"] .cs-reviews-canvas,
html[data-theme="dark"] .cs-review-card,
html[data-theme="dark"] .cs-room-card,
html[data-theme="dark"] .cs-audit-strip,
html[data-theme="dark"] .cs-modal__dialog {
  background: #246F88;
  border-color: #4B9FB5;
  color: #F4FCFF;
}

html[data-theme="dark"] .cs-close-primary {
  background: linear-gradient(145deg, #246F88 0%, #123F53 100%);
  border-color: #4B9FB5;
}

html[data-theme="dark"] .cs-close-primary h2,
html[data-theme="dark"] .cs-modal__header {
  color: #F4FCFF;
}

html[data-theme="dark"] .cs-close-primary p {
  color: #D9F1F7;
}

html[data-theme="dark"] .cs-btn-primary,
html[data-theme="dark"] .cs-close-primary .cs-btn-light {
  background: #38B6D8;
  border-color: #38B6D8;
  color: #082F40;
}

html[data-theme="dark"] .cs-btn-primary:hover,
html[data-theme="dark"] .cs-close-primary .cs-btn-light:hover {
  background: #61C9E3;
  border-color: #61C9E3;
  color: #082F40;
}

html[data-theme="dark"] .cs-modal__header {
  background: #1D6078;
  border-bottom-color: #4B9FB5;
}

html[data-theme="dark"] .cs-modal__close {
  background: #2C829D;
  border-color: #4B9FB5;
  color: #F4FCFF;
}

/* Ocean Blue finishing pass: readable case-study typography and controls. */
html[data-theme="dark"] .cs-main,
html[data-theme="dark"] .cs-main p,
html[data-theme="dark"] .cs-main li,
html[data-theme="dark"] .cs-hero-lead,
html[data-theme="dark"] .cs-dossier-row dt,
html[data-theme="dark"] .cs-dossier-row dd,
html[data-theme="dark"] .cs-review-card p,
html[data-theme="dark"] .cs-audit-strip p {
  color: #D9F1F7;
}

html[data-theme="dark"] .cs-main h1,
html[data-theme="dark"] .cs-main h2,
html[data-theme="dark"] .cs-main h3,
html[data-theme="dark"] .cs-main h4,
html[data-theme="dark"] .cs-dossier-card strong,
html[data-theme="dark"] .cs-review-card strong {
  color: #F4FCFF;
}

html[data-theme="dark"] .cs-kicker,
html[data-theme="dark"] .cs-breadcrumb a,
html[data-theme="dark"] .cs-status-live {
  color: #8DDFEF;
}

html[data-theme="dark"] .cs-dossier-row dd.is-rating,
html[data-theme="dark"] .cs-reviews-scorecard__meta strong {
  color: #FFD27A;
}

html[data-theme="dark"] .cs-btn-airbnb {
  background: rgba(16, 59, 80, .34);
  border-color: #72C8DC;
  color: #F4FCFF;
}

html[data-theme="dark"] .cs-btn-airbnb:hover {
  background: rgba(56, 182, 216, .18);
  border-color: #8DDFEF;
  color: #FFFFFF;
}

html[data-theme="dark"] .cs-modal__header h2,
html[data-theme="dark"] .cs-modal__dialog h2,
html[data-theme="dark"] .cs-modal__dialog h3 {
  color: #F4FCFF;
}

html[data-theme="dark"] .cs-modal__dialog p,
html[data-theme="dark"] .cs-modal__dialog li {
  color: #D9F1F7;
}

