@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  /* Brand — deep editorial teal */
  --brand: #0f766e;
  --brand-dark: #0c5f58;
  --brand-deep: #0a4842;
  --brand-soft: #cdeee8;
  --brand-tint: #f0f9f7;

  /* Warm South-African amber accent */
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-deep: #b45309;
  --accent-soft: #fef3c7;
  --accent-tint: #fffaf0;

  /* Ink + neutrals */
  --ink: #14202e;
  --ink-soft: #33455c;
  --muted: #64748b;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f1f6f5;
  --border: #e6eaf1;
  --border-strong: #d3dae5;

  /* Layered, soft editorial shadows */
  --shadow-xs: 0 1px 2px rgba(20, 32, 46, 0.06);
  --shadow-soft: 0 12px 30px -20px rgba(15, 32, 50, 0.32);
  --shadow-md: 0 22px 48px -28px rgba(15, 32, 50, 0.4);
  --shadow-lg: 0 40px 80px -40px rgba(10, 28, 44, 0.5);
  --ring: 0 0 0 4px rgba(15, 118, 110, 0.16);
  --ring-accent: 0 0 0 4px rgba(245, 158, 11, 0.2);

  /* Radius scale */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --nav-h: 76px;
  --maxw: 1520px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Media never forces horizontal overflow on small screens. */
img,
video,
canvas {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(60rem 40rem at 6% -8%, rgba(15, 118, 110, 0.07), transparent 60%),
    radial-gradient(46rem 34rem at 104% 2%, rgba(245, 158, 11, 0.08), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}

h1, h2, h3, .section__title, .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-optical-sizing: auto;
}

h1 { line-height: 1.04; }

::selection {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--maxw), 100% - 2rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  z-index: 4000;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
}

.skip-link:focus {
  top: 12px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(244, 247, 251, 0.86);
}

.nav__inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.brand-mark {
  height: 30px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.foot-brand .brand-mark {
  height: 40px;
  margin-bottom: 0.5rem;
}

.nav-center {
  display: flex;
  gap: clamp(0.9rem, 1.9vw, 1.9rem);
  align-items: center;
}

.nav-center a {
  font-weight: 600;
  color: #344256;
  transition: color 0.22s ease;
}

.nav-center a:hover,
.nav-center a:focus-visible {
  color: var(--brand-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.7rem 0.28rem 0.32rem;
  box-shadow: var(--shadow-xs);
}
.session-badge__avatar {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.session-badge__name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #334155;
  cursor: pointer;
  position: relative;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #dceff1;
}

.icon-btn svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.badge-count {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding-inline: 0.2rem;
  border-radius: 99px;
  font-size: 0.68rem;
  line-height: 1.15rem;
  text-align: center;
  color: #fff;
  background: #dc2626;
}

.mobile-menu-btn {
  width: 2.35rem;
  height: 2.1rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: none;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 0.25rem;
  cursor: pointer;
}

.mobile-menu-btn span {
  height: 2px;
  border-radius: 99px;
  background: #1e293b;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav,
.profile-menu {
  position: fixed;
  right: 1rem;
  left: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.mobile-nav {
  top: calc(var(--nav-h) + 0.45rem);
  z-index: 1200;
  padding: 0.5rem 0.85rem;
}

.mobile-nav a {
  display: block;
  padding: 0.72rem 0.5rem;
  border-bottom: 1px solid #e9edf5;
  font-weight: 600;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.profile-menu {
  top: calc(var(--nav-h) + 0.45rem);
  left: auto;
  right: auto;
  width: min(260px, calc(100vw - 2rem));
  z-index: 1300;
  padding: 0.45rem;
}

.profile-menu a {
  display: block;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
}

.profile-menu a:hover {
  background: #eff6ff;
}

.profile-signout {
  margin-top: 0.35rem;
  border: 0;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  color: #991b1b;
  background: #fee2e2;
  font-weight: 600;
}

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 3rem;
  background: var(--bg);
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero__text {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.hero__media {
  min-width: 0;
  /* Asymmetric corner treatment is a deliberate accent, not a crop artifact —
     only the top-left corner is heavily rounded. */
  border-radius: 5rem 1.2rem 1.2rem 1.2rem;
  overflow: clip;
  box-shadow: var(--shadow-lg);
}
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
}

.eyebrow {
  width: fit-content;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.7);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  box-shadow: 0 8px 20px -10px rgba(217, 119, 6, 0.7);
}

.hero h1 {
  margin: 0;
  max-width: 15ch;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent-deep);
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Italic glyphs overhang their box; pad so the trailing "e" isn't clipped. */
  padding-right: 0.12em;
  margin-right: -0.06em;
}

.hero .hero-trust {
  margin: 0.2rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-deep);
}
.hero .hero-trust svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero p {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--ink-soft);
}

.hero-search {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.hero-search__icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.hero-search input {
  min-width: 6rem;
  flex: 3 1 12rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 1.05rem 0.6rem 1.05rem 1.9rem;
  color: var(--ink);
  background: transparent;
  font-size: 1.05rem;
}

.hero-search input:focus { outline: none; }

.hero-search__divider { width: 1px; align-self: center; height: 2rem; background: var(--border); flex: 0 0 auto; }
.hero-date-sep { flex: 0 0 auto; color: var(--muted); font-weight: 700; padding-inline: 0.1rem; }
/* Date field. DESKTOP: show the real <input type=date> (its own calendar icon works
   fine on desktop). MOBILE (≤820): the native empty box renders unreliably on Android,
   so we overlay the input invisibly over our own icon+label and tap opens the picker. */
.hero-date-field {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-width: 9.2rem;
}
.hero-date-field__icon,
.hero-date-field__text { display: none; } /* desktop uses the native input UI */
/* Desktop caption so the two native date boxes are labelled Start / End. */
.hero-date-field__caption { display: inline; flex: 0 0 auto; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.hero-search input.hero-search__date {
  flex: 0 0 auto;
  min-width: 9rem;
  color: var(--ink-soft);
  padding-inline: 0.6rem;
  border: 0;
  background: transparent;
  font: inherit;
}
/* Tablet + phone WIDTH: stack the search vertically — full-width, never overflows.
   (Layout only — the date input stays native here; the overlay is pointer-based below
   so a NARROW DESKTOP window keeps the working native picker.) */
@media (max-width: 820px) {
  .hero-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
    padding: 0.6rem;
    gap: 0.5rem;
  }
  .hero-search__divider { display: none; }
  .hero-date-sep { display: none; }
  .hero-search > input,
  .hero-date-field,
  .hero-search > button {
    width: 100%;
    min-width: 0;
    flex: none;
    min-height: 0;
  }
  /* Field look for the stacked date row (works for both native + overlay). */
  .hero-date-field {
    background: var(--surface-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    justify-content: flex-start;
  }
  .hero-search input.hero-search__date { width: 100%; padding: 0.75rem 0.6rem; }
  .hero-search > button { padding: 0.8rem 1.4rem; }
}
/* TOUCH devices only (phones/tablets): the native empty date box renders unreliably,
   so overlay it invisibly over our own icon + label. Desktop (any width) keeps the
   real input + its calendar icon (and click-anywhere opens it via showPicker). */
@media (pointer: coarse) {
  .hero-date-field {
    background: var(--surface-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.75rem 0.3rem;
    cursor: pointer;
  }
  .hero-date-field__icon {
    display: block; pointer-events: none; flex: 0 0 auto;
    width: 1.15rem; height: 1.15rem; margin-left: 0.6rem;
    fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
  .hero-date-field__text {
    display: block; pointer-events: none; color: var(--ink-soft);
    font-size: 1rem; padding: 0 0.55rem; white-space: nowrap;
  }
  /* Touch: the overlay label already reads "Start date"/"End date", so the desktop
     caption is redundant — hide it. */
  .hero-date-field__caption { display: none; }
  .hero-date-field.is-set .hero-date-field__text { color: var(--ink); font-weight: 600; }
  .hero-search input.hero-search__date {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; padding: 0; margin: 0; min-width: 0; cursor: pointer;
  }
}
@media (max-width: 640px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero .hero-trust { font-size: 0.8rem; max-width: 100%; }
}

.hero-search > button {
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-ui);
  min-height: 3.6rem;
  padding: 0 1.5rem;
  min-width: 110px;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(15, 118, 110, 0.8);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}

.hero-search > button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.hero-features {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}
.hero-feature:last-child { border-right: 0; padding-right: 0; }

.hero-feature__icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand);
}
.hero-feature__icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-feature h3 {
  margin: 0;
  font-size: 0.98rem;
}
.hero-feature p {
  margin: 0.2rem 0 0;
  max-width: none;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; max-width: 26rem; margin-inline: auto; }
  .hero__text { text-align: left; }
  .hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-feature:nth-child(2) { border-right: 0; }
}

@media (max-width: 560px) {
  .hero-features { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .hero-feature { border-right: 0; padding-right: 0; }
}

.btn {
  border: 0;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.25rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease), background 0.18s var(--ease);
  will-change: transform;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  color: #fff;
  background: var(--brand-dark);
  box-shadow: 0 12px 24px -14px rgba(15, 118, 110, 0.7);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 30px -14px rgba(15, 118, 110, 0.75);
}

.btn-secondary {
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--brand-tint);
  border-color: var(--brand-soft);
}

.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 24px -14px rgba(217, 119, 6, 0.7);
}

.btn-accent:hover { filter: brightness(1.05); }

.btn-compact { padding: 0.5rem 0.85rem; font-size: 0.86rem; }
.btn[disabled], .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-danger {
  color: #b91c1c;
  background: #fff5f4;
  border: 1px solid rgba(220, 38, 38, 0.4);
}
.btn-danger:hover { background: #fee2e2; border-color: rgba(220, 38, 38, 0.6); }
.dashboard-offering-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.build-stamp { display: block; margin-top: 0.4rem; font-size: 0.7rem; opacity: 0.55; letter-spacing: 0.02em; }

/* Branded loading screen (shown while Firebase hydrates) */
.app-loader {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(245,158,11,0.2), transparent 46%),
    linear-gradient(155deg, var(--brand) 0%, var(--brand-deep) 70%, #05302b 100%);
  transition: opacity 0.4s ease;
}
.app-loader.is-hiding { opacity: 0; pointer-events: none; }
.app-loader__mark {
  width: 3.6rem; height: 3.6rem; border-radius: 18px; background: #fff; color: var(--brand);
  font-family: var(--font-display, Georgia, serif); font-weight: 700; font-size: 2rem;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.app-loader__spin { width: 1.7rem; height: 1.7rem; margin: 0; }

/* Visible keyboard focus (only for keyboard users, not mouse clicks) */
:focus-visible { outline: 3px solid rgba(15, 118, 110, 0.6); outline-offset: 2px; }
.btn-primary:focus-visible, .btn-accent:focus-visible, .app-loader :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .app-loader__spin { animation: none; }
}

/* Notifications */
.notif-badge {
  display: inline-grid; place-items: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 0.4rem;
  border-radius: 999px; background: #e11d48; color: #fff;
  font-size: 0.72rem; font-weight: 700; vertical-align: middle; margin-left: 0.4rem;
}
.notif-list { display: grid; gap: 0.5rem; }
.notif-item {
  display: grid; grid-template-columns: 0.7rem 1fr; gap: 0.6rem; align-items: start;
  text-align: left; width: 100%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line, var(--border)); border-radius: 12px;
  padding: 0.75rem 0.9rem; font: inherit; color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.notif-item:hover { border-color: var(--brand-soft, var(--brand)); }
.notif-item.is-unread { background: var(--brand-tint); border-color: var(--brand-soft, var(--brand)); }
.notif-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: transparent; margin-top: 0.35rem; }
.notif-item.is-unread .notif-dot { background: var(--accent); }
.notif-item__body { display: grid; gap: 0.15rem; min-width: 0; }
.notif-item__body strong { font-size: 0.98rem; }
.notif-item__body span { color: var(--muted); font-size: 0.9rem; }
.notif-item__body small { color: var(--muted); font-size: 0.72rem; opacity: 0.8; }

/* Booking message thread */
.booking-thread { margin-top: 0.6rem; border: 1px solid var(--line, var(--border)); border-radius: 12px; background: var(--surface); }
.booking-thread > summary {
  cursor: pointer; list-style: none; padding: 0.6rem 0.9rem;
  font-weight: 700; color: var(--brand-dark, var(--brand)); font-size: 0.92rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.booking-thread > summary::-webkit-details-marker { display: none; }
.thread-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); display: inline-block; }
.booking-thread__list {
  display: grid; gap: 0.5rem; max-height: 15rem; overflow-y: auto;
  padding: 0.4rem 0.9rem; border-top: 1px solid var(--line, var(--border));
}
.msg { display: grid; gap: 0.1rem; justify-items: start; }
.msg--me { justify-items: end; }
.msg__meta { font-size: 0.68rem; color: var(--muted); }
.msg p {
  margin: 0; padding: 0.45rem 0.7rem; border-radius: 12px; max-width: 85%;
  background: var(--surface-soft); font-size: 0.92rem; line-height: 1.4;
}
.msg--me p { background: var(--brand); color: #fff; }
.booking-thread__form { display: flex; gap: 0.5rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--line, var(--border)); align-items: flex-end; }
.booking-thread__form textarea {
  flex: 1; min-width: 0; resize: vertical; border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 0.5rem 0.6rem; font: inherit;
}
.booking-thread__form .btn { flex: 0 0 auto; }
@media (max-width: 520px) {
  .booking-thread__form { flex-direction: column; align-items: stretch; }
}

/* Bookings Upcoming / History / All tabs */
.admin-tabs { display: flex; gap: 0.4rem; margin: 0.4rem 0 1.1rem; flex-wrap: wrap; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-md, 12px); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 560px; }
.admin-table th, .admin-table td { text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { background: var(--surface-2, var(--surface)); font-weight: 700; color: var(--muted); white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: var(--radius-pill); background: var(--surface-2, var(--surface)); border: 1px solid var(--border-strong); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.btn-tiny { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.admin-edit-list { display: flex; flex-direction: column; gap: 0.6rem; }
.admin-edit-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-md, 12px); background: var(--surface); }
.admin-edit-row .themed-input { flex: 1 1 8rem; min-width: 6rem; }
.admin-check { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.admin-settings-grid { display: grid; gap: 0.9rem; max-width: 34rem; }
.admin-settings-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.admin-pill--warn { background: #fef3c7; border-color: #f59e0b; color: #92400e; }

/* Promotions strip (admin-managed, homepage) */
.promo-strip { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; background: linear-gradient(90deg, var(--brand), #0c5f58); color: #fff; border-radius: var(--radius-pill); padding: 0.6rem 1.3rem; margin: 0 0 1.3rem; font-weight: 600; }
.promo-strip__item { color: #fff; text-decoration: none; }
.promo-strip__item:hover { text-decoration: underline; }
.promo-strip__dot { color: #fbbf24; margin-right: 0.15rem; }

/* Search bundles — moving cards above the services grid (admin-managed) */
.bundle-carousel { position: relative; overflow: hidden; margin: 0 0 1.6rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bundle-carousel__track { display: flex; gap: 0.9rem; width: max-content; animation: bundle-marquee 45s linear infinite; }
.bundle-carousel:hover .bundle-carousel__track { animation-play-state: paused; }
.bundle-carousel.is-static { -webkit-mask-image: none; mask-image: none; }
.bundle-carousel.is-static .bundle-carousel__track { animation: none; width: auto; flex-wrap: wrap; }
@keyframes bundle-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bundle-carousel__track { animation: none; } }
.bundle-card { flex: 0 0 auto; display: flex; align-items: center; gap: 0.7rem; text-align: left; cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-lg, 16px); padding: 0.7rem 1.1rem; min-width: 15rem; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.bundle-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 12px 28px -18px rgba(4, 18, 16, 0.5); }
.bundle-card__emoji { font-size: 1.7rem; line-height: 1; }
.bundle-card__text { display: flex; flex-direction: column; }
.bundle-card__title { font-weight: 700; color: var(--ink); }
.bundle-card__sub { font-size: 0.8rem; color: var(--muted); white-space: normal; }
.booking-tabs { display: flex; gap: 0.4rem; margin: 0.4rem 0 1.1rem; flex-wrap: wrap; }
.booking-tab {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted);
  border-radius: var(--radius-pill); padding: 0.42rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.booking-tab:hover { border-color: var(--brand); color: var(--brand); }
.booking-tab.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Booking markers on the provider availability calendar */
.calendar-cell.has-booking { font-weight: 700; }
.calendar-booking-dot {
  display: block;
  width: 6px; height: 6px; border-radius: 50%;
  margin: 2px auto 0;
}
.calendar-booking-dot.is-confirmed { background: var(--brand); }
.calendar-booking-dot.is-tentative { background: var(--accent); }
.availability-legend .dot-confirmed,
.availability-legend .dot-tentative {
  display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  vertical-align: middle; margin: 0 0.1rem 0 0.3rem;
}
.availability-legend .dot-confirmed { background: var(--brand); }
.availability-legend .dot-tentative { background: var(--accent); }

/* Provider performance analytics */
.perf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0.7rem; }
.perf-stat {
  background: var(--surface-soft); border: 1px solid var(--line, var(--border)); border-radius: 14px;
  padding: 1rem 1.1rem; display: grid; gap: 0.15rem;
}
.perf-stat__value { font-family: var(--font-display, Georgia, serif); font-size: 1.7rem; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.perf-stat__label { font-weight: 700; font-size: 0.9rem; }
.perf-stat__sub { font-size: 0.76rem; color: var(--muted); }

/* Provider reviews list */
.review-list { display: grid; gap: 0.8rem; }
.review-card { padding: 0.9rem 1.1rem; }
.review-card__head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.review-card__head .meta { margin-left: auto; }
.review-stars { color: var(--accent); letter-spacing: 0.06em; font-size: 1.05rem; }
.review-card p { margin: 0.3rem 0 0; }

.hero-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.search-suggestions {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0.3rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1400;
  text-align: left;
}
/* When portaled to <body> to escape the hero's clip, it's positioned via JS. */
.search-suggestions.is-portaled { position: fixed; margin: 0; right: auto; }

.search-suggestions li {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.search-suggestions li[data-suggestion]:hover,
.search-suggestions li[data-suggestion-term]:hover {
  background: var(--brand-tint);
}

.search-suggestions li strong { font-weight: 700; font-size: 0.95rem; }
.suggestion-meta { color: var(--muted); font-size: 0.82rem; }

/* Custom address autocomplete dropdown */
.addr-field { position: relative; }
.addr-suggest {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  max-height: 17rem;
  overflow-y: auto;
}
.addr-suggest[hidden] { display: none; }
.addr-suggest li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.93rem;
}
.addr-suggest li:hover { background: var(--brand-tint); }
.addr-suggest li svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-suggestions li[data-suggestion-term] {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brand-dark);
}
.search-suggestions li[data-suggestion-term]::before {
  content: "↳";
  color: var(--accent-dark);
  font-weight: 800;
}

.suggestion-heading,
.suggestion-empty {
  cursor: default !important;
  color: var(--muted) !important;
  font-size: 0.82rem;
  font-weight: 600;
}
.suggestion-heading { text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 0.2rem; }

.hero-facts {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.hero-facts article {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0.8rem;
  text-align: center;
  transition: transform 0.24s var(--ease), background 0.24s var(--ease);
}
.hero-facts article:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.18); }

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent-soft);
}

.hero-facts span {
  display: block;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 500;
}

.section {
  padding: clamp(3.3rem, 8vw, 6rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.06), transparent 30%), var(--surface-soft);
}

.section__header {
  text-align: center;
  margin-bottom: 2rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.1vw, 2.5rem);
}

.section__lead {
  margin: 0.4rem auto 0;
  max-width: 60ch;
  color: var(--muted);
}

.service-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.service-offers-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.offer-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: 178px 1fr;
  cursor: pointer;
}

.offer-image {
  position: relative;
  min-height: 178px;
  background: linear-gradient(120deg, var(--offer-a, rgba(15, 118, 110, 0.66)), var(--offer-b, rgba(12, 95, 88, 0.5)));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  overflow: hidden;
}

.offer-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.offer-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.36));
}

.offer-icon {
  position: relative;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  font-size: 1.1rem;
}

.offer-image-title {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  display: grid;
  gap: 0.12rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(2, 6, 23, 0.75);
}

.offer-image-title strong {
  font-size: 0.98rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.offer-image-title small {
  font-size: 0.7rem;
  line-height: 1.2;
}

.offer-count {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  padding: 0.18rem 0.52rem;
}

.offer-body {
  padding: 0.75rem;
  display: grid;
  grid-template-rows: auto minmax(2.4rem, auto) minmax(3.4rem, auto) auto;
  min-height: 100%;
}

.offer-body h3 {
  margin: 0;
  font-size: 1.04rem;
}

.offer-body p {
  margin: 0.35rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.offer-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.offer-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.55rem;
}

.offer-label {
  font-size: 0.72rem;
  background: #e5e7eb;
  color: #111827;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
}

.provider-panel {
  margin-top: 1.3rem;
}

.provider-panel__head {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.provider-panel__head h3 {
  margin: 0;
}

.provider-toolbar {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-bottom: 0.9rem;
}

.filter-chip {
  border: 1px solid #bde8e2;
  background: #f0fdfa;
  color: #115e59;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.34);
  padding: 0.24rem 0.66rem;
}

.badge-teal {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: rgba(15, 118, 110, 0.28);
}

.card h3 {
  margin: 0.58rem 0 0.4rem;
  font-size: 1.14rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-media {
  margin: -1rem -1rem 0.7rem;
  height: 150px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.price {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
}

.meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.service-detail-list {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  color: #334155;
  font-size: 0.86rem;
}

.service-empty {
  text-align: center;
  color: #9a4e0b;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 0.8rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.steps {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.step {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem 1.3rem;
}

.process-section {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(245, 158, 11, 0.06)),
    var(--surface);
}

.steps-rich .step {
  position: relative;
  min-height: 190px;
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
  overflow: hidden;
}
.steps-rich .step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.steps-rich .step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.steps-rich .step span {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px -10px rgba(15, 118, 110, 0.7);
}

.step h3 {
  margin: 0;
  font-size: 1.2rem;
}

.step p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-card {
  margin: 0 auto;
  width: min(780px, 100%);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
}

.about-card h3 {
  margin-top: 0;
}

.about-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: #344256;
}

footer {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(245, 158, 11, 0.2), transparent 52%),
    radial-gradient(90% 120% at 100% 100%, rgba(15, 118, 110, 0.4), transparent 55%),
    linear-gradient(150deg, var(--brand-deep) 0%, #06302c 70%, #041e1c 100%);
}
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent) 60%, #fcd34d);
}
footer strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.foot {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  align-items: start;
}

.foot a {
  color: var(--accent-soft);
  transition: color 0.18s var(--ease);
}
.foot a:hover { color: #fff; }

.foot-tagline {
  margin: 0.6rem 0 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  max-width: 30ch;
  line-height: 1.5;
}
.foot-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.foot-contact li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}
.foot-contact svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-col__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.foot-links { display: grid; gap: 0.6rem; align-content: start; }
.foot-links a {
  font-size: 0.95rem;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
}
.foot-links a::before {
  content: "›";
  color: var(--accent);
  font-weight: 800;
  transform: translateX(0);
  transition: transform 0.18s var(--ease);
}
.foot-links a:hover { color: #fff; }
.foot-links a:hover::before { transform: translateX(3px); }

/* Footer bottom bar */
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.foot-bottom a { color: rgba(255, 255, 255, 0.78); }
.foot-bottom a:hover { color: #fff; }

.contact-mini {
  display: grid;
  gap: 0.5rem;
}

.contact-mini label {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.contact-mini .foot-quote-sub {
  margin: -0.25rem 0 0.2rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-mini textarea {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  resize: vertical;
  min-height: 88px;
  padding: 0.7rem;
}

.contact-mini input {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.65rem 0.7rem;
}
.contact-mini input::placeholder,
.contact-mini textarea::placeholder { color: rgba(255, 255, 255, 0.6); }
.contact-mini input:focus,
.contact-mini textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.16); }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-links a {
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #3a2400;
  transform: translateY(-2px);
}
/* Icon only — platform name is the accessible label */
.social-links a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.social-links svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.forum-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin-bottom: 1rem;
}

.forum-post h3 {
  margin: 0.3rem 0;
}

.forum-compose {
  margin-top: 1rem;
}

.reddit-forum-list {
  display: grid;
  gap: 0.75rem;
}

.reddit-post {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0.8rem;
}

.reddit-post h3 {
  margin: 0.15rem 0 0.4rem;
}

.reddit-votes {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.15rem;
  color: #475569;
}

.reddit-votes button,
.reddit-actions button {
  border: 0;
  background: transparent;
  color: #475569;
  font-weight: 800;
  cursor: pointer;
}

.reddit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  vertical-align: middle;
}

.verification-badge.is-warn {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}

.gallery-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem 0;
}

.gallery-thumb {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.gallery-strip img,
.gallery-thumb img {
  width: 5.8rem;
  height: 4.2rem;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img,
.gallery-thumb.is-active img {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18);
}

.gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gallery-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
}

.gallery-viewer__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(92vh, 820px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 80px -34px rgba(15, 23, 42, 0.8);
  padding: 1rem;
}

.gallery-viewer__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
}

.gallery-viewer figure {
  margin: 0;
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.gallery-viewer figure img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 10px;
  background: #0f172a;
}

.gallery-viewer figcaption {
  min-height: 1.2rem;
  color: #475569;
  text-align: center;
  font-size: 0.9rem;
}

.gallery-viewer__nav {
  border: 1px solid var(--brand-soft);
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: var(--radius-pill);
  width: 2.6rem;
  height: 2.6rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.gallery-viewer__nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.05); }

.gallery-viewer__thumbs {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  justify-content: center;
}

.small {
  color: #9ba9c1;
  font-size: 0.92rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1500;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100dvh;
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 40px -28px rgba(15, 23, 42, 0.5);
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.26s ease;
  z-index: 1600;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.likes-drawer {
  right: 0;
}

.offer-drawer {
  right: 0;
  width: min(560px, 100%);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h2 {
  margin: 0;
}

.drawer-close {
  border: 1px solid var(--border-strong);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--brand-dark);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.drawer-close:hover { background: var(--brand-tint); border-color: var(--brand-soft); transform: rotate(90deg); }

.drawer-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.drawer-list li {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 5.4rem;
  max-height: 9rem;
  overflow: auto;
}

.drawer-list li.offering-row {
  cursor: pointer;
  max-height: none;
}

.drawer-thumb {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.drawer-list .page-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.drawer-meta {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 0.9rem;
}

.drawer-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.65rem;
  display: grid;
  gap: 0.55rem;
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  justify-self: start;
  padding: 0.2rem 0;
}

.text-action:hover,
.text-action:focus-visible {
  color: var(--accent-deep, #b45309);
  text-decoration: underline;
}

.drawer-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-item-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.drawer-item-price {
  font-size: 0.84rem;
  color: #334155;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
}

.qty-controls button {
  border: 0;
  background: #e2e8f0;
  border-radius: 999px;
  width: 1.3rem;
  height: 1.3rem;
  cursor: pointer;
}

.drawer-item-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.service-customizer[hidden] {
  display: none;
}

.service-customizer {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 1rem;
}
@media (max-width: 520px) {
  .service-customizer { padding: 0.5rem; }
  .service-customizer__panel { max-height: 92vh; padding: 0.85rem; }
}

.service-customizer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.58);
}

.service-customizer__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 80px -34px rgba(15, 23, 42, 0.7);
  padding: 1rem;
}

.customizer-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.customizer-fields {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.customizer-field-wide {
  grid-column: 1 / -1;
}

.customizer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid var(--brand-soft);
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 0.8rem;
}

.customizer-total strong {
  font-size: 1.2rem;
}

/* Checkout (order review) */
.checkout-panel { width: min(640px, 100%); }
.checkout-summary { display: grid; gap: 0.7rem; margin-top: 0.6rem; }
.checkout-line {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: var(--surface-soft);
  display: grid;
  gap: 0.6rem;
}
.checkout-line__info { display: grid; gap: 0.15rem; }
.checkout-line__info strong { font-size: 1rem; color: var(--ink); }
.checkout-line__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.checkout-line__dates .field span { font-size: 0.8rem; color: var(--muted); }
.checkout-line__warn {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b91c1c;
}
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
}
.checkout-total strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--brand-dark); }
.checkout-publish {
  margin-top: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
}
.checkout-publish > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-dark);
  list-style: none;
}
.checkout-publish > summary::-webkit-details-marker { display: none; }
.checkout-publish > summary::before { content: "+ "; font-weight: 800; }
.checkout-publish[open] > summary::before { content: "− "; }
.checkout-publish .customizer-fields { margin-top: 0.8rem; }
@media (max-width: 560px) {
  .checkout-line__dates { grid-template-columns: 1fr; }
}
.checkout-edit { font-size: 0.84rem !important; margin-top: 0.2rem; }

/* Date-aware availability prompt above provider results */
.date-prompt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1.05rem;
  border-radius: var(--radius);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.date-prompt__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.date-prompt--active { background: var(--accent-soft); border-color: rgba(245, 158, 11, 0.45); color: var(--accent-deep, #b45309); }
.date-prompt .text-action { margin-left: auto; font-size: 0.85rem; flex: 0 0 auto; }

/* ============================================================
   Results screen — search bar + filters rail + results + map
   ============================================================ */
.results-searchbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.3rem;
}
.results-searchbar__field { display: grid; gap: 0.3rem; min-width: 0; }
.results-searchbar__field > label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.results-searchbar input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.62rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}
.results-searchbar input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.results-date-pair { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.results-date-pair input { flex: 1 1 0; min-width: 0; width: auto; }
.results-date-pair span { color: var(--muted); flex: 0 0 auto; }
/* On phones the 3-column search bar squeezed the date inputs to ~0 width, so the
   YYYY/MM/DD text vanished. Stack the fields full-width instead, and show a helper
   line (native date inputs can't carry a placeholder). */
.results-date-hint { display: none; color: var(--muted); font-size: 0.75rem; margin-top: 0.25rem; }
/* Hero date field can't show a native placeholder — surface a hint on small screens. */
.hero-date-hint { display: none; }
@media (max-width: 820px) {
  .hero-date-hint { display: block; width: 100%; text-align: left; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
}
@media (max-width: 760px) {
  .results-searchbar { grid-template-columns: 1fr; }
  .results-date-pair input { min-width: 5.5rem; }
  .results-date-hint { display: block; }
}

.results-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.results-filters {
  position: sticky;
  top: calc(var(--nav-h, 64px) + 1rem);
  /* Bound to the viewport so a tall filter list scrolls on its own (hovering
     the rail scrolls the rail; hovering results scrolls the page). */
  max-height: calc(100vh - var(--nav-h, 64px) - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: var(--shadow-soft);
}
.results-filters__head { display: flex; align-items: center; justify-content: space-between; }
.results-filters__head h4 { margin: 0; font-size: 1.05rem; }
.results-filters .field { display: grid; gap: 0.3rem; }
.results-filters .field label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.results-filters select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  font: inherit;
  background: var(--surface);
}

.results-main { min-width: 0; }
.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.results-head__count strong { font-family: var(--font-display); font-size: 1.45rem; display: block; line-height: 1.1; }
.results-head__count .meta { font-size: 0.85rem; }
.results-head__controls { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.results-sort { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.results-sort select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.view-toggle button {
  border: 0;
  background: var(--surface);
  padding: 0.42rem 0.95rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-dark);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.view-toggle button.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: 1.1rem;
}
.results-related-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.92rem;
}
.results-avail {
  margin-bottom: 1rem;
  padding: 0.75rem 1.05rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--accent-deep, #b45309);
  font-size: 0.92rem;
}
.results-map {
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.results-map .leaflet-container { height: 100%; width: 100%; font-family: var(--font-ui); }

/* "Near me" control inside the filters rail */
.results-nearme { gap: 0.55rem; }
.results-nearme > label:first-child { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.results-nearme .btn { width: 100%; justify-content: center; }
.map-radius { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; color: var(--ink-soft); }
.map-radius strong { color: var(--brand-dark); }
.map-radius input[type="range"] { accent-color: var(--brand); width: 100%; }
.results-nearme .meta { font-size: 0.8rem; }

/* Concierge banner under the filters — collapses to a colour button */
.filter-ad {
  margin-top: 0.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(245, 158, 11, 0.32), transparent 55%),
    linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 70%, #06302c 100%);
}
.filter-ad__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  padding: 0.8rem 1rem;
  display: grid;
  gap: 0.1rem;
  position: relative;
}
.filter-ad__chevron {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.filter-ad__eyebrow {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.filter-ad__heading { margin: 0; color: #fff; font-size: 1.05rem; line-height: 1.2; font-weight: 700; padding-right: 1.2rem; }
.filter-ad__body { padding: 0 1rem 1rem; display: grid; gap: 0.5rem; }
.filter-ad__sub { margin: 0; font-size: 0.84rem; color: rgba(255, 255, 255, 0.85); }
.filter-ad__form { display: grid; gap: 0.45rem; margin-top: 0.2rem; }
.filter-ad__form input,
.filter-ad__form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  resize: vertical;
}
.filter-ad__form input::placeholder,
.filter-ad__form textarea::placeholder { color: rgba(255, 255, 255, 0.6); }
.filter-ad__form input:focus,
.filter-ad__form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.18); }
.filter-ad__form .btn { width: 100%; }
.filter-ad .notice { color: #fff; }

/* Themed gold→green loading spinner */
.spinner {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.5em;
  vertical-align: -0.18em;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--brand), var(--accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: servu-spin 0.8s linear infinite;
}
@keyframes servu-spin { to { transform: rotate(360deg); } }
.btn.is-loading { cursor: progress; }
.spinner--lg { width: 2.4rem; height: 2.4rem; margin: 0; }

/* Map pin popups */
.map-popup { display: grid; gap: 0.3rem; min-width: 180px; }
.map-popup__name { font-size: 1rem; color: var(--ink); }
.map-popup__meta { color: var(--muted); font-size: 0.85rem; }
.map-popup__price { font-size: 0.88rem; }
.map-popup__cta { width: 100%; margin-top: 0.3rem; }
.leaflet-popup-content { margin: 0.7rem 0.9rem; }

@media (max-width: 860px) {
  .results-shell { grid-template-columns: 1fr; }
  .results-filters { position: static; max-height: none; overflow: visible; }
  .results-searchbar { grid-template-columns: 1fr; }
}

/* Mobile: hide search + filters behind one toggle so results get the screen. */
.mobile-filters-toggle { display: none; }
@media (max-width: 760px) {
  .mobile-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 0.9rem;
    border: 1px solid var(--brand);
    border-radius: var(--radius-pill);
    background: var(--brand-tint);
    color: var(--brand-dark, var(--brand));
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  #providerListView .results-searchbar,
  #providerListView .results-filters { display: none; }
  #providerListView.filters-open .results-searchbar { display: grid; }
  #providerListView.filters-open .results-filters { display: block; margin-bottom: 1rem; }
}

/* Customizer ("Add & customize") — warmer, less form-like */
.service-customizer__panel { position: relative; overflow-y: auto; overflow-x: hidden; }
.service-customizer__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent) 70%, #fcd34d);
}
.customizer-form .field > span {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.customizer-fields .field {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}
.customizer-fields .field:focus-within { border-color: var(--brand-soft); background: #fff; }

/* Redesigned customizer: hero + scroll body + sticky footer */
.customizer-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  max-height: min(92vh, 880px);
  width: min(680px, 100%);
}
.customizer-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
}
.customizer-hero { position: relative; background: var(--brand-deep); }
.customizer-hero img { width: 100%; height: 180px; object-fit: cover; display: block; }
.customizer-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1rem 1.3rem;
  background: linear-gradient(180deg, rgba(7, 34, 32, 0.1) 30%, rgba(7, 34, 32, 0.88));
  color: #fff;
}
.customizer-hero__chip {
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #3a2400;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}
.customizer-hero__overlay h2 { margin: 0; color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.customizer-hero__meta { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.customizer-hero__rating { margin: 0.1rem 0 0; }
.customizer-hero__rating .rating-badge,
.customizer-hero__rating .rating-badge strong { color: #fff; }
.customizer-panel .customizer-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.customizer-body { padding: 1.1rem 1.3rem; overflow-y: auto; display: grid; gap: 0.85rem; }
.customizer-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 0.85rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.customizer-footer .customizer-total { margin: 0; border: 0; background: transparent; padding: 0; }
.customizer-footer__actions { display: flex; gap: 0.6rem; }
@media (max-width: 520px) {
  .customizer-footer { flex-direction: column; align-items: stretch; }
  /* Stack the two actions full-width so "Add & check out" never wraps to 2 lines. */
  .customizer-footer__actions { flex-direction: column; gap: 0.5rem; }
  .customizer-footer__actions .btn { width: 100%; white-space: nowrap; }
}

/* Star ratings */
.stars { white-space: nowrap; letter-spacing: 1px; }
.stars .star { color: var(--border-strong); font-size: 0.95rem; }
.stars .star.is-full { color: #f59e0b; }
.stars .star.is-half {
  background: linear-gradient(90deg, #f59e0b 50%, var(--border-strong) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rating-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; color: var(--ink-soft); }
.rating-badge strong { color: var(--ink); }
.rating-count { color: var(--muted); font-weight: 500; }
.provider-result-card__rating { margin: 0.25rem 0; }

/* Rating modal */
.rating-panel { width: min(460px, 100%); padding: 1.5rem; }
.rating-panel h2 { margin: 0 0 0.2rem; }
.rating-input { display: flex; gap: 0.3rem; margin: 0.7rem 0 1rem; }
.rating-star {
  font-size: 2.1rem;
  line-height: 1;
  color: var(--border-strong);
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.1s var(--ease), color 0.1s var(--ease);
}
.rating-star:hover { transform: scale(1.12); }
.rating-star.is-on { color: #f59e0b; }
.booking-rated { color: var(--brand-dark); font-weight: 600; align-self: center; }

.drawer-remove {
  background: transparent;
  border: 0;
}

.card-heart {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #6b7280;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.card-heart:hover {
  border-color: #fb7185;
  color: #be123c;
  background: #fff1f2;
}

.card-heart.is-liked {
  background: #fb7185;
  color: #fff;
  border-color: #fb7185;
}

.drawer-empty a {
  color: #0f766e;
  font-weight: 700;
}

.page-main {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 2.2rem);
}

.subpage-top {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto 0.9rem;
}

.subpage-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.subpage-home:hover {
  background: var(--brand-tint);
  border-color: var(--brand-soft);
  transform: translateX(-2px);
}

/* Themed in-page back buttons (provider results / offerings) — match "Back to home" */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--brand-dark);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-back::before { content: "\2190"; font-size: 1rem; line-height: 1; }
.nav-back:hover {
  background: var(--brand-tint);
  border-color: var(--brand-soft);
  transform: translateX(-2px);
}

.page-panel {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
}

.page-panel > h1 + p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 70ch;
}

.page-panel h1 {
  margin-top: 0;
}

.page-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-panel p + .page-actions {
  margin-top: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.field-wide {
  grid-column: 1 / -1;
}

.field-wide-on-desktop {
  grid-column: span 2;
}

form .form-grid + .btn {
  margin-top: 0.95rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.25;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: #9aa6b8; }

.field input:not([type="checkbox"]):not([type="radio"]):hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--brand-soft);
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select {
  height: 2.85rem;
}

.field textarea {
  min-height: 5.6rem;
  resize: vertical;
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-height: 0;
  margin: 0;
  accent-color: #0f766e;
}

.hint {
  font-size: 0.84rem;
  color: #64748b;
}

.notice {
  margin-top: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
}

.notice.ok {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.notice.warn {
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.timeout-warning {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.48);
}

.timeout-warning[hidden] {
  display: none;
}

.timeout-warning__panel {
  width: min(420px, 100%);
  border-radius: 12px;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
  padding: 1.2rem;
}

.timeout-warning__panel h2 {
  margin: 0 0 0.4rem;
}

.page-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.category-grid {
  display: grid;
  gap: 0.9rem;
}

.category-block {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.8rem;
  background: #f8fafc;
}

.category-block h4 {
  margin: 0 0 0.6rem;
}

.page-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.dashboard-section {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e2e8f0;
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.section-row h3,
.section-row p {
  margin: 0;
}

.dashboard-availability-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.booking-stats {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin: 1rem 0;
}

.booking-stats article {
  border: 1px solid var(--brand-soft);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0.8rem;
}

.booking-stats strong {
  display: block;
  font-size: 1.35rem;
  color: #0f172a;
}

.booking-stats span {
  color: #475569;
  font-size: 0.86rem;
}

.booking-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.booking-inline-actions {
  margin-top: -0.45rem;
  padding: 0 0.8rem 0.35rem;
}

.booking-card {
  background: var(--surface);
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: var(--border);
}

.booking-card--pending,
.booking-card--pending_payment {
  border-left-color: var(--accent);
}

.booking-card--confirmed,
.booking-card--completed {
  border-left-color: var(--brand);
}

.booking-card--declined,
.booking-card--cancelled {
  border-left-color: #ef4444;
}

.booking-card--pending .booking-status,
.booking-card--pending_payment .booking-status {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: rgba(245, 158, 11, 0.4);
}

.booking-card--confirmed .booking-status,
.booking-card--completed .booking-status {
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-color: var(--brand-soft);
}

.booking-card--declined .booking-status,
.booking-card--cancelled .booking-status {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.booking-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.booking-card__head h3 {
  margin: 0.35rem 0 0;
}

.booking-status {
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  border: 1px solid var(--brand-soft);
  padding: 0.16rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.events-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.event-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.event-card__poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-soft);
}

.event-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.event-card:hover .event-card__poster img { transform: scale(1.04); }

.event-card__date {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  box-shadow: var(--shadow-xs);
}

.event-card__type {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 28, 44, 0.62);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.6rem;
}

.event-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.event-card__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: 0;
}

.event-card__desc {
  margin: 0.1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-price {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.8rem;
}
.event-price--free {
  color: var(--brand-dark);
  background: var(--brand-tint);
  border-color: var(--brand-soft);
}

.event-empty { text-align: center; }
.event-empty h3 { margin: 0 0 0.4rem; }

/* Event publisher modal */
.event-publisher__panel { width: min(620px, 100%); }
.event-publisher__panel .customizer-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.event-publisher__panel .customizer-field-wide { grid-column: 1 / -1; }

.event-poster-field {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.event-poster-preview {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.event-poster-preview img { width: 100%; height: 100%; object-fit: cover; }
.event-poster-controls { display: grid; gap: 0.45rem; justify-items: start; }
.event-poster-upload { cursor: pointer; }

.event-ticketing {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 0.9rem 1rem;
  margin-top: 0.4rem;
}
.event-ticketing__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.event-ticketing__head h3 { margin: 0; font-size: 1.05rem; }
.event-free-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.event-free-toggle input { width: 1rem; height: 1rem; accent-color: var(--brand); }
.event-tickets-wrap { display: grid; gap: 0.5rem; margin-bottom: 0.6rem; }
.event-ticketing.is-free .event-tickets-wrap,
.event-ticketing.is-free [data-add-ticket] { display: none; }

.event-publisher__actions { align-items: center; }
.event-publisher__actions .spacer { flex: 1; }
.text-action.danger { color: #b91c1c; }

@media (max-width: 560px) {
  .event-publisher__panel .customizer-fields { grid-template-columns: 1fr; }
  .event-poster-field { grid-template-columns: 1fr; }
}

.calendar-toggle-row {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.calendar-toggle-row label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.dashboard-profile-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.dashboard-radius-card {
  grid-column: span 2;
}

.profile-form {
  margin: 1rem 0;
}

.dashboard-edit-card {
  cursor: pointer;
  position: relative;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.8rem;
  align-items: start;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}
.dashboard-edit-card:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  background: var(--brand-tint);
}
.edit-card__icon {
  grid-row: span 2;
  align-self: center;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand);
}
.dashboard-edit-card:hover .edit-card__icon { background: #fff; }
.edit-card__icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Tile label + value (Quick-links style) */
.dashboard-edit-card > h3 {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dashboard-edit-card > p {
  grid-column: 2;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}
.dashboard-edit-card > .dash-card-editor { grid-column: 1 / -1; }
.dashboard-edit-card__value--empty { color: var(--muted); font-weight: 500; font-style: italic; }
.dashboard-edit-card::after {
  content: "✎";
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  color: var(--brand);
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}
.dashboard-edit-card:hover::after { opacity: 0.7; }
.dashboard-edit-card:has(.dash-card-editor:not([hidden])) {
  border-color: var(--brand);
  box-shadow: var(--ring);
  cursor: default;
}
.dashboard-edit-card:has(.dash-card-editor:not([hidden]))::after { content: ""; }
.dashboard-edit-card.is-readonly { cursor: default; }
.dashboard-edit-card.is-readonly:hover { transform: none; background: var(--surface-soft); border-color: var(--border); box-shadow: none; }
.dashboard-edit-card.is-readonly::after { content: ""; }

.dash-card-editor {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.dash-card-editor label {
  font-weight: 700;
  color: #1e293b;
}

.dash-card-editor input,
.dash-card-editor textarea,
.profile-form input,
.profile-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.58rem 0.7rem;
  background: #fff;
  width: 100%;
}

.profile-form input:disabled,
.profile-form textarea:disabled {
  color: #334155;
  background: #f8fafc;
  cursor: default;
}

.profile-form.is-editing input,
.profile-form.is-editing textarea {
  background: #fff;
}

.dash-card-editor textarea {
  min-height: 86px;
  resize: vertical;
}

.dash-card-editor input[type="range"] {
  padding: 0;
  accent-color: #0f766e;
}

.page-card .btn {
  margin-top: 0.65rem;
}

.service-detail-block {
  margin-top: 0.7rem;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
}

.service-detail-block h4 {
  margin: 0 0 0.45rem;
}

.service-pricing-panel {
  padding: 1rem;
}

.service-builder-toolbar {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1.4fr auto;
  margin-bottom: 0.8rem;
}

.themed-select {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  min-height: 2.85rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding: 0.62rem 2.2rem 0.62rem 0.8rem;
  line-height: 1.25;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.themed-select:hover { border-color: var(--brand-soft); }
.themed-select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

.themed-input {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 2.85rem;
  padding: 0.6rem 0.8rem;
  line-height: 1.25;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.themed-input:hover { border-color: var(--brand-soft); }
.themed-input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

.service-pricing-grid {
  align-items: start;
}
.service-pricing-grid .svc-fullrow {
  grid-column: 1 / -1;
}
/* Keep each field's input at a consistent vertical position even when labels wrap,
   so paired fields line up cleanly. */
.service-pricing-grid .field > label:first-child {
  min-height: 2.4em;
  display: flex;
  align-items: flex-end;
}
.service-pricing-grid .field > label.calendar-toggle-row:first-child {
  min-height: 0;
  align-items: center;
}

.service-builder-block input,
.service-builder-block select,
.service-builder-block textarea {
  border-radius: 12px;
}

.service-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.service-tags-toolbar {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.4rem;
}

.service-tag-actions {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr 3.2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.tag {
  background: #dcfce7;
  border: 1px solid #6ee7b7;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tag span {
  cursor: pointer;
  font-weight: 700;
}

.pricing-service-block h5 {
  margin: 0.65rem 0 0.45rem;
  font-size: 0.95rem;
}

.pricing-option-row {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1.6fr 1fr auto;
  margin-bottom: 0.55rem;
  align-items: center;
}

.service-radius-wrap {
  border: 1px solid var(--brand-soft);
  background: linear-gradient(180deg, var(--brand-tint) 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 0.75rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.btn-compact {
  min-height: 2.2rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
}

.service-radius-wrap input[type="range"] {
  width: 100%;
  accent-color: #0d9488;
}

.radius-display {
  margin-top: 0.45rem;
  color: #065f46;
  font-size: 0.88rem;
}

.coverage-map {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.78rem;
}

.coverage-map__surface {
  position: relative;
  height: clamp(220px, 26vw, 360px);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e6f0f5;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.05);
}

.coverage-map__leaflet { position: absolute; inset: 0; }
.coverage-map__leaflet .leaflet-container { height: 100%; width: 100%; font-family: var(--font-ui); }

.coverage-map__offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}

.coverage-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.coverage-map__label {
  position: absolute;
  left: 0.55rem;
  top: 0.45rem;
  z-index: 2;
  font-weight: 900;
  color: #0f766e;
}

.coverage-map__pin,
.coverage-map__circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.coverage-map.has-location .coverage-map__pin,
.coverage-map.has-location .coverage-map__circle {
  opacity: 1;
}

.coverage-map__pin {
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff;
  border-radius: 999px 999px 999px 0;
  background: #dc2626;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.4);
  transform: translate(-50%, -100%) rotate(-45deg);
}

.coverage-map__circle {
  border: 2px solid rgba(8, 145, 178, 0.72);
  background: rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  aspect-ratio: 1;
  width: min(72%, 16rem);
  height: auto !important;
  transition: width 0.18s ease, left 0.18s ease, top 0.18s ease;
}

.coverage-map a {
  color: #0f766e;
  font-weight: 700;
}

.dashboard-total-row {
  margin-top: 0.7rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.65rem;
}

.dashboard-cart-item {
  max-height: none !important;
}

.dashboard-offering-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.dashboard-offering-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 0.7rem;
}

.dashboard-offering-card > .page-actions {
  margin-top: auto;
  padding-top: 0.7rem;
}

.service-image-preview {
  margin-top: 0.45rem;
}

.service-image-preview img {
  width: min(220px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.availability-calendar {
  border: 1px solid #bde8e2;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.75rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.calendar-weekdays span {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  font-weight: 800;
}

.calendar-cell {
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  min-height: 2.4rem;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.calendar-cell.is-empty {
  border: 0;
  background: transparent;
}

.calendar-cell.is-weekend {
  background: #f1f5f9;
}

.calendar-cell.is-blocked {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}

.calendar-cell.is-selected {
  background: #f97316;
  color: #fff;
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.22);
}

.calendar-cell.is-past {
  opacity: 0.42;
  cursor: not-allowed;
}

.calendar-recurring {
  margin: 0.4rem 0;
  color: #115e59;
  font-weight: 800;
  font-size: 0.86rem;
}

.availability-detail {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
}

.availability-detail[hidden] {
  display: none;
}

.availability-detail h4 {
  margin: 0;
}

.availability-detail__item {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.btn.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.availability-legend {
  margin-top: 0.4rem;
  color: #64748b;
  font-size: 0.84rem;
}

.availability-legend span {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 4px;
  background: #0f766e;
  margin-right: 0.35rem;
}

.property {
  border: 1px solid var(--border);
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  position: relative;
  background: var(--surface);
  display: grid;
  gap: 0.4rem;
}

.property input,
.property select,
.property textarea {
  width: 100%;
  display: block;
  margin: 0;
}

.property.mandatory {
  border-style: solid;
  border-color: var(--brand-soft);
  background: var(--brand-tint);
}

.property.optional {
  background: var(--surface-soft);
}

[data-optional-container] {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.65rem;
}

.delete {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
}

.icon-delete {
  border: 0;
  background: transparent;
  color: #94a3b8;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.icon-delete:hover,
.icon-delete:focus-visible {
  background: #fee2e2;
  color: #dc2626;
}

.icon-delete.is-liked {
  background: #ffe4e6;
  color: #e11d48;
}

.icon-delete {
  position: relative;
  z-index: 2;
}
.icon-delete svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  pointer-events: none;
}

.property .badge {
  display: inline-block;
  font-size: 0.74rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

.property label {
  line-height: 1.3;
}

.property .badge.req {
  background: #fee2e2;
  color: #991b1b;
}

.property .badge.opt {
  background: #dcfce7;
  color: #14532d;
}

.pricing-option-row input,
.pricing-option-row select {
  border-radius: 10px;
  border: 1px solid #93c5fd;
  background: #fff;
}

.btn-inline {
  margin-top: 0.6rem;
  justify-self: start;
}

.option-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.option-grid .page-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
}

.dynamic-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.dynamic-option-row input {
  flex: 1 1 170px;
  height: 2.55rem;
}

.btn-mini {
  border: 0;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

.service-detail-block .field + .field {
  margin-top: 0.6rem;
}

#businessRegisterForm > .btn.btn-primary {
  margin-top: 1rem;
}

#businessRegisterForm {
  display: grid;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.is-visible {
  opacity: 1;
  transform: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .nav-center {
    display: none;
  }

  /* Hamburger goes to the far LEFT, before the Serv YU wordmark; the brand then
     pushes the account icons to the right. */
  .mobile-menu-btn {
    display: inline-flex;
    order: -1;
  }
  .brand { margin-right: auto; margin-left: 0.15rem; }

  .foot {
    grid-template-columns: 1fr;
  }

  .session-badge {
    display: none;
  }
}

@media (max-width: 720px) {
  .field-wide-on-desktop,
  .dashboard-radius-card {
    grid-column: 1 / -1;
  }

  .container {
    width: min(var(--maxw), 100% - 1.3rem);
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button {
    width: 100%;
  }

  .pricing-option-row {
    grid-template-columns: 1fr;
  }

  .service-builder-toolbar {
    grid-template-columns: 1fr;
  }

  .service-tag-actions {
    grid-template-columns: 1fr;
  }

  .offer-drawer {
    right: 0;
  }
}

/* ============================================================
   Add-Business Wizard
   ============================================================ */
.sr-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow-dark {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: rgba(217, 119, 6, 0.4);
  backdrop-filter: none;
}

.wizard-hero {
  display: grid;
  gap: 0.55rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(245, 158, 11, 0.1), transparent 55%),
    linear-gradient(180deg, var(--brand-tint), var(--surface));
  border-color: var(--brand-soft);
}
.wizard-hero .eyebrow { margin-inline: 0; }
.wizard-hero h1 { margin: 0; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.wizard-hero p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Branded hero banner (matches the sign-in brand panel) */
.wizard-hero-banner {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto 1.4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  padding: clamp(1.6rem, 3.4vw, 2.8rem);
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(130% 130% at 0% 0%, rgba(245, 158, 11, 0.32), transparent 52%),
    linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 68%, #06302c 100%);
}
.wizard-hero-banner__content { display: grid; gap: 0.7rem; max-width: 760px; }
.wizard-hero-banner .eyebrow { margin-inline: 0; }
.wizard-hero-banner h1 { margin: 0; color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.wizard-hero-banner p { margin: 0; color: rgba(255, 255, 255, 0.88); max-width: 60ch; font-size: 1.05rem; }
.wizard-hero-points { margin-top: 0.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .wizard-hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.4rem; }
}

/* Dashboard hero (banner + quick actions) */
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.dashboard-hero .wizard-hero-banner__content { gap: 0.5rem; }
.dashboard-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.dashboard-hero #businessWelcome,
.dashboard-hero #clientWelcome { font-weight: 600; }
.dashboard-hero__sub { color: rgba(255, 255, 255, 0.82) !important; font-size: 0.98rem !important; }
.dashboard-hero__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.dashboard-hero__actions .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.dashboard-hero__actions .btn-secondary:hover { background: rgba(255, 255, 255, 0.24); }

.dashboard-section-title {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.biz-wizard { display: grid; gap: 1.4rem; }

.wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.wizard-stepper-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.2rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease);
}
.wizard-stepper-item:hover { color: var(--ink-soft); }

.wizard-dot {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--muted);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.24s var(--ease);
}

.wizard-stepper-item.is-active { color: var(--ink); }
.wizard-stepper-item.is-active .wizard-dot {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--ring);
}
.wizard-stepper-item.is-done .wizard-dot {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.wizard-stepper-item.is-done .wizard-dot::after { content: "✓"; }
.wizard-stepper-item.is-done .wizard-dot { font-size: 0; }
.wizard-stepper-item.is-done .wizard-dot::after { font-size: 0.95rem; }

.wizard-progress {
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
}
#wizardProgressBar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.4s var(--ease);
}

/* Split-panel wizard (matches the sign-in reference) */
/* The green panel FILLS the whole left column (stretch); its CONTENT sticks and
   follows the scroll (like the services filters rail). The shell must not clip for
   the inner sticky to track the page scroll. */
.auth-shell.wizard-shell { align-items: stretch; overflow: visible; }
.auth-brandside.wizard-brandside {
  justify-content: flex-start;
  gap: 1.1rem;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.wizard-brandside__inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: sticky;
  top: calc(var(--nav-h, 64px) + 1rem);
}
@media (max-width: 820px) {
  .wizard-brandside { border-radius: 0; }
  .wizard-brandside__inner { position: static; }
}
.wizard-brandside h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.wizard-brandside #businessSetupIntro { color: rgba(255, 255, 255, 0.85); }
.wizard-brandside .auth-points { margin-top: 0.4rem; }
.wizard-brandside .wizard-progress { background: rgba(255, 255, 255, 0.18); }
/* Contextual per-step tips swapped in by the wizard */
.wizard-brandside .auth-points li { transition: opacity 0.25s var(--ease); }

.wizard-steps--vertical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  margin: 0.3rem 0 0.2rem;
}
.wizard-steps--vertical .wizard-stepper-item {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
}
.wizard-steps--vertical .wizard-stepper-item:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.wizard-steps--vertical .wizard-stepper-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: -0.35rem;
  height: 0.55rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.wizard-brandside .wizard-dot {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.wizard-brandside .wizard-stepper-item.is-active { color: #fff; }
.wizard-brandside .wizard-stepper-item.is-active .wizard-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #3a2400;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}
.wizard-brandside .wizard-stepper-item.is-done .wizard-dot {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  color: var(--brand-deep);
}
.wizard-shell .auth-formside { padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--surface); }
@media (max-width: 820px) {
  .wizard-shell .auth-formside { border-radius: 0; }
}
.wizard-shell .auth-formside form { gap: 1.3rem; }

@media (max-width: 760px) {
  /* Keep the stepper visible on mobile (unlike the sign-in brandside). */
  .wizard-shell .wizard-brandside { display: flex; }
  .wizard-brandside .auth-points { display: none; }
  .wizard-steps--vertical { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .wizard-steps--vertical .wizard-stepper-item { flex-direction: column; text-align: center; gap: 0.3rem; font-size: 0.78rem; }
  .wizard-steps--vertical .wizard-stepper-item:not(:first-child)::before { display: none; }
}

.wizard-step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  animation: wizardFade 0.4s var(--ease);
}
.wizard-step:not(.is-active) { display: none; }

@keyframes wizardFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.wizard-step-head { margin-bottom: 1rem; }
.wizard-step-head h3 { margin: 0 0 0.2rem; font-size: 1.35rem; }
.wizard-step-head .meta { margin: 0; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.wizard-nav #wizardBack { margin-right: auto; }
.wizard-nav #wizardNext { margin-left: auto; }

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14) !important;
}
.req-star { color: var(--accent-deep, #b45309); font-weight: 800; }
.attach-note { margin: 0 0 1.1rem; }
.pay-secure-note { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--muted); }

/* Units-left availability badge on offering cards */
.units-left {
  margin: 0.1rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.units-left::before { content: "●"; color: var(--brand); font-size: 0.6rem; }
.units-left--low { color: var(--accent-deep, #b45309); }
.units-left--low::before { color: var(--accent); }

/* Booking-sent confirmation modal */
.booking-sent { width: min(440px, 100%); text-align: center; padding: 1.9rem 1.6rem; }
.booking-sent__icon {
  display: inline-grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 0.7rem;
}
.booking-sent__icon svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.booking-sent h2 { margin: 0 0 0.45rem; font-size: 1.5rem; }
.booking-sent__msg { color: var(--muted); margin: 0 0 1.2rem; line-height: 1.55; }
.booking-sent__actions { display: flex; justify-content: center; }
.booking-sent__actions .btn { min-width: 10rem; }

/* Themed file inputs everywhere (replaces the default OS "Choose File" look) */
input[type="file"] {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
  width: 100%;
  padding: 0.45rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
input[type="file"]:hover { border-color: var(--brand-soft); background: var(--brand-tint); }
input[type="file"]:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: filter 0.18s var(--ease), transform 0.18s var(--ease);
}
input[type="file"]::file-selector-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.field.is-invalid [data-subcategory-picker] { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14); }

/* Review step */
.wizard-review {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.review-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 1rem 1.1rem;
}
.review-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.review-group__head h4 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.review-row {
  display: grid;
  grid-template-columns: minmax(8rem, 30%) 1fr;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-top: 1px dashed var(--border);
  font-size: 0.94rem;
}
.review-row:first-of-type { border-top: 0; }
.review-label { color: var(--muted); font-weight: 600; }
.review-value { color: var(--ink); word-break: break-word; }
.review-empty { color: #9aa6b8; }
.review-chip {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--brand-tint);
  color: var(--brand-dark);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.55rem;
  margin: 0.1rem 0.15rem 0.1rem 0;
}

@media (max-width: 680px) {
  .wizard-step-label { display: none; }
  .wizard-steps { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .review-row { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ============================================================
   Forum
   ============================================================ */
.forum-compose-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 0.4rem 1rem;
}
.forum-compose-summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.7rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.forum-compose-summary::-webkit-details-marker { display: none; }
.forum-compose-summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 800;
  transition: transform 0.24s var(--ease);
}
.forum-compose-wrap[open] .forum-compose-summary::before { transform: rotate(45deg); }
.forum-compose { padding-bottom: 0.8rem; }

.forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.forum-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.forum-filter-chip {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  padding: 0.34rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.forum-filter-chip:hover { border-color: var(--brand-soft); color: var(--brand-dark); }
.forum-filter-chip.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: var(--brand);
  color: #fff;
}
.forum-sort { display: flex; align-items: center; gap: 0.5rem; }
.forum-sort label { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.forum-sort select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  height: 2.4rem;
  background: var(--surface);
  font-family: var(--font-ui);
}

.forum-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-pill);
  padding: 0.14rem 0.55rem;
}
.forum-post .forum-chip { margin-bottom: 0.4rem; }

.reddit-post {
  grid-template-columns: 2.8rem minmax(0, 1fr);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.reddit-post:hover { box-shadow: var(--shadow-soft); border-color: var(--brand-soft); }

.reddit-votes {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0;
  align-self: start;
}
.reddit-votes strong { font-size: 0.95rem; color: var(--ink); }
.reddit-votes .score-pos { color: var(--brand-dark); }
.reddit-votes .score-neg { color: #b91c1c; }
.vote-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: color 0.15s var(--ease), background 0.15s var(--ease), transform 0.1s var(--ease);
}
.vote-btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.vote-btn:hover { background: rgba(15, 118, 110, 0.1); color: var(--brand); }
.vote-btn:active { transform: scale(0.9); }
.vote-btn.is-active.up { color: var(--brand); background: var(--brand-tint); }
.vote-btn.is-active.down { color: #dc2626; background: rgba(220, 38, 38, 0.1); }

.reddit-actions button svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reddit-actions button {
  color: var(--brand-dark);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  font-weight: 600;
}
.reddit-actions button:hover { background: var(--brand-tint); border-color: var(--brand-soft); }

.reddit-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.2rem; }
.reddit-text { margin: 0.3rem 0 0; color: var(--ink-soft); white-space: pre-wrap; }
.reddit-actions button { font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.reddit-actions button:hover { color: var(--brand-dark); }

.reddit-replies {
  margin-top: 0.7rem;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
  display: grid;
  gap: 0.55rem;
}
.reddit-reply {
  border-left: 2px solid var(--brand-soft);
  padding: 0.1rem 0 0.1rem 0.7rem;
}
.reddit-reply p { margin: 0.1rem 0; }
.reddit-reply-form { display: grid; gap: 0.45rem; justify-items: start; }
.reddit-reply-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-family: var(--font-ui);
  resize: vertical;
}
.reddit-reply-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

/* ============================================================
   Auth pages (sign in / register)
   ============================================================ */
.auth-page { display: flex; flex-direction: column; }
.auth-shell {
  width: min(960px, 100% - 2rem);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.auth-shell--wide { width: min(1080px, 100% - 2rem); grid-template-columns: 1fr 1.3fr; }

.auth-brandside {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(245, 158, 11, 0.28), transparent 55%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 70%, #06302c 100%);
}
.auth-brandside .eyebrow { margin-inline: 0; }
.auth-brandside h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
}
.auth-brandside p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.auth-points { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.auth-points li {
  position: relative;
  padding-left: 1.7rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}
.auth-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #3a2400;
  font-size: 0.72rem;
  font-weight: 900;
}
.auth-aside-note { margin-top: 0.8rem; font-size: 0.92rem; }
.auth-aside-note a { color: var(--accent-soft); font-weight: 700; }

.auth-formside { padding: clamp(1.6rem, 3vw, 2.6rem); }
.auth-formside h1 { margin: 0 0 0.2rem; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.auth-sub { margin: 0 0 1rem; color: var(--muted); }
.auth-demo {
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  margin-bottom: 1rem;
}
.auth-formside form { display: grid; gap: 0.9rem; }
.auth-submit { width: 100%; margin-top: 0.4rem; padding-block: 0.85rem; }
.auth-switch { margin-top: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.auth-switch a { color: var(--brand-dark); font-weight: 700; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-google {
  width: 100%;
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-google:hover { background: var(--surface-soft); border-color: var(--brand-soft); }
.btn-google svg { width: 1.15rem; height: 1.15rem; }

@media (max-width: 820px) {
  .auth-shell, .auth-shell--wide { grid-template-columns: 1fr; }
  /* Sign-in / register: keep a compact branded header stacked on top. The shell's
     overflow:hidden + radius clip its top corners, so it stays nicely rounded. */
  .auth-shell:not(.wizard-shell) > .auth-brandside {
    display: flex;
    padding: 1.5rem 1.4rem;
    text-align: left;
  }
  .auth-shell:not(.wizard-shell) > .auth-brandside p,
  .auth-shell:not(.wizard-shell) > .auth-brandside .auth-points { display: none; }
  .auth-shell:not(.wizard-shell) > .auth-brandside { min-width: 0; }
  .auth-shell:not(.wizard-shell) > .auth-brandside h2 { font-size: clamp(1.3rem, 5.5vw, 1.7rem); overflow-wrap: break-word; }
  /* The multi-step wizard hides its side panel on mobile (the form carries the steps). */
  .wizard-shell > .auth-brandside { display: none; }
}

/* ============================================================
   Services — provider results + offerings (the money flow)
   ============================================================ */
.provider-panel__head {
  background: linear-gradient(135deg, var(--brand-tint), var(--surface));
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.provider-panel__head h3 { font-size: 1.4rem; }

.provider-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
}

#servicesGrid.grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.provider-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}
.provider-result-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-soft);
}

.provider-result-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}
.provider-result-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.provider-result-card:hover .provider-result-card__media img { transform: scale(1.06); }
.provider-result-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 40, 38, 0.42));
}
.provider-result-card__cat {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  box-shadow: var(--shadow-xs);
}

.provider-result-card__body {
  padding: 0.9rem 1.1rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.provider-result-card__body h3 {
  margin: 0;
  font-size: 1.16rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.provider-result-card__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.provider-result-card__footer {
  padding: 0.6rem 1.1rem 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.provider-price { display: grid; line-height: 1.15; }
.provider-price small { color: var(--muted); font-size: 0.72rem; }
.provider-price strong { font-size: 1.3rem; color: var(--brand-dark); font-family: var(--font-display); }
.provider-result-card__cta { display: flex; align-items: center; gap: 0.6rem; }

/* Offerings drawer cards */
.offer-drawer .drawer-list { display: grid; gap: 0.7rem; }
.offering-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.offering-card:hover { box-shadow: var(--shadow-soft); border-color: var(--brand-soft); }
.offering-card__media { position: relative; background: var(--surface-soft); }
.offering-card__media img { width: 100%; height: 100%; object-fit: cover; min-height: 130px; }
.offering-like {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  color: #64748b;
  transition: transform 0.15s var(--ease), color 0.15s var(--ease);
}
.offering-like svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.offering-like:hover { transform: scale(1.08); }
.offering-like.is-liked { color: #e11d48; }

.offering-card__body { padding: 0.7rem 0.8rem 0.8rem 0; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.offering-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.offering-card__head h4 { margin: 0; font-size: 1rem; font-family: var(--font-ui); font-weight: 700; }
.offering-price-chip {
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: var(--radius-pill);
  padding: 0.16rem 0.55rem;
  white-space: nowrap;
}
.offering-card__notes { margin: 0.1rem 0; color: var(--ink-soft); font-size: 0.88rem; }
.offering-card__actions { margin-top: auto; padding-top: 0.4rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }

@media (max-width: 520px) {
  .offering-card { grid-template-columns: 88px minmax(0, 1fr); }
}

/* Inline offerings view (replaces the old right-side drawer) */
.offerings-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand-tint), var(--surface));
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.1rem;
}
.offerings-head #offeringsBack { order: 2; margin-left: auto; }
.offerings-head .offerings-share { order: 3; flex: 0 0 auto; }
.offerings-head__text { display: grid; gap: 0.1rem; }
.offerings-head__text h3 { margin: 0; font-size: 1.3rem; }
.offerings-head__text .meta { margin: 0; }

.offerings-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}
.offerings-grid .offering-card { grid-template-columns: 130px minmax(0, 1fr); }
.offerings-grid .offering-card__media img { min-height: 100%; }
@media (max-width: 520px) {
  .offerings-grid .offering-card { grid-template-columns: 96px minmax(0, 1fr); }
}

/* ============================================================
   Add-a-Service builder (Add-Business step 3)
   ============================================================ */
.service-builder-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-tint), var(--surface));
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.service-builder-toolbar .themed-select { flex: 1; min-width: 200px; }

.svc-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.1rem;
  display: block;
}

.svc-block__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}
.svc-block__title { display: grid; gap: 0.3rem; }
.svc-block__badge {
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-pill);
  padding: 0.16rem 0.6rem;
}
.svc-block__header h4 { margin: 0; color: #fff; font-size: 1.2rem; }
.svc-block__header .icon-delete {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex: 0 0 auto;
}
.svc-block__header .icon-delete:hover { background: rgba(255, 255, 255, 0.28); }

.svc-block__section {
  padding: 1.1rem 1.2rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
}
.svc-block__section:first-of-type { border-top: 0; }

.svc-block__legend {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.svc-block__legend span {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
}
.svc-block__legend-sm {
  margin: 0.2rem 0 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.service-tag-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.service-tag-actions .themed-select { flex: 1; min-width: 180px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-row:empty { display: none; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--brand-tint);
  color: var(--brand-dark);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-pill);
  padding: 0.26rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
}
.tag span[data-remove-subcategory] {
  cursor: pointer;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.tag span[data-remove-subcategory]:hover { color: #b91c1c; }

.pricing-config {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.55rem;
}
.pricing-option-row {
  display: grid;
  grid-template-columns: 1fr 9rem auto;
  gap: 0.5rem;
  align-items: center;
}

.mandatory-properties { display: grid; gap: 0.7rem; }
.property {
  position: relative;
  display: grid;
  gap: 0.3rem;
}
.property > label { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.4rem; }
.property .badge.req,
.property .badge.opt {
  font-size: 0.62rem;
  padding: 0.08rem 0.45rem;
}
.property .badge.req { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid rgba(245,158,11,0.4); }
.property .badge.opt { background: var(--surface-soft); color: var(--muted); border: 1px solid var(--border-strong); }
.property.optional {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
}
.property.optional .icon-delete.delete { position: absolute; top: 0.4rem; right: 0.4rem; width: 1.8rem; height: 1.8rem; }

.svc-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.service-image-preview { margin-top: 0.4rem; }
.service-image-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

@media (max-width: 560px) {
  .svc-photos { grid-template-columns: 1fr; }
  .pricing-option-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Dashboards (uniform layout for client + business)
   ============================================================ */
.dashboard-page { padding-bottom: 1rem; }

.dash-wrap {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto 2.5rem;
  display: grid;
  gap: 1.3rem;
}

/* KPI stat cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1rem;
}
.dash-kpi {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.dash-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.dash-kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
a.dash-kpi { text-decoration: none; color: inherit; cursor: pointer; }
a.dash-kpi:hover { border-color: var(--brand-soft); }
a.dash-kpi::after {
  content: "→";
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  color: var(--brand);
  font-weight: 800;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
a.dash-kpi:hover::after { opacity: 1; transform: translateX(0); }
.dash-kpi__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 0.4rem;
}
.dash-kpi__icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-kpi--accent .dash-kpi__icon { background: var(--accent-soft); color: var(--accent-strong, #b45309); }
.dash-kpi__value { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--ink); }
.dash-kpi__label { color: var(--muted); font-size: 0.85rem; font-weight: 500; }

/* Section grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}
.dash-section {
  grid-column: span 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dash-section--wide { grid-column: 1 / -1; }
.dash-section[id] { scroll-margin-top: 1.5rem; }
.dash-section.kpi-flash { animation: kpiFlash 1.1s var(--ease); }
@keyframes kpiFlash {
  0%, 100% { box-shadow: var(--shadow-soft); }
  30% { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-md); }
}

.dash-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.dash-section__head h3 { margin: 0; font-size: 1.2rem; }
.dash-section__head .meta { margin: 0.15rem 0 0; }
.dash-section__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

/* Quick-link tiles */
.dash-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0.8rem;
}
.dash-quick__tile {
  display: grid;
  gap: 0.15rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.dash-quick__tile span {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 0.4rem;
}
.dash-quick__tile span svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-quick__tile strong { color: var(--ink); font-size: 0.98rem; }
.dash-quick__tile small { color: var(--muted); }
.dash-quick__tile:hover { transform: translateY(-3px); border-color: var(--brand-soft); background: var(--brand-tint); }
.dash-quick__tile:hover span { background: #fff; }

.dash-offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.dash-signout { justify-content: flex-end; }

/* Profile tiles inside dashboards */
.dash-section .dashboard-profile-grid { margin-top: 0; }
.dash-section .profile-form { display: block; }

@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Availability calendar (booking date picker, greys booked days)
   ============================================================ */
.avail-cal {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 0.7rem 0.8rem 0.8rem;
  user-select: none;
}
.avail-cal .cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.avail-cal .cal-head strong {
  font-family: var(--font-display, inherit);
  font-size: 1rem;
  color: var(--ink);
}
.avail-cal .cal-nav {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--brand-soft, var(--border));
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--brand);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease, ease), color 0.15s var(--ease, ease);
}
.avail-cal .cal-nav:hover:not([disabled]) { background: var(--brand); color: #fff; }
.avail-cal .cal-nav[disabled] { opacity: 0.35; cursor: not-allowed; }
.avail-cal .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.avail-cal .cal-cell {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  border-radius: 10px;
}
.avail-cal .cal-wd {
  aspect-ratio: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 0.15rem;
}
.avail-cal .cal-empty { visibility: hidden; }
.avail-cal .cal-day {
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.12s var(--ease, ease), color 0.12s var(--ease, ease), border-color 0.12s var(--ease, ease);
}
.avail-cal .cal-day:hover:not(.is-disabled):not(.is-selected) {
  border-color: var(--brand);
  color: var(--brand);
}
.avail-cal .cal-day.is-range {
  background: rgba(15, 118, 110, 0.14);
  border-color: rgba(15, 118, 110, 0.25);
  color: var(--brand-dark, var(--brand));
}
.avail-cal .cal-day.is-selected {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.avail-cal .cal-day.is-disabled {
  color: var(--muted);
  background: repeating-linear-gradient(
    -45deg,
    var(--surface-soft),
    var(--surface-soft) 4px,
    rgba(100, 116, 139, 0.14) 4px,
    rgba(100, 116, 139, 0.14) 8px
  );
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.75;
}
/* Provider manually closed (weekends / calendar block) — reddish hatch to tell it
   apart from a plain "fully booked" grey. */
.avail-cal .cal-day.is-blocked {
  background: repeating-linear-gradient(
    -45deg,
    #fff5f4,
    #fff5f4 4px,
    rgba(220, 38, 38, 0.16) 4px,
    rgba(220, 38, 38, 0.16) 8px
  );
  color: #b91c1c;
}
/* Some units booked but still bookable — amber, still clickable. */
.avail-cal .cal-day.is-partial:not(.is-selected):not(.is-range) {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--accent-deep, #b45309);
  position: relative;
}
.avail-cal .cal-day.is-partial:not(.is-selected)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #f59e0b);
}
.avail-cal .cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.55rem;
  font-size: 0.76rem;
  color: var(--muted);
}
.avail-cal .cal-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.avail-cal .cal-swatch { width: 0.85rem; height: 0.85rem; border-radius: 4px; display: inline-block; }
.avail-cal .cal-swatch--blocked { background: repeating-linear-gradient(-45deg, #fff5f4, #fff5f4 2px, rgba(220,38,38,0.4) 2px, rgba(220,38,38,0.4) 4px); }
.avail-cal .cal-swatch--partial { background: rgba(245, 158, 11, 0.5); border: 1px solid rgba(245, 158, 11, 0.7); }
.avail-cal .cal-summary {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark, var(--brand));
}
