/* ==========================================================================
   Casanita Romance — editorial magazine prototype
   --------------------------------------------------------------------------
   Commitment: refined editorial, not vacation-rental boilerplate.
   Paper tone, oversized Fraunces display, restrained motion, asymmetric grid.
   Seasonal tints shift the page background subtly.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --paper: #FAF7F2;
  --paper-deep: #F3EEE4;
  --ink: #1A1814;
  --ink-soft: #3A352D;
  --muted: #847E72;
  --rule: #E4DFD3;
  --accent: #0074B4;
  --accent-ink: #003E61;

  /* seasonal tints — used on body + hero wash */
  --tint-spring: #EFF2E4;
  --tint-summer: #F7EFE1;
  --tint-fall:   #F1E7D9;
  --tint-winter: #E9EEF2;

  /* typography */
  --font-display: "Fraunces", "Bellagia Display", "Playfair Display", Georgia, serif;
  --font-body:    "Fraunces", "EB Garamond", Georgia, serif;
  --font-ui:      "DM Sans", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* scale */
  --fs-xl-hero: clamp(3.5rem, 7.5vw, 7rem);
  --fs-lg-hero: clamp(2.5rem, 5vw, 4.5rem);
  --fs-display: clamp(2rem, 3.5vw, 3rem);
  --fs-lead:    clamp(1.15rem, 1.4vw, 1.35rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;

  --lh-tight: 1.05;
  --lh-snug:  1.25;
  --lh-body:  1.65;

  /* layout */
  --col: minmax(0, 1fr);
  --gutter: clamp(1rem, 2.5vw, 2.5rem);
  --page-pad: clamp(1.25rem, 4vw, 3rem);
  --max-narrow: 640px;
  --max-reading: 68ch;
  --max-page: 1440px;

  /* motion */
  --ease-editorial: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-crossfade: 420ms;
}

/* seasonal body-level wash */
body[data-season="spring"] { --season-tint: var(--tint-spring); --season-name: "Spring"; }
body[data-season="summer"] { --season-tint: var(--tint-summer); --season-name: "Summer"; }
body[data-season="fall"]   { --season-tint: var(--tint-fall);   --season-name: "Fall"; }
body[data-season="winter"] { --season-tint: var(--tint-winter); --season-name: "Winter"; }

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "liga", "kern", "onum";
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 800ms var(--ease-editorial);
  background-image: linear-gradient(180deg, var(--season-tint, transparent) 0%, transparent 600px);
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

hr.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 4rem auto;
  max-width: var(--max-page);
}

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header__inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0.9rem var(--page-pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gutter);
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.brand em {
  font-style: italic;
  color: var(--muted);
  font-weight: 300;
}

.tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  justify-self: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  background: var(--paper-deep);
}

.tab {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 250ms var(--ease-editorial), background 250ms var(--ease-editorial);
  white-space: nowrap;
}

.tab[aria-selected="true"] {
  color: var(--paper);
  background: var(--ink);
}

.tab:hover:not([aria-selected="true"]) { color: var(--ink); }

.cta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  transition: color 200ms, border-color 200ms, background 200ms;
}

.cta:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--page-pad) clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.hero__meta {
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.hero__meta::before {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--ink);
}

.hero__h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-xl-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 120;
}

/* Elementor's global Kit rule (.elementor-kit-N h1) forces color + font on
   every h1 sitewide — squashing font-size to 36px and family to Marcellus.
   Our hero sits on a cream page background and needs the editorial weight
   of the variant h2s, so we re-declare the full type stack here under a
   higher-specificity selector. Doubling the class raises to (0,2,0),
   beating Kit's (0,1,1). */
.hero .hero__h1,
.hero__h1.hero__h1 {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-xl-hero);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 120;
}

.hero .hero__h1 em,
.hero__h1.hero__h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-ink);
  -webkit-text-fill-color: var(--accent-ink);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.hero__kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0;
  line-height: 1.4;
  font-variation-settings: "SOFT" 100;
}

.hero__image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 10px;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
}

.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(26, 24, 20, 0.08);
  pointer-events: none;
}

/* ---------- Season pills ---------- */
.seasons {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 1.5rem var(--page-pad) 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.seasons__label {
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: auto;
}

.season {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--muted);
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition: color 250ms var(--ease-editorial), border-color 250ms var(--ease-editorial);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.season[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.season:hover:not([aria-selected="true"]) { color: var(--ink-soft); }

/* ---------- Itinerary container (crossfade) ---------- */
.itinerary-stage {
  position: relative;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--page-pad) 0;
}

.variant {
  opacity: 1;
  transition: opacity var(--dur-crossfade) var(--ease-editorial);
}

.variant[hidden] {
  display: none !important;
}

.variant.is-fading { opacity: 0; }

/* ---------- Variant hero (per-variant intro) ---------- */
.variant__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.variant__hero h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-lg-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  font-variation-settings: "SOFT" 50, "opsz" 120;
}

.variant__hero h2 em {
  font-style: italic;
  color: var(--accent-ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.variant__hero-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 10px;
}

.variant__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variant__kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.75vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 2rem;
  font-variation-settings: "SOFT" 100;
}

.variant__intro {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 42ch;
  color: var(--ink-soft);
}

/* ---------- Day sections ---------- */
.day {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.day:nth-of-type(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.day:nth-of-type(even) .day__header { order: 2; }
.day:nth-of-type(even) .day__content { order: 1; }

.day__header {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.day__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
  color: var(--accent);
  display: block;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  margin-bottom: 0.5rem;
}

.day__label {
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.75rem;
}

.day__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.day__title em {
  font-style: italic;
  color: var(--accent-ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.day__lead {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: var(--fs-body);
}

/* Day content */
.day__content {
  max-width: var(--max-reading);
}

.day__content > p:first-child {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.day__content p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.day__content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.day__content li {
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: var(--fs-body);
  line-height: 1.55;
}

.day__content li::before {
  content: "";
  position: absolute;
  left: 0;
  /* Vertically center on first line: padding-top (0.9rem) + half of the
     line-box (0.5 × 1.55 × 1.0625rem ≈ 0.82rem). */
  top: calc(0.9rem + (1.55em / 2));
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
  transform: translateY(-0.5px);
}

.day__content li strong {
  font-weight: 500;
  color: var(--ink);
}

.day__content li em {
  font-style: italic;
  color: var(--muted);
}

.day__content figure {
  margin: 2rem 0 2.5rem;
}

.day__content figure img,
.day__content figure svg {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
  border-radius: 10px;
}

.day__content figcaption {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid var(--accent);
  letter-spacing: 0.01em;
}

.tease {
  font-style: italic;
  color: var(--muted);
  padding: 1rem 0 0;
  font-size: var(--fs-body);
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}

.tease a {
  color: var(--accent-ink);
  text-decoration-color: var(--accent);
}

/* ---------- Book-direct block ---------- */
.book-direct {
  margin: clamp(3rem, 6vw, 5rem) 0;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 4vw, 3.5rem);
  background: var(--paper-deep);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.book-direct h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.book-direct h3 em {
  font-style: italic;
  color: var(--accent-ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.book-direct ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
}

.book-direct li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.book-direct li:first-child { padding-top: 0; }
.book-direct li:last-child { border-bottom: 0; }

.book-direct__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
}

.book-direct__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-direct__cta,
.book-direct__cta.book-direct__cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  background: var(--ink);
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  transition: background 200ms, color 200ms;
}

.book-direct__cta:hover,
.book-direct__cta.book-direct__cta:hover {
  background: var(--accent);
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
}

/* ---------- Why [season] ---------- */
.closer {
  max-width: var(--max-page);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  padding: clamp(4rem, 8vw, 8rem) var(--page-pad);
  background: var(--season-tint, var(--paper-deep));
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  transition: background 800ms var(--ease-editorial);
}

.closer h3 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

.closer h3 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--accent-ink);
  display: block;
}

.closer p {
  font-size: clamp(1.125rem, 1.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 3rem var(--page-pad) 4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  color: var(--muted);
}

.footer h4 {
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .header__inner {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
  .tabs {
    grid-column: 1 / -1;
    order: 3;
    justify-self: stretch;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }

  .hero {
    grid-template-columns: 1fr;
  }
  .hero__image {
    aspect-ratio: 16 / 11;
    order: -1;
  }

  .variant__hero {
    grid-template-columns: 1fr;
  }
  .variant__hero-image {
    aspect-ratio: 16 / 11;
    order: -1;
  }

  .day {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }
  .day:nth-of-type(even) {
    grid-template-columns: 1fr;
  }
  .day:nth-of-type(even) .day__header,
  .day:nth-of-type(even) .day__content {
    order: unset;
  }
  .day__header {
    position: static;
  }
  .day__num {
    font-size: 4.5rem;
  }

  .book-direct {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .book-direct__image {
    aspect-ratio: 16 / 11;
  }

  .closer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem var(--page-pad);
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

/* ---------- Print ---------- */
@media print {
  .header, .footer { display: none; }
  .variant[hidden] { display: block !important; }
  .day { break-inside: avoid; }
}

/* ---------- Editorial link (inline, no default affordance) ----------
   Used for outbound links to authoritative institutional destinations
   (Brookgreen, SC State Parks, MarshWalk). Inherits body color and has no
   default underline so it doesn't break editorial flow; on hover/focus an
   underline slides in and color shifts to accent-ink. Still accessible —
   the hover/focus affordance satisfies WCAG 1.4.1 (color-only) and
   focus-visible handles keyboard users. */
.editorial-link,
.editorial-link:visited,
.day__content a.editorial-link,
.day__content a.editorial-link:visited {
  color: inherit;
  -webkit-text-fill-color: inherit;
  /* Elementor Kit globally rewrites `a { font-family }` to Marcellus;
     force body font back on editorial links so they match surrounding copy. */
  font-family: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 200ms ease, background-size 220ms ease;
}
.editorial-link:hover,
.editorial-link:focus-visible,
.day__content a.editorial-link:hover,
.day__content a.editorial-link:focus-visible {
  color: var(--accent-ink);
  -webkit-text-fill-color: var(--accent-ink);
  background-size: 100% 1px;
  outline: none;
}
.editorial-link:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Romance header band + pillars ----------
   Slim photo strip gives the absolute, transparent Casanita theme header a
   dark background to read against. The pillar tablist sits on the cream
   content area BELOW the band — never overlapping the theme logo/nav. */
.romance-header-band {
  position: relative;
  min-height: clamp(240px, 32vh, 300px);
  background-image: url('/wp-content/mu-plugins/casanita-editorial/assets/romance/images/blocks/grande-dunes-marina.jpg');
  background-size: cover;
  background-position: center 45%;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
}
.romance-header-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.romance-pillars {
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: var(--paper);
  width: 100%;
}
@media (max-width: 900px) {
  .romance-header-band {
    min-height: clamp(200px, 28vh, 260px);
  }
  .romance-pillars {
    padding: 1rem 1rem;
  }
}

/* ---------- Narrow viewport (<400px): keep tablists on one row ---------- */
@media (max-width: 400px) {
  .romance-pillars .tabs {
    gap: 0;
    padding: 3px;
  }
  .romance-pillars .tab {
    font-size: 0.72rem;
    padding: 0.45rem 0.65rem;
    letter-spacing: 0;
  }
  .seasons {
    gap: 0.75rem 1rem;
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }
  .seasons__label {
    flex-basis: 100%;
    margin-right: 0;
  }
  .season {
    font-size: 1.2rem;
  }
}

/* ---------- Theme header overlap restoration ----------
   Cozystay's .cn-property-page-body rule forces .site-header.overlap-header to
   position: relative, which stacks the opaque header above .romance-header-band
   and pushes the pillar tabs ~260px down. Since romance.css is only loaded on
   romance pages (gated by active_slugs), it is safe to scope the override to
   body.cn-property-page-body here. */
body.cn-property-page-body #page { position: relative; z-index: 10; }
body.cn-property-page-body .site-header.overlap-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
body.cn-property-page-body .site-header .elementor-section,
body.cn-property-page-body .site-header .elementor-top-section {
  background-color: transparent !important;
}
body.cn-property-page-body .site-header .elementor {
  background-color: transparent !important;
}

/* ---------- White nav over sunset photograph ----------
   Theme's body.light-color class defeats the column-level dark-color scheme
   on template 54, so nav links render in dark blue over the photograph. Scope
   forced-white to body.cn-property-page-body so only the romance page (and
   any future pillar pages gated by active_slugs) is affected. */
body.cn-property-page-body .site-header .cs-menu .primary-menu > li > a,
body.cn-property-page-body .site-header .cs-menu .primary-menu > li > a:link,
body.cn-property-page-body .site-header .cs-menu .primary-menu > li > a:visited,
body.cn-property-page-body .site-header .cs-menu .sub-menu li a,
body.cn-property-page-body .site-header a[href^="tel:"],
body.cn-property-page-body .site-header .elementor-widget-text-editor,
body.cn-property-page-body .site-header .elementor-widget-text-editor p,
body.cn-property-page-body .site-header .elementor-widget-text-editor a { color: #FFFFFF !important; }

body.cn-property-page-body .site-header .cs-menu .primary-menu > li > a:hover,
body.cn-property-page-body .site-header .cs-menu .primary-menu > li.current-menu-item > a,
body.cn-property-page-body .site-header a[href^="tel:"]:hover { color: #F5E9D0 !important; }

body.cn-property-page-body .site-header .cs-menu .primary-menu > li > a::after,
body.cn-property-page-body .site-header .cs-menu .cs-menu-dropdown-icon { color: #FFFFFF !important; fill: #FFFFFF !important; }

body.cn-property-page-body .site-header .cs-btn-outline,
body.cn-property-page-body .site-header .elementor-button.cs-btn-outline {
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  background-color: transparent !important;
}
body.cn-property-page-body .site-header .cs-btn-outline:hover,
body.cn-property-page-body .site-header .elementor-button.cs-btn-outline:hover {
  color: #1B3A4B !important;
  background-color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

body.cn-property-page-body .site-header .cs-menu-toggle,
body.cn-property-page-body .site-header .cs-menu-toggle * { color: #FFFFFF !important; fill: #FFFFFF !important; }

/* --- Logo: force white on /romance/ over photograph --- */
body.cn-property-page-body .site-header .elementor-widget-image img,
body.cn-property-page-body .site-header img.wp-image-2413,
body.cn-property-page-body .site-header a[href$="casanitaproperties.com"] img,
body.cn-property-page-body .site-header a[href$="casanitaproperties.com/"] img {
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
}

/* --- Logo: center within its Elementor center column ----------
   property-page.css clamps the swapped MidBlue logo to max-width:200px,
   but the Elementor 3-column header (column-33) keeps the column at ~33%
   of header width, so a 200px image left-aligns inside a ~480px column
   and visually shifts left. Center the image inside the widget. */
body.cn-property-page-body .site-header .elementor-widget-image .elementor-widget-container,
body.cn-property-page-body .site-header .elementor-widget-image > a,
body.cn-property-page-body .site-header .elementor-widget-image {
  text-align: center !important;
}
body.cn-property-page-body .site-header .elementor-widget-image img {
  display: inline-block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- Logo: replicate Elementor template 54's own centering rule -----
   Elementor stores body.elementor-page-54 .elementor-element-93900cd
   .elementor-widget-container { display:flex; justify-content:center; }
   in the compiled post-54.css. That rule only fires on the template's
   own preview page, not when template 54 is rendered as the site header
   on other pages. Re-apply scoped to body.cn-property-page-body so the
   logo centers in its 30%-wide column on Romance (where property-page.css
   clamps it to 200px and text-align alone doesn't catch the flex children). */
body.cn-property-page-body .site-header .elementor-element-93900cd .elementor-widget-container {
  display: flex !important;
  justify-content: center !important;
}
body.cn-property-page-body .site-header .elementor-element-93900cd img {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- Romance: use natural template-54 logo sizing (override property-page.css 200px cap) --- */
body.page-id-4565 .site-header .elementor-element-93900cd img,
body.page-id-4565 .site-header .elementor-element-66f0723 img {
  max-width: none !important;
  width: 70% !important;
}
