/* Light marketplace: photo-first listing grid, sticky search pill, booking card on detail pages */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f7f6f3;
  --line: #ebe8e2;
  --fg: #1f1d1a;
  --muted: #6f6a62;
  --accent: #e0592a;
  --accent-ink: #b8431a;
  --accent-soft: #fdeee7;
  --ok: #18794e;
  --ok-soft: #e6f4ec;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(31, 29, 26, .06), 0 8px 24px rgba(31, 29, 26, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
main { min-height: 70vh; outline: none; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; }
.brand b { color: var(--accent); }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 1.1rem; }
.searchpill { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: 6px 6px 6px 18px; background: var(--bg); box-shadow: var(--shadow); cursor: pointer; font-size: .88rem; }
.searchpill span { padding: 0 14px; border-right: 1px solid var(--line); }
.searchpill span:first-child { padding-left: 0; }
.searchpill span:nth-child(3) { border: 0; }
.sp-go { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.sp-go svg, .ico { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; }
.top-nav { justify-self: end; display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: .92rem; }
.top-nav a { text-decoration: none; }
.top-nav a.on { color: var(--accent); }
.free { background: var(--ok-soft); color: var(--ok); font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 13px 22px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--accent); color: #fff; transition: background .15s; }
.btn:hover { background: var(--accent-ink); }
.btn.line { background: var(--bg); color: var(--fg); border: 1px solid var(--fg); }
.btn.line:hover { background: var(--soft); }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Hero */
.hero { margin-top: 24px; position: relative; border-radius: 22px; overflow: hidden; min-height: 440px; display: grid; align-items: end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 16, 12, .62) 0%, rgba(20, 16, 12, .2) 55%, rgba(20, 16, 12, 0) 100%); }
.hero-copy { position: relative; z-index: 1; padding: 48px; max-width: 640px; color: #fff; display: grid; gap: 16px; }
.hero-copy h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.04; }
.hero-copy p { margin: 0; font-size: 1.08rem; opacity: .92; max-width: 46ch; }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.finder { margin-top: 8px; background: #fff; color: var(--fg); border-radius: 16px; padding: 8px; display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 4px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.finder label { display: grid; padding: 8px 14px; border-radius: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.finder label:hover { background: var(--soft); }
.finder select, .finder input { border: 0; background: transparent; font: 600 .95rem var(--body); color: var(--fg); padding: 2px 0 0; outline: none; text-transform: none; letter-spacing: 0; width: 100%; }
.finder .btn { border-radius: 12px; padding: 0 22px; }

.trust { display: flex; flex-wrap: wrap; gap: 28px; padding: 20px 0 4px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; }

/* Sections */
.sec { padding-block: 40px 8px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: 1.75rem; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.sec-head a { font-weight: 700; color: var(--accent-ink); text-decoration: none; }

.cats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.cat { text-decoration: none; display: grid; gap: 10px; }
.cat .ph { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat:hover img { transform: scale(1.05); }
.cat b { font-size: .95rem; }
.cat small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }

/* Category strip on explore */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 8px 15px; font-weight: 600; font-size: .86rem; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--fg); color: #fff; border-color: var(--fg); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.filters select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 600 .88rem var(--body); background: var(--bg); color: var(--fg); }
.filters .count { margin-left: auto; color: var(--muted); font-size: .88rem; }

/* Listing cards */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; padding-block: 22px; }
.card { text-decoration: none; display: grid; gap: 10px; min-width: 0; }
.card .ph { position: relative; aspect-ratio: 20 / 19; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .ph img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 99px; padding: 4px 10px; font-size: .74rem; font-weight: 800; box-shadow: var(--shadow); }
.heart { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.heart svg { width: 24px; height: 24px; fill: rgba(0, 0, 0, .35); stroke: #fff; stroke-width: 2; }
.heart[aria-pressed="true"] svg { fill: var(--accent); }
.card-row { display: flex; justify-content: space-between; gap: 10px; }
.card h3 { font: 700 .97rem var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rate { font-size: .9rem; white-space: nowrap; }
.card .meta { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.price { font-size: .92rem; }
.price b { font-weight: 800; }

/* Detail */
.detail { padding-block: 24px 40px; }
.detail h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.d-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 8px 0 18px; font-size: .92rem; }
.d-meta .dot { color: var(--muted); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 430px; border-radius: 18px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-row: span 2; }
.gallery.two img:nth-child(2) { grid-row: span 2; }
.d-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; margin-top: 32px; align-items: start; }
.d-sec { padding-block: 24px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.d-sec:first-child { padding-top: 0; }
.d-sec h2 { font-size: 1.3rem; }
.d-sec p { margin: 0; max-width: 62ch; }
.host { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .92rem; }
.fact svg { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.7; flex: none; }
.pkg-list { display: grid; gap: 10px; }
.pkg { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.pkg b { white-space: nowrap; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.review p { margin-top: 8px; }
.review .who { display: flex; gap: 12px; align-items: center; }
.review .avatar { width: 40px; height: 40px; font-size: .9rem; }

.book { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; background: var(--bg); }
.book-price { font-size: 1.35rem; font-weight: 800; }
.book-price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.fields { border: 1px solid #cfcac1; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.fields label { display: grid; padding: 10px 12px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.fields label + label { border-left: 1px solid #cfcac1; }
.fields label.full { grid-column: span 2; border-left: 0; border-top: 1px solid #cfcac1; }
.fields input, .fields select { border: 0; padding: 4px 0 0; font: 600 .93rem var(--body); color: var(--fg); background: transparent; outline: none; text-transform: none; letter-spacing: 0; width: 100%; }
.lines { display: grid; gap: 8px; font-size: .93rem; }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.lines .total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 800; }
.note { text-align: center; font-size: .84rem; color: var(--muted); margin: 0; }
.zero { color: var(--ok); font-weight: 700; }

/* Planner */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-block: 24px 40px; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 16px; background: var(--bg); }
.panel h2 { font-size: 1.25rem; }
.ev-head { display: flex; gap: 16px; align-items: center; }
.ev-head img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; }
.ev-head input { font: 700 1.25rem var(--display); border: 0; border-bottom: 1px dashed transparent; padding: 0; width: 100%; color: var(--fg); background: transparent; }
.ev-head input:hover, .ev-head input:focus { border-bottom-color: var(--line); outline: none; }
.ev-head .mini { width: auto; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font: 600 .85rem var(--body); color: var(--fg); background: var(--bg); }
.status { font-size: .74rem; font-weight: 800; color: var(--ok); background: var(--ok-soft); padding: 3px 10px; border-radius: 99px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-variant-numeric: tabular-nums; }
.kpi { background: var(--soft); border-radius: 12px; padding: 14px; }
.kpi small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
.kpi b { font-size: 1.25rem; }
.kpi input { width: 100%; border: 0; background: transparent; font: 800 1.25rem var(--body); color: var(--fg); padding: 0; font-variant-numeric: tabular-nums; }
.meter { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s; }
.meter.over span { background: #c2410c; }
.bookings { display: grid; gap: 10px; }
.bk { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.bk img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.bk b { display: block; }
.bk small { color: var(--muted); }
.bk .amt { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.bk .amt button { display: block; margin-left: auto; margin-top: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.check label { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.check label:hover { background: var(--soft); }
.check input { width: 18px; height: 18px; accent-color: var(--ok); }
.check input:checked + span { color: var(--muted); text-decoration: line-through; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 12, .45); display: grid; place-items: center; padding: 16px; }
.sheet { background: var(--bg); border-radius: 20px; max-width: 460px; width: 100%; padding: 28px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); max-height: 90vh; overflow: auto; }
.sheet h2 { font-size: 1.5rem; }
.paylist { display: grid; gap: 8px; }
.paylist label { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.paylist label:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.paylist input { accent-color: var(--accent); }
.ok-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; }
.ok-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--ok); stroke-width: 2.6; }

.pay { display: inline-block; padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: .82rem; background: var(--soft); }
.pay.gcash { background: #0a5bd8; color: #fff; }
.pay.maya { background: #0b7c4a; color: #fff; }
.paytag { display: inline-flex; gap: 8px; align-items: center; }

.cta-band { margin-block: 48px 24px; border-radius: 22px; background: var(--accent-soft); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 1.8rem; }
.cta-band p { margin: 6px 0 0; color: var(--muted); }

.foot { border-top: 1px solid var(--line); background: var(--soft); margin-top: 40px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 28px 24px 96px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.pays { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pays small { color: var(--muted); font-weight: 600; margin-right: 4px; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 60; box-shadow: var(--shadow); }

.tabbar { display: none; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .d-body, .plan-grid { grid-template-columns: 1fr; gap: 28px; }
  .book { position: static; }
}
@media (max-width: 760px) {
  .wrap, .top-in { padding-inline: 16px; }
  .top-in { grid-template-columns: 1fr; }
  .top-in .brand, .top-nav { display: none; }
  .searchpill { justify-content: space-between; }
  .hero { min-height: 520px; border-radius: 18px; margin-top: 16px; }
  .hero::after { background: linear-gradient(0deg, rgba(20, 16, 12, .75) 0%, rgba(20, 16, 12, .1) 70%); }
  .hero-copy { padding: 24px; }
  .finder { grid-template-columns: 1fr; }
  .finder .btn { padding: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { height: 280px; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery img:not(:first-child) { display: none; }
  .reviews, .facts { grid-template-columns: 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; font-size: .7rem; font-weight: 700; text-decoration: none; color: var(--muted); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .tabbar a.on { color: var(--accent); }
  .cta-band { padding: 28px 22px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
