/* ============================
   Faraway Booking Page — V1
   Light theme matching faraway.camp
   ============================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #FAF8F5;
  --color-white: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-muted: #6B6B6B;
  --color-accent: #B8860B;
  --color-accent-hover: #9A7209;
  --color-border: #E8E4DF;
  --color-card-shadow: rgba(0, 0, 0, 0.06);
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-brand: 'Futura PT', 'Futura', sans-serif;
  --color-brand-yellow: #FFDE59;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --radius: 12px;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #2C2C2C;
  color: #fff;
  padding: 80px 24px 40px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero__bg--active {
  opacity: 1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.5) 100%);
}

.hero__overlay,
.hero__badges,
.hero__scroll {
  position: relative;
  z-index: 1;
}

.hero__brand {
  font-family: var(--font-brand);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--color-brand-yellow);
  margin-bottom: 12px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.badge {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.hero__scroll:hover {
  opacity: 1;
  color: #fff;
  text-decoration: none;
}

.hero__scroll svg {
  animation: bounce-down 1.8s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== SECTION TITLES ===== */

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 32px;
  color: var(--color-text);
}

/* ===== DOME SELECTOR ===== */

.domes {
  padding: 64px 24px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.domes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .domes__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.dome-card {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.dome-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px var(--color-card-shadow);
}

.dome-card--active {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(184, 134, 11, 0.12);
}

.dome-card__image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.dome-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.dome-card:hover .dome-card__image img {
  transform: scale(1.03);
}

/* Selected badge on active dome card */
.dome-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.dome-card--active .dome-card__badge {
  opacity: 1;
  transform: translateY(0);
}

.dome-card__body {
  padding: 20px 24px 24px;
}

.dome-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.dome-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.dome-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.dome-card__amenities li {
  background: var(--color-bg);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.domes__social-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
}

.domes__rating-sep {
  opacity: 0.5;
}

/* ===== PHOTO STRIP ===== */

.photo-strip {
  padding: 16px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
}

.photo-strip__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px;
  scrollbar-width: none;
}

.photo-strip__track::-webkit-scrollbar {
  display: none;
}

.photo-strip__track img {
  flex: 0 0 auto;
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: start;
  transition: transform 0.3s;
}

.photo-strip__track img:hover {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .photo-strip__track img {
    width: 340px;
    height: 230px;
  }
}

/* ===== BOOKING / CALENDAR ===== */

.booking {
  padding: 48px 24px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.booking__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
}

.booking__date-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* Book Direct callout */
.booking__direct {
  text-align: center;
  padding: 12px 20px;
  margin: 0 auto 24px;
  max-width: 520px;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
  border: 1px solid #F5E6A3;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--color-text);
}

.booking__direct strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
  color: #6B5900;
}

.booking__direct span {
  color: var(--color-text-muted);
}

.booking__widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 0 auto 32px;
  overflow: hidden;
}

.booking__iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

.booking__widget--hidden {
  display: none;
}

/* ===== STAY NOTE ===== */

.booking__stay-note {
  background: #F5F0EB;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 auto 24px;
  max-width: 820px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.booking__stay-note p + p {
  margin-top: 8px;
}

.booking__stay-note strong {
  color: var(--color-text);
}

/* ===== TRUST BAR ===== */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-bar__item {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.trust-bar__item strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* ===== ROTATING REVIEWS ===== */

.reviews {
  position: relative;
  min-height: 140px;
  text-align: center;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.reviews__quote {
  position: absolute;
  inset: 24px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-style: italic;
}

.reviews__quote--active {
  position: relative;
  inset: auto;
  opacity: 1;
}

.reviews__quote p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 12px;
}

.reviews__quote cite {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: normal;
  font-weight: 500;
}

/* ===== LOCATION ===== */

.location {
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.location__address {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.location__distances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.location__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  min-width: 140px;
}

.location__item strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 4px;
}

.location__contact {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== FOOTER ===== */

.footer {
  padding: 40px 24px 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer__social a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ===== STICKY MOBILE CTA ===== */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 24px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta--visible {
  transform: translateY(0);
}

.sticky-cta__button {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 14px 24px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.sticky-cta__button:hover,
.sticky-cta__button:focus {
  background: var(--color-accent-hover);
  text-decoration: none;
  color: #fff;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ===== CONTACT MODAL ===== */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

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

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.contact-modal__dialog {
  position: relative;
  width: 90vw;
  max-width: 560px;
  height: 80vh;
  max-height: 720px;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

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

.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.contact-modal__close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.contact-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===== MOBILE REFINEMENTS ===== */

@media (max-width: 767px) {
  .hero {
    min-height: 60vh;
    padding-bottom: 32px;
  }

  .dome-card__image {
    aspect-ratio: 4 / 3;
  }

  .booking {
    padding: 40px 16px 80px;
  }

  .booking__iframe {
    height: 520px;
  }

  .reviews {
    min-height: 160px;
  }

  .contact-modal__dialog {
    width: 95vw;
    height: 85vh;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}
