/* ============================================================
   RICK — Top Orlando Vacation Rentals — theme tokens
   Palette from design: olive / walnut / gold / cream / paper / ink
   Fonts: Playfair Display + Plus Jakarta Sans
   Remaps shared PMS/booking CSS variables. Zero locked-core markup edits.
   ============================================================ */

:root {
  --olive: #4c6444;
  --olive-deep: #283627;
  --walnut: #8a6340;
  --gold: #fcaf3d;
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --ink: #20251e;
  --muted: #62675e;
  --line: rgba(32, 37, 30, .16);
  --display: "Playfair Display", Georgia, serif;
  --body: "Plus Jakarta Sans", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Shared booking / property-detail variable bridge */
  --green: #4c6444;
  --green-dark: #283627;
  --green-light: #62675e;
  --green-pale: #f6f1e8;
  --gold-light: #ffc873;
  --silver: #8a6340;
  --silver-light: #c4a882;
  --cream-dk: #ebe4d6;
  --brown: #8a6340;
  --brown-mid: #9b734c;
  --white: #fffdf8;
  --text-dark: #20251e;
  --text-mid: #62675e;
  --text-dull: #283627;
  --text-muted: #62675e;

  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Plus Jakarta Sans", Arial, sans-serif;
  --font-third: "Playfair Display", Georgia, serif;
}

body.client-theme-rick {
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--cream);
}

/* Inner pages: solid header over page heroes */
body.client-theme-rick:not(.page-home) .site-header {
  position: fixed;
  background: rgba(40, 54, 39, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

body.client-theme-rick.page-home .site-header {
  position: fixed;
  z-index: 50;
  background: rgba(40, 54, 39, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

/* Hide master mansion chrome leftovers */
body.client-theme-rick .mansion-header-offset {
  display: none;
}

/* Soften sticky book-now to match olive/gold */
body.client-theme-rick .sticky-book-now,
body.client-theme-rick .sticky-book-now a,
body.client-theme-rick .sticky-book-now button {
  font-family: var(--body-font);
}

/* Property-detail shell accents (quote widget markup untouched) */
body.client-theme-rick.property-detail-page {
  background: var(--cream);
}
body.client-theme-rick.property-detail-page h1,
body.client-theme-rick.property-detail-page h2,
body.client-theme-rick.property-detail-page h3 {
  font-family: var(--heading-font);
  letter-spacing: -.03em;
}
body.client-theme-rick.property-detail-page .btn,
body.client-theme-rick.property-detail-page button[type="submit"] {
  background: var(--gold);
  color: var(--olive-deep);
  border-color: var(--gold);
  font-family: var(--body-font);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Hero video uses the same full-bleed plane as hero images */
body.client-theme-rick video.hero-media,
body.client-theme-rick video.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Base style.css centers .hero-content — force Rick home hero left-aligned. */
body.client-theme-rick .hero .hero-content,
body.client-theme-rick.page-home .hero-content {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

/* Remove marquee rail behind the booking search panel. */
body.client-theme-rick .hero-rail {
  display: none !important;
}

body.client-theme-rick.page-home .hero {
  min-height: max(48rem, 100svh);
}

body.client-theme-rick.page-home .hero-content {
  padding-bottom: clamp(2rem, 5vh, 3rem);
}

body.client-theme-rick.page-home .booking-panel {
  position: relative;
  z-index: 3;
  margin: 0 0 clamp(2.5rem, 5vh, 4rem);
}

body.client-theme-rick.page-home .booking-shell {
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 900px) {
  body.client-theme-rick.page-home .hero {
    min-height: auto;
  }

  body.client-theme-rick.page-home .hero-content {
    padding-bottom: 2rem;
  }

  body.client-theme-rick.page-home .booking-panel {
    margin-top: 0;
    margin-bottom: 2rem;
  }
}

/*
  Booking keycard: DO NOT use position:sticky on this site.
  html/body both compute to overflow-x:hidden + overflow-y:auto, which
  creates a non-viewport scrollport. Sticky then "sticks" against that
  container and the card floats up over the header/left column on scroll.
  Keep the widget in normal document flow inside .right-col instead.
*/
body.client-theme-rick.property-detail-page .booking-card-pro {
  position: static !important;
  top: auto !important;
  z-index: 1;
}

body.client-theme-rick.property-detail-page .site-header {
  z-index: 50;
}

body.client-theme-rick.property-detail-page .main-grid > .right-col {
  align-self: start;
}

body.client-theme-rick .property-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
}

body.client-theme-rick .site-logo {
  display: block;
  width: auto;
  max-width: min(15rem, 52vw);
  object-fit: contain;
}

body.client-theme-rick .wordmark-fallback {
  display: inline-flex;
  flex-direction: column;
}

body.client-theme-rick .wordmark-fallback[hidden] {
  display: none;
}

body.client-theme-rick .site-logo--header {
  max-height: 4rem;
}

body.client-theme-rick .site-logo--footer {
  max-height: 5rem;
  max-width: min(17rem, 100%);
}

body.client-theme-rick .footer-contact-text {
  display: block;
  color: rgba(255, 253, 248, .78);
  line-height: 1.5;
}

body.client-theme-rick .footer-social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .65rem;
}

body.client-theme-rick .footer-social-links a {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--paper);
}

body.client-theme-rick .footer-social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

body.client-theme-rick .contact-map-panel {
  overflow: hidden;
  min-height: 18rem;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(32, 37, 30, .1);
}

body.client-theme-rick .contact-map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
}

body.client-theme-rick .attraction-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--paper);
  background: var(--olive-deep);
}

body.client-theme-rick .attraction-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 68%;
  background: linear-gradient(180deg, rgba(24, 38, 24, 0), rgba(18, 29, 19, .9));
  pointer-events: none;
}

body.client-theme-rick .attraction-card__caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: grid;
  gap: .55rem;
  color: var(--paper);
}

body.client-theme-rick .attraction-card__caption h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .38);
}

body.client-theme-rick .attraction-card__caption p {
  margin: 0;
  max-width: 32rem;
  color: rgba(255, 253, 248, .86);
  font-size: .9rem;
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

body.client-theme-rick .attraction-card__cta {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .75rem;
  background: var(--gold);
  color: var(--olive-deep);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

body.client-theme-rick .attraction-card:hover .attraction-card__cta {
  background: #ffc873;
  transform: translateY(-1px);
}

body.client-theme-rick .blog-shell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

body.client-theme-rick .blog-shell-card {
  min-height: 16rem;
  padding: 2rem;
  background: var(--paper);
  border-top: 3px solid var(--gold);
}

body.client-theme-rick .blog-shell-card span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--walnut);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}

body.client-theme-rick .blog-shell-card h3 {
  margin-bottom: .85rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

body.client-theme-rick .blog-shell-card p {
  margin: 0;
  color: var(--muted);
}

@media(max-width:900px) {
  body.client-theme-rick .blog-shell-grid {
    grid-template-columns: 1fr;
  }
}

/* Property promotion and video-tour presentation. */
body.client-theme-rick .property-rate-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  width: clamp(9rem, 15vw, 12rem);
  aspect-ratio: 1;
  place-items: center;
  padding: 1.25rem;
  color: #2b2511;
  background: #ffd34e;
  clip-path: polygon(50% 0%, 58% 11%, 72% 4%, 77% 18%, 93% 17%, 88% 32%, 100% 42%, 88% 52%, 95% 68%, 80% 74%, 79% 91%, 63% 85%, 52% 100%, 42% 87%, 25% 95%, 20% 80%, 4% 80%, 12% 64%, 0% 52%, 12% 41%, 5% 26%, 21% 21%, 28% 7%, 42% 14%);
  text-align: center;
  transform: rotate(-5deg);
  filter: drop-shadow(0 .35rem .4rem rgba(32, 37, 30, .22));
}

body.client-theme-rick .property-rate-badge__copy {
  display: grid;
  gap: .08rem;
  width: 100%;
  transform: rotate(5deg);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

body.client-theme-rick .property-rate-badge__copy strong {
  display: block;
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: .9;
}

body.client-theme-rick .property-rate-badge__copy small {
  font-size: .62em;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.client-theme-rick .property-rate-badge__copy em {
  display: block;
  margin-top: .28rem;
  font-size: .68em;
  font-style: normal;
  font-weight: 700;
  line-height: 1.15;
}

@media(max-width:700px) {
  body.client-theme-rick .property-rate-badge {
    top: .65rem;
    right: .65rem;
    width: clamp(8.5rem, 34vw, 10rem);
    padding: 1rem;
  }

  body.client-theme-rick .property-rate-badge__copy {
    font-size: .64rem;
  }

  body.client-theme-rick .property-rate-badge__copy strong {
    font-size: 1.85rem;
  }

}
