/* Round 6 listing/enquiry/match/saved styles (WP A2). Loaded after app.css. */
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--sea); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; touch-action: manipulation; }
button, a.btn, .chip, .stepper button, .fbtn { touch-action: manipulation; }

/* ---------- listing: header, facts ---------- */
.detail h1 .l-cx { display: block; font-size: .5em; margin-top: 8px; font-weight: 500; letter-spacing: 0; overflow-wrap: anywhere; }
.l-price { font: 600 clamp(26px, 6vw, 34px)/1.15 var(--display); letter-spacing: -.02em; margin: 12px 0 0; }
.l-price small { font: 500 15px var(--body); color: var(--ink-2); }
.l-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.l-save[aria-pressed="true"] svg { fill: var(--sun); stroke: var(--sun); }
.l-save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.kf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.kf > div { background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.kf span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.kf b { display: block; margin-top: 2px; font: 600 15px/1.3 var(--body); overflow-wrap: anywhere; }
@media (min-width: 560px) { .kf { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }

/* gallery: swipe hint sits inside the photo and wraps instead of clipping */
.hg-strip { touch-action: pan-x pan-y pinch-zoom; }
.hg-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; background: rgba(11, 26, 34, .72); color: #fff; font: 600 13px/1.25 var(--body); text-align: center; pointer-events: none; animation: hgHint 4.5s ease forwards; }
@keyframes hgHint { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- prices ---------- */
#prices .rates th { font-size: 12px; letter-spacing: .06em; }
#prices .rates td { vertical-align: top; }
#prices .rates td b { display: block; font-weight: 600; }
#prices .rates td small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
#prices .rates td:not(:first-child) small { display: inline; margin-left: 2px; }
.p-min { margin: 12px 0 4px; padding: 10px 12px; background: var(--sea-wash); border-radius: 12px; font-size: 14.5px; line-height: 1.4; }
.q-empty { margin: 0; padding: 14px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); color: var(--ink-2); font-size: 15px; }
@media (max-width: 480px) {
  #prices .rates th, #prices .rates td { padding: 10px 9px; font-size: 14px; }
  #prices .rates th:first-child, #prices .rates td:first-child { padding-left: 12px; }
}

/* ---------- what you'll pay ---------- */
.qbox { display: grid; gap: 14px; }
.qstay { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 14px; }
.qlabel { font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.qstay .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qstay .input { font-size: 16px; }
.q-saveNote { margin: 10px 0 0; }
.q-head { display: grid; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--ink); color: #fff; margin-bottom: 10px; }
.q-head span { font-size: 13px; opacity: .8; }
.q-head b { font: 600 17px/1.3 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.q-rows dd b { font-weight: 700; }
.q-ask { color: var(--sun-ink); }
.q-tbc { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--sun-wash); color: var(--sun-ink); font-size: 13px; font-weight: 600; }
.q-rows { grid-template-columns: minmax(0, 1fr); }
.q-rows > div { padding: 10px 12px; }
@media (min-width: 640px) { .q-rows > div { grid-template-columns: 180px minmax(0, 1fr); align-items: baseline; gap: 12px; } }

/* ---------- original description ---------- */
.orig-box { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 4px 14px 14px; }
.orig-box summary { cursor: pointer; font: 600 16px var(--body); padding: 12px 0; min-height: 44px; list-style: none; }
.orig-box summary::-webkit-details-marker { display: none; }
.orig-box summary::after { content: '+'; float: right; font-size: 22px; line-height: 1; }
.orig-box[open] summary::after { content: '–'; }
.orig { white-space: pre-line; line-height: 1.6; font-size: 15px; overflow-wrap: anywhere; max-width: 68ch; }

/* ---------- ONE sticky bar: date/price summary + CTA, above the bottom nav ---------- */
.mobile-cta { gap: 8px; }
.mobile-cta .mc-txt { min-width: 0; flex: 1 1 auto; display: grid; gap: 1px; }
.mobile-cta .mc-txt b { font: 700 14.5px/1.25 var(--body); overflow-wrap: anywhere; }
.mobile-cta .mc-txt b small { font: 500 12px var(--body); color: var(--ink-2); display: inline; }
.mobile-cta .mc-txt small { font: 500 12.5px/1.3 var(--body); color: var(--ink-2); overflow-wrap: anywhere; }
.mobile-cta .btn { flex: 0 0 auto; min-height: 44px; padding-left: 14px; padding-right: 14px; }
.mobile-cta .mc-x { flex: 0 0 auto; width: 36px; height: 44px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-3); }
.mobile-cta.is-off { display: none !important; }
body.kb-open .tabbar, body.kb-open .mobile-cta { display: none !important; }
body.kb-open { padding-bottom: 0; }

/* ---------- enquiry form ---------- */
.lf .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf h3 { font-size: 18px; margin: 4px 0 0; }
.lf-guests { display: grid; gap: 8px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--bg); border-radius: 12px; }
.srow .sl { display: grid; min-width: 0; }
.srow .sl b { font-size: 15px; }
.srow .sl small { font-size: 12.5px; color: var(--ink-3); }
.srow .stepper { gap: 8px; flex: none; }
.srow .stepper button { width: 44px; height: 44px; font-size: 22px; }
.srow .stepper output { min-width: 24px; font-size: 18px; }
.cfield .tiny { margin: -2px 0 2px; }
.cfield .methods { margin: 4px 0 6px; }
.methods .chip[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ch-rows { display: grid; gap: 10px; }
.ch-row { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); }
.ch-row[hidden] { display: none; }
.ch-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ch-name { font-weight: 700; font-size: 14px; }
.ch-pref { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; min-height: 36px; }
.ch-pref[hidden] { display: none; }
.ch-pref input { width: 20px; height: 20px; accent-color: var(--sun); }
.ch-in { display: flex; gap: 8px; align-items: stretch; }
.ch-in .input { flex: 1 1 auto; min-width: 0; font-size: 16px; }
.cc-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: 600 15px var(--body); }
.cc-btn i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.cc-f { font-size: 22px; line-height: 1; }
.lf-err { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FFF3EC; border: 1px solid #F6C9B2; color: #8A2E0C; font-size: 14.5px; font-weight: 500; }
.lf-err[hidden], .lf-fail[hidden] { display: none; }
.lf-fail { margin-top: 12px; }
.lf-fail-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-fail-btns .btn { flex: 1 1 140px; justify-content: center; }
.receipt .small b { overflow-wrap: anywhere; }

/* country-code bottom sheet */
.cc-sheet { position: fixed; inset: 0; z-index: 90; --cc-bottom: 0px; }
.cc-back { position: absolute; inset: 0; background: rgba(15, 36, 48, .5); }
.cc-card { position: absolute; left: 0; right: 0; bottom: var(--cc-bottom); margin: 0 auto; width: min(480px, 100%); max-height: calc(var(--vh) * 80); display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0; padding: 14px var(--pad) calc(12px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { .cc-card { bottom: 50%; transform: translateY(50%); border-radius: 22px; } }
.cc-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.cc-head b { font: 600 18px var(--display); }
.cc-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--line-2); font-size: 24px; line-height: 1; }
.cc-q { margin: 6px 0 8px; font-size: 16px; }
.cc-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.cc-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; font-size: 16px; }
.cc-list button[aria-selected="true"] { font-weight: 700; color: var(--sea); }
.cc-n { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.cc-c { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cc-none { padding: 18px 4px; color: var(--ink-3); }
@media (max-width: 480px) { .panel { padding: 16px; } }

/* ---------- help sheet: close button centred with the title, safe areas ---------- */
.sheet-card { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.sheet-x { width: 44px; height: 44px; top: 0; margin: 0 -8px -44px auto; display: grid; place-items: center; }
.sheet-body > h2:first-child { min-height: 44px; display: flex; align-items: center; padding-right: 52px; margin: 0; }
.qstay input[type="date"].input { padding-left: 10px; padding-right: 8px; }
@media (max-width: 440px) { .l-save span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .l-save { padding-left: 14px; padding-right: 14px; } }

/* ---------- match feed: ordinary vertical scroll (no snapping, nothing hides under the header / bottom nav) ---------- */
.feed, html.in-tg .feed { height: auto; overflow: visible; scroll-snap-type: none; overscroll-behavior: auto; border-radius: 0; }
.feed-wrap { padding-bottom: calc(var(--tabbar) + 24px); }
.fcard { height: auto; scroll-snap-align: none; scroll-snap-stop: normal; margin-bottom: 16px; transition: opacity .2s ease, transform .2s ease, height .3s ease, margin .3s ease; transform-origin: 50% 30%; }
.fmedia { flex: none; aspect-ratio: 4 / 3; max-height: calc(var(--vh) * 52); }
.fcard.fend { min-height: calc(var(--vh) * 50); }
.fcard.leaving { opacity: 0; transform: scale(.96); }
.fcard.collapse { margin-bottom: 0; }
.fcard.gone { opacity: 1; transform: none; }
.m-reuse { margin: 4px 0 10px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.m-reuse .linkbtn { min-height: 32px; font-size: 13.5px; }

/* ---------- match results: tidy summary row ---------- */
.m-sum { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 12px 14px 4px; margin: 14px 0 20px; }
.m-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-sum-t { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; text-align: left; font: 600 15px/1.3 var(--body); color: var(--ink); }
.m-sum-txt { min-width: 0; overflow-wrap: anywhere; }
.m-sum-more { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--sea-wash); color: var(--sea-ink); font-size: 12.5px; }
.m-sum-t i { flex: none; font-style: normal; font-size: 11px; color: var(--ink-3); }
.m-sum-t[aria-expanded="true"] i { transform: rotate(180deg); }
.m-sum-row .btn { flex: none; }
.m-sum-all { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.m-sum-all[hidden] { display: none; }
.m-reuse-banner { display: grid; gap: 10px; padding: 14px; margin-bottom: 18px; background: var(--sea-wash); border-radius: var(--r-lg); }
.m-reuse-banner p { margin: 0; }
.m-rb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.m-results .brief { display: none; }

/* ---------- saved & compare ---------- */
.s-note { margin: 12px 0 0; padding: 10px 12px; background: var(--sun-wash); border-radius: 12px; font-size: 14px; color: var(--sun-ink); }
.s-share { display: grid; gap: 12px; }
.s-share .row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.s-share .row-btns .btn { flex: 1 1 120px; justify-content: center; }
.s-link { display: flex; gap: 8px; }
.s-link input { flex: 1 1 auto; min-width: 0; font-size: 16px; }
.s-err { color: #8A2E0C; font-size: 14.5px; }
.s-shared { background: var(--sea-wash); border-radius: var(--r-lg); padding: 16px; margin: 0 0 22px; display: grid; gap: 10px; }
.s-shared h2 { font-size: 20px; margin: 0; }
.s-shared p { margin: 0; }
.cmp-hint { display: none; margin: -4px 0 8px; font-size: 13px; color: var(--ink-3); }
.compare { position: relative; }
.compare table { table-layout: fixed; min-width: 0; width: 100%; }
.compare th { position: sticky; left: 0; z-index: 2; background: var(--paper); width: 96px; font-size: 12.5px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.compare td { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.compare td.cmp-ph { position: relative; padding: 8px; }
.compare img { display: block; width: 100%; max-width: none; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px; background: var(--line-2); }
.cmp-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(11, 26, 34, .72); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; }
@media (max-width: 760px) {
  .cmp-hint { display: block; }
  .compare { overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 96px; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .compare table { width: calc(96px + var(--n, 2) * ((100vw - 2 * var(--pad) - 96px) / 2)); }
  .compare td { scroll-snap-align: start; font-size: 14px; padding: 10px 10px; }
  .compare th { width: 96px; padding: 10px 8px; box-shadow: 1px 0 0 var(--line-2); }
}
.m-sum { padding-bottom: 14px; }
.m-sum .m-reuse { margin: 2px 0 10px; }
.m-sum-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.m-sum-btns .btn { flex: 1 1 140px; justify-content: center; }
.cc-btn { gap: 4px; padding: 0 8px; }
.ch-in .input { padding-left: 10px; padding-right: 10px; }
@media (max-width: 360px) {
  .qstay input[type="date"].input { padding-left: 8px; padding-right: 6px; letter-spacing: -.04em; }
  .ch-row { padding: 8px 10px; }
}
