/*
  Dropby Store Locator - standalone demo styles
  Desktop: Unified container with sidebar + map
  Mobile: Layered map with floating search + bottom sheet

  Ported from the Shopify theme extension's store-locator.css. Removed: the
  section heading/description block and the floating action button + modal.
*/

/* =========================================
   CSS Custom Properties
   Core values come from the demo theme (custom_css.variables, rendered by
   src/theme.js as a rule on #dropby-store-locator):
   --dropby-accent, --dropby-bg, --dropby-text,
   --dropby-border-color, --dropby-border-width, --dropby-radius,
   --dropby-shadow, --dropby-height, --dropby-mobile-height
   ========================================= */
.dropby-store-locator {
  /* Derived accent shades */
  --dropby-accent-light: color-mix(in srgb, var(--dropby-accent) 15%, white);
  --dropby-accent-lighter: color-mix(in srgb, var(--dropby-accent) 8%, white);
  --dropby-accent-dark: color-mix(in srgb, var(--dropby-accent) 85%, black);

  /* Derived text shades */
  --dropby-text-secondary: color-mix(in srgb, var(--dropby-text) 60%, transparent);
  --dropby-text-muted: color-mix(in srgb, var(--dropby-text) 40%, transparent);

  /* Derived backgrounds */
  --dropby-bg-subtle: color-mix(in srgb, var(--dropby-bg) 97%, var(--dropby-text));
  --dropby-bg-muted: color-mix(in srgb, var(--dropby-bg) 94%, var(--dropby-text));
  /* Selected-row tint: a calm accent wash over the merchant background */
  --dropby-bg-active: color-mix(in srgb, var(--dropby-accent) 8%, var(--dropby-bg));

  /* Semantic status palette (calm, consistent open/closed/special states) */
  --dropby-success: #15803d;
  --dropby-success-bg: color-mix(in srgb, #15803d 12%, var(--dropby-bg));
  --dropby-warning: #b45309;
  --dropby-warning-bg: color-mix(in srgb, #b45309 12%, var(--dropby-bg));
  --dropby-danger: #b91c1c;
  --dropby-danger-bg: color-mix(in srgb, #b91c1c 10%, var(--dropby-bg));

  /* Derived borders */
  --dropby-border-light: color-mix(in srgb, var(--dropby-border-color) 50%, transparent);

  /* Layout tokens */
  --dropby-sidebar-width: 380px;

  /* Shadows */
  --dropby-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.06);
  --dropby-shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.05), 0 6px 16px -4px rgba(0, 0, 0, 0.10);
  --dropby-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --dropby-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --dropby-shadow-glow: 0 0 0 3px color-mix(in srgb, var(--dropby-accent) 20%, transparent);

  /* Radius tokens */
  --dropby-radius-sm: 8px;
  --dropby-radius-md: 12px;
  --dropby-radius-lg: 16px;
  --dropby-radius-full: 9999px;

  /* Transitions */
  --dropby-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --dropby-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --dropby-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Base Reset & Container
   ========================================= */
.dropby-store-locator {
  display: flex;
  height: var(--dropby-height);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dropby-text);
  background: var(--dropby-bg);
  border-radius: var(--dropby-radius);
  border: var(--dropby-border-width) solid var(--dropby-border-color);
  box-shadow: var(--dropby-shadow);
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dropby-store-locator *,
.dropby-store-locator *::before,
.dropby-store-locator *::after {
  box-sizing: border-box;
}

/* =========================================
   Desktop Sidebar
   ========================================= */
.dropby-sidebar {
  position: relative;
  width: var(--dropby-sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--dropby-border-color);
  background: var(--dropby-bg);
  min-height: 0;
  overflow: hidden;
  transition: width 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed state: animate the sidebar width to 0, map pane reflows to fill. */
.dropby-store-locator--sidebar-collapsed .dropby-sidebar {
  width: 0;
  border-right: none;
}

/* Collapse/expand ledge button: sits flush against the sidebar's right edge (on
   the map side, never overlapping the sidebar). A fixed right-rounded rectangle —
   shape stays identical between states; only its left position animates. */
.dropby-sidebar-toggle {
  position: absolute;
  top: 50%;
  left: var(--dropby-sidebar-width);
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--dropby-border-color);
  border-left: none;
  border-radius: 0 var(--dropby-radius-sm) var(--dropby-radius-sm) 0;
  background: var(--dropby-bg);
  color: var(--dropby-text-secondary);
  cursor: pointer;
  transition: left 360ms cubic-bezier(0.4, 0, 0.2, 1), color var(--dropby-transition-fast), background var(--dropby-transition-fast);
}

.dropby-sidebar-toggle:hover {
  color: var(--dropby-accent);
  background: var(--dropby-bg-subtle);
}

/* When collapsed, sit flush against the container's left edge. */
.dropby-store-locator--sidebar-collapsed .dropby-sidebar-toggle {
  left: 0;
}

.dropby-sidebar-toggle__chevron {
  transition: transform var(--dropby-transition-base);
}

/* Chevron points left (collapse) by default; flips to point right when collapsed. */
.dropby-store-locator--sidebar-collapsed .dropby-sidebar-toggle__chevron {
  transform: rotate(180deg);
}

/* Detail view host: covers the sidebar (search + list hidden) when a location
   is opened. Reuses the existing .dropby-detail__* styles for inner content. */
.dropby-sidebar__detail {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: var(--dropby-bg);
  transform: translateX(8%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dropby-transition-base), opacity var(--dropby-transition-base), visibility var(--dropby-transition-base);
}

.dropby-sidebar--detail-open .dropby-sidebar__detail {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropby-sidebar__detail .dropby-detail__body {
  flex: 1;
}

.dropby-sidebar__header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--dropby-bg);
}

.dropby-sidebar__results-bar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--dropby-border-light);
  flex-shrink: 0;
}

.dropby-results-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--dropby-text-secondary);
}

.dropby-results-count__number {
  font-weight: 700;
  color: var(--dropby-text);
}

.dropby-sidebar__list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Custom Scrollbar */
.dropby-sidebar__list::-webkit-scrollbar {
  width: 6px;
}

.dropby-sidebar__list::-webkit-scrollbar-track {
  background: transparent;
}

.dropby-sidebar__list::-webkit-scrollbar-thumb {
  background: var(--dropby-border-color);
  border-radius: var(--dropby-radius-full);
}

.dropby-sidebar__list::-webkit-scrollbar-thumb:hover {
  background: var(--dropby-text-muted);
}

/* =========================================
   Search Components (embedded in sidebar header)
   ========================================= */
.dropby-search__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.dropby-search__input-wrapper {
  flex: 1;
  position: relative;
}

.dropby-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--dropby-text-muted);
  pointer-events: none;
  transition: color var(--dropby-transition-fast);
}

/*

*/
.dropby-search__input-wrapper:focus-within .dropby-search__icon {
  color: var(--dropby-accent);
}

.dropby-search__input {
  width: 100%;
  padding: 12px 72px 12px 44px;
  border: 1px solid transparent;
  border-radius: var(--dropby-radius-lg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--dropby-text);
  background: var(--dropby-bg-subtle);
  transition: background var(--dropby-transition-fast), border-color var(--dropby-transition-fast), box-shadow var(--dropby-transition-fast);
}

.dropby-search__input:hover {
  background: var(--dropby-bg-muted);
}

.dropby-search__input:focus {
  outline: none;
  background: var(--dropby-bg);
  border-color: var(--dropby-accent);
  box-shadow: var(--dropby-shadow-glow);
}

.dropby-search__input::placeholder {
  color: var(--dropby-text-muted);
  font-weight: 400;
}

/* Filter Button */
.dropby-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--dropby-bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--dropby-radius-lg);
  color: var(--dropby-text-secondary);
  cursor: pointer;
  transition: background var(--dropby-transition-fast), border-color var(--dropby-transition-fast), color var(--dropby-transition-fast), transform var(--dropby-transition-fast), box-shadow var(--dropby-transition-fast);
  flex-shrink: 0;
}

.dropby-search__btn:hover {
  background: var(--dropby-bg-muted);
  color: var(--dropby-text);
}

.dropby-search__btn:active {
  transform: scale(0.96);
}

.dropby-search__btn--active {
  background: var(--dropby-accent-lighter);
  border-color: var(--dropby-accent);
  color: var(--dropby-accent);
  box-shadow: var(--dropby-shadow-glow);
}

.dropby-search__btn-icon {
  width: 18px;
  height: 18px;
}

/* Geolocation Button (inside search input) */
.dropby-search__geo-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--dropby-text-muted);
  transition: color var(--dropby-transition-fast);
}

.dropby-search__geo-btn:hover {
  color: var(--dropby-accent);
}

.dropby-search__geo-btn--active {
  color: var(--dropby-accent);
}

/* Clear Button (inside search input) */
.dropby-search__clear-btn {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--dropby-text-muted);
  transition: color var(--dropby-transition-fast);
}

.dropby-search__clear-btn:hover {
  color: var(--dropby-text);
}

.dropby-search__clear-btn--visible {
  display: flex;
}

/* =========================================
   Filter Panel - Dropdown Card
   ========================================= */
.dropby-filter-wrapper {
  position: relative;
}

.dropby-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--dropby-bg);
  border: 1px solid var(--dropby-border-light);
  border-radius: var(--dropby-radius-lg);
  box-shadow: var(--dropby-shadow-xl);
  padding: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--dropby-transition-base);
}

.dropby-filter-panel--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropby-filter-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dropby-border-light);
}

.dropby-filter-panel__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--dropby-text);
}

.dropby-filter-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--dropby-radius-sm);
  cursor: pointer;
  color: var(--dropby-text-muted);
  transition: all var(--dropby-transition-fast);
}

.dropby-filter-panel__close:hover {
  background: var(--dropby-bg-muted);
  color: var(--dropby-text);
}

.dropby-filter-panel__body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

/* Distance Unit Toggle */
.dropby-distance-toggle {
  display: flex;
  background: var(--dropby-bg-muted);
  border-radius: var(--dropby-radius-full);
  padding: 4px;
  margin-bottom: 12px;
}

.dropby-distance-toggle__btn {
  flex: 1;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: var(--dropby-radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--dropby-text-secondary);
  cursor: pointer;
  transition: all var(--dropby-transition-fast);
}

.dropby-distance-toggle__btn--active {
  background: var(--dropby-bg);
  color: var(--dropby-accent);
  box-shadow: var(--dropby-shadow-sm);
}

.dropby-distance-toggle__btn:hover:not(.dropby-distance-toggle__btn--active) {
  color: var(--dropby-text);
}

/* Filter Groups */
.dropby-filter-group {
  margin-bottom: 20px;
}

.dropby-filter-group:last-child {
  margin-bottom: 0;
}

.dropby-filter-group__title {
  font-weight: 600;
  font-size: 13px;
  color: var(--dropby-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Checkboxes */
.dropby-filter-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropby-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--dropby-radius-md);
  cursor: pointer;
  transition: background var(--dropby-transition-fast);
  user-select: none;
}

.dropby-filter-checkbox:hover {
  background: var(--dropby-bg-subtle);
}

.dropby-filter-checkbox__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dropby-filter-checkbox__box {
  position: relative;
  width: 20px;
  height: 20px;
  background: var(--dropby-bg);
  border: 2px solid var(--dropby-border-color);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all var(--dropby-transition-fast);
}

.dropby-filter-checkbox__input:checked + .dropby-filter-checkbox__box {
  background: var(--dropby-accent);
  border-color: var(--dropby-accent);
}

.dropby-filter-checkbox__box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -60%) rotate(45deg) scale(0);
  transition: transform var(--dropby-transition-fast);
}

.dropby-filter-checkbox__input:checked + .dropby-filter-checkbox__box::after {
  transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.dropby-filter-checkbox__icon {
  width: 18px;
  height: 18px;
  color: var(--dropby-text-secondary);
  flex-shrink: 0;
}

.dropby-filter-checkbox__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--dropby-text);
  flex: 1;
}

.dropby-filter-checkbox__input:checked ~ .dropby-filter-checkbox__label {
  color: var(--dropby-accent);
}

/* Radio filter variant (circle indicator) */
.dropby-filter-checkbox--radio .dropby-filter-checkbox__box {
  border-radius: 50%;
}

.dropby-filter-checkbox--radio .dropby-filter-checkbox__box::after {
  width: 10px;
  height: 10px;
  border: none;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.dropby-filter-checkbox--radio .dropby-filter-checkbox__input:checked + .dropby-filter-checkbox__box::after {
  transform: translate(-50%, -50%) scale(1);
}

.dropby-filter-divider {
  height: 1px;
  background: var(--dropby-border-light);
  margin: 16px 0;
}

/* Reset all filters link */
.dropby-filter-reset {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dropby-border-light);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--dropby-accent);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity var(--dropby-transition-fast);
}

.dropby-filter-reset:hover {
  opacity: 0.8;
}

/* =========================================
   Location List Items (Left Accent Strip Design)
   ========================================= */
.dropby-location-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  cursor: pointer;
  transition: background var(--dropby-transition-fast), border-left-color var(--dropby-transition-fast);
  
  /* Base Border Settings */
  border: none; /* Reset the full border */
  border-bottom: 1px solid var(--dropby-border-light);
  
  /* The "Invisible" Strip (Prevents text jumping when active) */
  border-left: 4px solid transparent; 
  
  position: relative;
}

.dropby-location-item:last-child {
  border-bottom: none;
}

.dropby-location-item:hover {
  background: var(--dropby-bg-subtle);
}

.dropby-location-item--active:hover {
  /* The visible accent strip + a calm accent wash so selection reads clearly */
  border-left-color: var(--dropby-accent);
  background: var(--dropby-bg-active);
}

/* Card Content */
.dropby-location-item__content {
  flex: 1;
  min-width: 0;
}

.dropby-location-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.dropby-location-item__name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--dropby-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropby-location-item__distance {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dropby-accent);
  background: var(--dropby-accent-light);
  padding: 3px 9px;
  border-radius: var(--dropby-radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.dropby-location-item__address {
  font-size: 13px;
  color: var(--dropby-text-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}

/* Accordion Summary & Expanded States */
.dropby-location-item__summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.dropby-location-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--dropby-radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.dropby-location-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropby-location-item__info {
  flex: 1;
  min-width: 0;
}

.dropby-location-item__chevron {
  width: 20px;
  height: 20px;
  color: var(--dropby-text-muted);
  flex-shrink: 0;
  transition: transform var(--dropby-transition-base);
  margin-top: 2px;
}

.dropby-location-item:hover .dropby-location-item__chevron {
  transform: translateX(2px);
  color: var(--dropby-accent);
}

.dropby-location-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.dropby-location-item__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px 3px 7px;
  border-radius: var(--dropby-radius-full);
}

.dropby-location-item__status--open {
  color: var(--dropby-success);
  background: var(--dropby-success-bg);
}

.dropby-location-item__status--closed {
  color: var(--dropby-danger);
  background: var(--dropby-danger-bg);
}

.dropby-location-item__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dropby-location-item__contact-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dropby-location-item__contact-icons svg {
  width: 14px;
  height: 14px;
  color: var(--dropby-text-muted);
}

/* =========================================
   Pagination
   ========================================= */
.dropby-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--dropby-border-light);
  background: var(--dropby-bg);
  flex-shrink: 0;
}

.dropby-pagination__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: var(--dropby-radius-full);
  color: var(--dropby-accent);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background var(--dropby-transition-fast), color var(--dropby-transition-fast);
}

.dropby-pagination__chevron:hover:not(:disabled) {
  background: var(--dropby-bg-subtle);
}

.dropby-pagination__chevron:active:not(:disabled) {
  background: var(--dropby-bg-muted);
}

.dropby-pagination__chevron:disabled {
  opacity: 0.3;
  cursor: default;
  color: var(--dropby-text-muted);
}

.dropby-pagination__label {
  font-size: 14px;
  color: var(--dropby-text);
  font-family: inherit;
  user-select: none;
}

/* =========================================
   Map Pane
   ========================================= */
.dropby-map-pane {
  flex: 1;
  position: relative;
  min-width: 0;
}

.dropby-map {
  width: 100%;
  height: 100%;
}

/* MapLibre Control Overrides */
.dropby-store-locator .maplibregl-ctrl-group {
  border-radius: var(--dropby-radius-md) !important;
  box-shadow: var(--dropby-shadow-md) !important;
  border: none !important;
  overflow: hidden;
}

.dropby-store-locator .maplibregl-ctrl-group button {
  width: 36px !important;
  height: 36px !important;
}

.dropby-store-locator .maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--dropby-border-light) !important;
}

@media (max-width: 768px) {
  .dropby-store-locator .maplibregl-ctrl-top-right {
    top: 60px !important;
  }
}

/* =========================================
   Map Markers
   ========================================= */
.dropby-marker {
  --marker-size: 40px;
  width: var(--marker-size);
  height: auto;
  cursor: pointer;
  /* Highlight via filter only — the map provider positions this root with a
     translate transform, so transitioning transform here makes the marker lag
     behind the map during pan/drag. Hover/active states animate filter only. */
  transition: filter var(--dropby-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropby-marker svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  transition: filter var(--dropby-transition-fast);
}

.dropby-marker:hover svg {
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.dropby-marker:hover svg path {
  stroke: white;
  stroke-width: 12px;
  paint-order: stroke;
}

.dropby-marker--active svg,
.dropby-marker--hover svg {
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.dropby-marker--active svg path,
.dropby-marker--hover svg path {
  stroke: white;
  stroke-width: 12px;
  paint-order: stroke;
}

.dropby-marker img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  transition: filter var(--dropby-transition-fast);
}

.dropby-marker:hover img {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.dropby-marker--active img,
.dropby-marker--hover img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* "Cluster of 1" marker: highlight via filter only — the root is positioned by
   the map provider, so a transform here would fight its translate. */
.dropby-cluster-marker {
  transition: filter var(--dropby-transition-fast);
}

.dropby-cluster-marker.dropby-marker--active,
.dropby-cluster-marker.dropby-marker--hover {
  filter: brightness(1.1) drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
}

/* Shared Hours Styles (used by desktop accordion and mobile detail view) */
.dropby-hours__day {
  font-weight: 500;
  color: var(--dropby-text);
}

.dropby-hours__day--today {
  color: var(--dropby-accent);
}

.dropby-hours__time {
  color: var(--dropby-text-secondary);
  text-align: right;
}

.dropby-hours__time--closed {
  color: var(--dropby-danger);
}

.dropby-hours__time--special {
  color: var(--dropby-warning);
  font-weight: 600;
}

.dropby-hours__time--special.dropby-hours__time--closed {
  color: var(--dropby-warning);
}

.dropby-special-indicator {
  display: inline-block;
  color: #F59E0B;
  font-weight: 700;
  margin-left: 4px;
  font-size: 14px;
}

/* Collapsible Hours Section (shared between desktop accordion and mobile detail view) */
.dropby-hours-section {
  margin-bottom: 16px;
  border-radius: var(--dropby-radius-md);
  /*background: var(--dropby-bg-subtle);*/
  overflow: hidden;
  border: 1px solid var(--dropby-border-light);
}

.dropby-hours-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background var(--dropby-transition-fast);
}

.dropby-hours-toggle:hover {
  background: var(--dropby-bg-muted);
}

.dropby-hours-toggle__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropby-hours-toggle__today {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropby-hours-toggle__day {
  font-size: 11px;
  font-weight: 600;
  color: var(--dropby-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropby-hours-toggle__time {
  font-size: 14px;
  font-weight: 600;
  color: var(--dropby-text);
}

.dropby-hours-toggle__time--special {
  color: var(--dropby-warning);
}

.dropby-hours-toggle__arrow {
  width: 18px;
  height: 18px;
  color: var(--dropby-text-muted);
  flex-shrink: 0;
  transition: transform var(--dropby-transition-base);
}

.dropby-hours-section--expanded .dropby-hours-toggle__arrow {
  transform: rotate(180deg);
}

/* Hours Status Badge */
.dropby-hours-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--dropby-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.dropby-hours-status--open {
  background: var(--dropby-success-bg);
  color: var(--dropby-success);
}

.dropby-hours-status--closed {
  background: var(--dropby-danger-bg);
  color: var(--dropby-danger);
}

.dropby-hours-status--special {
  background: var(--dropby-warning-bg);
  color: var(--dropby-warning);
}

.dropby-hours-status--special.dropby-hours-status--open {
  background: var(--dropby-warning-bg);
  color: var(--dropby-warning);
}

.dropby-hours-status--special.dropby-hours-status--closed {
  background: var(--dropby-warning-bg);
  color: var(--dropby-warning);
}

.dropby-hours-status__special {
  font-weight: 700;
  margin-left: 2px;
}

.dropby-hours-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dropby-hours-status__text {
  line-height: 1;
}

/* Hours Grid Wrapper (Collapsible) */
.dropby-hours__grid-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dropby-transition-slow) ease-out,
              padding var(--dropby-transition-slow) ease-out,
              opacity var(--dropby-transition-base) ease-out;
  opacity: 0;
  padding: 0 14px;
}

.dropby-hours-section--expanded .dropby-hours__grid-wrapper {
  max-height: 300px;
  padding: 0 14px 14px 14px;
  opacity: 1;
}

.dropby-hours-section .dropby-hours__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--dropby-border-light);
}

.dropby-description__text { display: inline; }
.dropby-description__remaining { display: none; }

.dropby-description__text.dropby-description--expanded .dropby-description__remaining {
  display: inline;
}

.dropby-description__text.dropby-description--expanded .dropby-description__toggle {
  margin-left: 4px;
}

.dropby-description__toggle {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--dropby-accent);
  cursor: pointer;
  transition: color var(--dropby-transition-fast);
}

.dropby-description__toggle:hover {
  color: var(--dropby-accent-dark);
  text-decoration: underline;
}

/* =========================================
   Shared Contact Section
   ========================================= */
.dropby-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.dropby-contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dropby-text);
  text-decoration: none;
  transition: color var(--dropby-transition-fast);
}

.dropby-contact__item:hover {
  color: var(--dropby-accent);
}

.dropby-contact__icon {
  width: 18px;
  height: 18px;
  color: var(--dropby-text-muted);
  flex-shrink: 0;
}

.dropby-contact__label {
  font-weight: 600;
  color: var(--dropby-text-secondary);
  margin-right: 2px;
}

/* =========================================
   Primary Action Button (shared)
   ========================================= */
.dropby-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter var(--dropby-transition-fast), transform var(--dropby-transition-fast), box-shadow var(--dropby-transition-fast);
}

.dropby-primary-btn:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  box-shadow: var(--dropby-shadow-md);
}

.dropby-primary-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: var(--dropby-shadow-sm);
}

.dropby-primary-btn__icon {
  width: 18px;
  height: 18px;
}

/* =========================================
   Mobile Detail View
   ========================================= */
.dropby-detail__header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--dropby-bg);
  border-bottom: 1px solid var(--dropby-border-light);
}

.dropby-detail__back,
.dropby-detail__close {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--dropby-accent);
  cursor: pointer;
  border-radius: var(--dropby-radius-md);
  transition: background var(--dropby-transition-fast);
}

.dropby-detail__back:hover,
.dropby-detail__close:hover {
  background: var(--dropby-bg-muted);
}

.dropby-detail__back svg,
.dropby-detail__close svg {
  width: 16px;
  height: 16px;
}

/* Right-aligned header actions (Show on map + optional Close) */
.dropby-detail__header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropby-detail__show-on-map {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--dropby-accent);
  border: none;
  border-radius: var(--dropby-radius-full);
  cursor: pointer;
  transition: background var(--dropby-transition-fast), box-shadow var(--dropby-transition-fast);
}

.dropby-detail__show-on-map:hover {
  background: var(--dropby-accent-dark);
  box-shadow: var(--dropby-shadow-sm);
}

.dropby-detail__show-on-map:active {
  transform: scale(0.97);
}

.dropby-detail__show-on-map svg {
  width: 15px;
  height: 15px;
}

.dropby-detail__body {
  padding: 20px 16px;
  overflow-y: auto;
}

.dropby-detail__hero {
  width: 100%;
  border-radius: var(--dropby-radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.dropby-detail__hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dropby-detail__name {
  font-weight: 700;
  font-size: 20px;
  color: var(--dropby-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.dropby-detail__address {
  font-size: 14px;
  color: var(--dropby-text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.dropby-detail__distance {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dropby-accent);
  background: var(--dropby-accent-light);
  padding: 3px 9px;
  border-radius: var(--dropby-radius-full);
  margin-bottom: 12px;
}

.dropby-detail__description {
  font-size: 14px;
  color: var(--dropby-text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.dropby-detail__footer {
  position: sticky;
  bottom: 0;
  padding: 12px 16px;
  background: var(--dropby-bg);
  border-top: 1px solid var(--dropby-border-light);
}

/* =========================================
   Location Popup (marker-click card)
   Anchored to the marker by the active map provider. Mirrors the list item /
   detail design using dropby-popup__* classes.
   ========================================= */
.dropby-popup {
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 80vw;
  max-height: 360px;
  background: var(--dropby-bg);
  border: 1px solid var(--dropby-border-light);
  border-radius: var(--dropby-radius-lg, 12px);
  box-shadow: var(--dropby-shadow-xl);
  overflow: hidden;
  font-family: inherit;
}

.dropby-popup__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 6px 0;
}

.dropby-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--dropby-text-secondary);
  cursor: pointer;
  border-radius: var(--dropby-radius-full, 999px);
  transition: background var(--dropby-transition-fast, 0.15s);
}

.dropby-popup__close:hover {
  background: var(--dropby-bg-muted);
}

.dropby-popup__close svg {
  width: 16px;
  height: 16px;
}

.dropby-popup__body {
  padding: 4px 16px 16px;
  overflow-y: auto;
}

.dropby-popup__hero {
  width: 100%;
  border-radius: var(--dropby-radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.dropby-popup__hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dropby-popup__intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.dropby-popup__intro-text {
  flex: 1;
  min-width: 0;
}

.dropby-popup__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--dropby-radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.dropby-popup__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropby-popup__name {
  font-weight: 700;
  font-size: 17px;
  color: var(--dropby-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.dropby-popup__address {
  font-size: 13px;
  color: var(--dropby-text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.dropby-popup__distance {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--dropby-accent);
  background: var(--dropby-accent-light);
  padding: 3px 9px;
  border-radius: var(--dropby-radius-full);
  margin-bottom: 12px;
}

.dropby-popup__description {
  font-size: 13px;
  color: var(--dropby-text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.dropby-popup__footer {
  padding: 12px 16px;
  background: var(--dropby-bg);
  border-top: 1px solid var(--dropby-border-light);
}

/* MapLibre native popup shell: strip default chrome so .dropby-popup styling shows */
.dropby-popup-shell .maplibregl-popup-content {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.dropby-popup-shell .maplibregl-popup-tip {
  display: none;
}

/* =========================================
   Loading & Empty States
   ========================================= */
.dropby-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 16px;
}

.dropby-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--dropby-bg-muted);
  border-top-color: var(--dropby-accent);
  border-radius: 50%;
  animation: dropby-spin 0.8s linear infinite;
}

@keyframes dropby-spin {
  to { transform: rotate(360deg); }
}

.dropby-loading__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--dropby-text-secondary);
}

.dropby-empty {
  text-align: center;
  padding: 48px 24px;
}

.dropby-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--dropby-text-muted);
  opacity: 0.5;
}

.dropby-empty__title {
  font-weight: 600;
  font-size: 16px;
  color: var(--dropby-text);
  margin-bottom: 8px;
}

.dropby-empty__description {
  font-size: 14px;
  color: var(--dropby-text-secondary);
}

.dropby-empty__icon--small {
  width: 44px;
  height: 44px;
}

.dropby-empty__link {
  color: var(--dropby-accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.dropby-empty__link:hover {
  color: var(--dropby-accent-dark);
}

.dropby-error {
  text-align: center;
  padding: 48px 24px;
}

.dropby-error__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: #EF4444;
}

.dropby-error__message {
  font-size: 14px;
  color: var(--dropby-text-secondary);
}

/* =========================================
   Mobile Floating Search
   ========================================= */
.dropby-mobile-search {
  display: none;
}

.dropby-mobile-search__row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.dropby-mobile-search__input-wrapper {
  flex: 1;
  position: relative;
}

.dropby-mobile-search__icon {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--dropby-text-muted);
  pointer-events: none;
}

.dropby-mobile-search__input {
  width: 100%;
  padding: 10px 60px 10px 28px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--dropby-text);
  outline: none;
}

.dropby-mobile-search__input::placeholder {
  color: var(--dropby-text-muted);
  font-weight: 400;
}

.dropby-mobile-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--dropby-bg-subtle);
  border: none;
  border-radius: 50%;
  color: var(--dropby-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--dropby-transition-fast);
}

.dropby-mobile-search__btn:hover {
  background: var(--dropby-bg-muted);
  color: var(--dropby-text);
}

.dropby-mobile-search__btn:active {
  transform: scale(0.95);
}

/* Mobile Geolocation Button (inside search input) */
.dropby-mobile-search__geo-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--dropby-text-muted);
  transition: color var(--dropby-transition-fast);
}

.dropby-mobile-search__geo-btn:hover {
  color: var(--dropby-accent);
}

.dropby-mobile-search__geo-btn--active {
  color: var(--dropby-accent);
}

/* Mobile Clear Button (inside search input) */
.dropby-mobile-search__clear-btn {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--dropby-text-muted);
  transition: color var(--dropby-transition-fast);
}

.dropby-mobile-search__clear-btn:hover {
  color: var(--dropby-text);
}

.dropby-mobile-search__clear-btn--visible {
  display: flex;
}

/* =========================================
   Mobile Bottom Sheet
   ========================================= */
.dropby-bottom-sheet {
  display: none;
}

.dropby-bottom-sheet__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 9px 0 5px;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
  border-radius: var(--dropby-radius-lg) var(--dropby-radius-lg) 0 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Grabber handle: the universal "this sheet can be dragged" affordance */
.dropby-bottom-sheet__toggle::before {
  content: '';
  width: 40px;
  height: 4px;
  border-radius: var(--dropby-radius-full);
  background: var(--dropby-border-color);
  transition: background var(--dropby-transition-fast), width var(--dropby-transition-fast);
}

.dropby-bottom-sheet__toggle:active::before {
  background: var(--dropby-text-muted);
  width: 48px;
}

.dropby-bottom-sheet__chevron {
  width: 20px;
  height: auto;
  color: var(--dropby-text-muted);
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropby-bottom-sheet--expanded .dropby-bottom-sheet__chevron {
  transform: rotate(180deg);
}

.dropby-bottom-sheet__results-count {
  text-align: center;
  padding: 4px 16px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dropby-text-secondary);
  flex-shrink: 0;
}

.dropby-bottom-sheet__results-count .dropby-results-count__number {
  font-weight: 700;
  color: var(--dropby-text);
}

.dropby-bottom-sheet__content {
  flex: 1;
  /* 1. Enable scrolling */
  overflow-y: auto;

  /* 2. Hide scrollbar for Chrome, Safari and Opera */
  &::-webkit-scrollbar {
    display: none;
  }

  /* 3. Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */

  /* Keep your existing smooth scrolling tweaks */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}

/* =========================================
   Mobile Filter Overlay (full-screen)
   ========================================= */
.dropby-filter-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--dropby-bg);
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--dropby-transition-slow);
}

.dropby-filter-overlay--open {
  display: flex;
  transform: translateY(0);
}

.dropby-filter-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dropby-border-light);
  flex-shrink: 0;
}

.dropby-filter-overlay__title {
  font-weight: 600;
  font-size: 18px;
  color: var(--dropby-text);
}

.dropby-filter-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: var(--dropby-radius-sm);
  cursor: pointer;
  color: var(--dropby-text-muted);
  transition: all var(--dropby-transition-fast);
}

.dropby-filter-overlay__close:hover {
  background: var(--dropby-bg-muted);
  color: var(--dropby-text);
}

.dropby-filter-overlay__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.dropby-filter-overlay__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--dropby-border-light);
  flex-shrink: 0;
}

.dropby-filter-overlay__apply-btn {
  width: 100%;
  padding: 14px;
  background: var(--dropby-accent);
  color: white;
  border: none;
  border-radius: var(--dropby-radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dropby-transition-fast);
}

.dropby-filter-overlay__apply-btn:hover {
  background: var(--dropby-accent-dark);
}

/* =========================================
   Responsive: Desktop (>= 769px)
   ========================================= */
@media (min-width: 769px) {
  .dropby-mobile-search { display: none !important; }
  .dropby-bottom-sheet { display: none !important; }
  .dropby-filter-overlay { display: none !important; }

  /* Desktop search row spacing */
  .dropby-search__row {
    gap: 8px;
  }

  /* Desktop filter popover button visual tweaks */
  .dropby-search__btn {
    background: var(--dropby-bg);
  }

  .dropby-search__btn:hover {
    background: var(--dropby-bg-subtle);
    border-color: var(--dropby-border-color);
    color: var(--dropby-text-secondary);
  }
}

/* =========================================
   Responsive: Mobile (<= 768px)
   ========================================= */
@media (max-width: 768px) {
  /* Hide desktop sidebar and its collapse toggle */
  .dropby-sidebar { display: none; }
  .dropby-sidebar-toggle { display: none; }

  /* Container becomes layered */
  .dropby-store-locator {
    flex-direction: column;
    height: var(--dropby-mobile-height);
    position: relative;
    overflow: hidden;
  }

  /* Map fills entire container */
  .dropby-map-pane {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* Show floating search */
  .dropby-mobile-search {
    display: flex;
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    background: var(--dropby-bg);
    border: 1px solid transparent;
    border-radius: var(--dropby-radius-full);
    box-shadow: var(--dropby-shadow-md);
    padding: 6px 8px 6px 12px;
    transition: border-color var(--dropby-transition-fast), box-shadow var(--dropby-transition-fast);
  }

  .dropby-mobile-search:focus-within {
    border-color: var(--dropby-accent);
    box-shadow: var(--dropby-shadow-md), var(--dropby-shadow-glow);
  }

  /* Show bottom sheet */
  .dropby-bottom-sheet {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% - 85px);
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--dropby-bg);
    border-radius: var(--dropby-radius-lg) var(--dropby-radius-lg) 0 0;
    box-shadow: 0 -4px 24px -4px rgba(0, 0, 0, 0.14);
    min-height: 85px;
    max-height: 80%;
    transition: top 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .dropby-bottom-sheet--expanded {
    top: 20%;
  }

  /* List-item chevron in bottom sheet (base SVG already points right) */
  .dropby-bottom-sheet .dropby-location-item__chevron {
    color: var(--dropby-accent);
  }

  /* Hours adjustments */
  .dropby-hours-toggle { padding: 10px 12px; }
  .dropby-hours-toggle__left { gap: 10px; }
  .dropby-hours-status { padding: 4px 8px; font-size: 10px; }
  .dropby-hours-toggle__time { font-size: 13px; }

}

/* Small Mobile */
@media (max-width: 400px) {
  .dropby-hours-toggle__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .dropby-hours-toggle__today {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .dropby-hours-toggle__day { font-size: 10px; }
  .dropby-hours-toggle__time { font-size: 12px; }

  .dropby-hours-section .dropby-hours__grid {
    gap: 6px 12px;
    font-size: 12px;
  }

}

/* =========================================
   Autocomplete Dropdown
   ========================================= */
.dropby-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--dropby-bg);
  border: 1px solid var(--dropby-border-color);
  border-radius: var(--dropby-radius-sm);
  box-shadow: var(--dropby-shadow-lg);
  z-index: 1000;
  /* Holds up to 5 results; scrolls only where the viewport is too short for them. */
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
}

.dropby-autocomplete__item {
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--dropby-transition-fast);
}

.dropby-autocomplete__item:not(:last-child) {
  border-bottom: 1px solid var(--dropby-border-light);
}

.dropby-autocomplete__item:hover,
.dropby-autocomplete__item--active {
  background: var(--dropby-bg-subtle);
}

.dropby-autocomplete__item-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--dropby-text);
  line-height: 1.3;
}

.dropby-autocomplete__item-name strong {
  font-weight: 700;
}

.dropby-autocomplete__item-secondary {
  font-size: 12px;
  color: var(--dropby-text-secondary);
  line-height: 1.3;
  margin-top: 2px;
}

.dropby-autocomplete__empty {
  padding: 12px 14px;
}

.dropby-autocomplete__empty-text {
  font-size: 13px;
  color: var(--dropby-text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .dropby-autocomplete {
    box-shadow: var(--dropby-shadow-md);
  }
}

/* =========================================
   Utility Classes
   ========================================= */
.dropby-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;
}

.dropby-hidden {
  display: none !important;
}

/* Reduced Motion */
/* Loading spinner for lazy-loaded detail content */
.dropby-location-item__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}
.dropby-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--dropby-border-color, #e5e5e5);
  border-top-color: var(--dropby-accent, #333);
  border-radius: 50%;
  animation: dropby-spin 0.6s linear infinite;
}
@keyframes dropby-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dropby-store-locator *,
  .dropby-store-locator *::before,
  .dropby-store-locator *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
