/* ==========================================================================
   Mangoes Backpacker Hostel & Farmstay
   Brand palette taken from the logo.
   ========================================================================== */

:root {
  --cream:        #FDF0D8;
  --cream-deep:   #F6E3C0;
  --brown:        #3B3123;
  --brown-soft:   #5C4E38;
  --mango:        #F0891E;
  --mango-dark:   #D06F0C;
  --olive:        #7C8C4E;
  --olive-dark:   #5E6B38;
  --white:        #FFFFFF;
  --line:         rgba(59, 49, 35, .14);
  --shadow:       0 1px 2px rgba(59,49,35,.06), 0 8px 24px rgba(59,49,35,.08);
  --shadow-lg:    0 2px 4px rgba(59,49,35,.08), 0 18px 48px rgba(59,49,35,.14);
  --radius:       14px;
  --radius-sm:    8px;
  --wrap:         1180px;
  --font-head:    "Bitter", "Georgia", "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mango-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--brown-soft); font-size: 1.06rem; margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--olive-dark); margin-bottom: .7rem;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brown); color: var(--cream); padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--brown); color: var(--cream-deep);
  font-size: .87rem; text-align: center; padding: .55rem 1rem;
}
.announce strong { color: var(--mango); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 240, 216, .93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--brown); margin-right: auto; }
.brand img { width: 52px; height: auto; }
.brand span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand small { display: block; font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; color: var(--olive-dark); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .7rem; border-radius: 8px;
  text-decoration: none; color: var(--brown); font-size: .93rem; font-weight: 600;
}
.nav-links a:hover { background: var(--cream-deep); }
.nav-links a[aria-current="page"] { color: var(--mango-dark); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .45rem .6rem; cursor: pointer; color: var(--brown);
}
.nav-toggle svg { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .78rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .97rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mango); color: #2B2317; }
.btn-primary:hover { background: var(--mango-dark); color: var(--white); }
.btn-ghost { border-color: var(--brown); color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: var(--cream); }
.btn-light { background: var(--white); color: var(--brown); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(43,35,23,.88) 0%, rgba(43,35,23,.72) 45%, rgba(43,35,23,.35) 100%);
}
.hero-inner { position: relative; padding: clamp(4rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero .lede { font-size: clamp(1.05rem, 2.1vw, 1.28rem); color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero .eyebrow { color: var(--mango); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.22); }
.hero-facts div strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--mango); }
.hero-facts div span { font-size: .84rem; color: rgba(255,255,255,.78); }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--cream-deep);
  display: grid; place-items: center; margin-bottom: .9rem; font-size: 1.25rem;
}

/* ---------- alt band ---------- */
.band-cream { background: var(--cream-deep); }
.band-dark  { background: var(--brown); color: var(--cream); }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .eyebrow { color: var(--mango); }
.band-dark a:not(.btn) { color: var(--mango); }
.band-dark .btn-ghost { border-color: var(--cream); color: var(--cream); }
.band-dark .btn-ghost:hover { background: var(--cream); color: var(--brown); }
.band-olive { background: var(--olive-dark); color: var(--white); }
.band-olive a:not(.btn) { color: var(--cream); }
.band-olive h2, .band-olive .eyebrow { color: var(--white); }

/* ---------- rooms ---------- */
.room-list { display: grid; gap: 1rem; }
.room {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; box-shadow: var(--shadow);
}
.room h3 { margin-bottom: .15em; }
.room p { margin: 0; color: var(--brown-soft); font-size: .95rem; }
.room .price { text-align: right; white-space: nowrap; }
.room .price b { font-family: var(--font-head); font-size: 1.55rem; display: block; color: var(--mango-dark); }
.room .price span { font-size: .8rem; color: var(--brown-soft); }
.room.featured { border-color: var(--mango); border-width: 2px; }
.tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--olive); color: var(--white); padding: .2rem .55rem; border-radius: 999px; margin-left: .5rem;
  vertical-align: middle;
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow); }
.gallery button.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem;
  color: #fff; font-size: .84rem; line-height: 1.35;
  background: linear-gradient(transparent, rgba(43,35,23,.82));
  pointer-events: none;
}
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.filters button {
  border: 1px solid var(--line); background: var(--white); color: var(--brown);
  padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--brown); color: var(--cream); border-color: var(--brown); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(30,24,15,.94);
  display: none; align-items: center; justify-content: center; padding: 2rem 1rem;
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 82vh; border-radius: 8px; object-fit: contain; }
.lightbox-cap { color: rgba(255,255,255,.85); text-align: center; font-size: .9rem; margin-top: .9rem; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.lightbox-close { top: 1.1rem; right: 1.1rem; }
.lightbox-nav.prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.28); }

/* ---------- floor plans ---------- */
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.plan img { background: #fff; padding: .5rem; cursor: zoom-in; }
.plan .plan-body { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--line); }
.plan h3 { margin-bottom: .3em; }
.plan p { margin: 0; font-size: .93rem; color: var(--brown-soft); }

/* ---------- reviews ---------- */
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.quote .stars { color: var(--mango); letter-spacing: .12em; margin-bottom: .7rem; font-size: .95rem; }
.quote blockquote { margin: 0 0 1rem; font-size: 1rem; }
.quote cite { margin-top: auto; font-style: normal; font-weight: 700; font-size: .88rem; color: var(--brown-soft); }

/* ---------- terms ---------- */
.terms-doc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.terms-doc h2 { font-size: 1.4rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.terms-doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.callout {
  border-left: 4px solid var(--mango); background: var(--cream); padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.4rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- contact / map ---------- */
.map-embed { border: 0; width: 100%; height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .8rem; margin-bottom: 1.1rem; align-items: flex-start; }
.contact-list .ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--cream-deep); display: grid; place-items: center; }
.contact-list b { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--olive-dark); }
.contact-list a { color: var(--brown); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--mango-dark); }

/* ---------- CTA strip ---------- */
.cta {
  background: var(--mango); color: #2B2317; border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem); text-align: center;
}
.cta h2 { color: #2B2317; margin-bottom: .4em; }
.cta p { max-width: 540px; margin-inline: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--brown); color: rgba(253,240,216,.8); padding: 3.5rem 0 2rem; font-size: .92rem; }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(253,240,216,.85); text-decoration: none; }
.site-footer a:hover { color: var(--mango); }
.site-footer ul { list-style: none; padding: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-brand img { width: 130px; margin-bottom: 1rem; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(253,240,216,.16);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .82rem;
}

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--brown-soft); }
.small { font-size: .88rem; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.1rem; display: none; box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .75rem .3rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .btn { margin-top: .7rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .room { grid-template-columns: 1fr; }
  .room .price { text-align: left; }
  .hero-facts { gap: 1.2rem 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
