/* ===== HUTCH STORE LOCATOR - STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --hutch-orange: #F37021;
  --hutch-orange-dark: #D45E1A;
  --hutch-orange-light: #FFE8D6;
  --hutch-teal: #00695C;
  --hutch-teal-dark: #004D40;
  --hutch-teal-light: #E0F2F1;
  --bg-primary: #F7F8FA;
  --bg-white: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #5A5A6E;
  --text-muted: #8E8E9E;
  --border-light: #E8E8EE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

/* ===== LAYOUT ===== */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--hutch-teal-dark) 0%, var(--hutch-teal) 100%);
  box-shadow: 0 2px 12px rgba(0,77,64,0.25);
  z-index: 1000;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  height: 38px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 3px 6px;
  object-fit: contain;
}

.header-title {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.header-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 400;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-count-badge {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: clamp(380px, 34vw, 500px);
  min-width: 380px;
  max-width: 500px;
  flex: 0 0 clamp(380px, 34vw, 500px);
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--border-light);
  z-index: 500;
}

/* ===== SEARCH SECTION ===== */
.search-section {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}

.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--hutch-orange);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(243,112,33,0.1);
}

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

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 128px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff3e9;
  color: var(--hutch-orange-dark);
  border: 2px solid var(--hutch-orange);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.clear-search-btn:hover {
  background: var(--hutch-orange);
  color: #fff;
  border-color: var(--hutch-orange-dark);
}

.clear-search-btn:focus-visible {
  outline: 3px solid rgba(243, 112, 33, 0.35);
  outline-offset: 2px;
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--hutch-orange);
  color: #FFF;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: var(--hutch-orange-dark);
  transform: translateY(-50%) scale(1.02);
}

.search-btn:active {
  transform: translateY(-50%) scale(0.98);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}

.autocomplete-dropdown.show {
  display: block;
  animation: dropdownSlide 0.15s ease;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.autocomplete-item {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.12s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #F0F0F5;
}

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

.autocomplete-item:hover,
.autocomplete-item.active {
  background: #FFF7F0;
}

.autocomplete-item .location-icon {
  color: var(--hutch-orange);
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
}

.autocomplete-details {
  flex: 1;
  min-width: 0;
}

.autocomplete-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.autocomplete-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13.5px;
}

.autocomplete-name .highlight {
  color: var(--hutch-orange-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.autocomplete-district-badge {
  background: #E0F2F1;
  color: #00695C;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.autocomplete-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.autocomplete-province {
  color: #5A5A6E;
  font-weight: 500;
}

.autocomplete-area {
  color: #8E8E9E;
  font-style: italic;
}

.autocomplete-dup-tag {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFE0B2;
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: auto;
  white-space: nowrap;
}

/* Search Label & Hints */
.search-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.search-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Header Status Pill */
.header-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 8px #00E676;
}

/* Filter Title */
.filter-title {
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===== CONFIRMED LOCATION CONTAINER & CARD ===== */
.confirmed-location-container {
  padding: 0 16px;
}

.confirmed-location-card {
  background: #FFFFFF;
  border: 1.5px solid var(--hutch-teal);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 10px;
  box-shadow: 0 3px 12px rgba(0, 105, 92, 0.08);
  animation: cardFadeIn 0.25s ease-out;
  position: relative;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.confirmed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.confirmed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--hutch-teal-light);
  color: var(--hutch-teal-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.confirmed-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00897B;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

.confirmed-clear-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 4px;
  transition: all 0.15s;
}

.confirmed-clear-btn:hover {
  background: #FEE8E8;
  border-color: #EF9A9A;
  color: #D32F2F;
}

.confirmed-main-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.confirmed-city-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.confirmed-district-pill {
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.confirmed-province-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.confirmed-details-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  background: var(--bg-primary);
  padding: 8px 10px;
  border-radius: 6px;
}

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

.confirmed-detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.confirmed-detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

.confirmed-detail-value.highlight {
  color: var(--hutch-orange-dark);
}

/* ===== SAME-NAME DISAMBIGUATION WARNING & CHIPS ===== */
.same-name-warning-box {
  margin-top: 10px;
  background: #FFFDF0;
  border: 1px solid #FFE082;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
}

.same-name-warning-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #B78103;
  font-weight: 700;
  margin-bottom: 4px;
}

.same-name-warning-desc {
  color: #5D4037;
  margin-bottom: 8px;
  line-height: 1.35;
}

.same-name-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.same-name-chip-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #FFD54F;
  color: #37474F;
  font-size: 11.5px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.same-name-chip-btn:hover {
  background: #FFF3E0;
  border-color: var(--hutch-orange);
  color: var(--hutch-orange-dark);
  transform: translateX(2px);
}

.same-name-chip-btn.active {
  background: var(--hutch-orange);
  border-color: var(--hutch-orange-dark);
  color: #FFFFFF;
  font-weight: 600;
}

.same-name-chip-btn.active .chip-district {
  color: #FFFFFF;
}

.same-name-chip-btn .chip-district {
  font-weight: 600;
  color: #1A1A2E;
}

.same-name-chip-btn .chip-action {
  font-size: 10.5px;
  opacity: 0.85;
}

/* Disambiguation List for Direct Text Searches */
.disambiguation-panel {
  padding: 14px;
  background: #FFF8E1;
  border: 1.5px solid #FFD54F;
  border-radius: var(--radius-md);
  margin: 10px 16px;
}

.disambiguation-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #E65100;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.disambiguation-desc {
  font-size: 12px;
  color: #4E342E;
  margin-bottom: 10px;
  line-height: 1.4;
}

.disambiguation-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disambiguation-choice-card {
  background: #FFFFFF;
  border: 1px solid #FFCA28;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.disambiguation-choice-card:hover {
  border-color: var(--hutch-orange);
  background: #FFF3E0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.disambiguation-choice-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.disambiguation-choice-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.filter-section {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--hutch-orange);
  color: var(--hutch-orange);
}

.filter-btn.active {
  background: var(--hutch-orange);
  color: #FFF;
  border-color: var(--hutch-orange);
}

/* ===== RESULTS ===== */
.results-section {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
}

.results-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-white);
  z-index: 10;
  border-bottom: 1px solid var(--border-light);
}

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

.results-sort {
  font-size: 12px;
  color: var(--text-muted);
}

.results-list {
  padding: 8px;
}

/* ===== STORE CARD ===== */
.store-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

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

.store-card.active {
  border-color: var(--hutch-orange);
  box-shadow: 0 0 0 2px rgba(243,112,33,0.15);
  background: #FFFAF5;
}

.store-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.store-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-flagship {
  background: linear-gradient(135deg, #F37021, #FF9A56);
  color: #FFFFFF;
}

.badge-signature, .badge-signature_plus {
  background: linear-gradient(135deg, #00695C, #26A69A);
  color: #FFFFFF;
}

.badge-dealer {
  background: #E8E8EE;
  color: var(--text-secondary);
}

.store-distance {
  font-size: 13px;
  font-weight: 700;
  color: var(--hutch-orange);
  white-space: nowrap;
}

.store-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.store-address {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.store-address .addr-icon {
  color: var(--hutch-orange);
  flex-shrink: 0;
  margin-top: 1px;
}

.store-landmark {
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 18px;
  font-style: italic;
}

.store-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.store-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.store-meta-item .meta-icon {
  font-size: 12px;
  color: var(--hutch-teal);
}

.store-direction-btn {
  margin-left: auto;
  background: var(--hutch-teal);
  color: #FFF;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-direction-btn:hover {
  background: var(--hutch-teal-dark);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
}

/* ===== MAP SECTION ===== */
.map-section {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

/* Map Controls */
.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-control-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.map-control-btn:hover {
  background: var(--hutch-orange-light);
  border-color: var(--hutch-orange);
  color: var(--hutch-orange);
}

.map-control-btn.active {
  background: var(--hutch-orange);
  color: #FFF;
  border-color: var(--hutch-orange);
}

/* Leaflet custom popup */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  min-width: 240px !important;
}

.popup-content {
  padding: 14px 16px;
}

.popup-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.popup-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.popup-address {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.popup-landmark {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.popup-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.popup-distance {
  font-size: 13px;
  font-weight: 700;
  color: var(--hutch-orange);
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
}

.popup-directions-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--hutch-teal);
  color: #FFF;
  text-decoration: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.popup-directions-link:hover {
  background: var(--hutch-teal-dark);
}

/* Custom Marker styles */
.custom-marker {
  position: relative;
}

.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-pin::after {
  content: '';
  width: 14px;
  height: 14px;
  margin: 1px 0 0 1px;
  background: #FFF;
  position: absolute;
  border-radius: 50%;
}

.marker-flagship .marker-pin {
  background: var(--hutch-orange);
  box-shadow: 0 2px 8px rgba(243,112,33,0.5);
}

.marker-signature .marker-pin,
.marker-signature_plus .marker-pin {
  background: var(--hutch-teal);
  box-shadow: 0 2px 8px rgba(0,105,92,0.5);
}

.marker-dealer .marker-pin {
  background: #546E7A;
  box-shadow: 0 2px 8px rgba(84,110,122,0.5);
}

/* Customer location marker */
.customer-marker .marker-pin {
  background: #D32F2F;
  box-shadow: 0 2px 8px rgba(211,47,47,0.5);
}

/* Pulse animation for customer marker */
.customer-pulse {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  position: absolute;
  left: -5px;
  top: -5px;
  animation: pulse 2s ease-out infinite;
  background: rgba(211,47,47,0.3);
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ===== SCROLLBAR ===== */
.results-section::-webkit-scrollbar,
.autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}

.results-section::-webkit-scrollbar-track,
.autocomplete-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.results-section::-webkit-scrollbar-thumb,
.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.results-section::-webkit-scrollbar-thumb:hover,
.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: #CCC;
}

/* ===== LOADING ===== */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  display: none;
}

.loading-overlay.show {
  display: flex;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--hutch-orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header {
    padding: 8px 16px;
  }

  .main-content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 56%;
    max-height: none;
    flex: 0 0 56%;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .map-section {
    width: 100%;
    min-height: 180px;
    flex: 1 1 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .header {
    gap: 8px;
    padding: 8px 12px;
  }

  .header-left {
    min-width: 0;
    gap: 8px;
  }

  .header-logo {
    height: 32px;
  }

  .header-title {
    font-size: 16px;
  }

  .header-subtitle {
    display: none;
  }

  .header-right {
    gap: 6px;
  }

  .store-count-badge {
    max-width: 110px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .search-section {
    padding: 12px;
  }

  .search-wrapper {
    padding-bottom: 44px;
  }

  .search-input {
    min-height: 46px;
    padding-right: 14px;
  }

  .search-icon {
    top: 23px;
  }

  .clear-search-btn {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: calc(50% - 4px);
    min-height: 40px;
    transform: none;
  }

  .search-btn,
  .search-btn:hover,
  .search-btn:active {
    top: auto;
    right: 0;
    bottom: 0;
    width: calc(50% - 4px);
    min-height: 40px;
    transform: none;
  }

  .filter-section {
    padding: 10px 12px;
  }

  .results-header {
    gap: 8px;
    padding: 10px 12px;
  }

  .store-card {
    padding: 12px;
  }

  .store-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .map-controls {
    top: 8px;
    right: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .map-control-btn {
    padding: 7px 9px;
    font-size: 11px;
  }

  .app-footer {
    padding: 6px 10px;
  }
}

@media (min-width: 600px) and (max-width: 900px) and (max-height: 520px) {
  .main-content {
    flex-direction: row;
  }

  .sidebar {
    width: 46%;
    min-width: 300px;
    max-width: 420px;
    height: auto;
    flex: 0 0 46%;
    border-right: 1px solid var(--border-light);
    border-bottom: 0;
  }

  .map-section {
    width: auto;
    min-height: 0;
    flex: 1 1 0;
  }
}

/* ===== APP FOOTER ===== */
.app-footer {
  background: linear-gradient(90deg, #00332A 0%, #004D40 50%, #00332A 100%);
  color: #FFFFFF;
  padding: 8px 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

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

.footer-badge {
  background: var(--hutch-orange);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-text {
  color: rgba(255,255,255,0.92);
  font-size: 12px;
}

.footer-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

.footer-right {
  display: flex;
  align-items: center;
}

.footer-meta {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
}

/* ===== HEADER ACTION BUTTONS ===== */
.header-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.geocoding-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ===== AUTOCOMPLETE ONLINE SEARCH ACTION ITEM ===== */
.autocomplete-online-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #FFF8F2;
  border-top: 1px dashed var(--hutch-orange-light);
  color: var(--hutch-orange-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.autocomplete-online-action:hover {
  background: #FFE8D6;
}

.autocomplete-online-badge {
  background: var(--hutch-orange);
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* ===== MODAL OVERLAY & CARD ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--hutch-teal-dark) 0%, var(--hutch-teal) 100%);
  color: #FFFFFF;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 22px;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
}

.modal-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.geocoding-info-box {
  background: #E8F5E9;
  border-left: 4px solid #2E7D32;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #1B5E20;
  line-height: 1.45;
}

.geocoding-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.input-with-button {
  display: flex;
  position: relative;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--hutch-teal);
  box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.15);
  background: #FFFFFF;
}

.form-sub-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.form-sub-btn:hover {
  opacity: 1;
}

.form-help {
  font-size: 11px;
  color: var(--text-secondary);
}

.form-help a {
  color: var(--hutch-teal);
  text-decoration: underline;
  font-weight: 500;
}

.geocoding-status-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.status-label {
  color: var(--text-muted);
}

.status-val {
  font-weight: 500;
  color: var(--text-primary);
}

.status-val.highlight {
  color: var(--hutch-teal);
  font-weight: 600;
}

.modal-footer {
  padding: 16px 24px;
  background: #F9FAFB;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: #F0F0F4;
}

.btn-primary {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--hutch-orange);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--hutch-orange-dark);
}

