/* Main Styles */
body {
  min-height: 100vh;
}

/* Search Page Styles */

.search-page {
  max-width: 1280px; /* Centers content within reasonable width */
  padding: 32px 16px 120px 16px; /* Prevent overlap with fixed input */
}

/* Conversation Container */
.conversation-container {
  /* NEW: stack messages vertically like chat */
  /* display: flex;
  flex-direction: column;
  gap: 12px; */
  display: block;
}

.chat-container {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  align-self: center;
  margin: 0 auto 12px auto;
}

/* --- Chat Bubbles --- */
.chat-message {
  padding: 12px 16px;
  border: none; /* remove divider */
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 80%;
  /* add subtle shadow */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* AI bubble aligned to left */
.ai-message {
  align-self: flex-start;
  background: var(--card-bg);
  color: var(--text-color);
  border-top-left-radius: 0;
  border: 1px solid var(--border-color);
}

/* User bubble aligned to right */
.user-message {
  align-self: flex-end;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  border-top-right-radius: 0;
}

/* Remove text centering inside bubbles */
.chat-message p {
  margin: 0;
  text-align: left;
  font-size: 1rem;
}

.chat-message strong {
  margin-right: 0.5rem;
}

.ai-message p {
  color: var(--text-color);
}

.user-message p {
  font-weight: 600;
  color: white;
}

/* Results Grid - Styles moved to styles.css */

/* Loading indicator for infinite scroll */
.loading-more-results {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 20px 0;
}

.loading-more-results i {
  margin-right: 8px;
  color: var(--primary-color);
}

/* Facet Bubbles */
.facets-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  margin: 16px auto 24px;
  max-width: 900px;
}

.facets-container.primary-facets {
  max-width: 900px;
  margin-bottom: 12px;
}

.facets-container.secondary-facets {
  max-width: 900px;
  margin-top: 8px;
  margin-bottom: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.facets-type-label {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.facet-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 50px;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.facet-bubble.secondary-facet {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.facet-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
  transition: left 0.5s ease;
}

.facet-bubble:hover::before {
  left: 100%;
}

/* Breadcrumbs for active filters */
.facets-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  margin: 8px auto 16px;
  max-width: 900px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.breadcrumb-item.primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.breadcrumb-item.secondary {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.breadcrumb-item.price-filter {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.breadcrumb-item i {
  font-size: 0.75rem;
}

.breadcrumb-item .remove-filter {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  margin-left: 0.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.breadcrumb-item .remove-filter:hover {
  opacity: 1;
}

/* Toggle button for showing/hiding secondary facets */
.facets-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto 24px;
  max-width: 900px;
}

.facets-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.facets-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.facets-toggle-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.facets-toggle-btn[data-state="expanded"] i {
  transform: rotate(180deg);
}

.toggle-text {
  font-size: 0.875rem;
}

.secondary-facets-hidden {
  width: 100%;
}

[data-theme="dark"] .facets-toggle-btn {
  background: rgba(45, 45, 45, 0.6);
}

[data-theme="dark"] .facets-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
}

.facet-bubble:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  color: var(--text-color);
  text-decoration: none;
}

.facet-bubble.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #764ba2;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.facet-bubble.active:hover {
  background: linear-gradient(135deg, #5568d3, #6639a0);
  transform: translateY(-2px) scale(1.05);
  color: white;
}

.facet-bubble.active .facet-count {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.facet-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.4rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Facets Bubbles (same style as store.erb) */
.facets-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px auto 24px;
  max-width: 640px;
}

.facet-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.facet-bubble:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.facet-bubble.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.facet-bubble .facet-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.facet-bubble:hover .facet-count,
.facet-bubble.active .facet-count {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .facet-bubble {
  background: rgba(45, 45, 45, 0.6);
}

[data-theme="dark"] .facet-bubble:hover {
  background: var(--primary-color);
}

/* --- Enhanced Chat Input Bar --- */
.chat-input {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-color);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
  padding: 6px 6px;
  z-index: 1030; /* Above other elements */
  /* for mobile devices */
  padding-bottom: max(12px, env(safe-area-inset-top));
  transition: background-color 0.3s ease;
}

.chat-input .input-group {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-input .form-control {
  height: 64px;
  font-size: 1.25rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
  border-right: none;
  border-radius: 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.chat-input .form-control:focus {
  background-color: var(--card-bg);
  border-color: var(--primary-color);
  color: var(--text-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.chat-input .btn {
  height: 64px;
  min-width: 64px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 8px 8px 0;
}

/* --- Simple fade-in animation for chat messages --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.25s ease-out;
}

/* Loading (typing) bubble animation */
@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

.chat-message.ai-message.loading p::after {
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1s steps(5, end) infinite;
  content: '';
}



@media (max-width: 500px) {
  .chat-input .form-control {
    font-size: 1rem;
    padding-left: 0.2rem;
    padding-right: 0.5rem;
  }
}

/* "¡Lo quiero!" button styles for article panel in search */
.login-item .floating-btn.lo-quiero-btn {
  background: linear-gradient(135deg, var(--primary-color, #6f42c1), var(--secondary-color, #5a32a3));
  border: 2px solid var(--primary-color, #6f42c1);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.login-item .floating-btn.lo-quiero-btn:hover {
  background: linear-gradient(135deg, var(--secondary-color, #5a32a3), var(--primary-color, #6f42c1));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

.login-item .floating-btn.lo-quiero-btn i {
  font-size: 1.2rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Search Map Styles */
.search-map-container {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: 1rem 0;
  background-color: var(--bg-secondary);
}

.search-map-container .leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* View Toggle Button */
.view-toggle-btn {
  margin: 1rem 0;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color, #0d6efd);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.view-toggle-btn:hover {
  background: var(--primary-color-hover, #0b5ed7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-toggle-btn i {
  font-size: 1rem;
}

/* Inline Map Preview (occupies first two slots) */
.map-preview-card {
  overflow: hidden;
  border-radius: 12px;
}

.search-map-preview {
  width: 100%;
  height: 260px; /* match typical card height */
  
}



/* Custom Map Markers */
.custom-marker {
  background: var(--primary-color, #0d6efd);
  border: 3px solid white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.custom-marker:hover {
  transform: scale(1.1);
  z-index: 1000;
}

/* Price marker pill for individual pins */
.price-marker-wrapper {
  /* Position the pill centered above the coordinate */
  transform: translate(-50%, -100%);
}

.price-marker {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  user-select: none;
}

.price-marker-text {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.price-marker-currency {
  opacity: 0.9;
}

.marker-number {
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
  line-height: 1;
}

/* Override plugin default cluster wrapper to remove rounded square */
.marker-cluster {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Remove inner white rounded box from plugin but keep our custom .cluster-marker backgrounds */
.marker-cluster div:not(.cluster-marker) {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Cluster Markers */
.marker-cluster {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important; /* prevent plugin default rounding */
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

.cluster-marker {
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: content-box; /* preserve roundness with border */
  background: var(--primary-color, #0d6efd); /* fallback background if inline is absent */
}

.cluster-marker::after {
  content: '';
  position: absolute;
  inset: 6px; /* inner padding to create a ring */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cluster-marker:hover {
  transform: scale(1.08);
  z-index: 1000;
  box-shadow: 0 8px 22px rgba(13, 110, 253, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cluster-small {
  min-width: 35px;
  min-height: 35px;
}

.cluster-medium {
  min-width: 50px;
  min-height: 50px;
}

.cluster-large {
  min-width: 60px;
  min-height: 60px;
}

.cluster-xlarge {
  min-width: 70px;
  min-height: 70px;
}

.cluster-count {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.cluster-small .cluster-count { font-size: 0.8rem; }
.cluster-medium .cluster-count { font-size: 0.95rem; }
.cluster-large .cluster-count { font-size: 1.05rem; }
.cluster-xlarge .cluster-count { font-size: 1.15rem; }

/* Cluster Popup */
.cluster-popup {
  min-width: 200px;
  max-width: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.cluster-popup h6 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.cluster-popup-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cluster-popup-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cluster-popup-list li:last-child {
  border-bottom: none;
}

.cluster-popup-list li a {
  color: var(--primary-color, #0d6efd);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.cluster-popup-list li a:hover {
  color: var(--primary-color-hover, #0b5ed7);
  text-decoration: underline;
}

/* Map Popup Styles */
.map-popup {
  min-width: 190px;
  max-width: 190px;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Make Leaflet popup shell transparent so only our card is visible */
.search-map-container .leaflet-popup-content-wrapper,
.search-map-container .leaflet-popup-tip {
  background: transparent;
  box-shadow: none;
  border: none;
}

.search-map-container .leaflet-popup-content {
  margin: 0;
}

.map-popup-hero { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; }
.map-popup-image { width: 100%; height: 260px; object-fit: cover; display: block; }
.map-popup-hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 65%, rgba(0,0,0,0.0));
  color: #fff;
}
.map-popup-title { margin: 0; font-size: 0.9rem; line-height: 1.2; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.map-popup-price-overlay { font-size: 0.8rem; font-weight: 700; color: #fff; opacity: 0.95; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.map-popup-bookmark { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

.map-popup-content { padding: 0.5rem; }
.map-popup-actions { padding: 0.5rem; }

/* Title now sits inside the image overlay */

.map-popup-price { display: none; }

/* Adjust typography inside popup to match list look */
.map-popup .result-desc {
  font-size: 0.9rem; /* slightly larger to compensate Leaflet popup base size */
}

.map-popup .view-ad-btn {
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
  text-decoration: none;
  display: block;
  background: var(--primary-color, #0d6efd);
  border: 1px solid var(--primary-color, #0d6efd);
  color: #ffffff !important;
  font-weight: 600;
}

.map-popup .view-ad-btn:hover {
  background: var(--primary-color-hover, #0b5ed7);
  border-color: var(--primary-color-hover, #0b5ed7);
  color: #ffffff !important;
}

/* Ensure Leaflet popup buttons render readable text */
.search-map-container .leaflet-popup-content a.btn,
.search-map-container .leaflet-popup-content .btn {
  color: #ffffff !important;
}

/* Leaflet dark mode support */
[data-theme="dark"] .search-map-container .leaflet-popup-content-wrapper,
[data-theme="dark"] .search-map-container .leaflet-popup-tip {
  background: var(--card-bg);
  color: var(--text-color);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .search-map-container .leaflet-container {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .search-map-container .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.7);
  color: #ccc;
}

[data-theme="dark"] .search-map-container .leaflet-bar a {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .search-map-container .leaflet-bar a:hover {
  background-color: var(--bg-tertiary);
}

@media (max-width: 768px) {
  .search-map-container {
    height: 400px;
  }
  
  .view-toggle-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Geolocate control button */
.map-geo-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--text-color);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.map-geo-btn:hover {
  background: #f8f9fa;
}

.map-geo-btn:active {
  transform: scale(0.98);
}

.map-geo-btn i { font-size: 16px; color: #0d6efd; }

.map-geo-btn.loading i {
  animation: spin 1s linear infinite;
}

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

/* User location marker (pulsing dot) */
.user-location-marker { width: 18px; height: 18px; }
.user-location-marker .user-loc {
  width: 18px;
  height: 18px;
  background: #0d6efd;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(13,110,253,0.4);
  position: relative;
}
.user-location-marker .user-loc::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(13,110,253,0.4);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13,110,253,0.45); }
  70% { box-shadow: 0 0 0 12px rgba(13,110,253,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,110,253,0); }
}

/* Dark mode tweaks */
[data-theme="dark"] .map-geo-btn { background: var(--card-bg); border-color: var(--border-color); }
[data-theme="dark"] .map-geo-btn:hover { background: var(--bg-secondary); }

/* Search Map open/close animations */
.search-map-container {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.search-map-container.is-visible {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.search-map-container.is-exiting {
  opacity: 0;
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
