/* ==========================================================================
   Onde Encontrar ROX — Design System & Layout
   Editorial, limpo, mobile-first, zero scroll-hijacking
   ========================================================================== */

:root {
  --bg: #F8F7FB;
  --surface: #FFFFFF;
  --surface-subtle: #F3F1F8;
  --ink: #1A1325;
  --ink-secondary: #5B526B;
  --ink-muted: #766D88;

  --brand: #4C1D95;
  --brand-mid: #5B21B6;
  --brand-hover: #3B0764;
  --brand-soft: #F3EEFC;
  --brand-ring: rgba(76, 29, 149, 0.16);

  --sede-accent: #D97706;
  --sede-soft: #FEF3C7;
  --sede-ink: #92400E;
  --sede-border: rgba(217, 119, 6, 0.34);

  --emerald: #047857;
  --emerald-soft: #ECFDF5;
  --emerald-border: rgba(5, 150, 105, 0.22);

  --border: rgba(75, 29, 122, 0.09);
  --border-strong: rgba(75, 29, 122, 0.22);

  --shadow-xs: 0 1px 2px rgba(26, 19, 37, 0.04);
  --shadow-sm: 0 4px 14px rgba(26, 19, 37, 0.06);
  --shadow-md: 0 12px 32px rgba(26, 19, 37, 0.10);
  --shadow-sheet: 0 -8px 28px rgba(26, 19, 37, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

[hidden] {
  display: none !important;
}

.label-mobile {
  display: none;
}

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input,
a {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--brand);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 160ms var(--ease);
}

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

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 6px;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.brand-titles {
  min-width: 0;
}

.brand-titles h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 140ms var(--ease), box-shadow 160ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--brand);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--surface-subtle);
  border-color: rgba(75, 29, 122, 0.34);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--emerald-soft);
  color: var(--emerald);
  border-color: var(--emerald-border);
}

.btn-whatsapp:hover {
  background-color: #D1FAE5;
  border-color: rgba(4, 120, 87, 0.36);
  transform: translateY(-1px);
}

.btn-lg {
  min-height: 46px;
  padding: 0 20px;
  font-size: 14.5px;
  border-radius: 10px;
}

.btn-header {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
}

.btn-nearby {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background-color: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(76, 29, 149, 0.18);
  font-size: 13.5px;
  font-weight: 600;
}

.btn-nearby:hover {
  background-color: #EAE1FB;
  border-color: rgba(76, 29, 149, 0.32);
}

.btn-nearby.is-active {
  background-color: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

.btn-nearby.is-loading .icon-gps {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.text-link {
  background: none;
  border: 0;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}

.text-link:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Locator Shell — Desktop Split Screen (>= 960px)
   ========================================================================== */

.locator-main {
  display: block;
}

.locator-shell {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  height: calc(100vh - var(--header-h));
  min-height: 580px;
  max-height: 1040px;
  max-width: 1680px;
  margin: 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.controls-panel {
  padding: 16px 18px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-shrink: 0;
}

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

.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 30px 0 36px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13.8px;
  color: var(--ink);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.search-field input::placeholder {
  color: var(--ink-muted);
}

.search-field input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

/* Hide default Safari/Chrome search cancel button */
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.search-clear:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.search-clear svg {
  width: 15px;
  height: 15px;
}

.geo-banner {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.geo-banner.is-success {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.geo-banner.is-warn {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.geo-banner-reset {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

/* City Filter Chips */
.city-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.city-chips::-webkit-scrollbar {
  display: none;
}

.city-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}

.city-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.city-chip .chip-count {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

.city-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.city-chip.is-active .chip-count {
  opacity: 0.9;
}

.city-chip.is-sede-chip {
  border-color: var(--sede-border);
  color: var(--sede-ink);
  background: #FFFDF7;
}

.city-chip.is-sede-chip:hover {
  background: var(--sede-soft);
  border-color: var(--sede-accent);
  color: var(--sede-ink);
}

.city-chip.is-sede-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

/* Mobile Segmented Toggle (hidden on desktop) */
.mobile-view-bar {
  display: none;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.results-count {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Store List & Store Cards
   ========================================================================== */

.store-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease);
}

.store-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.store-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-ring), var(--shadow-sm);
}

.store-card.is-sede {
  border-color: var(--sede-border);
  background: linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 44%);
}

.store-card.is-sede.is-selected {
  border-color: var(--brand);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.badge-cat {
  background: var(--brand-soft);
  color: var(--brand);
}

.badge-sede {
  background: var(--sede-soft);
  color: var(--sede-ink);
}

.card-city {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.badge-distance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.card-address {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.card-address .icon {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
}

.card-note {
  margin: -2px 0 0;
  font-size: 12.5px;
  color: var(--sede-ink);
  font-weight: 500;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.card-actions .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}

.card-actions .btn-primary {
  flex: 1 1 auto;
}

.card-actions .btn-secondary,
.card-actions .btn-whatsapp {
  flex: 0 1 auto;
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.empty-state p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Map Stage & Custom Leaflet Styling
   ========================================================================== */

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #ECEAEF;
}

.map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-fab {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color 150ms var(--ease), transform 140ms var(--ease);
}

.map-fab:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

/* Custom Pins */
.rox-pin-wrapper {
  background: transparent;
  border: 0;
}

.rox-pin {
  position: relative;
  width: 30px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms var(--ease);
  filter: drop-shadow(0 3px 6px rgba(26, 19, 37, 0.28));
}

.rox-pin.is-active {
  transform: scale(1.22) translateY(-2px);
}

.rox-pin-sede {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-hover);
  color: #FFFFFF;
  border: 2px solid #F59E0B;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(59, 7, 100, 0.34);
  transition: transform 160ms var(--ease);
}

.rox-pin-sede::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--brand-hover);
  border-right: 2px solid #F59E0B;
  border-bottom: 2px solid #F59E0B;
}

.rox-pin-sede.is-active {
  transform: scale(1.1);
}

/* Custom ROX Clusters */
.rox-cluster {
  background: transparent;
  border: 0;
}

.rox-cluster-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease);
}

.rox-cluster:hover .rox-cluster-inner {
  background: var(--brand-hover);
  transform: scale(1.07);
}

.rox-cluster-lg .rox-cluster-inner {
  font-size: 15px;
  background: var(--brand-hover);
}

/* User GPS Marker */
.user-gps-marker {
  background: transparent;
  border: 0;
}

.user-gps-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563EB;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.22), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Leaflet Popup Override */
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.leaflet-popup-content {
  margin: 0;
  width: 318px !important;
  font-family: var(--font-body);
}

.leaflet-tile-pane {
  filter: saturate(0.92) contrast(0.99);
}

.leaflet-popup-tip {
  box-shadow: none;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  line-height: 24px;
  font-size: 18px;
  color: var(--ink-muted);
  border-radius: 6px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}

.popup-body {
  padding: 15px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 22px;
  flex-wrap: wrap;
}

.popup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.popup-address {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.popup-note {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--sede-ink);
}

.popup-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  flex-wrap: nowrap;
}

.popup-actions .btn {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12.5px;
  gap: 5px;
  border-radius: 8px;
  color: var(--ink);
}

.popup-actions .btn .icon {
  width: 14px;
  height: 14px;
}

.popup-actions .btn-primary {
  color: #FFFFFF;
  flex: 1;
}

.popup-actions .btn-whatsapp {
  color: var(--emerald);
}

/* Mobile Bottom Sheet (hidden on desktop) */
.mobile-sheet {
  display: none;
}

/* ==========================================================================
   Online & Partner Conversion Band
   ========================================================================== */

.online-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}

.online-band-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 28px 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.online-product-frame {
  width: 180px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #EAE8EF;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.online-product-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.online-copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.online-copy p {
  margin: 0 0 22px;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.online-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg);
  padding: 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ==========================================================================
   Mobile & Tablet (< 960px) — Priority Instagram Experience (390px)
   ========================================================================== */

@media (max-width: 959px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }

  .brand-group {
    gap: 10px;
  }

  .brand-logo {
    height: 32px;
  }

  .brand-divider {
    height: 24px;
  }

  .brand-titles h1 {
    font-size: 15.5px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .btn-header {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  /* Natural document flow on mobile — zero scroll lock */
  .locator-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .sidebar {
    border-right: 0;
    overflow: visible;
  }

  .controls-panel {
    padding: 12px 14px 10px;
    gap: 10px;
  }

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

  .btn-nearby {
    width: 100%;
    min-height: 44px;
  }

  .city-chip {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13.5px;
  }

  .mobile-view-bar {
    display: block;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
  }

  .segmented-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 140ms var(--ease), color 140ms var(--ease), box-shadow 140ms var(--ease);
  }

  .segmented-btn strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .segmented-btn.is-active {
    background: var(--surface);
    color: var(--brand);
    box-shadow: var(--shadow-xs);
  }

  /* View switching on Mobile */
  .locator-shell[data-mobile-view="map"] .store-list {
    display: none;
  }

  .locator-shell[data-mobile-view="map"] .map-stage {
    display: block;
    height: 62dvh;
    min-height: 390px;
    max-height: 540px;
  }

  .locator-shell[data-mobile-view="list"] .map-stage {
    display: none;
  }

  .locator-shell[data-mobile-view="list"] .store-list {
    display: flex;
    overflow: visible;
    padding: 12px 14px 20px;
  }

  .card-actions {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .card-actions .btn {
    min-height: 44px;
    padding: 0 10px;
    font-size: 12.5px;
    gap: 5px;
  }

  .card-actions .btn .icon,
  .sheet-actions .btn .icon {
    width: 14px;
    height: 14px;
  }

  /* Bottom sheet overlay inside map stage */
  .mobile-sheet {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 650;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 14px 15px 15px;
    box-shadow: var(--shadow-sheet);
    animation: sheetIn 180ms var(--ease);
  }

  .mobile-sheet[hidden] {
    display: none;
  }

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

  .mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-sheet-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .sheet-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--surface-subtle);
    color: var(--ink-secondary);
    cursor: pointer;
    flex-shrink: 0;
  }

  .sheet-close svg {
    width: 17px;
    height: 17px;
  }

  .sheet-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
  }

  .sheet-address {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--ink-secondary);
  }

  .sheet-note {
    margin: 0;
    font-size: 12.5px;
    color: var(--sede-ink);
    font-weight: 500;
  }

  .sheet-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    flex-wrap: nowrap;
  }

  .sheet-actions .btn {
    min-height: 44px;
    padding: 0 10px;
    font-size: 12.5px;
    gap: 5px;
    flex: 0 1 auto;
  }

  .sheet-actions .btn-primary {
    flex: 1 1 auto;
  }

  /* Online Band on Mobile */
  .online-band {
    padding: 28px 14px;
  }

  .online-band-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 18px;
  }

  .online-product-frame {
    width: 132px;
    margin: 0 auto;
  }

  .online-copy {
    text-align: left;
  }

  .online-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .online-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 12px 16px;
    line-height: 1.3;
  }

  .site-footer {
    padding: 20px 14px 28px;
  }
}

@media (max-width: 520px) {
  .label-desktop {
    display: none;
  }

  .label-mobile {
    display: inline;
  }

  .brand-logo {
    height: 30px;
  }

  .brand-titles h1 {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 11.5px;
  }

  .btn-header {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 350px) {
  .card-actions,
  .sheet-actions {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
