/* Page background for the content area */
.layout__content--my-listings {
  background: #f6f8fc;
  min-height: 100vh;
  padding: 32px 48px 48px;
}

/* Header */
.ml-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.ml-header__title {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  color: #1a1f36;
}

.ml-header__subtitle {
  margin: 4px 0 0;
  font-size: 16px;
  color: #6b7280;
}

.ml-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #00c6ff, #00e59b);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 199, 255, 0.35);
}

.ml-header__cta-icon {
  font-size: 18px;
}

/* Layout grids */
.ml-grid-top {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 24px;
  margin-bottom: 24px;
}

.ml-grid-bottom {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 24px;
}

/* Main listing card */
.listing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.listing-card__plate-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Hero plate – big version of the marketplace plate */
.listing-card__plate {
  background: #DEDE17;
  border-radius: 13px;
  border: 1px solid #d3e71f;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);

  width: 100%;
  max-width: 520px;       /* keep it nice and wide */
  height: 100px;           /* taller than marketplace */
  padding-inline: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-card__plate-text {
  font-family: "UKNumberPlate", "UKNumberPlate Regular", sans-serif;
  font-weight: 500;
  font-size: 80px;        /* big, but proportional */
  line-height: 1;
  white-space: nowrap;

 /* same spacing as marketplace */
  word-spacing: 0;

  text-transform: uppercase;
  color: #111827;
  text-align: center;
}


.listing-card__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e6fff2;
  color: #059669;
  font-size: 13px;
  font-weight: 500;
}

.listing-card__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

/* Price + duration row */
.listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}

.listing-card__meta-block {
  min-width: 160px;
}

.listing-card__meta-label {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.listing-card__meta-value {
  font-size: 22px;
  font-weight: 600;
  color: #111827;
}

/* Stats row */
.listing-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;

  border: 1px solid #e5e7eb;   /* NEW: 1px grey border */
}


.stat-card__label {
  font-size: 13px;
  color: #9ca3af;
}

.stat-card__value {
  font-size: 22px;
  font-weight: 600;
  color: #111827;
}

.stat-card--accent {
  background: #e6fbff;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.stat-card__label {
  font-size: 13px;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Icon container */
.stat-card__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b7280;        /* default icon colour (matches muted label) */
}

/* Let the SVG fill the box cleanly */
.stat-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Optional accent colours per stat type */
.stat-card__icon--pink {
  color: #ec4899;       /* saves / heart */
}

.stat-card__icon--blue {
  color: #0ea5e9;       /* offers / upward arrow */
}


/* Actions row */
.listing-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn-secondary,
.btn-danger {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background: #f3f4f6;
  color: #111827;
}

.btn-danger {
  margin-left: auto;
  background: #fee2e2;
  color: #b91c1c;
}

/* Trend card */
.trend-card {
  background: #e6fbff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trend-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-card__icon {
  font-size: 18px;
}

.trend-card__title {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.trend-card__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #0369a1;
}

.trend-card__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 130px;
  margin-top: 6px;
}

.trend-card__bar {
  flex: 1;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #22d3ee, #0ea5e9);
}

.trend-card__bar--1 { height: 45%; }
.trend-card__bar--2 { height: 55%; }
.trend-card__bar--3 { height: 60%; }
.trend-card__bar--4 { height: 70%; }
.trend-card__bar--5 { height: 80%; }
.trend-card__bar--6 { height: 90%; }

.trend-card__summary-label {
  font-size: 12px;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 4px;
}

.trend-card__summary-text {
  font-size: 13px;
  color: #0f172a;
}

/* AI summary card */
.ai-card {
  background: #fef3ff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 14px 32px rgba(217, 70, 239, 0.25);
}

.ai-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  color: #581c87;
}

.ai-card__body {
  margin: 0 0 10px;
  font-size: 14px;
  color: #6b21a8;
}

.ai-card__bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #4c1d95;
}

/* Performance card */
.perf-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.perf-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #111827;
}

.perf-card__stats {
  margin: 0;
}

.perf-card__stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.perf-card__stats dt {
  font-size: 13px;
  color: #9ca3af;
}

.perf-card__stats dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

/* Active sub-item colouring in the sidebar */
.side-nav__item--sub-active .side-nav__label,
.side-nav__item--sub-active .side-nav__menu-icon--svg svg {
  color: #00D3F2;
}

.listing-card__status-subtext {
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}


.badge--countered {
  background: #f97316; /* orange */
  color: #fff;
}

.price--old {
  text-decoration: line-through;
  color: #9ca3af; /* grey */
  margin-right: 0.5rem;
}

.price--counter {
  font-weight: 700;
  color: #000;
}

.offer-subtext {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}


/* price row so old+new sit nicely */
.offer-card__price-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

/* old price – grey + strikethrough */
.offer-card__price--old {
  color: #9ca3af;        /* grey */
  text-decoration: line-through;
}

/* container for pill + subtext (top-right block) */
.offer-card__price-status {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.offer-card__status-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* keep pill in top-right */
}

/* little grey caption under COUNTERED */
.offer-card__status-subtext {
  margin-top: 4px;
  font-size: 12px;
  color: #9ca3af;
}

.offer-card__price--muted {
  color: #b5bdc5; /* light grey */
}

.offer-card__price--struck {
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.offer-card__note {
  font-size: 0.9rem;
  margin-top: 0.25rem;
  color: #6b7280; /* soft grey; tweak to taste */
}

/* Coming soon / blurred cards */
.trend-card,
.ai-card {
  position: relative;
  overflow: hidden;
}

/* Blur the content and disable interaction */
.trend-card--disabled .trend-card__content,
.ai-card--disabled .ai-card__content {
  filter: blur(4px);
  pointer-events: none;
}

/* Shared "Coming Soon" pill */
.trend-card--disabled::after,
.ai-card--disabled::after {
  content: "Coming soon";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.88);
  color: #f9fafb;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);

  z-index: 1;
}


/* Empty state when user has no listings */
.ml-empty-state {
  margin-top: 24px;
}

.ml-empty-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 32px 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.ml-empty-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.ml-empty-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  max-width: 460px;
}

.ml-empty-cta {
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #00c6ff, #00e59b);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 199, 255, 0.35);
}

/* ---------- Create Listing Modal ---------- */

.ml-create-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.ml-create-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
}

.ml-create-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 28px 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.ml-create-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.ml-create-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: #6b7280;
}

.ml-create-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ml-create-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #4b5563;
}

.ml-create-field input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  background: #f9fafb;
}

.ml-create-field input:focus {
  border-color: #22c55e;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.ml-create-hint {
  font-weight: 400;
  color: #9ca3af;
  margin-left: 4px;
}

.ml-create-price-wrapper {
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding-right: 12px;
}

.ml-create-price-prefix {
  padding-left: 14px;
  padding-right: 4px;
  font-size: 14px;
  color: #6b7280;
}

.ml-create-price-wrapper input {
  border: none;
  background: transparent;
  padding-left: 4px;
  padding-right: 0;
  box-shadow: none;
}

.ml-create-error {
  margin: 0;
  font-size: 13px;
  color: #b91c1c;
}

.ml-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.ml-create-btn {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.ml-create-btn--ghost {
  background: #f3f4f6;
  color: #374151;
}

.ml-create-btn--primary {
  background: linear-gradient(135deg, #00c6ff, #00e59b);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 199, 255, 0.35);
}

/* Header row wrapper (desktop-safe) */
.ml-header__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile dashboard dropdown (hidden by default; shown in mobile media query) */
.mobile-dash {
  display: none;
  position: relative;
}

.mobile-dash__btn {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  cursor: pointer;
}

.mobile-dash__menu {
  position: absolute;
  top: 52px;
  right: 0;
  width: 240px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  z-index: 200;
}

.mobile-dash__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.90);
}

.mobile-dash__item:active {
  transform: translateY(1px);
}

.mobile-dash__item:hover {
  background: rgba(255,255,255,0.08);
}

.mobile-dash__label {
  font-size: 14px;
  font-weight: 600;
}

/* ---------------- Mobile-only (match Reg Marketplace behaviour) ---------------- */
@media (max-width: 768px) {
  /* Hide sidebar, keep content full-width */
  #side-nav {
    display: none !important;
  }

  .layout {
    display: block;
  }

  .layout__content--my-listings {
    padding: 18px 16px 120px; /* bottom padding so bottom nav doesn’t cover content */
    min-height: auto;
  }

  /* Header becomes stacked; CTA goes under subtitle */
  .ml-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }

  .ml-header__row {
    align-items: flex-start;
    justify-content: space-between;
  }

  .mobile-dash {
    display: block;
  }

  .ml-header__cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Grids become single-column */
  .ml-grid-top,
  .ml-grid-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Card paddings tighten */
  .listing-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  /* Plate: remove fixed height/max-width feel on mobile */
  .listing-card__plate {
    max-width: 100%;
    height: auto;
    padding: 12px 14px;
    border-radius: 14px;
    box-sizing: border-box;
  }

  .listing-card__plate-text {
    font-size: clamp(28px, 9vw, 48px);
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
  }

  /* Actions stack (prevents weird squeezes) */
  .listing-card__actions {
    flex-direction: column;
    gap: 10px;
  }

  .listing-card__actions button,
  .listing-card__actions a {
    width: 100%;
  }

  /* “Coming soon” cards / fixed heights: let them grow naturally on mobile */
  .trend-card {
    height: auto;
  }

  /* Create modal should fill mobile width nicely */
  .ml-create-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .ml-create-card {
    max-width: none;
    width: 100%;
    border-radius: 18px;
    padding: 20px 16px;
    box-sizing: border-box;
  }
}

.ml-offers {
  grid-column: 1 / -1;
}
.ml-inline-create {
  grid-column: 1 / -1;
  display: none; /* hidden by default (desktop) */
}

.ml-inline-create__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #00c6ff, #00e59b);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 197, 255, 0.25);
}
@media (max-width: 768px) {
  /* Hide sidebar on mobile */
  #side-nav {
    display: none !important;
  }

  /* Content padding + space for bottom nav */
  .layout__content--my-listings {
    padding: 18px 16px 120px;
    min-height: auto;
  }

  /* Header: dropdown top-right */
  .ml-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }

  .ml-header__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: relative; /* anchors dropdown */
  }

  /* Hide the header CTA on mobile (we use the inline one below cards) */
  .ml-header__cta {
    display: none;
  }

  /* ✅ Keep same 2x2 layout as desktop (just tighter) */
  /* ✅ Mobile: remove Trend + AI cards, stack Listing + Performance */
.ml-grid-top {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  margin-bottom: 14px;
}

.ml-grid-bottom {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

/* Hide “Recent Trend” + “AI Summary” on mobile */
.trend-card,
.ai-card {
  display: none !important;
}

  /* Show the new mobile create button under the 2x2 layout */
  .ml-inline-create {
    display: block;
    margin-top: 10px;
    margin-bottom: 8px;
  }

  /* Dropdown styles: SAME as Reg Marketplace */
  .reg-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    background: rgba(255, 255, 255, 0.75);
    color: #111827;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .reg-mobile-menu {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    width: 240px;
    border-radius: 18px;
    padding: 10px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1200;
  }

  .reg-mobile-menu.is-open {
    display: block;
  }

  .reg-mobile-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 14px;
  }

  .reg-mobile-menu__item:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .reg-mobile-menu__icon {
    width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
  }

  .reg-mobile-menu__item.is-active {
    background: rgba(34, 211, 238, 0.15);
  }
}

/* Mobile-only marketplace dropdown: hide on desktop by default */
/* Hide mobile dashboard/menu by default (desktop) */
.reg-mobile-menu-btn,
.reg-mobile-menu {
  display: none;
}

/* Show on mobile only */
@media (max-width: 768px) {
  .reg-mobile-menu-btn {
    display: inline-flex; /* or flex */
  }

  /* menu stays hidden until opened via .is-open */
  .reg-mobile-menu {
    display: none;
  }
  .reg-mobile-menu.is-open {
    display: block;
  }
}

/* Bottom nav should be mobile-only */
.bottom-nav { display: none; }

@media (max-width: 768px) {
  .bottom-nav { display: flex; }

  /* iOS Safari: stop input focus zoom */
.ml-create-field input,
.ml-create-price-wrapper input {
  font-size: 16px !important;
}

.ml-create-price-prefix {
  font-size: 16px;
}
:root {
  --ct-bottom-nav-h: 84px; /* tweak if your bottom nav is taller */
}

/* Make the modal "bottom sheet" float ABOVE the bottom nav */
.ml-create-modal {
  /* keep your existing padding: 12px; but add safe bottom space */
  padding: 12px 12px calc(12px + var(--ct-bottom-nav-h) + env(safe-area-inset-bottom));
  align-items: flex-end;
}

/* If keyboard reduces space, allow scrolling inside the card */
.ml-create-card {
  max-height: calc(100dvh - 24px - var(--ct-bottom-nav-h) - env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.layout__content--my-listings {
  padding: 18px 16px calc(120px + env(safe-area-inset-bottom));
}

}

/* ---------------------------
   Multi-listing switcher
--------------------------- */
.ml-switcher {
  margin: 14px 0 10px;
}

.ml-switcher__label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.ml-switcher__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ml-switcher__pill {
  appearance: none;
  border: 1px solid rgba(59,130,246,0.25);
  background: rgba(5,8,22,0.55);
  color: rgba(255,255,255,0.9);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.08s ease, border-color 0.12s ease;
}

.ml-switcher__pill:active {
  transform: scale(0.99);
}

.ml-switcher__pill--active {
  border-color: rgba(59,130,246,0.7);
  box-shadow: 0 10px 24px rgba(15,23,42,0.35);
}

.ml-switcher__plate {
  font-family: "UKNumberPlate", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #DEDE17;
  color: #0b1020;
  border: 1px solid #D1C044;
  border-radius: 13px;
  padding: 6px 10px;
  box-shadow: 0 14px 32px rgba(15,23,42,0.2);
  letter-spacing: 1px;
  font-weight: 700;
  white-space: nowrap;
}


.ml-switcher{
  margin: 10px 0 18px;
}

.ml-switcher__label{
  font-size: 12px;
  color: rgba(15,23,42,.6);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.ml-switcher__pills{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ml-switcher__pill{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.ml-switcher__pill--active{
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 16px 34px rgba(59,130,246,.10);
}

.ml-switcher__plate{
  font-family: UKNumberPlate, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .08em;
}


/* ----------------------------------------------------------
   Multi-listing switcher: sit in header middle (desktop)
---------------------------------------------------------- */

.ml-header__row--switcher {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.ml-header__row--switcher #ml-listing-switcher {
  flex: 1;
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

#ml-switcher-pills {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Mobile: keep it sensible (full width under header row) */
@media (max-width: 768px) {
  .ml-header__row--switcher {
    flex-wrap: wrap;
  }

  .ml-header__row--switcher #ml-listing-switcher {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  #ml-switcher-pills {
    justify-content: flex-start;
  }
}
