/* ============ CheersBnB design tokens (plan §8.1) ============ */
:root {
  --sh-primary: #a80f66;          /* CHEERS magenta */
  --sh-primary-dark: #5c0f43;     /* CHEERS plum */
  --sh-accent: #f4c23d;           /* CHEERS gold */
  --sh-ink: #1e2530;
  --sh-muted: #667085;
  --sh-bg: #ffffff;
  --sh-surface: #f6f7f9;
  --sh-border: #e5e8ec;
  --sh-radius: 16px;
  --sh-shadow: 0 8px 28px rgba(20, 30, 50, .10);
  --sh-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sh-font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html, body { font-family: var(--sh-font); color: var(--sh-ink); background: var(--sh-bg); }
a { color: var(--sh-primary); text-decoration: none; }
a:hover { color: var(--sh-primary-dark); }

.btn-sh { background: var(--sh-primary); color: #fff; border-radius: 12px; padding: .6rem 1.3rem; border: 0; font-weight: 600; }
.btn-sh:hover { background: var(--sh-primary-dark); color: #fff; }
.btn-sh-outline { border: 1.5px solid var(--sh-border); border-radius: 12px; padding: .55rem 1.2rem; background: #fff; color: var(--sh-ink); font-weight: 600; }
.btn-sh-outline:hover { border-color: var(--sh-ink); }

/* ---- navbar ---- */
.sh-nav { background: #fff; border-bottom: 1px solid var(--sh-border); padding: .8rem 0; position: sticky; top: 0; z-index: 1020; }
.sh-logo { font-weight: 800; font-size: 1.35rem; color: var(--sh-primary); letter-spacing: -.5px; }
.sh-logo i { color: var(--sh-accent); }

/* ---- search pill ---- */
.sh-searchpill { display: flex; align-items: center; background: #fff; border: 1px solid var(--sh-border);
  border-radius: 999px; box-shadow: 0 3px 12px rgba(20,30,50,.08); padding: .35rem .4rem .35rem 1.25rem; max-width: 720px; }
.sh-searchpill input { border: 0; outline: none; flex: 1; font-size: .95rem; background: transparent; }
.sh-searchpill button { border-radius: 999px; width: 44px; height: 44px; border: 0; background: var(--sh-primary); color: #fff; }
.sh-searchpill .hint { font-size: .75rem; color: var(--sh-muted); }

/* ---- hero ---- */
.sh-hero { border-radius: 24px; overflow: hidden; position: relative; min-height: 380px;
  background: linear-gradient(120deg, rgba(58,10,42,.85), rgba(92,15,67,.45)), url('/img/seed/hero.jpg') center/cover; color: #fff;
  display: flex; align-items: center; }
.sh-hero h1 { font-weight: 800; letter-spacing: -1px; }
.sh-hero .lead { opacity: .92; }

/* ---- cards ---- */
.sh-card { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); overflow: hidden; background: #fff; transition: box-shadow .18s, transform .18s; height: 100%; }
.sh-card:hover { box-shadow: var(--sh-shadow); transform: translateY(-2px); }
.sh-card img.cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sh-card .title { font-weight: 700; font-size: .98rem; }
.sh-card .meta { color: var(--sh-muted); font-size: .85rem; }
.sh-price { font-weight: 800; }
.sh-price small { font-weight: 400; color: var(--sh-muted); }
.sh-rating { color: var(--sh-ink); font-weight: 600; font-size: .85rem; }
.sh-rating i { color: var(--sh-accent); }

.sh-chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--sh-surface); border: 1px solid var(--sh-border);
  border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; color: var(--sh-ink); }
.sh-chip.active { background: var(--sh-primary); color: #fff; border-color: var(--sh-primary); }

.sh-section-title { font-weight: 800; letter-spacing: -.5px; }

/* ---- listing detail ---- */
.sh-gallery img { border-radius: 18px; width: 100%; object-fit: cover; max-height: 460px; }
.sh-bookcard { border: 1px solid var(--sh-border); border-radius: 18px; box-shadow: var(--sh-shadow); padding: 1.4rem; position: sticky; top: 90px; background:#fff; }
.sh-amenity { display: flex; gap: .6rem; align-items: center; padding: .35rem 0; color: var(--sh-ink); }
.sh-amenity i { width: 22px; color: var(--sh-primary); }

.sh-ai-badge { background: linear-gradient(90deg, #eef7f7, #fdf6ea); border: 1px solid var(--sh-border);
  border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; }
.sh-ai-badge i { color: var(--sh-primary); }

/* ---- review ---- */
.sh-review { border-top: 1px solid var(--sh-border); padding: 1rem 0; }
.sh-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--sh-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---- checkout / forms ---- */
.sh-panel { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); background: #fff; padding: 1.5rem; }
.sh-provider { border: 1.5px solid var(--sh-border); border-radius: 14px; padding: 1rem; cursor: pointer; display: flex; gap: .8rem; align-items: center; }
.sh-provider:has(input:checked) { border-color: var(--sh-primary); background: #fbe9f2; }
.sh-provider i { font-size: 1.4rem; color: var(--sh-primary); width: 28px; }

.form-control, .form-select { border-radius: 12px; border-color: var(--sh-border); padding: .6rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--sh-primary); box-shadow: 0 0 0 .2rem rgba(168,15,102,.12); }

/* ---- footer ---- */
.sh-footer { background: var(--sh-surface); border-top: 1px solid var(--sh-border); color: var(--sh-muted); font-size: .9rem; }

/* ---- host tables ---- */
.sh-table th { color: var(--sh-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
/* Room-category thumbnail on the listing page. Fixed basis so a missing image can't
   reflow the row, and flex-shrink:0 so long room descriptions don't squash it. */
.sh-room-thumb { width: 84px; height: 60px; object-fit: cover; border-radius: 10px; flex: 0 0 84px; }
.sh-status { border-radius: 999px; padding: .25rem .7rem; font-size: .78rem; font-weight: 700; }
.sh-status.active { background: #e7f6ef; color: #157347; }
.sh-status.pending { background: #fff4e0; color: #b97509; }
.sh-status.suspended, .sh-status.cancelled { background: #fdebec; color: #b02a37; }
.sh-status.confirmed { background: #e7f1fb; color: #135ba1; }
.sh-status.completed { background: #eef0f3; color: #4b5563; }

@media (max-width: 768px) { .sh-hero { min-height: 300px; } .sh-bookcard { position: static; } }

/* ---- v3: gallery mosaic + lightbox ---- */
.sh-mosaic { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; position: relative; border-radius: 18px; overflow: hidden; }
.sh-mosaic img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.sh-mosaic .main { min-height: 380px; max-height: 440px; }
.sh-mosaic .side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-mosaic .show-all { position: absolute; bottom: 14px; right: 14px; border-radius: 10px; font-weight: 600; }
.sh-lightbox { position: fixed; inset: 0; background: rgba(10,14,20,.94); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.sh-lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 10px; }
.sh-lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.5rem; }
.sh-lightbox .lb-close { top: 18px; right: 18px; }
.sh-lightbox .lb-prev { left: 18px; top: 50%; }
.sh-lightbox .lb-next { right: 18px; top: 50%; }
.sh-lightbox .lb-count { position: absolute; bottom: 16px; color: #fff; opacity: .8; }

/* ---- availability grid ---- */
.avail-day { width: 44px; height: 44px; border: 1px solid var(--sh-border); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .8rem; }
.avail-day small { font-size: .58rem; color: var(--sh-muted); }
.avail-day.busy { background: var(--sh-surface); color: #b9bec7; text-decoration: line-through; }

/* ---- category rating bars ---- */
.cat-bar { height: 5px; background: var(--sh-surface); border-radius: 3px; }
.cat-bar div { height: 100%; background: var(--sh-primary); border-radius: 3px; }

/* ---- wishlist hearts ---- */
.wish-btn { position: absolute; top: 10px; right: 10px; z-index: 5; border: 0; background: rgba(255,255,255,.92); width: 36px; height: 36px; border-radius: 50%; color: #d33; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.wish-btn.active i, .wish-btn-inline .fa-solid.fa-heart { color: #e0245e; }

/* ---- skeletons ---- */
.skeleton { position: relative; overflow: hidden; background: var(--sh-surface); border-radius: var(--sh-radius); min-height: 240px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---- concierge widget ---- */
.concierge-fab { position: fixed; bottom: 22px; right: 22px; z-index: 1500; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--sh-primary); color: #fff; font-size: 1.3rem; box-shadow: 0 8px 24px rgba(168,15,102,.4); }
.concierge-panel { position: fixed; bottom: 90px; right: 22px; z-index: 1500; width: 360px; max-width: calc(100vw - 30px); background: var(--sh-bg); border: 1px solid var(--sh-border); border-radius: 18px; box-shadow: var(--sh-shadow); display: flex; flex-direction: column; max-height: 60vh; }
.concierge-panel .head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--sh-border); font-weight: 700; }
.concierge-panel .msgs { padding: 1rem; overflow-y: auto; flex: 1; font-size: .92rem; }
.concierge-panel .msg-ai { background: var(--sh-surface); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .6rem; }
.concierge-panel .msg-me { background: var(--sh-primary); color: #fff; border-radius: 12px; padding: .6rem .8rem; margin-bottom: .6rem; margin-left: 3rem; }
.concierge-panel form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--sh-border); }

/* ---- dark mode ---- */
[data-theme="dark"] {
  --sh-ink: #e8eaf0; --sh-muted: #9aa2b1; --sh-bg: #12161d; --sh-surface: #1b212b; --sh-border: #2a3140;
  --sh-shadow: 0 8px 28px rgba(0,0,0,.5);
}
[data-theme="dark"] body, [data-theme="dark"] .sh-nav, [data-theme="dark"] .sh-card,
[data-theme="dark"] .sh-panel, [data-theme="dark"] .sh-bookcard, [data-theme="dark"] .concierge-panel { background: var(--sh-bg); color: var(--sh-ink); }
[data-theme="dark"] .sh-footer { background: var(--sh-surface); }
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select { background: var(--sh-surface); color: var(--sh-ink); }
[data-theme="dark"] .btn-sh-outline { background: var(--sh-surface); color: var(--sh-ink); }
[data-theme="dark"] .sh-searchpill { background: var(--sh-surface); }
[data-theme="dark"] .sh-searchpill input { color: var(--sh-ink); }

/* ---- v6: photo manager + dropzone ---- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--sh-border); cursor: grab; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile.dragging { opacity: .4; }
.photo-tile .photo-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(15,20,30,.65); color: #fff; font-size: 1rem; line-height: 1; }
.photo-tile .photo-del:hover { background: #b02a37; }
.photo-tile .cover-badge { display: none; position: absolute; bottom: 6px; left: 6px; background: var(--sh-primary); color: #fff;
  font-size: .62rem; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px; }
.photo-tile:first-child .cover-badge { display: block; }
.photo-tile .pending-badge { position: absolute; bottom: 6px; left: 6px; background: var(--sh-accent); color: #5b4300;
  font-size: .62rem; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px; }
.dropzone { display: block; border: 2px dashed var(--sh-border); border-radius: 14px; padding: 1.6rem; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s; background: var(--sh-surface); }
.dropzone:hover, .dropzone.drag { border-color: var(--sh-primary); background: #fbe9f2; }
[data-theme="dark"] .dropzone:hover, [data-theme="dark"] .dropzone.drag { background: #2a1824; }
.pac-container { border-radius: 12px; font-family: var(--sh-font); }  /* Places dropdown */

/* ══════════════════════════════════════════════════════════════
   v6 PREMIUM UI — modeled on the Metronic real-estate concept
   ══════════════════════════════════════════════════════════════ */
:root {
  --sh-ring: 0 0 0 4px rgba(168,15,102,.12);
  --sh-card-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
  --sh-card-shadow-hover: 0 8px 30px rgba(16,24,40,.13);
}

/* ---- sticky filter chip bar ---- */
.filterbar { position: sticky; top: 68px; z-index: 1010; background: var(--sh-bg);
  border-bottom: 1px solid var(--sh-border); padding: .75rem 0; margin: -1rem 0 1.25rem; }
.filterbar .inner { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: .4rem; background: var(--sh-bg); border: 1px solid var(--sh-border);
  border-radius: 10px; padding: .5rem .85rem; font-size: .875rem; font-weight: 600; color: var(--sh-ink); cursor: pointer;
  transition: border-color .15s, box-shadow .15s; white-space: nowrap; }
.fchip:hover { border-color: #cfd5dd; }
.fchip.on { border-color: var(--sh-primary); box-shadow: var(--sh-ring); color: var(--sh-primary); }
.fchip i { font-size: .8rem; opacity: .7; }
.fchip-dark { background: var(--sh-ink); color: #fff; border-color: var(--sh-ink); }
.fchip-dark:hover { background: #000; color: #fff; }
.fpanel { border: 1px solid var(--sh-border); border-radius: 14px; box-shadow: var(--sh-card-shadow-hover);
  padding: 1rem; min-width: 260px; background: var(--sh-bg); }

/* ---- premium listing card (reference-matched) ---- */
.pcard { background: var(--sh-bg); border: 1px solid var(--sh-border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--sh-card-shadow); transition: box-shadow .2s, transform .2s; height: 100%; display: flex; flex-direction: column; }
.pcard:hover { box-shadow: var(--sh-card-shadow-hover); transform: translateY(-3px); }
.pcard .shot { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sh-surface); }
.pcard .shot img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0;
  opacity: 0; transition: opacity .35s ease; }
.pcard .shot img.on { opacity: 1; }
.pcard .counter { position: absolute; bottom: 10px; right: 10px; background: rgba(15,20,30,.72); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; backdrop-filter: blur(4px); }
.pcard .dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.pcard .dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s, width .2s; }
.pcard .dots span.on { background: #fff; width: 16px; border-radius: 3px; }
.pcard .acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 3; }
.pcard .iact { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #475467;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(16,24,40,.16); transition: transform .15s, color .15s; }
.pcard .iact:hover { transform: scale(1.08); }
.pcard .iact.saved { background: #e0245e; color: #fff; }
.pcard .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.9); color: #344054; opacity: 0; transition: opacity .18s; z-index: 3; }
.pcard:hover .nav-arrow { opacity: 1; }
.pcard .nav-arrow.prev { left: 8px; } .pcard .nav-arrow.next { right: 8px; }
.pcard .body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.pcard .headline { font-size: 1.45rem; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; }
.pcard .headline small { font-size: .8rem; font-weight: 500; color: var(--sh-muted); letter-spacing: 0; }
.pcard .tags { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 .55rem; flex-wrap: wrap; }
.ptag { background: var(--sh-surface); border-radius: 6px; padding: .2rem .55rem; font-size: .74rem; font-weight: 700; color: #475467; }
.pcard .addr { display: flex; gap: .45rem; font-size: .875rem; color: var(--sh-muted); line-height: 1.45; }
.pcard .addr i { margin-top: .2rem; color: var(--sh-primary); }
.pcard .cta { margin-top: auto; padding-top: .9rem; }
.pcard .cta a { display: block; text-align: center; background: var(--sh-ink); color: #fff; border-radius: 10px;
  padding: .65rem; font-weight: 700; font-size: .9rem; transition: background .15s; }
.pcard .cta a:hover { background: #000; color: #fff; }
[data-theme="dark"] .pcard .cta a { background: var(--sh-primary); }

/* ---- toasts ---- */
.toast-stack { position: fixed; top: 84px; right: 20px; z-index: 2100; display: flex; flex-direction: column; gap: .6rem; }
.sh-toast { display: flex; align-items: flex-start; gap: .7rem; background: var(--sh-bg); border: 1px solid var(--sh-border);
  border-left: 4px solid var(--sh-primary); border-radius: 12px; box-shadow: var(--sh-card-shadow-hover);
  padding: .85rem 1.1rem; min-width: 290px; max-width: 380px; font-size: .9rem; animation: toastIn .25s ease; }
.sh-toast.err { border-left-color: #d92d20; } .sh-toast.warn { border-left-color: var(--sh-accent); }
.sh-toast i { color: var(--sh-primary); margin-top: .15rem; }
.sh-toast.err i { color: #d92d20; } .sh-toast.warn i { color: var(--sh-accent); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---- notification bell ---- */
.bell-wrap { position: relative; }
.bell-dot { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; border-radius: 9px; background: #d92d20;
  color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.notif-panel { width: 340px; max-height: 420px; overflow-y: auto; padding: 0; }
.notif-item { display: flex; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--sh-border); font-size: .875rem; }
.notif-item.unread { background: #fbe9f2; }
[data-theme="dark"] .notif-item.unread { background: #2a1824; }
.notif-item i { color: var(--sh-primary); margin-top: .2rem; }

/* ---- mobile bottom nav ---- */
.mobile-nav { display: none; }
@media (max-width: 768px) {
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500; background: var(--sh-bg);
    border-top: 1px solid var(--sh-border); padding: .45rem 0 .3rem; box-shadow: 0 -2px 14px rgba(16,24,40,.07); }
  .mobile-nav a { flex: 1; text-align: center; font-size: .66rem; color: var(--sh-muted); font-weight: 600; }
  .mobile-nav a i { display: block; font-size: 1.15rem; margin-bottom: 2px; }
  .mobile-nav a.on { color: var(--sh-primary); }
  body { padding-bottom: 62px; }
  .filterbar { top: 60px; }
  .concierge-fab { bottom: 76px; }
}

/* ---- section headers & sort ---- */
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-head h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.7px; margin: 0; }
.results-head .sub { color: var(--sh-muted); font-size: .9rem; }

/* ---- stat/analytics tiles ---- */
.stat-tile { border: 1px solid var(--sh-border); border-radius: 14px; padding: 1.15rem 1.25rem; background: var(--sh-bg); }
.stat-tile .label { color: var(--sh-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat-tile .value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.8px; margin-top: .15rem; }
.stat-tile .delta { font-size: .8rem; font-weight: 700; }
.stat-tile .delta.up { color: #12805c; } .stat-tile .delta.down { color: #d92d20; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: .5rem; }
.spark span { flex: 1; background: var(--sh-primary); border-radius: 2px; opacity: .8; min-height: 3px; }

/* ---- verification badge ---- */
.verified { display: inline-flex; align-items: center; gap: .3rem; background: #e7f6ef; color: #12805c;
  border-radius: 999px; padding: .2rem .6rem; font-size: .74rem; font-weight: 700; }
.verified i { font-size: .7rem; }

/* ---- segmented control ---- */
.seg { display: inline-flex; background: var(--sh-surface); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a { padding: .4rem .9rem; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--sh-muted); }
.seg a.on { background: var(--sh-bg); color: var(--sh-ink); box-shadow: 0 1px 3px rgba(16,24,40,.1); }

/* ---- empty states ---- */
.empty { text-align: center; padding: 3.5rem 1rem; }
.empty .glyph { width: 76px; height: 76px; border-radius: 50%; background: var(--sh-surface); display: grid; place-items: center;
  margin: 0 auto 1rem; font-size: 1.9rem; color: var(--sh-primary); }

/* nav polish */
.sh-nav { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--sh-bg) 92%, transparent); }
.btn-sh, .btn-sh-outline, .fchip { transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s; }
.btn-sh:active, .btn-sh-outline:active { transform: scale(.97); }

/* ══════════════════════════════════════════════════════════════
   v7 PREMIUM — depth, rhythm and motion pass.
   Layered on top of everything above; nothing is removed, so the
   existing markup hooks (.pcard, .fchip, .filterbar…) still apply.
   ══════════════════════════════════════════════════════════════ */
:root {
  /* brand ramp — tints derived from the magenta so surfaces stay in-family */
  --sh-primary-50:  #fbe9f2;
  --sh-primary-100: #f6d3e5;
  --sh-primary-200: #eaa7cb;
  --sh-primary-600: #8c0d55;
  --sh-primary-900: #3a0a2a;
  --sh-accent-soft: #fff8e3;
  --sh-accent-ink:  #5b4300;

  /* warm-leaning neutrals read richer than pure grey */
  --sh-ink:      #2b1a25;
  --sh-ink-soft: #4d3f47;
  --sh-muted:    #5f4c58;
  --sh-surface:  #fdf8f3;
  --sh-surface-2:#f5ebe1;
  --sh-border:   #e9dcd3;
  --sh-border-strong: #cdbcb2;

  /* elevation — two-part shadows (contact + ambient) */
  --e1: 0 1px 2px rgba(16,24,40,.05);
  --e2: 0 2px 4px -1px rgba(16,24,40,.06), 0 10px 22px -8px rgba(16,24,40,.12);
  --e3: 0 6px 14px -6px rgba(16,24,40,.10), 0 22px 48px -14px rgba(16,24,40,.20);
  --sh-card-shadow: var(--e1);
  --sh-card-shadow-hover: var(--e3);
  --sh-shadow: var(--e2);

  --sh-radius: 18px;
  --ease: cubic-bezier(.22,.68,.36,1);
}

html { scroll-behavior: smooth; }
body {
  font-feature-settings: "cv11" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}
::selection { background: var(--sh-primary-100); color: var(--sh-primary-900); }
:focus-visible { outline: 2px solid var(--sh-primary); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, .sh-section-title, .results-head h1, .pcard .headline {
  text-wrap: balance;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---- eyebrow label above a section title ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sh-primary); margin-bottom: .35rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--sh-accent); }

.results-head h1 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); letter-spacing: -.9px; }
.results-head .sub { font-size: .925rem; }

/* ---- hero: full-bleed, layered scrim, glass search ---- */
.sh-hero {
  min-height: clamp(420px, 46vw, 560px);
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 12% 100%, rgba(6,48,47,.90) 0%, rgba(6,48,47,.30) 55%, transparent 78%),
    linear-gradient(180deg, rgba(9,26,32,.34) 0%, rgba(9,26,32,.10) 38%, rgba(9,26,32,.60) 100%),
    url('/img/seed/hero.jpg') center 55% / cover no-repeat;
  box-shadow: var(--e3);
  isolation: isolate;
}
.sh-hero::after {   /* fine grain so the gradient never bands */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.sh-hero > * { position: relative; z-index: 1; }
.sh-hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.6rem);
  line-height: 1.04; letter-spacing: -2px; font-weight: 800;
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
}
.sh-hero .lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 34em; opacity: .94; }
.sh-hero .sh-searchpill {
  background: rgba(255,255,255,.96);
  border-color: transparent;
  box-shadow: 0 10px 34px rgba(4,20,24,.32);
  padding: .45rem .5rem .45rem 1.35rem;
}
.sh-hero .sh-searchpill input { font-size: 1rem; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(10px) saturate(140%);
  border-radius: 999px; padding: .42rem .95rem;
  font-size: .8rem; font-weight: 600; color: #fff;
}
.hero-kicker i { color: var(--sh-accent); }
.hero-suggest {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px); color: #fff; border-radius: 999px;
  padding: .5rem .95rem; font-size: .82rem; font-weight: 500;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.hero-suggest:hover { background: rgba(255,255,255,.26); color: #fff; transform: translateY(-1px); }

/* proof strip under the hero */
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  padding: 1rem 1.4rem; margin: -2.6rem 1.6rem 2.2rem; position: relative; z-index: 2;
  background: var(--sh-bg); border: 1px solid var(--sh-border);
  border-radius: 16px; box-shadow: var(--e2);
}
.hero-proof div { display: flex; align-items: center; gap: .6rem; font-size: .875rem; font-weight: 600; color: var(--sh-ink-soft); }
.hero-proof i { color: var(--sh-primary); font-size: 1rem; }
@media (max-width: 767px) {
  .hero-proof { margin: -1.5rem .25rem 1.75rem; gap: .75rem 1.25rem; }
  .sh-hero { border-radius: 20px; }
  /* The hero placeholder ("beachfront villa in El Nido under ₱15k for 6 people") is long
     enough to run past the search pill's edge on a phone at the desktop font size — shrink
     it so the example reads as a full sentence instead of getting clipped mid-word. */
  .sh-hero .sh-searchpill input { font-size: .85rem; }
  .sh-hero .sh-searchpill input::placeholder { font-size: .8rem; }
}

/* ---- category rail ---- */
.crail { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.crail::-webkit-scrollbar { display: none; }
.crail .fchip { flex: 0 0 auto; border-radius: 12px; padding: .6rem 1rem; }
.crail .fchip i { opacity: .85; color: var(--sh-primary); }
.crail .fchip:hover { border-color: var(--sh-primary-200); background: var(--sh-primary-50); transform: translateY(-1px); }

/* ---- premium card refinements ---- */
.pcard { border-radius: var(--sh-radius); transition: box-shadow .28s var(--ease), transform .28s var(--ease), border-color .28s; }
.pcard:hover { transform: translateY(-4px); border-color: var(--sh-border-strong); }
.pcard .shot::after {   /* scrim so overlays stay legible on bright photos */
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%; pointer-events: none; z-index: 1;
  background: linear-gradient(transparent, rgba(10,16,22,.42));
}
.pcard .shot img { transition: opacity .35s ease, transform .7s var(--ease); }
.pcard:hover .shot img.on { transform: scale(1.05); }
.pcard .counter, .pcard .dots, .pcard .acts, .pcard .nav-arrow, .shot-badge { z-index: 2; }
.pcard .headline { font-size: 1.5rem; letter-spacing: -.9px; }
.pcard .headline small { letter-spacing: -.1px; }
.pcard .body { padding: 1.05rem 1.15rem 1.15rem; }
.pcard .addr { font-size: .9rem; }
.pcard .addr span > br + span { font-size: .84rem; }
.ptag { background: var(--sh-surface-2); color: var(--sh-ink-soft); border-radius: 7px; font-size: .73rem; }
.pcard .cta a { border-radius: 12px; padding: .7rem; letter-spacing: -.1px;
  background: linear-gradient(180deg, var(--sh-ink), #0a1017); box-shadow: var(--e1); }
.pcard .cta a:hover { background: #000; box-shadow: var(--e2); }
[data-theme="dark"] .pcard .cta a { background: linear-gradient(180deg, var(--sh-primary), var(--sh-primary-600)); }

/* The v3 `.wish-btn` rule positions the heart absolutely at top-right. Inside the newer
   `.acts` flex row that takes it out of flow, so it lands on top of the share button and
   hides it. Inside .acts the heart is just another .iact. */
.pcard .acts .wish-btn { position: static; top: auto; right: auto; box-shadow: 0 2px 8px rgba(16,24,40,.16); }
.pcard .acts .iact i { font-size: .82rem; }

/* rating badge sitting on the photo */
.shot-badge {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.94); color: var(--sh-ink); border-radius: 9px;
  padding: .22rem .55rem; font-size: .76rem; font-weight: 800; box-shadow: var(--e1);
}
.shot-badge i { color: var(--sh-accent); font-size: .7rem; }
.shot-badge.dark { background: rgba(15,20,30,.72); color: #fff; backdrop-filter: blur(6px); font-weight: 700; }

/* ---- destination tile with photo ---- */
.dest {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  aspect-ratio: 3/4; box-shadow: var(--e1);
  transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}
.dest img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dest::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,20,.05) 30%, rgba(8,16,20,.72) 100%);
}
.dest:hover { transform: translateY(-4px); box-shadow: var(--e3); }
.dest:hover img { transform: scale(1.07); }
.dest .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: .85rem .9rem; color: #fff; z-index: 1; }
.dest .meta .name { font-weight: 800; letter-spacing: -.3px; font-size: 1rem; line-height: 1.2; }
.dest .meta .sub { font-size: .78rem; opacity: .88; }

/* ---- value props ---- */
.vprop { border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 1.6rem; height: 100%;
  background: var(--sh-bg); box-shadow: var(--e1); transition: box-shadow .28s var(--ease), transform .28s var(--ease); }
.vprop:hover { box-shadow: var(--e2); transform: translateY(-3px); }
.vprop .glyph {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem;
  color: var(--sh-primary); background: linear-gradient(145deg, var(--sh-primary-50), var(--sh-primary-100));
  box-shadow: inset 0 0 0 1px rgba(168,15,102,.10); margin-bottom: 1rem;
}
.vprop h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -.3px; margin-bottom: .35rem; }
.vprop p { color: var(--sh-muted); font-size: .9rem; line-height: 1.6; margin: 0; }

/* ---- host CTA band ---- */
.host-cta {
  position: relative; overflow: hidden; border: 0; color: #fff; border-radius: 24px;
  background: linear-gradient(112deg, var(--sh-primary-900) 0%, var(--sh-primary) 52%, #14847f 100%);
  box-shadow: var(--e3);
}
.host-cta::before {   /* soft light bloom */
  content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,176,75,.30), transparent 65%);
}
.host-cta > * { position: relative; }
.host-cta h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -1px; }
.btn-onbrand {
  display: inline-block; background: #fff; color: var(--sh-primary-900); font-weight: 700;
  border-radius: 12px; padding: .8rem 1.5rem; box-shadow: var(--e2);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-onbrand:hover { color: var(--sh-primary-900); transform: translateY(-2px); box-shadow: var(--e3); }

/* ---- buttons ---- */
.btn-sh {
  background: linear-gradient(180deg, var(--sh-primary), var(--sh-primary-600));
  box-shadow: var(--e1); border-radius: 12px;
}
.btn-sh:hover { background: linear-gradient(180deg, var(--sh-primary-600), var(--sh-primary-dark)); box-shadow: var(--e2); }
.btn-sh-outline { background: var(--sh-bg); }
.btn-sh-outline:hover { border-color: var(--sh-border-strong); background: var(--sh-surface); }

/* ---- nav ---- */
.sh-nav { padding: .7rem 0; box-shadow: 0 1px 0 rgba(16,24,40,.04); }
.sh-searchpill { box-shadow: var(--e1); transition: box-shadow .2s var(--ease), border-color .2s; }
.sh-searchpill:focus-within { border-color: var(--sh-primary-200); box-shadow: var(--sh-ring); }

/* ---- footer ---- */
.sh-footer { background: var(--sh-surface); border-top: 1px solid var(--sh-border); }
.sh-footer h4 { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sh-ink); margin-bottom: .8rem; }
.sh-footer a { display: block; color: var(--sh-muted); padding: .18rem 0; font-size: .9rem; }
.sh-footer a:hover { color: var(--sh-primary); }
.sh-footer .legal { border-top: 1px solid var(--sh-border); margin-top: 1.6rem; padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; justify-content: space-between; align-items: center; font-size: .85rem; }

/* ---- panels & book card ---- */
.sh-panel, .sh-bookcard { border-radius: var(--sh-radius); box-shadow: var(--e2); }
.sh-bookcard { box-shadow: var(--e3); }
.stat-tile { border-radius: 16px; box-shadow: var(--e1); }
.fpanel { border-radius: 16px; box-shadow: var(--e3); }

/* ---- dark mode: elevated surfaces rather than flat black ---- */
[data-theme="dark"] {
  --sh-ink: #e9edf2; --sh-ink-soft: #b9c2cd; --sh-muted: #929cab;
  --sh-bg: #140f13; --sh-surface: #1d161b; --sh-surface-2: #261d23;
  --sh-border: #33282f; --sh-border-strong: #4a3a44;
  --sh-primary-50: #2a1222; --sh-primary-100: #3a1630; --sh-primary-200: #5a1d47;
  --e1: 0 1px 2px rgba(0,0,0,.5);
  --e2: 0 2px 6px rgba(0,0,0,.45), 0 12px 28px -10px rgba(0,0,0,.6);
  --e3: 0 10px 24px -8px rgba(0,0,0,.6), 0 28px 60px -18px rgba(0,0,0,.75);
}
[data-theme="dark"] .vprop, [data-theme="dark"] .stat-tile, [data-theme="dark"] .fpanel,
[data-theme="dark"] .hero-proof { background: var(--sh-surface); }
[data-theme="dark"] .ptag { background: var(--sh-surface-2); }
[data-theme="dark"] .shot-badge { background: rgba(20,26,33,.88); color: var(--sh-ink); }
[data-theme="dark"] .verified { background: #12312a; color: #4ade9f; }
/* .fchip-dark is ink-on-white in light mode; invert it so it stays readable in dark mode */
[data-theme="dark"] .fchip-dark { background: var(--sh-ink); color: var(--sh-bg); border-color: var(--sh-ink); }
[data-theme="dark"] .fchip-dark:hover { background: #fff; color: #0a0f14; }
/* Bootstrap's .text-muted is a fixed light-mode grey — far too dark on our dark surfaces */
[data-theme="dark"] .text-muted { color: var(--sh-muted) !important; }
[data-theme="dark"] .btn-light { background: var(--sh-surface-2); color: var(--sh-ink); border-color: var(--sh-border); }
[data-theme="dark"] .dropdown-menu { background: var(--sh-surface); border-color: var(--sh-border); }
[data-theme="dark"] .dropdown-item { color: var(--sh-ink); }
[data-theme="dark"] .dropdown-item:hover { background: var(--sh-surface-2); color: var(--sh-ink); }
[data-theme="dark"] ::selection { background: var(--sh-primary); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   Accessibility (WCAG 2.2 AA)
   ══════════════════════════════════════════════════════════════ */

/* 2.4.1 Bypass Blocks — keyboard users shouldn't tab the whole nav on every page. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 3000;
  background: var(--sh-primary); color: #fff; font-weight: 700;
  padding: .7rem 1.1rem; border-radius: 0 0 12px 12px; box-shadow: var(--e2);
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }
#main:focus { outline: none; }   /* programmatic target, not a control */

/* 2.4.11 Focus Not Obscured + 2.4.13 Focus Appearance: a thick, high-contrast ring
   that survives on photos and dark surfaces alike. */
:focus-visible {
  outline: 3px solid var(--sh-primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.sh-hero :focus-visible,
.pcard .shot :focus-visible,
.dest:focus-visible,
.sh-lightbox :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px rgba(0,0,0,.55); }

/* 1.4.11 Non-text Contrast — the muted grey is fine for prose but too light for
   borders that carry meaning. */
.form-control, .form-select { border-color: var(--sh-border-strong); }

/* 2.5.8 Target Size (Minimum): 24×24 CSS px floor on compact icon controls. */
.pcard .iact, .pcard .nav-arrow, .mobile-nav a, .concierge-panel .head button { min-width: 24px; min-height: 24px; }

/* Bootstrap's .visually-hidden is available, but the lightbox counter and card counters
   are decorative duplicates of text we already expose — hide them from AT. */
.pcard .dots, .pcard .counter, .sh-lightbox .lb-count { }

/* ---- group booking progress ---- */
.progress-track {
  width: 100%; height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--sh-surface-2); box-shadow: inset 0 0 0 1px var(--sh-border);
}
.progress-track > div {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--sh-primary), #14847f);
  transition: width .4s var(--ease); min-width: 2px;
}

/* ---- group list voting ---- */
.vote.on { border-color: var(--sh-primary); color: var(--sh-primary); background: var(--sh-primary-50); font-weight: 700; }
.vote.on[data-value="-1"] { border-color: #d92d20; color: #d92d20; background: #fdebec; }
[data-theme="dark"] .vote.on[data-value="-1"] { background: #2a1618; }

/* ---- AI search transparency strip ---- */
.ai-parsed {
  background: linear-gradient(90deg, var(--sh-primary-50), var(--sh-accent-soft));
  border: 1px solid var(--sh-border);
  border-radius: 14px; padding: .7rem .9rem; font-size: .9rem;
}
.ai-parsed .fa-wand-magic-sparkles { color: var(--sh-primary); }
.ai-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--sh-bg); border: 1px solid var(--sh-border-strong);
  border-radius: 999px; padding: .25rem .7rem;
  font-size: .82rem; font-weight: 600; color: var(--sh-ink); text-decoration: none;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.ai-chip:hover { border-color: #d92d20; color: #d92d20; }
[data-theme="dark"] .ai-parsed { background: linear-gradient(90deg, #2a1224, #2a2114); }

/* ---- gallery mosaic: no empty cell when a listing has 3 side photos ---- */
.sh-mosaic { border-radius: 22px; gap: 10px; box-shadow: var(--e1);
  /* One explicit row height for the whole grid. The main image used to carry its own
     min/max-height while the side column sized itself from its contents, so a listing
     whose side column grew taller left a white gap under the main photo. */
  grid-template-rows: clamp(360px, 42vw, 470px); }
.sh-mosaic .main { height: 100%; min-height: 0; }
.sh-mosaic .side { grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; }
.sh-mosaic .side img:nth-child(3):last-child { grid-column: span 2; }
.sh-mosaic .side img:first-child:last-child { grid-column: span 2; grid-row: span 2; }
.sh-mosaic img { transition: transform .7s var(--ease), filter .3s; }
.sh-mosaic img:hover { transform: scale(1.03); filter: brightness(1.04); }
.sh-mosaic .show-all { border-radius: 12px; box-shadow: var(--e2); border: 1px solid var(--sh-border); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ══════════════════════════════════════════════════════════════
   CheersBnB brand layer — palette and type from cheers.omnistack.ph
   (plum/magenta/gold, Fraunces display serif over Inter).
   Fraunces is used when installed; Georgia carries it otherwise —
   no web-font request, same rule as Inter (see CLAUDE.md: No CDNs).
   ══════════════════════════════════════════════════════════════ */
h1, h2, .h1, .h2, .sh-section-title, .sh-hero h1 { font-family: var(--sh-display); letter-spacing: -.01em; }
.sh-section-title { color: var(--sh-primary-dark); }
[data-theme="dark"] .sh-section-title { color: var(--sh-ink); }
[data-theme="dark"] { --sh-primary: #c2187a; --sh-primary-dark: #e0559f; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: inline-block; }
