/* Shopavix storefront — Coorg green + gold, card-based marketplace look (design reference: client mock). */
:root {
    --g-950: #0f2e19;
    --g-900: #143d21;
    --g-800: #1a4c29;
    --g-700: #1f5a2e;
    --g-600: #27703a;
    --g-500: #2f8445;
    --g-100: #e4efe2;
    --g-50: #f1f7ef;
    --gold: #f4bf1f;
    --gold-600: #dfa50c;
    --gold-50: #fff7dc;
    --brown: #8f4f1c;
    --brown-700: #74400f;
    --blue: #1d5c9b;
    --purple: #5d3a93;
    --red: #d63a2f;
    --ink: #1a261d;
    --ink-2: #33423a;
    --muted: #5f6d64;
    --line: #e2e7e0;
    --line-2: #eef1ec;
    --bg: #ffffff;
    --cream: #faf8f2;
    --gold-ink: #3a2a00;
    --tone-green: #24683a;
    --radius: 10px;
    --radius-lg: 14px;
    --gutter: 16px;
    --wrap: 1240px;
    --head-h: 84px;
    --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-logo: "Fraunces", Georgia, serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.ico { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--g-700); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* scrollbars — themed, never the browser default */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--g-500), var(--g-700)); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--g-600) transparent; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.btn .ico { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-600); }
.btn--green { background: var(--g-700); color: #fff; }
.btn--green:hover { background: var(--g-800); }
.btn--line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--line:hover { border-color: var(--g-600); color: var(--g-700); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--gold-50); }
.btn--wa { background: #1f9d55; color: #fff; }
.btn--wa:hover { background: #178345; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 7px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.link { color: var(--g-700); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--g-500); }
.link .ico { width: 16px; height: 16px; }

/* ---------- header ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line-2); position: relative; z-index: 60; }
.topbar__in { display: flex; align-items: center; gap: 22px; height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--g-700); }
.logo__icon { flex: none; width: 50px; height: 40px; }
.logo__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.logo__mark { font-family: var(--font-logo); font-weight: 700; font-size: 34px; line-height: .86; letter-spacing: -.02em; }
.logo__tag { font-size: 10.5px; font-weight: 600; color: var(--g-800); letter-spacing: .05em; white-space: nowrap; }
.logo img { max-height: 54px; width: auto; }
.loc-chip { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.loc-chip .ico { color: var(--g-700); }
.hsearch { flex: 1; display: flex; min-width: 0; max-width: 560px; height: 46px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; transition: border-color .2s; }
.hsearch:focus-within { border-color: var(--g-600); }
.hsearch__scope { border: 0; border-right: 1px solid var(--line); background: var(--g-50); padding: 0 10px; font-size: 13.5px; font-weight: 500; border-radius: 8px 0 0 8px; color: var(--ink-2); }
.hsearch input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font-size: 15px; background: transparent; outline: none; }
.hsearch__go { flex: none; width: 50px; border: 0; background: var(--g-700); color: #fff; border-radius: 0 7px 7px 0; display: grid; place-items: center; }
.hsearch__go:hover { background: var(--g-800); }
.head-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-act { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 8px; font-weight: 500; font-size: 14.5px; white-space: nowrap; position: relative; }
.head-act:hover { background: var(--g-50); color: var(--g-700); }
.head-act .ico { width: 24px; height: 24px; }
.badge-count { position: absolute; top: 3px; left: 24px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.badge-count[hidden] { display: none; }
.icon-btn.head-burger { display: none; }

.mainnav { background: var(--g-700); color: #fff; position: sticky; top: 0; z-index: 50; }
/* links span the full content width: first link starts on the content left line, last ends on the right line */
.mainnav__in { display: flex; align-items: center; justify-content: space-between; height: 48px; --nav-x: 14px; }
.mainnav__item > a { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 48px; padding: 0 var(--nav-x); font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.mainnav__item:first-child > a { padding-left: 0; }
.mainnav__item:last-child > a { padding-right: 0; }
.mainnav__item > a::after { content: ""; position: absolute; left: var(--nav-x); right: var(--nav-x); bottom: 9px; height: 2.5px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.mainnav__item:first-child > a::after { left: 0; }
.mainnav__item:last-child > a::after { right: 0; }
.mainnav__item > a:hover, .mainnav__item > a.is-on, .mainnav__item.is-open > a { color: #fff; }
.mainnav__item > a:hover::after, .mainnav__item > a.is-on::after, .mainnav__item.is-open > a::after { transform: scaleX(1); }
.mainnav__item > a.mainnav__cta { color: var(--gold); }
@media (max-width: 1180px) { .mainnav__in { --nav-x: 8px; } .mainnav__item > a { font-size: 14px; } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--g-900); overflow: hidden; }
.hero__track { display: grid; }
.hero__slide { grid-area: 1 / 1; position: relative; min-height: 420px; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.hero__slide.is-on { opacity: 1; visibility: visible; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--g-950) 82%, transparent) 0%, color-mix(in srgb, var(--g-950) 55%, transparent) 38%, color-mix(in srgb, var(--g-950) 8%, transparent) 70%, color-mix(in srgb, var(--g-950) 0%, transparent) 100%); }
.hero__body { position: relative; z-index: 2; padding: 56px 0 96px; max-width: 640px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero__title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero__sub { margin-top: 16px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .92); max-width: 520px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__dots { position: absolute; z-index: 3; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; gap: 6px; }
.hero__dot { width: 34px; height: 30px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.hero__dot::before { content: ""; width: 10px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.hero__dot.is-on::before { width: 26px; background: var(--gold); }

/* homestay quick search — sits on the hero's lower edge */
.qsearch { position: relative; z-index: 5; margin-top: -54px; }
.qsearch__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; display: grid; grid-template-columns: auto 1.4fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.qsearch__title { display: flex; align-items: center; gap: 10px; padding-right: 8px; align-self: center; }
.qsearch__title .ico-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--g-50); color: var(--g-700); display: grid; place-items: center; }
.qsearch__title strong { display: block; font-size: 16px; }
.qsearch__title small { color: var(--muted); font-size: 12.5px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span, .field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--g-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-600) 16%, transparent); }
.field small { color: var(--muted); font-size: 12.5px; }
.field .err, .err { color: #b3261e; font-size: 13px; font-weight: 500; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #d0453b; }

/* ---------- sections ---------- */
.sec { padding: 44px 0; }
.sec--tight { padding: 28px 0; }
.sec--cream { background: var(--cream); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec__eyebrow { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g-600); margin-bottom: 4px; }
.sec__title { font-size: clamp(21px, 2.4vw, 27px); font-weight: 600; color: var(--g-900); }
.sec__sub { color: var(--muted); margin-top: 4px; }
.sec__more { flex: none; }

/* category cards (reference: photo top + coloured panel with round icon badge) */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.catc { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--tone, var(--g-700)); color: #fff; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s; isolation: isolate; }
.catc:hover { outline-color: var(--gold); }
.catc__img { aspect-ratio: 16 / 10; overflow: hidden; }
.catc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.catc:hover .catc__img img { transform: scale(1.06); }
.catc__body { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 16px 18px 92px; min-height: 92px; }
.catc__badge { position: absolute; left: 14px; top: -28px; width: 66px; height: 66px; border-radius: 50%; background: var(--tone, var(--g-700)); border: 4px solid rgba(255, 255, 255, .18); display: grid; place-items: center; }
.catc__badge .ico { width: 30px; height: 30px; color: #fff; }
.catc__text { flex: 1; min-width: 0; }
.catc__name { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; }
.catc__tag { display: block; font-size: 13px; opacity: .9; margin-top: 3px; line-height: 1.4; }
.catc__go { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--tone, var(--g-700)); display: grid; place-items: center; transition: transform .3s var(--ease); }
.catc:hover .catc__go { transform: translateX(3px); }
.catc__go .ico { width: 18px; height: 18px; }
.tone-green { --tone: var(--tone-green); }
.tone-brown { --tone: #91511c; }
.tone-blue { --tone: #1d5c9b; }
.tone-purple { --tone: #5d3a93; }
.tone-teal { --tone: #136a64; }
.tone-amber { --tone: #a5620b; }
.tone-olive { --tone: #56672a; }
.tone-maroon { --tone: #8a2f3c; }


/* product card */
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; min-width: 0; }
.pcard:hover { border-color: var(--g-600); }
.pcard__media { position: relative; aspect-ratio: 1 / 1; background: var(--line-2); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__off { position: absolute; left: 8px; top: 8px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px; z-index: 2; }
.pcard__tryon { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .94); color: var(--blue); font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 20px; }
.pcard__tryon .ico { width: 14px; height: 14px; }
.pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.pcard__seller { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__name { font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__rating { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.pcard__rating .ico { width: 14px; height: 14px; color: var(--gold-600); }
.pcard__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.pcard__price strong { font-size: 17px; font-weight: 700; color: var(--ink); }
.pcard__price s { font-size: 13px; color: var(--muted); }
.pcard__unit { font-size: 12px; color: var(--muted); }
.pcard__btn { position: relative; z-index: 2; margin-top: 10px; }
.pcard__oos { margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: #b3261e; background: #fdecea; border-radius: 7px; padding: 9px; }

/* homestay card */
.hcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s; min-width: 0; }
.hcard:hover { border-color: var(--g-600); }
.hcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hcard:hover .hcard__media img { transform: scale(1.05); }
.hcard__type { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .95); color: var(--g-800); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 20px; }
.hcard__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hcard__name { font-size: 16.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* one line, so every stay card in a list has the same height */
.hcard__area { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard__area .ico { display: inline-block; vertical-align: -2px; margin-right: 5px; width: 15px; height: 15px; color: var(--red); }
.hcard__facil { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hcard__facil span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--g-50); color: var(--g-700); }
.hcard__facil .ico { width: 16px; height: 16px; }
.hcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-2); }
.hcard__price small { display: block; font-size: 12px; color: var(--muted); }
.hcard__price strong { font-size: 18px; font-weight: 700; }
.hcard__price em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.rating-pill { display: inline-flex; align-items: center; gap: 4px; background: var(--g-700); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.rating-pill .ico { width: 13px; height: 13px; }
.rating-pill--new { background: var(--gold-50); color: var(--gold-ink); }

/* location / shop cards (reference: "Popular Partner Shops") */
.lcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.lcard:hover { border-color: var(--g-600); }
.lcard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-2); }
.lcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lcard:hover .lcard__img img { transform: scale(1.06); }
.lcard__body { padding: 11px 12px 13px; display: grid; gap: 4px; }
/* one line each (long text ends with "…") so every card in a row and on every slide has the same height */
.lcard__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard__name a::after { content: ""; position: absolute; inset: 0; }
.lcard__meta { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard__meta .ico { display: inline-block; vertical-align: -2px; margin-right: 5px; width: 14px; height: 14px; color: var(--red); }
.lcard__meta .ico.star { color: var(--gold-600); }

/* trust strip */
.trust { background: var(--g-50); border: 1px solid var(--g-100); border-radius: var(--radius-lg); display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 20px 22px; position: relative; }
.trust__item + .trust__item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--g-100); }
.trust__ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; color: var(--g-700); }
.trust__ico .ico { width: 34px; height: 34px; stroke-width: 1.5; }
.trust__item strong { display: block; font-size: 15.5px; color: var(--g-900); }
.trust__item span { font-size: 13px; color: var(--muted); }

/* how it works + side promo */
/* left column: heading top lines up with the promo card top, steps end on its bottom line; everything left-aligned */
.how { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: stretch; }
.how__main { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; text-align: left; }
.step__ico { width: 60px; height: 60px; margin: 0 0 14px; border-radius: 50%; background: var(--g-50); color: var(--g-700); display: grid; place-items: center; border: 1px solid var(--g-100); position: relative; z-index: 1; }
.step__ico .ico { width: 28px; height: 28px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 72px; right: -12px; top: 30px; border-top: 2px dashed var(--g-100); }
.step strong { display: block; font-size: 15px; margin-bottom: 4px; }
.step > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }
.promo-wide { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 190px; color: #fff; display: flex; align-items: center; isolation: isolate; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s; }
.promo-wide:hover { outline-color: var(--gold); }
.promo-wide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.promo-wide:hover img { transform: scale(1.04); }
.promo-wide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--g-950) 85%, transparent), color-mix(in srgb, var(--g-950) 35%, transparent) 70%, color-mix(in srgb, var(--g-950) 10%, transparent)); }
.promo-wide__body { padding: 24px 26px; max-width: 70%; }
.promo-wide h3 { font-size: 22px; font-weight: 600; }
.promo-wide p { margin-top: 6px; font-size: 14px; opacity: .92; }
.promo-wide .btn { margin-top: 14px; }

/* promo tiles row (reference: 4 coloured tiles with picture on the right) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; display: flex; align-items: stretch; min-height: 118px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--tone, var(--g-700)); background: var(--tone, var(--g-700)); color: #fff; isolation: isolate; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s; }
.tile:hover { outline-color: var(--gold); }
.tile__body { position: relative; z-index: 2; padding: 16px 0 16px 18px; flex: 1.25; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.tile__body strong { font-size: 17px; font-weight: 600; line-height: 1.25; }
.tile__body span { font-size: 13px; opacity: .9; }
.tile__body .btn { margin-top: 8px; align-self: flex-start; min-height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 6px; }
.tile__img { flex: 1; position: relative; }
.tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); transition: transform .6s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.06); }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.quote__stars { display: flex; gap: 2px; color: var(--gold-600); }
.quote__stars .ico { width: 16px; height: 16px; }
.quote p { font-size: 15px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; background: var(--g-100); color: var(--g-800); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.quote__av img { width: 100%; height: 100%; object-fit: cover; }
.quote__who strong { display: block; font-size: 14.5px; }
.quote__who small { color: var(--muted); font-size: 12.5px; }

/* dual CTA (Become a Seller / List Your Homestay) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- footer ---------- */
.foot { background: var(--g-900); color: rgba(255, 255, 255, .82); margin-top: 8px; }
.foot__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr 1.2fr; gap: 28px; padding-top: 42px; padding-bottom: 30px; }
.foot .logo { color: #fff; }
.foot .logo__tag { color: rgba(255, 255, 255, .75); }
.foot__about { margin-top: 14px; font-size: 13.5px; line-height: 1.6; max-width: 280px; }
.foot h4 { color: #fff; font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.foot__links { display: grid; gap: 7px; font-size: 13.5px; }
.foot__links a:hover { color: var(--gold); }
.foot__contact { display: grid; gap: 10px; font-size: 13.5px; }
.foot__contact a, .foot__contact span { display: flex; gap: 10px; align-items: flex-start; }
.foot__contact .ico { width: 17px; height: 17px; margin-top: 2px; color: var(--gold); }
.foot__contact a:hover { color: #fff; }
.foot__social { display: flex; gap: 8px; margin-top: 14px; }
.foot__social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; transition: background .2s; }
.foot__social a:hover { background: var(--gold); color: var(--g-900); }
.foot__social .ico { width: 17px; height: 17px; }
.foot__ctas { display: grid; gap: 10px; }
.foot__cta { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; transition: border-color .2s, background .2s; }
.foot__cta:hover { border-color: var(--gold); background: rgba(255, 255, 255, .04); }
.foot__cta .ico { width: 26px; height: 26px; color: var(--gold); }
.foot__cta strong { display: block; color: #fff; font-size: 14px; }
.foot__cta small { font-size: 12px; }
.foot__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 12.5px; color: rgba(255, 255, 255, .65); }
.foot__bottom a { color: rgba(255, 255, 255, .85); }
.foot__bottom a:hover { color: var(--gold); }

/* ---------- misc ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.chip--ok { background: #e3f3e6; color: #1d6a33; }
.chip--wait { background: #fff4d6; color: #855d00; }
.chip--bad { background: #fde7e5; color: #a3271d; }
.chip--info { background: #e5effa; color: #1d4f86; }
.chip--mute { background: #eef0ed; color: #4d5a51; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; margin: 16px 0; font-weight: 500; }
.flash--ok { background: #e7f5ea; color: #1d5c2e; }
.flash--err { background: #fdecea; color: #9d261d; }
.flash--info { background: #eaf2fb; color: #1d4f86; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--cream); }
.empty .ico { width: 44px; height: 44px; color: var(--g-600); margin: 0 auto 10px; }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 16px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs a:hover { color: var(--g-700); }
.crumbs .ico { width: 14px; height: 14px; }
.toast-zone { position: fixed; z-index: 300; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--g-900); color: #fff; font-weight: 500; font-size: 14.5px; animation: toastIn .35s var(--ease) both; }
.toast--err { background: #8f1f17; }
.toast a { margin-left: auto; color: var(--gold); font-weight: 600; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* pager */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 21px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.pager a:hover { border-color: var(--g-600); color: var(--g-700); }
.pager .is-on { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.pager .is-off { opacity: .45; }
.pager__sum { border: 0 !important; background: none !important; color: var(--muted); font-weight: 500 !important; }
.pager .ico { width: 16px; height: 16px; }

/* themed select (enhanced <select>) */
.xsel { position: relative; min-width: 0; }
.xsel > select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.xsel__btn { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; text-align: left; font-size: 15px; }
.xsel__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xsel__btn .ico { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.xsel.is-open .xsel__btn { border-color: var(--g-600); }
.xsel.is-open .xsel__btn .ico { transform: rotate(180deg); }
.xsel__list { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 14px 34px color-mix(in srgb, var(--g-950) 16%, transparent); min-width: 180px; }
.xsel__list[hidden] { display: none; }
.xsel.up .xsel__list { top: auto; bottom: calc(100% + 6px); }
.xsel__opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: 14.5px; }
.xsel__opt:hover, .xsel__opt.is-act { background: var(--g-50); color: var(--g-800); }
.xsel__opt.is-sel { font-weight: 600; color: var(--g-700); }
.xsel__opt .ico { width: 16px; height: 16px; visibility: hidden; }
.xsel__opt.is-sel .ico { visibility: visible; }
.xsel__opt[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.hsearch .xsel { width: 118px; flex: none; display: flex; }
.hsearch .xsel__btn { height: auto; align-self: stretch; }
.hsearch .xsel__btn { min-height: 0; height: 100%; border: 0; border-right: 1px solid var(--line); border-radius: 8px 0 0 8px; background: var(--g-50); font-size: 13.5px; font-weight: 500; }

/* phone bottom tab bar */
.tabbar { display: none; }
/* floating buttons share one size and one centre line: WhatsApp at the bottom, back-to-top right above it */
:root { --fab: 52px; --fab-right: 18px; --fab-bottom: 22px; --fab-gap: 12px; }
.wa-float { position: fixed; right: var(--fab-right); bottom: var(--fab-bottom); z-index: 70; width: var(--fab); height: var(--fab); border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.wa-float .ico { width: 28px; height: 28px; }

/* reveal (content stays visible without JS; JS arms only below-the-fold blocks) */
[data-rv] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-rv].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-rv] { opacity: 1 !important; transform: none !important; } * { scroll-behavior: auto !important; } }

/* ---------- drawer (phone menu) ---------- */
.drawer { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); z-index: 120; background: #fff; transform: translateX(-102%); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.drawer__body { overflow: auto; padding: 8px 8px 24px; }
.drawer__body a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 10px; font-weight: 500; }
.drawer__body a:hover, .drawer__body a.is-on { background: var(--g-50); color: var(--g-700); }
.drawer__body a .ico { color: var(--g-700); }
.drawer__group { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 6px; }
.scrim { position: fixed; inset: 0; z-index: 110; background: color-mix(in srgb, var(--g-950) 45%, transparent); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; color: inherit; }
.icon-btn:hover { background: var(--g-50); }
.icon-btn .ico { width: 24px; height: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .loc-chip { display: none; }
    .head-act__label { display: none; }
    .foot__top { grid-template-columns: 1.2fr 1fr 1fr 1.3fr; }
    .foot__ctas { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .foot__ctas > h4 { grid-column: 1 / -1; margin-bottom: 0; }
}
@media (max-width: 1024px) {
    .qsearch__card { grid-template-columns: 1fr 1fr 1fr 1fr; }
    .qsearch__title { grid-column: 1 / -1; }
    .qsearch__go { grid-column: 1 / -1; }
    .how { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: 1fr 1fr; }
    .trust { grid-template-columns: 1fr 1fr; }
    .trust__item:nth-child(3)::before { display: none; }
    .quotes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    :root { --head-h: 64px; }
    .mainnav { display: none; }
    .topbar { position: sticky; top: 0; }
    .topbar__in { gap: 6px; flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; }
    .icon-btn.head-burger { display: grid; margin-left: -8px; }
    .logo { gap: 7px; }
    .logo__icon { width: 38px; height: 31px; }
    .logo__text { gap: 4px; }
    .logo__mark { font-size: 26px; }
    .logo__tag { font-size: 9.5px; letter-spacing: .03em; }
    .head-acts { gap: 0; }
    .head-act--login { display: none; }
    .hsearch { order: 10; flex-basis: 100%; max-width: none; height: 44px; }
    .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .foot__top { grid-template-columns: 1fr 1fr; }
    .foot__brand { grid-column: 1 / -1; }
    .duo { grid-template-columns: 1fr; }
    .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
    .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font-size: 11px; font-weight: 500; color: var(--muted); border-radius: 10px; }
    .tabbar a .ico { width: 22px; height: 22px; }
    .tabbar a.is-on { color: var(--g-700); }
    .tabbar a.is-on::before { content: ""; position: absolute; top: -5px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--g-700); }
    .tabbar .badge-count { top: 0; left: 55%; }
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    :root { --fab: 48px; --fab-right: 16px; --fab-bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
    .sec { padding: 30px 0; }
    .sec__head { margin-bottom: 14px; }
    .hero__slide { min-height: 0; }
    .hero__body { padding: 34px 0 86px; }
    .hero__slide::before { background: linear-gradient(180deg, color-mix(in srgb, var(--g-950) 35%, transparent), color-mix(in srgb, var(--g-950) 78%, transparent) 75%); }
    .hero__sub { font-size: 15.5px; }
    .hero__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero__btns .btn { padding: 0 10px; min-height: 48px; font-size: 15px; }
    .hero__dots { bottom: 62px; }
    .qsearch { margin-top: -46px; }
    .qsearch__card { grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; }
    .qsearch__loc { grid-column: 1 / -1; }
    .qsearch__go { grid-column: auto; align-self: end; min-height: 46px; }
    .catc__body { padding: 30px 12px 14px; flex-direction: column; align-items: flex-start; min-height: 0; gap: 6px; }
    .catc__badge { left: 12px; top: -24px; width: 50px; height: 50px; border-width: 3px; }
    .catc__badge .ico { width: 22px; height: 22px; }
    /* equal tiles on every phone width: the name keeps one line, the tag always takes two lines' room */
    .catc__text { width: 100%; }
    .catc__name { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 34px; }
    .catc__tag { font-size: 12px; line-height: 1.4; height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .catc__go { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; }
    .pcard__body { padding: 10px 10px 12px; }
    .pcard__name { font-size: 13.5px; }
    .pcard__price strong { font-size: 15.5px; }
    /* narrow cards: price on one line, pack size always on the next, so a long price never makes one card taller */
    .pcard__price { row-gap: 0; }
    .pcard__unit { flex-basis: 100%; min-height: 1.45em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pcard__btn { min-height: 38px; font-size: 13px; padding: 0 8px; }
    .trust { grid-template-columns: 1fr; }
    .trust__item { padding: 14px 16px; }
    .trust__item + .trust__item::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
    .steps { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
    .step::after { display: none; }
    .tiles { grid-template-columns: 1fr; }
    .quotes { grid-template-columns: 1fr; }
    .promo-wide__body { max-width: 100%; }
    .foot__top { grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 32px; }
    .foot__contact-col, .foot__ctas { grid-column: 1 / -1; }
    .foot__ctas { grid-template-columns: 1fr; }
    .foot__bottom { justify-content: center; text-align: center; }
}
@media (max-width: 380px) {
    :root { --gutter: 14px; }
    .hero__btns .btn { font-size: 14px; }
    .qsearch__card { grid-template-columns: 1fr; }
    .catc__tag { display: none; }
}

/* ---------- live search suggestions ---------- */
.hsearch { position: relative; }
.hsuggest { position: absolute; left: -1.5px; right: -1.5px; top: calc(100% + 6px); z-index: 120; max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 48px rgba(16, 40, 22, .18); }
.hsuggest[hidden] { display: none; }
.hsuggest__group + .hsuggest__group { border-top: 1px solid var(--line-2, #eef1ec); margin-top: 4px; padding-top: 4px; }
.hsuggest__head { margin: 6px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hsuggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.hsuggest__item img { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; background: var(--g-50); }
.hsuggest__item--categories img, .hsuggest__item--sellers img { border-radius: 50%; }
.hsuggest__text { flex: 1; min-width: 0; display: grid; }
.hsuggest__text strong { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsuggest__text small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsuggest__text mark { background: none; color: var(--g-700); font-weight: 700; }
.hsuggest__price { flex: none; font-style: normal; font-weight: 700; font-size: 13.5px; color: var(--g-800); white-space: nowrap; }
.hsuggest__item:hover, .hsuggest__item.is-active, .hsuggest__all:hover, .hsuggest__all.is-active { background: var(--g-50); }
.hsuggest__all { display: block; margin-top: 4px; padding: 11px 10px; border-top: 1px solid var(--line-2, #eef1ec); color: var(--g-700); font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 0 0 9px 9px; }
.hsuggest__empty { margin: 10px; color: var(--muted); font-size: 14px; }
.hsearch.is-loading .hsearch__go .ico { animation: hsg-pulse .8s ease-in-out infinite alternate; }
@keyframes hsg-pulse { from { opacity: 1; } to { opacity: .4; } }
@media (max-width: 760px) { .hsuggest { max-height: 62vh; } .hsuggest__price { font-size: 12.5px; } }

/* very small phones (≤ 340px): the Shopavix logo shrinks so the header actions keep their room */
@media (max-width: 340px) {
    .topbar .logo { gap: 5px; }
    .topbar .logo__icon { width: 32px; height: 26px; }
    .topbar .logo__mark { font-size: 22px; }
    .topbar .logo__tag { font-size: 8.5px; letter-spacing: .01em; }
}
@media (max-width: 340px) {
    /* the "View all …" link drops under a long section title instead of sticking out */
    .sec__head { flex-wrap: wrap; row-gap: 8px; }
}
