@layer base, layout, responsive;

@layer base {
  :root {
    color-scheme: light;
    --forest: #36543b;
    --dark: #202e22;
    --deep: #243528;
    --wood: #866344;
    --sand: #ede2ce;
    --cream: #f8f4ea;
    --paper: #fdfaf3;
    --white: #fff;
    --muted: #565e50;
    --line: #ded8ca;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", system-ui, sans-serif;
    --header: 78px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
  body { margin: 0; background: var(--cream); color: var(--dark); font-family: var(--sans); line-height: 1.65; }
  [hidden] { display: none !important; }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; font: inherit; cursor: pointer; }
  img { display: block; max-width: 100%; }
  figure, h1, h2, h3, p { margin: 0; }
  ul, ol { margin: 0; padding: 0; list-style: none; }
  svg { flex: none; vertical-align: middle; }
  :focus-visible { outline: 3px solid #a97335; outline-offset: 4px; }

  .wrap { width: min(1160px, calc(100% - 104px)); margin-inline: auto; }
  .section { padding-block: clamp(76px, 8vw, 124px); }
  .eyebrow { display: flex; align-items: center; gap: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .19em; line-height: 1.4; text-transform: uppercase; }
  .section-label { color: var(--wood); margin-bottom: 18px; }
  .section-label > span { display: inline-flex; align-items: center; gap: 10px; }
  .section-label > span::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
  h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
  h2 { max-width: 16ch; font-size: clamp(2.55rem, 4.6vw, 4.5rem); line-height: 1.02; }
  h2 em { color: var(--wood); font-weight: 400; }
  .section-copy > p:not(.eyebrow), .center-heading > p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
  .section-copy > h2 + p, .center-heading > h2 + p { margin-top: 24px; }
  .section-copy > p + p { margin-top: 14px; }
  .section-copy > .button, .section-copy > .text-link { margin-top: 30px; }
  .center-heading { display: grid; justify-items: center; text-align: center; margin-bottom: 42px; }
  .center-heading h2 { max-width: 20ch; }
  .button, .icon-button {
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
    min-height: 48px; border: 1px solid transparent; border-radius: 7px;
    font-size: .875rem; font-weight: 700; line-height: 1.35; text-align: center;
    transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
  }
  .button { padding: 12px 20px; }
  .button:hover, .floating-wa:hover { transform: translateY(-2px); }
  .button svg { width: 20px; height: 20px; }
  .button-green { background: var(--forest); color: var(--white); }
  .button-green:hover { background: var(--dark); }
  .button-outline { color: var(--forest); border-color: #9aa494; background: transparent; }
  .button-outline:hover { background: #e5e8dd; border-color: var(--forest); }
  .button-sand { color: var(--dark); background: var(--sand); }
  .button-sand:hover { background: var(--white); }
  .icon-button { width: 44px; min-height: 44px; padding: 0; background: transparent; }
  .icon-button:hover { background: #36543b12; }
  .text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-size: .875rem; font-weight: 700; text-underline-offset: 4px; }
  .text-link:hover { text-decoration: underline; }
  .text-link svg { width: 17px; height: 17px; }
  .skip-link { position: fixed; z-index: 20; left: 16px; top: 12px; padding: 8px 16px; background: var(--white); transform: translateY(-150%); }
  .skip-link:focus { transform: none; }
}

@layer layout {
  .site-header { position: sticky; top: 0; z-index: 10; background: var(--cream); border-bottom: 1px solid #e9e0cf; }
  .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: var(--header); width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
  .brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 11px; }
  .brand-mark { display: grid; place-items: center; width: 44px; aspect-ratio: 1; border: 1px solid #9baa95; border-radius: 50%; color: var(--forest); }
  .brand-type { display: grid; gap: 4px; line-height: 1; }
  .brand-type > span { font: 400 1.22rem/1 var(--serif); white-space: nowrap; letter-spacing: -.035em; }
  .brand-type small { font-size: .56rem; font-weight: 700; letter-spacing: .13em; color: var(--wood); white-space: nowrap; }
  .navigation, .header-actions { display: flex; align-items: center; }
  .navigation { gap: clamp(13px, 1.8vw, 28px); }
  .navigation > a { font-size: .83rem; font-weight: 600; white-space: nowrap; text-underline-offset: 6px; }
  .navigation > a:hover, .navigation > a[aria-current] { color: var(--forest); text-decoration: underline; }
  .header-actions { gap: 6px; }
  .header-actions .icon-button svg { width: 19px; height: 19px; }
  .header-cta { min-height: 42px; padding: 9px 13px; font-size: .78rem; white-space: nowrap; }
  .header-cta svg { width: 17px; height: 17px; }
  .menu-toggle { display: none; }

  .hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(670px, 78svh); background: var(--deep); color: var(--cream); }
  .hero-photo, .hero-shade { position: absolute; inset: 0; z-index: -1; }
  .hero-photo { left: 43%; }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
  .hero-shade { background: linear-gradient(90deg, var(--deep) 36%, #243528e8 43%, #24352831 59%, #121a1810 84%), linear-gradient(0deg, #121a1860, transparent 34%); }
  .hero-content { padding-block: 66px 45px; }
  .hero-location { color: #efe1c9; margin-bottom: 22px; }
  .hero-location svg { width: 15px; height: 15px; }
  .hero-location > span { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
  .hero h1 { font-size: clamp(4rem, 7.65vw, 7.55rem); line-height: .91; margin-left: -.045em; }
  .hero h1 em { color: #e4cba8; font-weight: 400; }
  .hero-subtitle { max-width: 34ch; margin-top: 24px; font: 400 clamp(1.13rem, 1.7vw, 1.55rem)/1.3 var(--serif); }
  .hero-description { max-width: 42ch; margin-top: 13px; color: #ece9db; font-size: .9rem; }
  .hero-content .button { margin-top: 25px; }
  .scroll-link { display: flex; align-items: center; gap: 9px; width: fit-content; margin-top: 23px; color: #ece9db; font-size: .76rem; }
  .scroll-link span { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #ece9db80; border-radius: 50%; }
  .scroll-link svg { width: 15px; height: 15px; }
  .scroll-link:hover span { background: #ece9db22; }
  .hero-caption { position: absolute; right: max(5%, calc((100% - 1160px)/2)); bottom: 30px; display: flex; align-items: center; gap: 10px; color: var(--white); text-shadow: 0 1px 5px #000; font-size: .73rem; }
  .hero-caption span { width: 25px; height: 1px; background: #fff9; }
  .quick-facts { background: var(--sand); }
  .facts-list { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 25px; }
  .facts-list li { display: flex; justify-content: center; align-items: center; gap: 13px; }
  .facts-list li + li { border-left: 1px solid #cbbda7; }
  .facts-list svg { color: var(--forest); width: 26px; height: 26px; }
  .facts-list span { display: grid; line-height: 1.4; }
  .facts-list strong { font-size: .96rem; }
  .facts-list small { color: #574d40; font-size: .75rem; }

  .about, .location { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(40px, 7.5vw, 112px); }
  .about-photos { position: relative; padding: 0 18% 7% 0; }
  .about-main { width: 100%; height: auto; aspect-ratio: 4/4.65; object-fit: cover; object-position: 50% 58%; border-radius: 6px; }
  .about-inset { position: absolute; right: 0; bottom: 0; width: 43%; padding: 6px; background: var(--cream); border-radius: 7px; }
  .about-inset img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
  .gallery-section { background: #efe7d8; }
  .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
  .section-heading > p { color: var(--muted); max-width: 29ch; }
  .gallery-grid, .gallery-more { display: grid; gap: 12px; }
  .gallery-grid { grid-template-columns: 1.75fr 1fr 1fr; grid-template-rows: repeat(2, clamp(135px, 16vw, 220px)); }
  .gallery-tile { position: relative; display: block; overflow: hidden; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 6px; background: var(--sand); }
  .gallery-grid .gallery-tile:first-child { grid-row: span 2; }
  .gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
  .gallery-tile:hover img, .gallery-tile:focus-visible img { transform: scale(1.04); }
  .gallery-tile span { position: absolute; bottom: 9px; right: 9px; display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 50%; background: #202e22d9; color: var(--white); }
  .gallery-tile span svg { width: 16px; height: 16px; }
  .gallery-more { grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
  .gallery-more .gallery-tile { aspect-ratio: 4/3; }
  .gallery-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

  .amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .amenities-grid li { display: flex; flex-direction: column; align-items: flex-start; min-height: 145px; padding: 21px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
  .amenities-grid li:last-child { grid-column: span 2; }
  .amenities-grid svg { width: 27px; height: 27px; margin-bottom: 13px; color: var(--forest); }
  .amenities-grid strong { font-size: .96rem; }
  .amenities-grid small { margin-top: 3px; color: var(--muted); font-size: .82rem; }

  .experience { background: var(--deep); color: var(--cream); }
  .experience-inner { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(35px, 5vw, 80px); padding-block: clamp(65px, 7.5vw, 110px); }
  .experience h2 em, .experience .section-label, .experience .text-link { color: #e4cba8; }
  .experience .section-copy > p:not(.eyebrow) { color: #ece9db; }
  .experience-photos { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: 12px; }
  .experience-photos img { width: 100%; height: auto; aspect-ratio: 4/4.2; object-fit: cover; border-radius: 6px; }
  .experience-photos img + img { aspect-ratio: 3/5; object-position: center 57%; }

  .location { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5.5vw, 80px); }
  .route-list { display: grid; gap: 16px; margin-top: 24px; }
  .route-list li { display: flex; align-items: start; gap: 13px; }
  .route-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--forest); }
  .route-list h3 { font-size: .94rem; }
  .route-list p, .section-copy > .route-note { color: var(--muted); font-size: .85rem; }
  .route-note { margin-top: 22px; border-left: 2px solid var(--wood); padding-left: 12px; }
  .map-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
  .map-card img { width: 100%; height: auto; }
  .map-card figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; }
  .map-card figcaption > div { display: grid; line-height: 1.4; }
  .map-card small { color: var(--muted); }

  .reviews-section, .faq-section { background: #efe7d8; }
  .review-score > span:first-child { color: var(--wood); }
  .review-score strong { color: var(--forest); }
  .review-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .review-highlights h3 { color: var(--forest); font: 400 1.35rem/1.2 var(--serif); }
  .review-highlights p { margin-top: 9px; color: var(--muted); font-size: .9rem; }
  .review-source { margin-top: 16px; color: var(--muted); font-size: .76rem; text-align: center; }
  .review-grid:not([hidden]) { margin-top: 24px; }
  .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .review-card { padding: 23px; border-radius: 6px; background: var(--paper); }
  .review-card blockquote { margin: 0 0 14px; }
  .review-card blockquote::before { content: "“"; display: block; height: 40px; color: var(--wood); font: 3.5rem/1 var(--serif); }
  .review-card small { display: block; color: var(--muted); }
  .faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(28px, 6vw, 90px); }
  .faq-list { border-top: 1px solid #cfc2ad; }
  .faq-list details { border-bottom: 1px solid #cfc2ad; }
  .faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 4px; min-height: 53px; font-weight: 650; cursor: pointer; list-style: none; }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary svg { width: 19px; height: 19px; color: var(--forest); transition: transform .2s ease; }
  .faq-list details[open] summary svg { transform: rotate(45deg); }
  .faq-list details p { color: var(--muted); padding: 0 30px 16px 4px; font-size: .94rem; }
  .faq-list details a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

  .booking { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 460px; background: var(--deep); color: var(--cream); text-align: center; }
  .booking > img, .booking::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
  .booking > img { object-fit: cover; object-position: 50% 55%; }
  .booking::after { content: ""; background: #18271de0; }
  .booking-content { padding-block: 72px; }
  .booking .eyebrow { justify-content: center; color: #e4cba8; }
  .booking h2 { max-width: 19ch; margin: 17px auto; }
  .booking h2 em { color: #e4cba8; }
  .booking .button { margin-top: 25px; }
  .site-footer { background: var(--cream); }
  .footer-top, .footer-bottom, .footer-links, .footer-links a { display: flex; align-items: center; }
  .footer-top, .footer-bottom { justify-content: space-between; gap: 20px; }
  .footer-top { padding-block: 30px; }
  .footer-links { gap: 22px; }
  .footer-links a { gap: 8px; font-size: .8rem; }
  .footer-links a:hover { text-decoration: underline; }
  .footer-links svg { width: 18px; height: 18px; color: var(--forest); }
  .footer-bottom { padding-block: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
  .floating-wa { position: fixed; z-index: 8; bottom: max(18px, env(safe-area-inset-bottom)); right: 20px; display: grid; place-items: center; width: 54px; aspect-ratio: 1; border: 1px solid #ffffff80; border-radius: 50%; background: var(--forest); color: var(--white); box-shadow: 0 3px 16px #18271d45; transition: transform .2s ease, background .2s ease; }
  .floating-wa:hover { background: var(--dark); }
  .floating-wa svg { width: 29px; height: 29px; }
  .lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; padding: 20px; border: 0; background: transparent; color: var(--white); }
  .lightbox::backdrop { background: #141a16f5; }
  .lightbox[open] { display: grid; place-items: center; }
  .lightbox-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: min(1180px, 100%); }
  .lightbox-close { position: absolute; top: 14px; right: 14px; }
  .lightbox .icon-button { border: 1px solid #ffffff60; border-radius: 50%; }
  .lightbox .icon-button:hover { background: #ffffff25; }
  .lightbox figure { display: grid; justify-items: center; }
  .lightbox img { max-height: calc(100dvh - 135px); max-width: 100%; object-fit: contain; }
  .lightbox figcaption { margin-top: 10px; text-align: center; font-size: .87rem; }
  body:has(.lightbox[open]) { overflow: hidden; }

  @keyframes enter { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
  .revealed { animation: enter .55s ease-out both; }
}

@layer responsive {
  @media (max-width: 1090px) {
    .header-inner { width: calc(100% - 36px); gap: 18px; }
    .navigation { gap: 13px; }
    .header-actions { gap: 2px; }
    .wrap { width: calc(100% - 70px); }
  }

  @media (max-width: 1000px) {
    :root { --header: 64px; }
    .menu-toggle { display: inline-flex; }
    .menu-toggle svg + svg, .menu-toggle[aria-expanded="true"] svg:first-child { display: none; }
    .menu-toggle[aria-expanded="true"] svg + svg { display: block; }
    .navigation { position: absolute; display: none; inset: 100% 0 auto; background: var(--cream); padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 15px #202e221b; max-height: calc(100dvh - var(--header)); overflow: auto; }
    .navigation.is-open { display: grid; gap: 0; }
    .navigation > a { display: flex; align-items: center; min-height: 45px; border-bottom: 1px solid var(--line); }
    .header-actions { gap: 10px; margin-top: 12px; }
    .header-actions .instagram { border: 1px solid var(--line); }
    .brand-mark { width: 39px; }
    .brand-type > span { font-size: 1.14rem; }
    .hero-photo { left: 39%; }
    .hero-shade { background: linear-gradient(90deg, var(--deep) 30%, #243528e6 40%, #24352838 66%, #121a1810 88%), linear-gradient(0deg, #121a1860, transparent 34%); }
  }

  @media (max-width: 760px) {
    .wrap { width: calc(100% - 40px); }
    .section { padding-block: 66px; }
    .hero { min-height: min(700px, 90svh); align-items: end; }
    .hero-photo { left: 0; }
    .hero-photo img { object-position: center 39%; }
    .hero-shade { background: linear-gradient(0deg, #17271bf7 1%, #17271bde 35%, #17271b67 70%, #17271b13); }
    .hero-content { padding-block: 150px 24px; }
    .hero h1 { font-size: clamp(3.65rem, 10vw, 5.45rem); }
    .hero-location { margin-bottom: 14px; font-size: .66rem; }
    .hero-description { max-width: 37ch; }
    .hero-subtitle { margin-top: 18px; }
    .hero-caption { display: none; }
    .facts-list { width: 100%; padding-block: 15px; }
    .facts-list li { flex-direction: column; justify-content: start; gap: 4px; padding: 0 6px; text-align: center; }
    .facts-list svg { width: 21px; height: 21px; }
    .facts-list strong { font-size: .77rem; }
    .facts-list small { display: none; }
    .about, .location, .experience-inner, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
    .about .section-copy { grid-row: 1; }
    .about-photos { width: min(100%, 485px); }
    .about-main { aspect-ratio: 1/1; }
    .section-heading { display: grid; gap: 12px; margin-bottom: 22px; }
    .section-heading > p { max-width: 46ch; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: min(53vw, 340px) repeat(2, min(32vw, 210px)); gap: 8px; }
    .gallery-grid .gallery-tile:first-child { grid-row: auto; grid-column: span 2; }
    .gallery-more { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
    .gallery-actions { gap: 9px; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .amenities-grid li { min-height: 128px; padding: 16px; }
    .experience-inner { padding-block: 62px; }
    .experience-photos { gap: 8px; }
    .review-highlights { grid-template-columns: 1fr; gap: 8px; }
    .review-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(84%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; }
    .review-card { scroll-snap-align: start; }
    .booking { min-height: 370px; }
    .booking-content { padding-block: 56px; }
    .footer-top, .footer-links { flex-direction: column; align-items: start; }
    .footer-links { gap: 14px; }
    .footer-bottom { padding-right: 45px; flex-wrap: wrap; gap: 5px 18px; }
    .floating-wa { right: 12px; width: 49px; }
    .floating-wa.is-before-facts { visibility: hidden; }
    .lightbox { padding: 12px; }
    .lightbox-inner { gap: 5px; }
    .lightbox .photo-prev, .lightbox .photo-next { width: 36px; min-height: 42px; }
  }

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