/* Kawayankiling Resort — shared styles
   Layout: dark bamboo-green header and page bands, pale sage body,
   content in a 1200px column, rows that wrap to one column on phones. */
:root {
  --forest: #1D2A1C;      /* header, dark bands, main text */
  --forest-deep: #142013; /* footer */
  --leaf: #2F5A28;        /* eyebrows, links, icons */
  --mist: #F1F4EC;        /* page background */
  --sage: #DCE7D2;        /* panels, placeholders */
  --sage-light: #C9DDB8;  /* text on dark */
  --line: #C2D2B4;        /* borders */
  --ink-soft: #4A5A47;    /* secondary text */
  --gold: #E2B93B;        /* primary buttons */
  --white: #FFFFFF;
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--leaf); }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.03em; }
h2 { font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 26px; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--leaf); }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }

/* Header */
.site-header { background: var(--forest); color: var(--mist); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--mist); text-decoration: none; }
.brand:hover { color: var(--mist); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; }
.nav a { color: var(--sage); text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.12); }
.nav a.btn-gold, .nav a.btn-gold:hover { color: var(--forest); background: var(--gold); padding: 10px 18px; font-weight: 700; margin-left: 6px; }
.nav a.btn-gold[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--forest), 0 0 0 2px var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: #EDC958; color: var(--forest); }
.btn-dark { background: var(--forest); color: var(--mist); }
.btn-dark:hover { background: var(--leaf); color: var(--white); }
.btn-ghost { border-color: var(--sage-light); color: var(--mist); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bands */
.band-dark { background: var(--forest); color: var(--mist); }
.band-dark .eyebrow { color: var(--sage-light); }
.band-dark .lede, .band-dark .muted { color: var(--sage); }
.section { padding-block: 80px; }
.section-tight { padding-block: 48px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

/* Home hero */
.hero { padding-block: 32px 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-photo { flex: 1 1 400px; min-width: 0; height: 440px; }

/* Interior page header */
.page-hero { padding-block: 56px 72px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); }

/* Photo placeholders: swap each for <img class="photo" src="..." alt="..."> */
.ph { border-radius: 24px; background: repeating-linear-gradient(90deg, var(--sage) 0 22px, #D2DFC6 22px 26px); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 15px; }
.band-dark .ph { background: repeating-linear-gradient(90deg, #2C4029 0 22px, #34492F 22px 26px); color: var(--sage-light); }
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

/* Highlights strip */
.highlights { margin-top: -48px; position: relative; background: var(--white); border-radius: 22px; box-shadow: 0 12px 40px rgba(29,42,28,0.10); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.highlight { display: flex; gap: 14px; align-items: flex-start; }
.highlight svg { flex: none; }
.highlight strong { display: block; }
.highlight span { font-size: 15px; color: var(--ink-soft); }

/* Cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card { background: var(--white); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.card .ph, .card .photo { border-radius: 0; height: 220px; }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body .card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
.card-foot > div { min-width: 0; }
.card-foot .price, .card-foot .price + .muted { white-space: nowrap; }
.card-foot .btn { flex: none; padding-inline: 22px; }
.card { container-type: inline-size; }
/* Narrow cards: shrink the price and button so they share one line */
@container (max-width: 360px) {
  .card-foot .price { font-size: 22px; }
  .card-foot .btn { padding-inline: 18px; }
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-link:hover .card { box-shadow: 0 10px 30px rgba(29,42,28,0.12); }
.card-link .more { font-weight: 700; color: var(--leaf); }
/* Room cards: swipeable photo gallery on top of each card */
.rooms-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gallery { position: relative; height: 240px; background: var(--sage); }
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.gallery-photo { flex: 0 0 100%; height: 100%; scroll-snap-align: start; cursor: zoom-in; }
.gallery-photo:focus-visible { outline-offset: -3px; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-photo img.crop-bottom { object-position: center bottom; }
/* Larger standalone gallery, e.g. beside text in a split */
.gallery-feature { height: 420px; border-radius: 24px; overflow: hidden; }
.gallery-count { position: absolute; top: 12px; right: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(20,32,19,0.72); color: var(--white); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--forest); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(29,42,28,0.2); }
.gallery-btn:hover { background: var(--white); }
.gallery-btn:disabled { opacity: 0; pointer-events: none; }
.gallery-btn.prev { left: 12px; }
.gallery-btn.next { right: 12px; }
.gallery-toggle { position: absolute; left: 12px; bottom: 12px; min-width: 36px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(20,32,19,0.72); color: var(--white); font-size: 12px; letter-spacing: -0.1em; cursor: pointer; }
.gallery-toggle:hover { background: rgba(20,32,19,0.9); }

/* Full-size photo viewer opened from a room gallery */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 56px 16px 24px; border: 0; background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(14,22,13,0.97); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 12px; }
.lightbox figcaption { color: var(--mist); font-size: 15px; text-align: center; }
.lightbox-count { color: var(--sage-light); font-variant-numeric: tabular-nums; margin-left: 8px; }
.lightbox-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--forest); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--white); }
.lightbox .gallery-btn.prev { left: 16px; }
.lightbox .gallery-btn.next { right: 16px; }
body:has(.lightbox[open]) { overflow: hidden; }
.price { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--leaf); transform: translateY(-2px); }

/* Two-column split */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split .ph { min-height: 380px; }
.map { display: block; width: 100%; min-height: 380px; align-self: stretch; border: 0; border-radius: 24px; background: var(--sage); }

/* Rates */
.panel { background: var(--sage); border-radius: 28px; padding: clamp(24px, 5vw, 56px); }
.rates { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.rate { background: var(--white); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.rate.dark { background: var(--forest); color: var(--mist); }
.rate.dark .muted { color: var(--sage-light); }
.rate .name { font-weight: 700; font-size: 18px; }
.rate .rows { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-variant-numeric: tabular-nums; }
.rate .rows div { display: flex; justify-content: space-between; gap: 12px; }

/* Lists of rows */
.rows-list { border-top: 1px solid var(--line); }
.rows-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }

/* Steps (a real order: inquire, confirm, reserve) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.steps li { background: var(--white); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--leaf); line-height: 1; }

/* Contact */
.contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-item { background: var(--white); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.contact-item .value { font-family: var(--font-display); font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.contact-item .value[href^="mailto:"] { font-size: 18px; overflow-wrap: normal; }
.notice { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; }
.notice svg { flex: none; margin-top: 2px; }

/* CTA band and footer */
.cta { padding-block: 72px; text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta .btn-row { justify-content: center; margin-top: 10px; }
.site-footer { background: var(--forest-deep); color: var(--sage-light); padding-block: 40px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.site-footer .brand span { font-size: 19px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--sage); }
.site-footer a:hover { color: var(--white); }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .hero-photo { height: 280px; }
  .gallery-feature { height: 280px; }
  .nav { font-size: 14px; }
  .nav a { padding: 8px 10px; }
}
