/* Locations Page Styles - Optimized for Performance */
:root {
  --primary-gold: #c6a57c;
  --primary-black: #000;
  --primary-white: #fff;
  --bg-cream: #f9f6f0;
  --text-gray: #666;
  --border-light: rgba(198, 165, 124, 0.2);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
.locations-main {
  background-color: #f9f6f0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c6a57c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh;
  padding-top: 100px;
  position: relative;
}

.locations-main::before {
  background: linear-gradient(180deg, rgba(198, 165, 124, 0.08) 0%, rgba(198, 165, 124, 0) 100%);
  content: '';
  height: 200px;
  left: 0;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
}

.locations-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Search Section */
.search-section {
  background: var(--primary-white);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.9) 100%),
                    url('../images/bottles/blanco_background.webp');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-gold) 0%, #e5d0b5 100%);
  z-index: 2;
}

.search-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 20px 14px 45px;
  border: 2px solid rgba(198, 165, 124, 0.2);
  border-radius: 28px;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  font-family: 'Montserrat', sans-serif;
  color: #333;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: var(--primary-white);
  box-shadow: 0 6px 15px rgba(198, 165, 124, 0.15);
  transform: translateY(-2px);
}

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  font-size: 14px;
}

.filter-wrapper {
  position: relative;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-gold), #b8956f);
  color: var(--primary-white);
  border: none;
  border-radius: 28px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(198, 165, 124, 0.2);
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #b8956f, var(--primary-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(198, 165, 124, 0.3);
}

.filter-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--primary-white);
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-light);
  padding: 12px;
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
}

.filter-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
}

.filter-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-gold);
}

.filter-option label {
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

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

/* Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 330px 1fr; /* Reduced from 400px to 330px for a more balanced layout */
  gap: 24px;
  height: calc(100vh - 200px);
  min-height: 600px;
}

/* Locations List */
.locations-list {
  background: var(--primary-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

#locations-container {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) #f0f0f0;
}

#locations-container::-webkit-scrollbar {
  width: 6px;
}

#locations-container::-webkit-scrollbar-track {
  background: #f0f0f0;
}

#locations-container::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 3px;
}

/* Location Card */
.location-card {
  padding: 16px; /* Reduced from 20px to 16px to make cards more compact */
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

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

.location-card:hover {
  background: linear-gradient(135deg, rgba(198, 165, 124, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.location-card.active {
  background: rgba(198, 165, 124, 0.05);
  border-left: 4px solid var(--primary-gold);
}

.location-card-inner {
  display: block;
}

.location-logo-wrapper {
  width: 100%;
  margin-bottom: 15px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px; /* Increased from 90px */
  padding: 0;
  position: relative;
  overflow: hidden;
}

.location-card:hover .location-logo-wrapper {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.location-logo {
  max-width: 280px; /* Increased from 200px */
  max-height: 110px; /* Increased from 80px */
  object-fit: contain;
  margin: 0 auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.15));
}

/* Make both logos consistent in size but with specific adjustments if needed */
.location-card[data-location-id="1"] .location-logo {
  padding: 4px;
  max-width: 400px; /* Made even bigger for Habibi - increased from 320px to 400px */
  max-height: 150px; /* Made even taller for Habibi - increased from 120px to 150px */
}

.location-card[data-location-id="2"] .location-logo {
  max-width: 210px;
  padding: 4px;
}

.location-card:hover .location-logo {
  transform: scale(1.05); /* Reduced from 1.12 */
}

.location-content {
  width: 100%;
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px; /* Reduced from 15px */
  position: relative;
}

.location-name {
  font-size: 18px; /* Reduced from 22px to 18px */
  font-weight: 700;
  color: var(--primary-black);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.8px; /* Increased letter spacing */
  font-family: 'Montserrat', sans-serif; /* Changed from CASTELAR to Montserrat for better readability */
  text-transform: uppercase; /* Added uppercase for modern look */
}

.location-type {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.location-type.bar {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.2));
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.location-type.restaurant {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.2));
  box-shadow: 0 2px 5px rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.location-type.featured {
  background: linear-gradient(135deg, rgba(198, 165, 124, 0.1), rgba(198, 165, 124, 0.2));
  box-shadow: 0 2px 5px rgba(198, 165, 124, 0.1);
  color: var(--primary-gold);
}

.location-description {
  font-size: 13px; /* Reduced from 14px */
  color: var(--text-gray);
  line-height: 1.4; /* Reduced from 1.5 */
  margin-bottom: 10px; /* Reduced from 12px */
}

.location-address {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced from 8px */
  font-size: 12px; /* Reduced from 13px */
  color: var(--text-gray);
  margin-bottom: 8px; /* Reduced from 12px */
}

.location-address i {
  color: var(--primary-gold);
  width: 14px;
}

/* SPHYNX Tequila Availability Section - Reduced Gold Styling */
.sphynx-availability {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(248, 248, 248, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.availability-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.availability-header i {
  color: var(--primary-gold);
  font-size: 14px;
}

.location-products {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #555;
  font-size: 11px;
  font-weight: 600;
  border-radius: 16px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-tag:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
  color: #333;
}

.product-tag i {
  font-size: 10px;
}

.location-actions {
  display: flex;
  gap: 6px; /* Reduced from 8px */
  justify-content: space-between;
  margin-top: 14px; /* Reduced from 18px */
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Reduced from 6px */
  padding: 8px 10px; /* Reduced from 10px 12px */
  font-size: 11px; /* Reduced from 12px */
  font-weight: 700;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  text-align: center;
}

.directions-btn {
  background: var(--primary-gold);
  color: var(--primary-white);
}

.directions-btn:hover {
  background: #b8956f;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(198, 165, 124, 0.3);
}

.website-btn {
  background: #ff5a3a; /* More attention-grabbing orange-red for booking */
  color: var(--primary-white);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.website-btn:hover {
  background: #f04a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 90, 58, 0.3);
}

.view-btn {
  background: #5a7de6; /* Changed to blue for better visibility */
  color: var(--primary-white);
}

.view-btn:hover {
  background: #4a6fd6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(90, 125, 230, 0.3);
}

/* No Results */
.no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-gray);
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  border-radius: 20px;
  margin: 20px;
}

.no-results.show {
  display: flex;
}

.no-results i {
  font-size: 64px;
  margin-bottom: 24px;
  color: #e0e0e0;
  background: linear-gradient(135deg, var(--primary-gold), #d4b78e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float 3s ease-in-out infinite;
}

.no-results h3 {
  font-size: 24px;
  margin: 0 0 12px 0;
  color: var(--primary-black);
  font-weight: 700;
  font-family: 'CASTELAR', serif;
}

.no-results p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 300px;
}

.no-results::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(198, 165, 124, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

/* Map Wrapper */
.map-wrapper {
  position: relative;
  background: var(--primary-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.map-wrapper:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

#map {
  width: 100%;
  height: 100%;
  min-height: 600px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.05);
}

.map-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.map-control:hover {
  background: var(--primary-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.map-control i {
  font-size: 16px;
  color: var(--primary-black);
  transition: all 0.3s ease;
}

.map-control:hover i {
  color: var(--primary-gold);
}

/* Custom Info Window */
.custom-info-window {
  padding: 6px;
  min-width: 250px;
  max-width: 300px;
  font-family: 'Montserrat', sans-serif;
}

.info-window-logo-wrapper {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px; /* Increased from 80px */
}

.info-window-logo {
  max-width: 240px; /* Increased from 180px */
  max-height: 90px; /* Increased from 70px */
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.15));
}

/* Specific adjustments for different logos */
.custom-info-window[data-location-id="1"] .info-window-logo {
  padding: 4px;
  max-width: 260px; /* Extra large for Habibi */
  max-height: 100px;
}

.custom-info-window[data-location-id="2"] .info-window-logo {
  max-width: 250px; /* Increased from 190px */
  max-height: 95px; /* Increased from 75px */
}

.info-window-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--primary-black);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.info-window-address {
  font-size: 12px;
  color: var(--text-gray);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.info-window-address i {
  color: var(--primary-gold);
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}

.info-window-availability {
  margin: 12px 0;
  padding: 10px;
  background: linear-gradient(135deg, rgba(198, 165, 124, 0.05), rgba(198, 165, 124, 0.1));
  border-radius: 8px;
  border: 1px solid rgba(198, 165, 124, 0.15);
}

.info-window-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.info-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-gold);
  border: 1px solid rgba(198, 165, 124, 0.2);
}

.info-window-actions {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
}

.info-window-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.info-window-btn.primary {
  background: var(--primary-gold);
  color: white;
}

.info-window-btn.secondary {
  background: #f0f0f0;
  color: var(--primary-black);
}

.info-window-btn.website {
  background: #ff5a3a; /* Matching the booking button color */
  color: white;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.info-window-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-window-btn.website:hover {
  background: #f04a2a;
  box-shadow: 0 4px 10px rgba(255, 90, 58, 0.3);
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* Staggered animation delay for cards */
.location-card:nth-child(1) { animation-delay: 0.1s; }
.location-card:nth-child(2) { animation-delay: 0.2s; }
.location-card:nth-child(3) { animation-delay: 0.3s; }
.location-card:nth-child(4) { animation-delay: 0.4s; }
.location-card:nth-child(5) { animation-delay: 0.5s; }

/* Enhanced Location Cards with Hover Effects */
.location-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.location-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), transparent);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.location-card:hover::after,
.location-card.active::after {
  width: 100%;
}

.location-card.active {
  background: linear-gradient(135deg, rgba(198, 165, 124, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(0) !important;
  border-left: 4px solid var(--primary-gold);
}

.location-name {
  color: var(--primary-black);
  display: inline-block;
  transition: all 0.3s ease;
}

.location-card:hover .location-name {
  transform: translateX(3px);
  background: linear-gradient(90deg, var(--primary-gold) 30%, var(--primary-black));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: -60px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gold), #d4b78e);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 100;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-top-btn.visible {
  bottom: 30px;
  opacity: 1;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(198, 165, 124, 0.3);
}

.scroll-top-btn i {
  transition: transform 0.3s ease;
}

.scroll-top-btn:hover i {
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 300px 1fr; /* Reduced from 350px to 300px for tablets */
    gap: 16px;
  }
  
  .locations-container {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .content-layout {
    grid-template-columns: 1fr;
    height: auto;
    gap: 20px;
  }
  
  .locations-list {
    height: 450px;
    order: 2;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .map-wrapper {
    height: 350px;
    order: 1;
  }
  
  #map {
    min-height: 350px;
  }
  
  .search-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .search-input-wrapper {
    max-width: none;
  }
  .location-logo {
    max-width: 200px; /* Increased from 140px to keep it bigger on mobile */
    max-height: 80px; /* Increased from 55px */
  }

  .search-section {
    padding: 24px;
  }

  .filter-btn {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .locations-main {
    padding-top: 80px;
  }
  
  .locations-container {
    padding: 12px;
  }
  
  .search-section {
    padding: 16px;
  }
  
  .location-card {
    padding: 16px;
  }
  
  .location-name {
    font-size: 16px;
  }
  
  .map-controls {
    top: 12px;
    right: 12px;
  }
  
  .map-control {
    width: 36px;
    height: 36px;
  }
}

/* Performance Optimizations */
.location-card,
.filter-btn,
.action-btn,
.map-control {
  will-change: transform;
}

.locations-list {
  contain: layout style paint;
}

#map {
  contain: layout;
}

/* Loading States */
.loading-state {
  opacity: 0.6;
  pointer-events: none;
}

.loading-state::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Map Info Window Styles */
.custom-info-window {
  font-family: 'Montserrat', sans-serif;
  max-width: 320px;
  padding: 8px;
}

.info-window-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.info-window-address {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.info-window-address i {
  color: var(--primary-gold);
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}

.info-window-availability {
  background: linear-gradient(135deg, rgba(198, 165, 124, 0.05), rgba(198, 165, 124, 0.1));
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(198, 165, 124, 0.2);
}

.info-window-products {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.info-product-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--primary-white);
  color: var(--primary-gold);
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  border: 1px solid rgba(198, 165, 124, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-product-tag i {
  font-size: 8px;
}

.info-window-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.info-window-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 16px;
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-window-btn.primary {
  background: var(--primary-gold);
  color: var(--primary-white);
}

.info-window-btn.primary:hover {
  background: #b8956f;
}

.info-window-btn.secondary {
  background: #f0f0f0;
  color: var(--primary-black);
}

.info-window-btn.secondary:hover {
  background: #e0e0e0;
}

.info-window-btn.website {
  background: #ff5a3a; /* Matching the booking button color */
  color: var(--primary-white);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.info-window-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-window-btn.website:hover {
  background: #f04a2a;
  box-shadow: 0 4px 10px rgba(255, 90, 58, 0.3);
}

.location-updated {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced from 8px */
  font-size: 11px; /* Reduced from 12px */
  color: #888;
  margin: 6px 0 10px; /* Reduced from 8px 0 14px */
}

.location-updated i {
  color: var(--primary-gold);
  font-size: 10px; /* Reduced from 12px */
}

/* Removed last verified information */
