/* ===== Display heading font (self-hosted, no third-party requests) ===== */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;          /* variable */
  font-display: swap;
  src: url('fonts/playfair-display.woff2') format('woff2');
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fff7fb;          /* soft pink-tinted white */
  --surface: #ffffff;     /* app surface */
  --text: #3a2f37;        /* deep plum-grey */
  --text-soft: #736570;   /* muted mauve-grey — darkened to meet WCAG AA (≈5.5:1 on white) */

  /* Primary festive accent */
  --accent: #e23e7a;      /* vivid rose-pink */
  --accent-dark: #c62368;
  --accent-soft: #fde7f0; /* pink wash */

  /* Festive palette (wedding) */
  --c-pink: #e23e7a;
  --c-orange: #ff7a3d;    /* marigold */
  --c-gold: #f5b301;
  --c-teal: #12b3a3;
  --c-purple: #8b5cf6;
  --c-blue: #3b9ae1;
  --c-red: #ef4d5a;
  --c-green: #2bb673;

  --grad: linear-gradient(135deg, #e23e7a 0%, #ff7a3d 100%); /* pink → marigold */

  --border: #f4e3ec;      /* hairline */
  --shadow: 0 4px 16px rgba(180, 50, 110, 0.08);
  --app-w: 430px;         /* phone frame width */

  /* Display serif for headings; body stays the system sans below */
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

html { -webkit-text-size-adjust: 100%; height: 100%; overflow: hidden; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  /* Desktop: soft, refined backdrop so the phone frame reads as an app */
  background: linear-gradient(135deg, #fbe7dd 0%, #fad8e6 45%, #e8defb 100%);
  background-attachment: fixed;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* ===== Headings: display serif with a refined scale ===== */
h1, h2, .brand-name, .auth-title, .page-title {
  font-family: var(--font-head);
  letter-spacing: -0.005em;
}
h1, h2 { line-height: 1.16; }

/* ===== Phone frame ===== */
.app {
  width: 100%;
  max-width: var(--app-w);
  background: var(--bg);
  height: 100vh;
  height: 100dvh;          /* definite height → top bar + bottom tabs stay pinned, screen scrolls */
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}


/* ===== Icons ===== */
.ico, .cat-ico svg, .tab svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Top app bar ===== */
.appbar {
  flex: 0 0 auto;
  background: var(--surface);   /* solid: avoids sticky-scroll flicker & content bleed-through */
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(180, 50, 110, 0.05);
  position: relative;   /* establish a stacking context above the tab bar */
  z-index: 20;          /* so the city dropdown isn't trapped behind the nav strip */
}

/* Default brand block (utility pages: stacked page title + sub) */
.appbar-brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }

/* Branded variant: wordmark + tagline */
.appbar-brand--logo { flex-direction: row; align-items: center; }
.appbar-brand--logo.appbar-brand--center { justify-content: center; }

.brand-copy { display: flex; flex-direction: column; }
.appbar-brand--center .brand-copy { align-items: center; text-align: center; }

.brand-name {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05;
}
.brand-name .bn-1 {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.brand-name .bn-2 { color: var(--text); margin-left: 0.14em; }
.brand-tagline { font-size: 0.66rem; color: var(--text-soft); margin-top: 1px; }

.loc-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--grad); color: #fff;
  border: none; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  padding: 0.4rem 0.8rem; cursor: pointer;
  box-shadow: 0 3px 10px rgba(226, 62, 122, 0.3);
}
.loc-pill .ico { width: 14px; height: 14px; }
.loc-pill .loc-caret { width: 13px; height: 13px; margin-left: -1px; }

/* City dropdown */
.loc { position: relative; }
.city-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  list-style: none; min-width: 175px; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(40, 25, 35, 0.16); padding: 0.35rem;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.city-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.city-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.7rem; border-radius: 8px; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.city-opt:hover { background: var(--accent-soft); }
.city-opt.active { background: var(--accent-soft); color: var(--accent-dark); }
.city-opt.active::after { content: "✓"; color: var(--accent); font-weight: 800; }

/* Login page app bar: back button + centered brand */
.back-btn {
  flex: 0 0 auto; width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--accent); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; text-decoration: none;
}
.back-btn .ico { width: 18px; height: 18px; }
.appbar-spacer { flex: 0 0 auto; width: 34px; }
.appbar-brand--center { flex: 1; align-items: center; text-align: center; }

/* ===== Scrollable screen ===== */
.screen {
  flex: 1 1 auto;
  min-height: 0;           /* let the scroll area shrink within the fixed-height app */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.1rem 1.1rem;
  scroll-behavior: smooth;
}
.screen::-webkit-scrollbar { width: 0; }

.section { scroll-margin-top: 0.5rem; padding-top: 1.25rem; }

/* ===== Auth / Login page ===== */
.screen-center {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 1.5rem 1.25rem;
}
.auth { width: 100%; max-width: 340px; text-align: center; }
.auth-logo {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 20px rgba(226, 62, 122, 0.35);
}
.auth-logo svg { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.auth-title { font-size: 1.45rem; font-weight: 700; margin-bottom: 0.3rem; }
.auth-sub { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 1.5rem; }
.auth .form-aside { text-align: right; }
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.1rem 0; color: var(--text-soft); font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.btn-outline {
  background: transparent; color: var(--accent-dark);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0.25rem 0 0.85rem;
}
.section-head h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  position: relative; padding-left: 0.65rem;
}
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 1em; border-radius: 4px; background: var(--grad);
}
.link-more { font-size: 0.8rem; color: var(--accent-dark); text-decoration: none; font-weight: 700; }

/* ===== Search ===== */
.search {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--bg);
  padding: 0.85rem 0 0.5rem;
}
.search .ico { width: 18px; height: 18px; color: var(--text-soft); flex: 0 0 auto; }
.search input {
  flex: 1; border: 1px solid var(--border); background: var(--surface);
  border-radius: 12px; padding: 0.65rem 0.85rem; font-size: 0.9rem; color: var(--text);
  outline: none; box-shadow: var(--shadow);
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 18px;
  color: #fff;
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: 0 10px 24px rgba(226, 62, 122, 0.28);
}
/* Image layer (behind) — slow Ken Burns zoom */
/* Crossfading photo slideshow (behind the gradient), with a slow Ken Burns zoom */
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1.12); }
/* Brand gradient overlay — strong behind the (top-left) text, lighter toward the
   bottom-right so the changing photo stays clearly visible. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(226, 62, 122, 0.82) 0%, rgba(226, 62, 122, 0.58) 42%, rgba(255, 122, 61, 0.38) 100%);
}
.hero h1 { font-size: 1.7rem; font-weight: 700; line-height: 1.15; margin-bottom: 0.45rem; text-shadow: 0 2px 18px rgba(45, 12, 30, 0.42); }
.hero p { font-size: 0.9rem; opacity: 0.96; margin-bottom: 1rem; max-width: 90%; text-shadow: 0 1px 12px rgba(45, 12, 30, 0.38); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; background: #fff; color: var(--accent-dark);
  text-decoration: none; font-size: 0.88rem; font-weight: 700;
  padding: 0.6rem 1.25rem; border: none; border-radius: 10px; cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-block {
  display: block; width: 100%; background: var(--accent); color: #fff;
  padding: 0.8rem; font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(226, 62, 122, 0.32);
}
.btn-block:hover { background: var(--accent-dark); }

/* ===== Category grid (image cards) ===== */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.cat {
  position: relative; display: block; height: 100px;
  border-radius: 16px; overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.cat::after {                 /* colored top accent per category */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--cc, var(--accent)); z-index: 2;
}
.cat-ico { display: block; width: 100%; height: 100%; }
.cat-ico img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.cat-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0.75rem 0.55rem 0.45rem;
  font-size: 0.72rem; line-height: 1.15; font-weight: 700; color: #fff;
  background: linear-gradient(to top, rgba(20, 10, 15, 0.85), rgba(20, 10, 15, 0));
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(180, 50, 110, 0.16); }
.cat:hover .cat-ico img { transform: scale(1.07); }
.cat:active { transform: scale(0.98); }

/* Festive color per category */
.cat:nth-child(1) { --cc: var(--c-green); }
.cat:nth-child(2) { --cc: var(--c-orange); }
.cat:nth-child(3) { --cc: var(--c-pink); }
.cat:nth-child(4) { --cc: var(--c-blue); }
.cat:nth-child(5) { --cc: var(--c-red); }
.cat:nth-child(6) { --cc: var(--c-purple); }
.cat:nth-child(7) { --cc: var(--c-teal); }
.cat:nth-child(8) { --cc: var(--c-gold); }

/* ===== Featured vendor cards (image-top) ===== */
.cards { display: flex; flex-direction: column; gap: 1rem; }
.vcard {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.vcard:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(180, 50, 110, 0.15); }
.vcard:hover .vcard-media img { transform: scale(1.06); }
.vcard:active { transform: scale(0.995); }

.vcard-media { position: relative; height: 160px; overflow: hidden; background: var(--accent-soft); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }

.vcard-tag {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  background: rgba(255, 255, 255, 0.92); color: var(--accent-dark);
  font-size: 0.68rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.vcard-fav {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--accent);
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.vcard-fav .ico { width: 16px; height: 16px; }
.vcard-fav:hover { transform: scale(1.1); }
.vcard-fav.active { background: var(--accent); color: #fff; }
.vcard-fav.active .ico { fill: #fff; }

.rating {
  position: absolute; bottom: 0.6rem; left: 0.6rem; z-index: 2;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  background: var(--c-green); border-radius: 8px; padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vcard-body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.vcard-body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }

/* ===== Vendor badges (derived) ===== */
.vbadges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.vbadge {
  display: inline-flex; align-items: center; gap: 0.22rem;
  font-size: 0.66rem; font-weight: 700; line-height: 1; white-space: nowrap;
  padding: 0.26rem 0.5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--bc, var(--accent)) 14%, #fff);
  color: color-mix(in srgb, var(--bc, var(--accent)) 72%, #000);
  border: 1px solid color-mix(in srgb, var(--bc, var(--accent)) 26%, #fff);
}
.vbadge-verified { --bc: var(--c-green); }
.vbadge-top      { --bc: var(--c-gold); }
.vbadge-booked   { --bc: var(--c-orange); }
.vbadge-premium  { --bc: var(--c-purple); }
.vbadge-quick    { --bc: var(--c-blue); }
.detail-head .vbadges { margin: 0.45rem 0 0.1rem; }

/* ===== Compare: card button ===== */
.vcard-cmp {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: rgba(255, 255, 255, 0.92); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.66rem; font-weight: 700; padding: 0.28rem 0.55rem; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.vcard-cmp .ico { width: 13px; height: 13px; }
.vcard-cmp:hover { border-color: var(--accent); }
.vcard-cmp:active { transform: scale(0.96); }
.vcard-cmp.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.vcard-cmp.active .ico { color: #fff; }

/* ===== Compare: floating tray (aligned to the app frame, above the tab bar) ===== */
.cmp-tray {
  position: fixed; z-index: 60;
  left: 50%; bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 1.5rem); max-width: calc(var(--app-w) - 1.5rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 12px 30px rgba(40, 25, 35, 0.18);
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(120%);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cmp-tray.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.cmp-tray-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0.65rem; }
.cmp-thumbs { display: flex; align-items: center; gap: 0.4rem; }
.cmp-thumb { position: relative; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--border); }
.cmp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-thumb.cmp-empty { display: grid; place-items: center; color: var(--text-soft); background: var(--bg); font-size: 1.1rem; font-weight: 700; border-style: dashed; }
.cmp-remove { position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--surface); background: var(--c-red); color: #fff; font-size: 10px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cmp-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.cmp-clear { background: none; border: none; color: var(--text-soft); font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; padding: 0.3rem; }
.cmp-clear:hover { color: var(--c-red); }
.cmp-go { background: var(--accent); color: #fff; padding: 0.5rem 0.9rem; font-size: 0.82rem; }
.cmp-go:hover { background: var(--accent-dark); }
.cmp-go.is-disabled { background: var(--border); color: var(--text-soft); pointer-events: none; box-shadow: none; }

/* ===== Compare: side-by-side table ===== */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 1rem 0 1.5rem; }
.cmp-grid {
  display: grid; grid-template-columns: 84px repeat(var(--n, 2), minmax(116px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; min-width: max-content;
}
.cmp-rowlabel, .cmp-cell { background: var(--surface); padding: 0.6rem 0.65rem; font-size: 0.8rem; }
.cmp-rowlabel { font-weight: 700; color: var(--text-soft); font-size: 0.72rem; display: flex; align-items: center; }
.cmp-cell { color: var(--text); }
.cmp-cell small { color: var(--text-soft); font-weight: 600; font-size: 0.7rem; }
.cmp-head { position: relative; text-align: center; }
.cmp-head a { text-decoration: none; color: var(--text); display: block; }
.cmp-photo { width: 100%; height: 70px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 0.35rem; }
.cmp-name { font-size: 0.8rem; font-weight: 700; line-height: 1.15; display: block; }
.cmp-col-remove { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.45); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; display: grid; place-items: center; z-index: 2; padding: 0; }
.cmp-stars { color: var(--c-gold); font-size: 0.78rem; }
.cmp-best { display: inline-block; font-size: 0.6rem; font-weight: 800; color: var(--c-green); background: color-mix(in srgb, var(--c-green) 14%, #fff); border-radius: 999px; padding: 1px 6px; margin-left: 2px; vertical-align: middle; }
.cmp-services { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.cmp-services li { font-size: 0.72rem; color: var(--text); position: relative; padding-left: 0.7rem; line-height: 1.3; }
.cmp-services li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.cmp-cell .vbadges { gap: 0.25rem; }
.cmp-view { padding: 0.5rem; font-size: 0.82rem; }

/* ===== Recommendation rails (horizontal scroll) ===== */
.rail-sec h2 { margin-bottom: 0.6rem; }
.rail { display: flex; gap: 0.8rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0.2rem 0 0.6rem; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { height: 0; }
.rail > .vcard { flex: 0 0 230px; width: 230px; scroll-snap-align: start; }

/* ===== Vendor dashboard ===== */
.dash-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin: 0.4rem 0 0.5rem; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0.9rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.2rem; }
.dash-card:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 5th metric spans full width */
.dash-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--mc, var(--accent)); box-shadow: 0 4px 10px color-mix(in srgb, var(--mc, var(--accent)) 35%, transparent); margin-bottom: 0.3rem; }
.dash-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-card strong { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.dash-label { font-size: 0.74rem; color: var(--text-soft); font-weight: 600; }
.funnel { display: flex; flex-direction: column; gap: 0.55rem; }
.funnel-row { display: grid; grid-template-columns: 70px 1fr 54px; align-items: center; gap: 0.6rem; }
.funnel-label { font-size: 0.78rem; font-weight: 600; color: var(--text-soft); }
.funnel-bar { height: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.funnel-fill { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.funnel-val { font-size: 0.8rem; font-weight: 700; text-align: right; }
.dash-muted { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; }
.dash-muted a { color: var(--accent-dark); font-weight: 600; }

/* ===== Budget planner ===== */
.bp-intro { padding-top: 1rem; }
.bp-intro h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.bp-intro p { font-size: 0.9rem; color: var(--text-soft); margin-top: 0.3rem; }
.bp-form { margin-top: 1rem; }
.bp-form .field { margin-bottom: 0.9rem; }
.bp-form input[type="range"] { width: 100%; accent-color: var(--accent); }
.bp-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin: 0.5rem 0 0.25rem; }
.bp-stat { flex: 1; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0.85rem 0.4rem; box-shadow: var(--shadow); }
.bp-stat strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--accent-dark); line-height: 1.1; }
.bp-stat span { font-size: 0.7rem; color: var(--text-soft); font-weight: 600; }
.bp-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.bp-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(0, 1.2fr) auto auto; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.8rem; transition: border-color 0.15s ease, transform 0.1s ease; }
.bp-row:hover { border-color: var(--accent); }
.bp-row:active { transform: scale(0.995); }
.bp-row--static { cursor: default; }
.bp-dot { width: 12px; height: 12px; border-radius: 50%; }
.bp-label { font-size: 0.85rem; font-weight: 700; }
.bp-label small { color: var(--text-soft); font-weight: 600; font-size: 0.72rem; }
.bp-bar { height: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.bp-fill { display: block; height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.bp-amt { text-align: right; font-size: 0.9rem; font-weight: 800; color: var(--text); display: flex; flex-direction: column; line-height: 1.15; }
.bp-amt small { font-size: 0.66rem; font-weight: 600; color: var(--text-soft); }
.bp-chev { width: 18px; height: 18px; color: var(--text-soft); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-note { font-size: 0.76rem; color: var(--text-soft); margin-top: 0.7rem; line-height: 1.5; }

/* Service selection chips */
.svc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.svc-chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; font-family: inherit; cursor: pointer; padding: 0.45rem 0.8rem; border-radius: 999px; background: var(--surface); color: var(--text-soft); border: 1.5px solid var(--border); transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
.svc-chip .svc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); transition: background 0.15s ease; }
.svc-chip.on { color: var(--text); border-color: color-mix(in srgb, var(--sc) 45%, var(--border)); background: color-mix(in srgb, var(--sc) 9%, #fff); }
.svc-chip.on .svc-dot { background: var(--sc); }

/* Recommendation result cards */
.rec-list { display: flex; flex-direction: column; gap: 0.8rem; }
.rec { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.9rem; border-left: 4px solid var(--rc, var(--accent)); background: color-mix(in srgb, var(--rc, var(--accent)) 7%, #fff); }
.rec-svc { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 800; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rc, var(--accent)); }
.rec-amt { font-size: 0.9rem; font-weight: 800; text-align: right; white-space: nowrap; }
.rec-amt small { display: block; font-size: 0.66rem; font-weight: 600; color: var(--text-soft); }
.rec-body { padding: 0.7rem 0.9rem 0.85rem; }
.rec-vendor { display: flex; gap: 0.7rem; align-items: center; text-decoration: none; color: var(--text); }
.rec-vendor img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.rec-v-info { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; }
.rec-v-info strong { font-size: 0.92rem; font-weight: 700; line-height: 1.2; }
.rec-v-meta { font-size: 0.76rem; color: var(--text-soft); }
.rec-av { display: inline-block; width: max-content; font-size: 0.66rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.rec-av--yes { color: var(--c-green); background: color-mix(in srgb, var(--c-green) 14%, #fff); }
.rec-av--no { color: var(--c-red); background: color-mix(in srgb, var(--c-red) 14%, #fff); }
.rec-more { display: inline-block; margin-top: 0.6rem; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.rec-none { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; }
.rec-none a { color: var(--accent-dark); font-weight: 600; }

/* ===== Inspiration gallery ===== */
.insp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; padding-top: 0.6rem; }
.insp-item { position: relative; border: none; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--accent-soft); display: block; }
.insp-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.insp-item:hover img { transform: scale(1.06); }
.insp-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0.7rem 0.6rem; text-align: left; color: #fff; font-size: 0.82rem; font-weight: 700; display: flex; flex-direction: column; gap: 0.15rem; background: linear-gradient(to top, rgba(20, 10, 15, 0.82), rgba(20, 10, 15, 0)); }
.insp-tag { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.9; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(15, 8, 12, 0.92); display: grid; place-items: center; padding: 1.5rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lb-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-figure { max-width: 560px; width: 100%; margin: 0; text-align: center; }
.lb-figure img { max-width: 100%; max-height: 68vh; border-radius: 14px; display: block; margin: 0 auto; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.lb-figure figcaption { margin-top: 0.9rem; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.lb-figure figcaption strong { font-size: 1.05rem; font-weight: 800; }
.lb-figure figcaption > span { font-size: 0.8rem; opacity: 0.8; }
.lb-browse { margin-top: 0.5rem; display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 700; padding: 0.55rem 1.1rem; border-radius: 999px; }
.lb-browse:hover { background: var(--accent-dark); }
.insp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.insp-s { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--accent-soft); }
.insp-s img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.insp-s:hover img { transform: scale(1.08); }

/* ===== Promo banner (home → budget planner) ===== */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-decoration: none; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff); border-radius: 18px; padding: 1.1rem 1.25rem; transition: transform 0.12s ease, box-shadow 0.2s ease; }
.promo:hover { box-shadow: 0 10px 24px rgba(226, 62, 122, 0.16); transform: translateY(-2px); }
.promo-text h3 { font-size: 1.05rem; font-weight: 800; color: var(--accent-dark); }
.promo-text p { font-size: 0.82rem; color: var(--text); margin-top: 0.2rem; }
.promo-cta { display: inline-block; margin-top: 0.5rem; font-size: 0.82rem; font-weight: 800; color: var(--accent-dark); }
.promo-ico { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(226, 62, 122, 0.3); }
.promo-ico .ico { width: 26px; height: 26px; }
.vcard-meta { font-size: 0.78rem; color: var(--text-soft); display: flex; align-items: center; gap: 0.3rem; }
.vcard-meta .ico { width: 13px; height: 13px; flex: 0 0 auto; color: var(--accent); }
.vcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.45rem; }
.vcard-price { font-size: 1.05rem; font-weight: 700; color: var(--accent-dark); }
.vcard-price small { font-size: 0.72rem; font-weight: 600; color: var(--text-soft); }
.vcard-btn {
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 0.8rem; font-weight: 700; padding: 0.45rem 1rem; border-radius: 9px;
  box-shadow: 0 4px 12px rgba(226, 62, 122, 0.3);
}
.vcard-btn:hover { background: var(--accent-dark); }

/* ===== Steps (How it works) ===== */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.step {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.1rem 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(180, 50, 110, 0.12); }
.step-ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: var(--cc, var(--accent));
  box-shadow: 0 6px 14px color-mix(in srgb, var(--cc, var(--accent)) 35%, transparent);
  margin-bottom: 0.75rem;
}
.step-ico svg { width: 24px; height: 24px; }
.step h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.2rem; }
.step p { font-size: 0.82rem; color: var(--text-soft); line-height: 1.45; }
.step-no {
  position: absolute; top: 0.5rem; right: 0.9rem;
  font-size: 2.1rem; font-weight: 800; line-height: 1;
  color: var(--cc, var(--accent)); opacity: 0.15;
}
.step:nth-child(1) { --cc: var(--c-orange); }
.step:nth-child(2) { --cc: var(--c-pink); }
.step:nth-child(3) { --cc: var(--c-purple); }
.step:nth-child(4) { --cc: var(--c-teal); }

/* ===== About ===== */
.about-text { font-size: 0.9rem; color: var(--text-soft); }
.stats { display: flex; gap: 0.6rem; margin-top: 1rem; }
.stat {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 0.9rem 0.5rem;
  text-align: center; color: var(--text); box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--accent-dark); }
.stat span { font-size: 0.72rem; color: var(--text-soft); }

/* ===== Register ===== */
.register-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow);
}
.register-card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.register-card > p { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 1rem; }
.register-form { display: flex; flex-direction: column; gap: 0.6rem; }
.register-form input {
  border: 1px solid var(--border); background: var(--bg); border-radius: 10px;
  padding: 0.7rem 0.85rem; font-size: 0.9rem; color: var(--text); outline: none;
}
.register-form input:focus { border-color: var(--accent); }
.vendor-cta { font-size: 0.8rem; color: var(--text-soft); margin-top: 0.85rem; text-align: center; }
.vendor-cta a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.form-aside { margin: -0.1rem 0 0.2rem; text-align: right; }
.form-aside a { font-size: 0.78rem; color: var(--accent-dark); font-weight: 600; text-decoration: none; }

/* ===== Vendor sign-up ===== */
.vendor-intro { padding: 1.25rem 0 0.5rem; }
.vendor-intro h1 {
  font-size: 1.5rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vendor-intro p { font-size: 0.88rem; color: var(--text-soft); margin-top: 0.25rem; }

.vendor-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.75rem; }

.form-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.1rem; box-shadow: var(--shadow);
}
.form-section h3 {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.98rem; font-weight: 800; color: var(--text); margin-bottom: 0.9rem;
}
.sec-no {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 0.78rem; font-weight: 800;
  display: grid; place-items: center;
}

.field { display: flex; flex-direction: column; margin-bottom: 0.85rem; }
.field:last-child { margin-bottom: 0; }
.field-row { display: flex; gap: 0.7rem; }
.field-row .field { flex: 1; min-width: 0; }

.field label {
  font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem;
}
.req { color: var(--c-red); }
.hint { font-size: 0.7rem; color: var(--text-soft); margin-top: 0.3rem; }

.field input,
.field select,
.field textarea {
  width: 100%; border: 1px solid var(--border); background: var(--bg);
  border-radius: 10px; padding: 0.65rem 0.8rem; font-size: 0.9rem; color: var(--text);
  outline: none; font-family: inherit; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e23e7a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 16px;
  padding-right: 2rem;
}

/* Phone prefix */
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span {
  display: inline-flex; align-items: center; padding: 0 0.75rem;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 0.85rem;
  border: 1px solid var(--border); border-right: none; border-radius: 10px 0 0 10px;
}
.input-prefix input { border-radius: 0 10px 10px 0; }

/* File upload tiles */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.file-drop {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  border: 1.5px dashed var(--accent); border-radius: 10px;
  padding: 0.8rem; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 0.82rem; font-weight: 600;
}
.file-drop .ico { width: 20px; height: 20px; flex: 0 0 auto; }
.file-drop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-drop--lg { padding: 1.3rem 0.8rem; justify-content: center; flex-direction: column; text-align: center; }
.file-drop--lg .ico { width: 26px; height: 26px; }

/* Agreements */
.agree { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.25rem 0.25rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; color: var(--text-soft); }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.check a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }

.btn-lg { padding: 0.95rem; font-size: 1rem; }

/* ===== Footer ===== */
.foot { padding: 1.5rem 0 0.5rem; text-align: center; }
.foot p { font-size: 0.75rem; color: var(--text-soft); }
.foot-credit { margin-top: 0.35rem; font-size: 0.72rem; }
.foot-credit strong { color: var(--text); font-weight: 700; }

/* ===== Bottom tab bar ===== */
.tabbar {
  flex: 0 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  background: var(--surface);   /* solid: avoids sticky-scroll flicker & content bleed-through */
  border-top: 1px solid var(--border);
  padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 14px rgba(180, 50, 110, 0.05);
  position: relative;   /* keep below the app bar so its dropdown overlays the nav strip */
  z-index: 10;
}
.tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--text-soft);
  font-size: 0.64rem; font-weight: 600; padding: 0.42rem 0.3rem;
  flex: 1; min-width: 0; border-radius: 14px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.tab svg { width: 22px; height: 22px; transition: transform 0.18s ease; }
.tab.active { color: var(--accent); background: var(--accent-soft); }
.tab.active svg { transform: translateY(-1px) scale(1.08); }
/* Small gradient indicator above the active tab */
.tab.active::before {
  content: ""; position: absolute; top: -0.4rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad);
}

/* =====================================================================
   Sub-pages: listing, vendor detail, booking, account, states
   ===================================================================== */

/* Accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Scroll-reveal — the `.reveal` class is added by JS, so content stays visible
   without JS, and reduced-motion users get it instantly via the guard above. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Page header title (sub-pages) */
.page-title { font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.page-sub { font-size: 0.7rem; color: var(--text-soft); margin-top: 1px; }

/* ===== Listing: results + filter bar ===== */
.results-head { display: flex; align-items: baseline; justify-content: space-between; padding: 1rem 0 0.5rem; }
.results-head h1 { font-size: 1.2rem; font-weight: 800; }
.results-count { font-size: 0.8rem; color: var(--text-soft); }

.filterbar {
  position: sticky; top: 0; z-index: 4; background: var(--bg);
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0 0.8rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.filterbar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; cursor: pointer; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 0.8rem; font-weight: 600; font-family: inherit;
  padding: 0.45rem 0.9rem; border-radius: 999px; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: transparent; }

/* ===== Vendor detail ===== */
.gallery { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.85rem; }
.gallery-main {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--accent-soft);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 0.5rem; }
.gallery-thumbs img {
  width: 64px; height: 52px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.15s ease; opacity: 0.8;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--accent); opacity: 1; }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; }
.detail-head h1 { font-size: 1.4rem; font-weight: 800; line-height: 1.15; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.85rem; margin-top: 0.5rem; font-size: 0.82rem; color: var(--text-soft); }
.detail-meta .mi { display: inline-flex; align-items: center; gap: 0.3rem; }
.detail-meta .ico { width: 14px; height: 14px; color: var(--accent); }
.badge-verified { display: inline-flex; align-items: center; gap: 0.25rem; background: color-mix(in srgb, var(--c-green) 14%, #fff); color: var(--c-green); font-weight: 700; font-size: 0.72rem; padding: 0.2rem 0.55rem; border-radius: 999px; }
.detail-rating { flex: 0 0 auto; text-align: center; background: var(--c-green); color: #fff; border-radius: 12px; padding: 0.5rem 0.7rem; }
.detail-rating strong { display: block; font-size: 1.1rem; font-weight: 800; }
.detail-rating span { font-size: 0.62rem; opacity: 0.9; }

.detail-section { margin-top: 1.5rem; }
.detail-section h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.6rem; }
.detail-section p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.55; }

.amenities { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.amenity { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.4rem 0.8rem; }
.amenity::before { content: "✓"; color: var(--c-green); font-weight: 800; }
.amenity--spec { background: var(--accent-soft); color: var(--accent-dark); border-color: color-mix(in srgb, var(--accent) 22%, #fff); }
.amenity--spec::before { content: "✦"; color: var(--accent); }
.specbar { padding-top: 0; }

.pkg-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pkg {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.6rem; transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.pkg:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.pkg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.pkg-top h4 { font-size: 0.98rem; font-weight: 700; }
.pkg-price { font-size: 1.05rem; font-weight: 800; color: var(--accent-dark); white-space: nowrap; }
.pkg-features { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.pkg-features li { font-size: 0.82rem; color: var(--text-soft); display: flex; gap: 0.4rem; }
.pkg-features li::before { content: "•"; color: var(--accent); font-weight: 800; }

.review { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 0.6rem; }
.review-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; flex: 0 0 auto; }
.review-name { font-size: 0.85rem; font-weight: 700; }
.review-stars { font-size: 0.72rem; color: var(--c-gold); }
.review p { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; }

/* Sticky book bar */
.bookbar {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 0.7rem 1.1rem calc(0.7rem + env(safe-area-inset-bottom)); z-index: 6;
}
.bookbar .bb-price { font-size: 0.7rem; color: var(--text-soft); }
.bookbar .bb-price strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--accent-dark); }
.bookbar .btn-block { width: auto; flex: 1; max-width: 220px; }

/* ===== Modal + toast ===== */
.modal-overlay {
  position: absolute; inset: 0; z-index: 50; background: rgba(40, 25, 35, 0.5);
  display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 88%; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--border); margin: 0.15rem auto 1rem; }
.modal h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.25rem; }
.modal .modal-sub { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 1rem; }

.toast {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1.5rem);
  z-index: 60; background: var(--text); color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 0.7rem 1.1rem; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; max-width: 90%;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Account / list pages ===== */
.list-row {
  display: flex; align-items: center; gap: 0.85rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 0.7rem; margin-bottom: 0.7rem;
  text-decoration: none; color: var(--text); transition: box-shadow 0.2s ease, transform 0.12s ease;
}
.list-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.list-row img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.list-row .lr-body { flex: 1; min-width: 0; }
.list-row h4 { font-size: 0.95rem; font-weight: 700; }
.list-row p { font-size: 0.78rem; color: var(--text-soft); margin-top: 2px; }
.status { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.status.confirmed { background: color-mix(in srgb, var(--c-green) 15%, #fff); color: var(--c-green); }
.status.pending { background: color-mix(in srgb, var(--c-gold) 18%, #fff); color: #b07d00; }

.profile-head { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; }
.profile-avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; flex: 0 0 auto; }
.profile-head h1 { font-size: 1.25rem; font-weight: 800; }
.profile-head p { font-size: 0.82rem; color: var(--text-soft); }
.menu-list { display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.95rem 0.4rem; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 0.92rem; font-weight: 600; }
.menu-item:last-child { border-bottom: none; }
.menu-item .ico { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.menu-item .chev { margin-left: auto; color: var(--text-soft); }

/* ===== Empty state ===== */
.empty { text-align: center; padding: 3rem 1.5rem; }
.empty-ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty-ico .ico { width: 32px; height: 32px; }
.empty h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.3rem; }
.empty p { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 1.25rem; }

/* Section "see all" already styled via .link-more */

/* ===== Responsive overrides — placed LAST so they correctly override the component defaults above ===== */
/* On larger screens, float it like a device */
@media (min-width: 480px) {
  body { padding: 24px 0; align-items: center; }
  .app {
    min-height: min(900px, calc(100vh - 48px));
    height: min(900px, calc(100vh - 48px));
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(70, 50, 45, 0.22);
    border: 1px solid rgba(255,255,255,0.6);
  }
}

/* ===== Tablet & up: fill the screen (no frame, no width cap) ===== */
@media (min-width: 768px) {
  body { padding: 0; align-items: stretch; }
  .app {
    max-width: none;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  /* Reorder so the tab bar becomes a top navigation strip */
  .screen { order: 2; padding: 1rem clamp(1.5rem, 4vw, 5rem) 2rem; }
  .appbar { order: 0; padding: 1rem clamp(1.5rem, 4vw, 5rem); }
  .tabbar {
    order: 1;
    justify-content: center;
    gap: 0.4rem;
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 1rem;
  }
  .tab {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
  }
  .tab:hover { color: var(--accent); background: var(--accent-soft); }
  .tab.active { background: var(--accent-soft); }
  .tab.active::before { display: none; } /* indicator only for mobile bottom bar */
  .tab svg { width: 20px; height: 20px; }
  .tab.active svg { transform: none; }

  /* Search a bit roomier */
  .search { padding-top: 1.1rem; }
  .search input { font-size: 0.95rem; padding: 0.85rem 1rem; }

  /* Hero scales with the viewport */
  .hero { padding: clamp(2rem, 4vw, 4.5rem); border-radius: 22px; }
  .hero h1 { font-size: clamp(2rem, 3vw, 3.2rem); }
  .hero p { font-size: 1.05rem; max-width: 52ch; }

  /* Grids expand to use whatever width is available */
  .cat-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
  .cat { height: 150px; }
  .cat-label { font-size: 0.88rem; padding: 0.9rem 0.7rem 0.6rem; }
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
  .stats { gap: 1rem; }

  /* Forms/prose stay readable rather than stretching edge to edge */
  .register-card,
  .vendor-form,
  .vendor-intro { max-width: 640px; margin-left: auto; margin-right: auto; }
  .about-text { max-width: 72ch; }
}

/* ===== Desktop "web view": real website layout (document scroll) ===== */
@media (min-width: 1024px) {
  /* Natural document scroll — NO overflow on html/body. Any overflow value
     (even overflow-x:hidden) turns the root into a scroll container and breaks
     position:sticky for the header/nav, so they'd scroll away. Pages with
     decorative blobs clip them locally instead. */
  html { height: auto; overflow: visible; overscroll-behavior: auto; }
  body { height: auto; overflow: visible; background: var(--bg); display: block; }

  .app {
    position: static; display: flex; flex-direction: column;
    width: 100%; max-width: none; height: auto; min-height: 100vh;
    overflow: visible; border: none; border-radius: 0; box-shadow: none;
  }

  /* Sticky two-row header: brand bar + nav bar */
  .appbar {
    order: 0; position: sticky; top: 0; z-index: 30;
    height: 66px; box-sizing: border-box;
    padding: 0 clamp(1.5rem, 5vw, 4.5rem);
    justify-content: space-between;
    box-shadow: 0 1px 0 var(--border);
  }
  .tabbar {
    order: 1; position: sticky; top: 66px; z-index: 29;
    justify-content: center; gap: 0.5rem;
    padding: 0.45rem clamp(1.5rem, 5vw, 4.5rem);
    border-top: none; border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(180, 50, 110, 0.04);
  }

  /* Centered content container */
  .screen {
    order: 2; flex: 0 0 auto; overflow: visible;
    width: 100%; max-width: 1240px; margin: 0 auto;
    padding: 2rem clamp(1.5rem, 5vw, 4.5rem) 3.5rem;
  }
  .screen-center { min-height: calc(100vh - 200px); }
  .screen-narrow { max-width: 880px; }

  /* Search sits in the page (not stuck to viewport top) */
  .search { position: static; max-width: 560px; }

  /* Hero scales up like a landing banner */
  .hero { padding: clamp(3rem, 5vw, 5.5rem); border-radius: 24px; }
  .hero h1 { font-size: clamp(2.4rem, 3.4vw, 3.6rem); }
  .hero p { font-size: 1.1rem; max-width: 46ch; }

  /* Generous content rhythm */
  .section { padding-top: 2rem; scroll-margin-top: 120px; }
  .cat-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.25rem; }
  .cat { height: 170px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

  /* Footer reads as a real site footer */
  .foot { margin-top: 2.5rem; padding: 2.5rem 1rem 1.5rem; border-top: 1px solid var(--border); }

  /* Modal becomes a centered dialog; overlays the viewport, not the tall page */
  .modal-overlay, .toast { position: fixed; }
  .modal-overlay { align-items: center; justify-content: center; }
  .modal {
    max-width: 460px; margin: auto; border-radius: 20px;
    transform: translateY(16px) scale(0.98); max-height: 86vh;
    box-shadow: 0 24px 60px rgba(40, 25, 35, 0.3);
  }
  .modal-overlay.open .modal { transform: none; }
  .bookbar {
    order: 3; position: sticky; bottom: 0;
    padding-left: clamp(1.5rem, 5vw, 4.5rem); padding-right: clamp(1.5rem, 5vw, 4.5rem);
  }
  .bookbar .btn-block { max-width: 280px; }

  /* Hover affordance on nav */
  .tab { cursor: pointer; }
}

/* Keep ultra-wide content from feeling sparse */
@media (min-width: 1500px) {
  .screen { max-width: 1320px; }
}

/* ===== Feature enhancements (vendor profile) ===== */

/* Quick contact buttons */
.contact-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.contact-btn {
  flex: 1; min-width: 110px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 0.9rem; border-radius: 12px; cursor: pointer;
  font-size: 0.88rem; font-weight: 700; font-family: inherit;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  text-decoration: none; transition: transform 0.12s ease, filter 0.2s ease, background-color 0.2s ease;
}
.contact-btn .ico { width: 18px; height: 18px; }
.contact-btn:active { transform: translateY(1px); }
.contact-btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.contact-btn.wa .ico { stroke: #fff; }
.contact-btn.call { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-btn.call:hover, .contact-btn.wa:hover { filter: brightness(1.05); }
.contact-btn.inq:hover { background: var(--accent-soft); border-color: var(--accent); }

/* Availability calendar */
.cal { border: 1px solid var(--border); border-radius: 16px; padding: 0.75rem; background: var(--surface); max-width: 340px; overflow: hidden; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cal-title { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.cal-arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.cal-arrow:disabled { opacity: 0.35; cursor: default; }
.cal-arrow:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--text-soft); padding-bottom: 0.2rem; }
.cal-cell {
  min-width: 0; aspect-ratio: 1 / 1; display: grid; place-items: center;
  border: none; border-radius: 9px; font-size: 0.8rem; font-weight: 600; font-family: inherit;
  background: transparent; color: var(--text);
}
.cal-cell.empty { background: transparent; }
.cal-cell.past { color: var(--text-soft); opacity: 0.4; }
.cal-cell.avail { background: rgba(43, 182, 115, 0.14); color: #1c8a55; cursor: pointer; }
.cal-cell.avail:hover { background: var(--c-green); color: #fff; }
.cal-cell.booked { background: rgba(239, 77, 90, 0.14); color: #c4313d; cursor: not-allowed; text-decoration: line-through; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 0.6rem; font-size: 0.78rem; color: var(--text-soft); }
.cal-legend .cdot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.3rem; vertical-align: middle; }
.cal-legend .cdot.avail { background: var(--c-green); }
.cal-legend .cdot.booked { background: var(--c-red); }
.cal-hint { margin-left: auto; font-style: italic; }

/* Reviews & ratings */
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.reviews-avg { font-size: 0.85rem; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.review-you {
  font-size: 0.65rem; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); padding: 0.05rem 0.4rem; border-radius: 999px; margin-left: 0.3rem;
}
.review-photo { margin-top: 0.5rem; width: 100%; max-width: 220px; border-radius: 12px; display: block; }
.star-input { display: inline-flex; gap: 0.2rem; }
.star-input .star {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 1.7rem; line-height: 1; color: var(--border);
  transition: color 0.12s ease, transform 0.12s ease;
}
.star-input .star.on { color: var(--c-gold); }
.star-input .star:hover { transform: scale(1.12); }
#rev-form textarea {
  width: 100%; border: 1px solid var(--border); background: var(--bg);
  border-radius: 12px; padding: 0.7rem 0.85rem; font-family: inherit; font-size: 0.92rem;
  color: var(--text); resize: vertical;
}
#rev-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
