/*
  Pollux Store Locator - Theme Extension Styles
  Desktop: Unified container with sidebar + map
  Mobile: Layered map with floating search + bottom sheet
*/

/* =========================================
   CSS Custom Properties
   Core colors injected via inline style from Liquid settings:
   --pollux-accent, --pollux-bg, --pollux-text,
   --pollux-border-color, --pollux-border-width, --pollux-radius,
   --pollux-shadow, --pollux-height, --pollux-mobile-height
   ========================================= */
.pollux-store-locator {
  /* Derived accent shades */
  --pollux-accent-light: color-mix(in srgb, var(--pollux-accent) 15%, white);
  --pollux-accent-lighter: color-mix(in srgb, var(--pollux-accent) 8%, white);
  --pollux-accent-dark: color-mix(in srgb, var(--pollux-accent) 85%, black);

  /* Derived text shades */
  --pollux-text-secondary: color-mix(in srgb, var(--pollux-text) 60%, transparent);
  --pollux-text-muted: color-mix(in srgb, var(--pollux-text) 40%, transparent);

  /* Derived backgrounds */
  --pollux-bg-subtle: color-mix(in srgb, var(--pollux-bg) 97%, var(--pollux-text));
  --pollux-bg-muted: color-mix(in srgb, var(--pollux-bg) 94%, var(--pollux-text));

  /* Derived borders */
  --pollux-border-light: color-mix(in srgb, var(--pollux-border-color) 50%, transparent);

  /* Layout tokens */
  --pollux-sidebar-width: 380px;

  /* Shadows */
  --pollux-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --pollux-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --pollux-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --pollux-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --pollux-shadow-glow: 0 0 0 3px color-mix(in srgb, var(--pollux-accent) 20%, transparent);

  /* Radius tokens */
  --pollux-radius-sm: 8px;
  --pollux-radius-md: 12px;
  --pollux-radius-lg: 16px;
  --pollux-radius-full: 9999px;

  /* Transitions */
  --pollux-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --pollux-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --pollux-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Base Reset & Container
   ========================================= */
.pollux-store-locator {
  display: flex;
  height: var(--pollux-height);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pollux-text);
  background: var(--pollux-bg);
  border-radius: var(--pollux-radius);
  border: var(--pollux-border-width) solid var(--pollux-border-color);
  box-shadow: var(--pollux-shadow);
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pollux-store-locator *,
.pollux-store-locator *::before,
.pollux-store-locator *::after {
  box-sizing: border-box;
}

/* =========================================
   Header Section (above container)
   ========================================= */
.pollux-header {
  margin-bottom: 16px;
}

.pollux-header__title {
  font-family: inherit;
  margin: 0 0 8px;
  line-height: 1.2;
}

.pollux-header__title--h0 { font-size: 2.5rem; }
.pollux-header__title--h1 { font-size: 2rem; }
.pollux-header__title--h2 { font-size: 1.5rem; }

.pollux-header__description {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.75;
}

.pollux-header__description p {
  margin: 0;
}

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

.pollux-sidebar__header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--pollux-bg);
}

.pollux-sidebar__results-bar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--pollux-border-light);
  flex-shrink: 0;
}

.pollux-results-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--pollux-text-secondary);
}

.pollux-results-count__number {
  font-weight: 700;
  color: var(--pollux-text);
}

.pollux-sidebar__list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Custom Scrollbar */
.pollux-sidebar__list::-webkit-scrollbar {
  width: 6px;
}

.pollux-sidebar__list::-webkit-scrollbar-track {
  background: transparent;
}

.pollux-sidebar__list::-webkit-scrollbar-thumb {
  background: var(--pollux-border-color);
  border-radius: var(--pollux-radius-full);
}

.pollux-sidebar__list::-webkit-scrollbar-thumb:hover {
  background: var(--pollux-text-muted);
}

/* =========================================
   Search Components (embedded in sidebar header)
   ========================================= */
.pollux-search__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pollux-search__input-wrapper {
  flex: 1;
  position: relative;
}

.pollux-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--pollux-text-muted);
  pointer-events: none;
  transition: color var(--pollux-transition-fast);
}

/*

*/
.pollux-search__input-wrapper:focus-within .pollux-search__icon {
  color: var(--pollux-accent);
}

.pollux-search__input {
  width: 100%;
  padding: 12px 72px 12px 44px;
  border: 1.5px solid var(--pollux-border-color);
  border-radius: var(--pollux-radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--pollux-text);
  background: var(--pollux-bg);
  transition: all var(--pollux-transition-fast);
}

.pollux-search__input:hover {
  border-color: #E3E3E3;
}

.pollux-search__input:focus {
  outline: none;
  border-color: var(--pollux-accent);
}

.pollux-search__input::placeholder {
  color: var(--pollux-text-muted);
  font-weight: 400;
}

/* Filter Button */
.pollux-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--pollux-bg-subtle);
  border: 1.5px solid var(--pollux-border-color);
  border-radius: var(--pollux-radius-md);
  color: var(--pollux-text-secondary);
  cursor: pointer;
  transition: all var(--pollux-transition-fast);
  flex-shrink: 0;
}

.pollux-search__btn:hover {
  background: var(--pollux-bg-muted);
  border-color: var(--pollux-accent);
  color: var(--pollux-text);
}

.pollux-search__btn:active {
  transform: scale(0.96);
}

.pollux-search__btn--active {
  background: var(--pollux-accent-lighter);
  border-color: var(--pollux-accent);
  color: var(--pollux-accent);
}

.pollux-search__btn-icon {
  width: 18px;
  height: 18px;
}

/* Geolocation Button (inside search input) */
.pollux-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(--pollux-text-muted);
  transition: color var(--pollux-transition-fast);
}

.pollux-search__geo-btn:hover {
  color: var(--pollux-accent);
}

.pollux-search__geo-btn--active {
  color: var(--pollux-accent);
}

/* Clear Button (inside search input) */
.pollux-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(--pollux-text-muted);
  transition: color var(--pollux-transition-fast);
}

.pollux-search__clear-btn:hover {
  color: var(--pollux-text);
}

.pollux-search__clear-btn--visible {
  display: flex;
}

/* =========================================
   Filter Panel - Dropdown Card
   ========================================= */
.pollux-filter-wrapper {
  position: relative;
}

.pollux-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--pollux-bg);
  border: 1px solid #E3E3E3;
  border-radius: var(--pollux-radius-lg);
  box-shadow: var(--pollux-shadow-xl);
  padding: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--pollux-transition-base);
}

.pollux-filter-panel--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pollux-filter-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pollux-border-light);
}

.pollux-filter-panel__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--pollux-text);
}

.pollux-filter-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--pollux-radius-sm);
  cursor: pointer;
  color: var(--pollux-text-muted);
  transition: all var(--pollux-transition-fast);
}

.pollux-filter-panel__close:hover {
  background: var(--pollux-bg-muted);
  color: var(--pollux-text);
}

.pollux-filter-panel__body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

/* Distance Unit Toggle */
.pollux-distance-toggle {
  display: flex;
  background: var(--pollux-bg-muted);
  border-radius: var(--pollux-radius-full);
  padding: 4px;
  margin-bottom: 12px;
}

.pollux-distance-toggle__btn {
  flex: 1;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: var(--pollux-radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--pollux-text-secondary);
  cursor: pointer;
  transition: all var(--pollux-transition-fast);
}

.pollux-distance-toggle__btn--active {
  background: var(--pollux-bg);
  color: var(--pollux-accent);
  box-shadow: var(--pollux-shadow-sm);
}

.pollux-distance-toggle__btn:hover:not(.pollux-distance-toggle__btn--active) {
  color: var(--pollux-text);
}

/* Filter Groups */
.pollux-filter-group {
  margin-bottom: 20px;
}

.pollux-filter-group:last-child {
  margin-bottom: 0;
}

.pollux-filter-group__title {
  font-weight: 600;
  font-size: 13px;
  color: var(--pollux-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Checkboxes */
.pollux-filter-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pollux-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--pollux-radius-md);
  cursor: pointer;
  transition: background var(--pollux-transition-fast);
  user-select: none;
}

.pollux-filter-checkbox:hover {
  background: var(--pollux-bg-subtle);
}

.pollux-filter-checkbox__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pollux-filter-checkbox__box {
  position: relative;
  width: 20px;
  height: 20px;
  background: var(--pollux-bg);
  border: 2px solid var(--pollux-border-color);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all var(--pollux-transition-fast);
}

.pollux-filter-checkbox__input:checked + .pollux-filter-checkbox__box {
  background: var(--pollux-accent);
  border-color: var(--pollux-accent);
}

.pollux-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(--pollux-transition-fast);
}

.pollux-filter-checkbox__input:checked + .pollux-filter-checkbox__box::after {
  transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.pollux-filter-checkbox__icon {
  width: 18px;
  height: 18px;
  color: var(--pollux-text-secondary);
  flex-shrink: 0;
}

.pollux-filter-checkbox__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--pollux-text);
  flex: 1;
}

.pollux-filter-checkbox__input:checked ~ .pollux-filter-checkbox__label {
  color: var(--pollux-accent);
}

/* Radio filter variant (circle indicator) */
.pollux-filter-checkbox--radio .pollux-filter-checkbox__box {
  border-radius: 50%;
}

.pollux-filter-checkbox--radio .pollux-filter-checkbox__box::after {
  width: 10px;
  height: 10px;
  border: none;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.pollux-filter-checkbox--radio .pollux-filter-checkbox__input:checked + .pollux-filter-checkbox__box::after {
  transform: translate(-50%, -50%) scale(1);
}

.pollux-filter-divider {
  height: 1px;
  background: var(--pollux-border-light);
  margin: 16px 0;
}

/* Reset all filters link */
.pollux-filter-reset {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pollux-border-light);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--pollux-accent);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity var(--pollux-transition-fast);
}

.pollux-filter-reset:hover {
  opacity: 0.8;
}

/* =========================================
   Location List Items (Left Accent Strip Design)
   ========================================= */
.pollux-location-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  cursor: pointer;
  transition: background var(--pollux-transition-fast), border-left-color var(--pollux-transition-fast);
  
  /* Base Border Settings */
  border: none; /* Reset the full border */
  border-bottom: 1px solid var(--pollux-border-light);
  
  /* The "Invisible" Strip (Prevents text jumping when active) */
  border-left: 4px solid transparent; 
  
  position: relative;
}

.pollux-location-item:last-child {
  border-bottom: none;
}

.pollux-location-item:hover {
  background: #f9f9f9;
}

.pollux-location-item--active {
  /* The Visible Accent Strip */
  border-left-color: var(--pollux-accent);
/* Optional: Remove the blue background tint for a cleaner look */ background: #ffffff; } .pollux-location-item--active:hover { background: #ffffff; }

/* Card Content */
.pollux-location-item__content {
  flex: 1;
  min-width: 0;
}

.pollux-location-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.pollux-location-item__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--pollux-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pollux-location-item__distance {
  font-size: 12px;
  font-weight: 600;
  color: var(--pollux-accent);
  background: color-mix(in srgb, var(--pollux-accent) 15%, white);
  padding: 2px 8px;
  border-radius: var(--pollux-radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.pollux-location-item__address {
  font-size: 13px;
  color: var(--pollux-text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* Accordion Summary & Expanded States */
.pollux-location-item__summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.pollux-location-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--pollux-radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.pollux-location-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pollux-location-item__info {
  flex: 1;
  min-width: 0;
}

.pollux-location-item__chevron {
  width: 20px;
  height: 20px;
  color: var(--pollux-text-muted);
  flex-shrink: 0;
  transition: transform var(--pollux-transition-base);
  margin-top: 2px;
}

.pollux-location-item--expanded .pollux-location-item__chevron {
  transform: rotate(180deg);
}

.pollux-location-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.pollux-location-item__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.pollux-location-item__status--open {
  color: #16a34a;
}

.pollux-location-item__status--closed {
  color: #dc2626;
}

.pollux-location-item__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pollux-pulse 2s ease-in-out infinite;
}

.pollux-location-item__contact-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pollux-location-item__contact-icons svg {
  width: 14px;
  height: 14px;
  color: var(--pollux-text-muted);
}

/* Expanded Content */
.pollux-location-item__expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.25s ease-out;
  opacity: 0;
}

.pollux-location-item--expanded .pollux-location-item__expanded {
  max-height: 800px;
  opacity: 1;
  transition: max-height 0.45s ease-in, opacity 0.3s ease-in;
}

.pollux-location-item__expanded-inner {
  padding: 16px 0 4px;
}

.pollux-location-item__hero {
  width: 100%;
  border-radius: var(--pollux-radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.pollux-location-item__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pollux-location-item__action {
  margin-top: 12px;
}

/* =========================================
   Pagination
   ========================================= */
.pollux-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--pollux-border-light);
  background: var(--pollux-bg);
  flex-shrink: 0;
}

.pollux-pagination__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--pollux-accent);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.pollux-pagination__chevron:disabled {
  opacity: 0.3;
  cursor: default;
}

.pollux-pagination__label {
  font-size: 14px;
  color: var(--pollux-text);
  font-family: inherit;
  user-select: none;
}

/* =========================================
   Map Pane
   ========================================= */
.pollux-map-pane {
  flex: 1;
  position: relative;
  min-width: 0;
}

.pollux-map {
  width: 100%;
  height: 100%;
}

/* MapLibre Control Overrides */
.pollux-store-locator .maplibregl-ctrl-group {
  border-radius: var(--pollux-radius-md) !important;
  box-shadow: var(--pollux-shadow-md) !important;
  border: none !important;
  overflow: hidden;
}

.pollux-store-locator .maplibregl-ctrl-group button {
  width: 36px !important;
  height: 36px !important;
}

.pollux-store-locator .maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--pollux-border-light) !important;
}

@media (max-width: 768px) {
  .pollux-store-locator .maplibregl-ctrl-top-right {
    top: 60px !important;
  }
}

/* =========================================
   Map Markers
   ========================================= */
.pollux-marker {
  --marker-size: 40px;
  width: var(--marker-size);
  height: auto;
  cursor: pointer;
  transition: filter var(--pollux-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pollux-marker svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  transition: filter var(--pollux-transition-fast);
}

.pollux-marker:hover svg {
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.pollux-marker:hover svg path {
  stroke: white;
  stroke-width: 12px;
  paint-order: stroke;
}

.pollux-marker--active svg {
  overflow: visible;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.pollux-marker--active svg path {
  stroke: white;
  stroke-width: 12px;
  paint-order: stroke;
}

.pollux-marker img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  transition: filter var(--pollux-transition-fast);
}

.pollux-marker:hover img {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.pollux-marker--active img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pollux-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Shared Hours Styles (used by desktop accordion and mobile detail view) */
.pollux-hours__day {
  font-weight: 500;
  color: var(--pollux-text);
}

.pollux-hours__day--today {
  color: var(--pollux-accent);
}

.pollux-hours__time {
  color: var(--pollux-text-secondary);
  text-align: right;
}

.pollux-hours__time--closed {
  color: #EF4444;
}

.pollux-hours__time--special {
  color: #D97706;
  font-weight: 600;
}

.pollux-hours__time--special.pollux-hours__time--closed {
  color: #B45309;
}

.pollux-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) */
.pollux-hours-section {
  margin-bottom: 16px;
  border-radius: var(--pollux-radius-md);
  /*background: var(--pollux-bg-subtle);*/
  overflow: hidden;
  border: 1px solid var(--pollux-border-light);
}

.pollux-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(--pollux-transition-fast);
}

.pollux-hours-toggle:hover {
  background: var(--pollux-bg-muted);
}

.pollux-hours-toggle__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pollux-hours-toggle__today {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pollux-hours-toggle__day {
  font-size: 11px;
  font-weight: 600;
  color: var(--pollux-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pollux-hours-toggle__time {
  font-size: 14px;
  font-weight: 600;
  color: var(--pollux-text);
}

.pollux-hours-toggle__time--special {
  color: #D97706;
}

.pollux-hours-toggle__arrow {
  width: 18px;
  height: 18px;
  color: var(--pollux-text-muted);
  flex-shrink: 0;
  transition: transform var(--pollux-transition-base);
}

.pollux-hours-section--expanded .pollux-hours-toggle__arrow {
  transform: rotate(180deg);
}

/* Hours Status Badge */
.pollux-hours-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--pollux-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.pollux-hours-status--open {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.pollux-hours-status--closed {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.pollux-hours-status--special {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
}

.pollux-hours-status--special.pollux-hours-status--open {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.pollux-hours-status--special.pollux-hours-status--closed {
  background: linear-gradient(135deg, #B45309, #92400E);
}

.pollux-hours-status__special {
  font-weight: 700;
  margin-left: 2px;
}

.pollux-hours-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pollux-pulse 2s ease-in-out infinite;
}

.pollux-hours-status__text {
  line-height: 1;
}

/* Hours Grid Wrapper (Collapsible) */
.pollux-hours__grid-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--pollux-transition-slow) ease-out,
              padding var(--pollux-transition-slow) ease-out,
              opacity var(--pollux-transition-base) ease-out;
  opacity: 0;
  padding: 0 14px;
}

.pollux-hours-section--expanded .pollux-hours__grid-wrapper {
  max-height: 300px;
  padding: 0 14px 14px 14px;
  opacity: 1;
}

.pollux-hours-section .pollux-hours__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--pollux-border-light);
}

.pollux-description__text { display: inline; }
.pollux-description__remaining { display: none; }

.pollux-description__text.pollux-description--expanded .pollux-description__remaining {
  display: inline;
}

.pollux-description__text.pollux-description--expanded .pollux-description__toggle {
  margin-left: 4px;
}

.pollux-description__toggle {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--pollux-accent);
  cursor: pointer;
  transition: color var(--pollux-transition-fast);
}

.pollux-description__toggle:hover {
  color: var(--pollux-accent-dark);
  text-decoration: underline;
}

/* =========================================
   Shared Contact Section
   ========================================= */
.pollux-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pollux-contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--pollux-text);
  text-decoration: none;
  transition: color var(--pollux-transition-fast);
}

.pollux-contact__item:hover {
  color: var(--pollux-accent);
}

.pollux-contact__icon {
  width: 18px;
  height: 18px;
  color: var(--pollux-text-muted);
  flex-shrink: 0;
}

.pollux-contact__label {
  font-weight: 600;
  color: var(--pollux-text-secondary);
  margin-right: 2px;
}

/* =========================================
   Primary Action Button (shared)
   ========================================= */
.pollux-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: opacity var(--pollux-transition-fast), transform var(--pollux-transition-fast);
}

.pollux-primary-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.pollux-primary-btn__icon {
  width: 18px;
  height: 18px;
}

/* =========================================
   Mobile Detail View
   ========================================= */
.pollux-detail__header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--pollux-bg);
  border-bottom: 1px solid var(--pollux-border-light);
}

.pollux-detail__back,
.pollux-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(--pollux-accent);
  cursor: pointer;
  border-radius: var(--pollux-radius-md);
  transition: background var(--pollux-transition-fast);
}

.pollux-detail__back:hover,
.pollux-detail__close:hover {
  background: var(--pollux-bg-muted);
}

.pollux-detail__back svg,
.pollux-detail__close svg {
  width: 16px;
  height: 16px;
}

.pollux-detail__body {
  padding: 20px 16px;
  overflow-y: auto;
}

.pollux-detail__hero {
  width: 100%;
  border-radius: var(--pollux-radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.pollux-detail__hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pollux-detail__name {
  font-weight: 700;
  font-size: 20px;
  color: var(--pollux-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.pollux-detail__address {
  font-size: 14px;
  color: var(--pollux-text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.pollux-detail__distance {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pollux-accent);
  background: color-mix(in srgb, var(--pollux-accent) 15%, white);
  padding: 2px 8px;
  border-radius: var(--pollux-radius-full);
  margin-bottom: 12px;
}

.pollux-detail__description {
  font-size: 14px;
  color: var(--pollux-text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.pollux-detail__footer {
  position: sticky;
  bottom: 0;
  padding: 12px 16px;
  background: var(--pollux-bg);
  border-top: 1px solid var(--pollux-border-light);
}

/* =========================================
   Loading & Empty States
   ========================================= */
.pollux-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 16px;
}

.pollux-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--pollux-bg-muted);
  border-top-color: var(--pollux-accent);
  border-radius: 50%;
  animation: pollux-spin 0.8s linear infinite;
}

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

.pollux-loading__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--pollux-text-secondary);
}

.pollux-empty {
  text-align: center;
  padding: 48px 24px;
}

.pollux-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--pollux-text-muted);
  opacity: 0.5;
}

.pollux-empty__title {
  font-weight: 600;
  font-size: 16px;
  color: var(--pollux-text);
  margin-bottom: 8px;
}

.pollux-empty__description {
  font-size: 14px;
  color: var(--pollux-text-secondary);
}

.pollux-empty__icon--small {
  width: 44px;
  height: 44px;
}

.pollux-empty__link {
  color: var(--pollux-accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.pollux-empty__link:hover {
  color: var(--pollux-accent-dark);
}

.pollux-error {
  text-align: center;
  padding: 48px 24px;
}

.pollux-error__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: #EF4444;
}

.pollux-error__message {
  font-size: 14px;
  color: var(--pollux-text-secondary);
}

/* =========================================
   Mobile Floating Search
   ========================================= */
.pollux-mobile-search {
  display: none;
}

.pollux-mobile-search__row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.pollux-mobile-search__input-wrapper {
  flex: 1;
  position: relative;
}

.pollux-mobile-search__icon {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--pollux-text-muted);
  pointer-events: none;
}

.pollux-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(--pollux-text);
  outline: none;
}

.pollux-mobile-search__input::placeholder {
  color: var(--pollux-text-muted);
  font-weight: 400;
}

.pollux-mobile-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--pollux-bg-subtle);
  border: none;
  border-radius: 50%;
  color: var(--pollux-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--pollux-transition-fast);
}

.pollux-mobile-search__btn:hover {
  background: var(--pollux-bg-muted);
  color: var(--pollux-text);
}

.pollux-mobile-search__btn:active {
  transform: scale(0.95);
}

/* Mobile Geolocation Button (inside search input) */
.pollux-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(--pollux-text-muted);
  transition: color var(--pollux-transition-fast);
}

.pollux-mobile-search__geo-btn:hover {
  color: var(--pollux-accent);
}

.pollux-mobile-search__geo-btn--active {
  color: var(--pollux-accent);
}

/* Mobile Clear Button (inside search input) */
.pollux-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(--pollux-text-muted);
  transition: color var(--pollux-transition-fast);
}

.pollux-mobile-search__clear-btn:hover {
  color: var(--pollux-text);
}

.pollux-mobile-search__clear-btn--visible {
  display: flex;
}

/* =========================================
   Mobile Bottom Sheet
   ========================================= */
.pollux-bottom-sheet {
  display: none;
}

.pollux-bottom-sheet__toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  cursor: pointer;
  flex-shrink: 0;
  background: #f3f4f6;
  border-radius: 16px 16px 0 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pollux-bottom-sheet__toggle:active {
  background: #e5e7eb;
}

.pollux-bottom-sheet__chevron {
  color: #6b7280;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pollux-bottom-sheet--expanded .pollux-bottom-sheet__chevron {
  transform: rotate(180deg);
}

.pollux-bottom-sheet__results-count {
  text-align: center;
  padding: 4px 16px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pollux-text-secondary);
  flex-shrink: 0;
}

.pollux-bottom-sheet__results-count .pollux-results-count__number {
  font-weight: 700;
  color: var(--pollux-text);
}

.pollux-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)
   ========================================= */
.pollux-filter-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--pollux-bg);
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--pollux-transition-slow);
}

.pollux-filter-overlay--open {
  display: flex;
  transform: translateY(0);
}

.pollux-filter-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pollux-border-light);
  flex-shrink: 0;
}

.pollux-filter-overlay__title {
  font-weight: 600;
  font-size: 18px;
  color: var(--pollux-text);
}

.pollux-filter-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: var(--pollux-radius-sm);
  cursor: pointer;
  color: var(--pollux-text-muted);
  transition: all var(--pollux-transition-fast);
}

.pollux-filter-overlay__close:hover {
  background: var(--pollux-bg-muted);
  color: var(--pollux-text);
}

.pollux-filter-overlay__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.pollux-filter-overlay__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--pollux-border-light);
  flex-shrink: 0;
}

.pollux-filter-overlay__apply-btn {
  width: 100%;
  padding: 14px;
  background: var(--pollux-accent);
  color: white;
  border: none;
  border-radius: var(--pollux-radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--pollux-transition-fast);
}

.pollux-filter-overlay__apply-btn:hover {
  background: var(--pollux-accent-dark);
}

/* =========================================
   Responsive: Desktop (>= 769px)
   ========================================= */
@media (min-width: 769px) {
  .pollux-mobile-search { display: none !important; }
  .pollux-bottom-sheet { display: none !important; }
  .pollux-filter-overlay { display: none !important; }

  /* Desktop search row spacing */
  .pollux-search__row {
    gap: 8px;
  }

  /* Desktop filter popover button visual tweaks */
  .pollux-search__btn {
    background: var(--pollux-bg);
  }

  .pollux-search__btn:hover {
    background: var(--pollux-bg-subtle);
    border-color: var(--pollux-border-color);
    color: var(--pollux-text-secondary);
  }
}

/* =========================================
   Responsive: Mobile (<= 768px)
   ========================================= */
@media (max-width: 768px) {
  /* Hide desktop sidebar */
  .pollux-sidebar { display: none; }

  /* Container becomes layered */
  .pollux-store-locator {
    flex-direction: column;
    height: var(--pollux-mobile-height);
    position: relative;
    overflow: hidden;
  }

  /* Map fills entire container */
  .pollux-map-pane {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* Show floating search */
  .pollux-mobile-search {
    display: flex;
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    background: var(--pollux-bg);
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 6px 8px 6px 12px;
  }

  /* Show bottom sheet */
  .pollux-bottom-sheet {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% - 85px);
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--pollux-bg);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    min-height: 85px;
    max-height: 80%;
    transition: top 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .pollux-bottom-sheet--expanded {
    top: 20%;
  }

  /* Accent color for interactive elements */
  .pollux-bottom-sheet__chevron {
    color: var(--pollux-accent);
  }

  /* Right-pointing chevron for list items in bottom sheet */
  .pollux-bottom-sheet .pollux-location-item__chevron {
    transform: rotate(-90deg);
    color: var(--pollux-accent);
  }

  /* Hours adjustments */
  .pollux-hours-toggle { padding: 10px 12px; }
  .pollux-hours-toggle__left { gap: 10px; }
  .pollux-hours-status { padding: 4px 8px; font-size: 10px; }
  .pollux-hours-toggle__time { font-size: 13px; }

  /* Header adjustments */
  .pollux-header__title--h0 { font-size: 2rem; }
  .pollux-header__title--h1 { font-size: 1.5rem; }
  .pollux-header__title--h2 { font-size: 1.25rem; }
}

/* Small Mobile */
@media (max-width: 400px) {
  .pollux-hours-toggle__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pollux-hours-toggle__today {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .pollux-hours-toggle__day { font-size: 10px; }
  .pollux-hours-toggle__time { font-size: 12px; }

  .pollux-hours-section .pollux-hours__grid {
    gap: 6px 12px;
    font-size: 12px;
  }

}

/* =========================================
   Autocomplete Dropdown
   ========================================= */
.pollux-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--pollux-bg);
  border: 1px solid var(--pollux-border-color);
  border-radius: var(--pollux-radius-sm);
  box-shadow: var(--pollux-shadow-lg);
  z-index: 1000;
  overflow: hidden;
}

.pollux-autocomplete__item {
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--pollux-transition-fast);
}

.pollux-autocomplete__item:not(:last-child) {
  border-bottom: 1px solid var(--pollux-border-light);
}

.pollux-autocomplete__item:hover,
.pollux-autocomplete__item--active {
  background: var(--pollux-bg-subtle);
}

.pollux-autocomplete__item-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--pollux-text);
  line-height: 1.3;
}

.pollux-autocomplete__item-name strong {
  font-weight: 700;
}

.pollux-autocomplete__item-secondary {
  font-size: 12px;
  color: var(--pollux-text-secondary);
  line-height: 1.3;
  margin-top: 2px;
}

.pollux-autocomplete__empty {
  padding: 12px 14px;
}

.pollux-autocomplete__empty-text {
  font-size: 13px;
  color: var(--pollux-text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .pollux-autocomplete {
    box-shadow: var(--pollux-shadow-md);
  }
}

/* =========================================
   Utility Classes
   ========================================= */
.pollux-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;
}

.pollux-hidden {
  display: none !important;
}

/* Reduced Motion */
/* Loading spinner for lazy-loaded detail content */
.pollux-location-item__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}
.pollux-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--pollux-border-color, #e5e5e5);
  border-top-color: var(--pollux-accent, #333);
  border-radius: 50%;
  animation: pollux-spin 0.6s linear infinite;
}
@keyframes pollux-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pollux-store-locator *,
  .pollux-store-locator *::before,
  .pollux-store-locator *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
