:root {
  --background: 0 0% 100%;
  --foreground: 142 25% 15%;
  --card: 0 0% 100%;
  --card-foreground: 142 25% 15%;
  --primary: 142 45% 35%;
  --primary-foreground: 0 0% 100%;
  --secondary: 40 65% 60%;
  --accent: 40 75% 55%;
  --accent-foreground: 0 0% 100%;
  --muted: 142 10% 95%;
  --muted-foreground: 142 10% 45%;
  --border: 142 15% 88%;
  --glass-bg: 0 0% 100% / 0.95;
  --shadow-elegant: 0 10px 40px -10px hsl(142 45% 35% / 0.15);
}

.theloge-overview-map-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  background: hsl(var(--background));
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  height: 600px;
}

.theloge-overview-map-wrapper .leaflet-marker-icon .custom-marker {
  box-shadow: unset !important;
}

/* Marker Cluster Styling */
.theloge-overview-map-wrapper .marker-cluster {
  background-clip: padding-box;
  border-radius: 40px;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Golf Club Clusters */
.theloge-overview-map-wrapper .marker-cluster.golf {
  background-color: #CF9D42;
  border: 2px solid #B8935E;
}

/* Hotel Clusters */
.theloge-overview-map-wrapper .marker-cluster.hotel {
  background-color: #1C293E;
  border: 2px solid #0F1419;
}

/* Cluster hover effect */
.theloge-overview-map-wrapper .marker-cluster:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Selected marker styling */
.theloge-overview-map-wrapper .custom-marker {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.theloge-overview-map-wrapper .custom-marker.selected {
  transform: scale(1.3) !important;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)) !important;
}
/* Map Container */
.theloge-overview-map-container {
  flex: 1 1 60%;
  height: 100%;
  width: 100%;
  z-index: 10;
}

/* Sidebar Overlay */
.theloge-overview-map-sidebar {
  position: absolute;
  top: 16px;
  left: 16px;
  width: calc(100% - 32px);
  max-width: 396px;
  height: calc(100% - 32px);
  background-color: hsl(var(--glass-bg));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--shadow-elegant);
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Sidebar Header */
.theloge-overview-map-sidebar-header {
  padding: 12px;
  background-color: hsl(var(--card) / 0.5);
}

.theloge-overview-map-sidebar-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #64748B;
}

/* Region Select Dropdown */
.theloge-overview-map-region-select {
  width: 100%;
  height: 48px;
  padding: 10px 32px 10px 12px;
  font-size: 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  padding-right: 32px;
}

.theloge-overview-map-region-select:focus {
  border-color: hsl(var(--border));
}

/* .theloge-overview-map-region-select:focus {
  outline: none;
  border-color: #1C293E;
  box-shadow: 0 0 0 3px #1C293E;
} */

/* Cards Container */
.theloge-overview-map-cards-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* Custom Scrollbar */
/* .theloge-overview-map-cards-container::-webkit-scrollbar {
  width: 8px;
}

.theloge-overview-map-cards-container::-webkit-scrollbar-track {
  background: #1C293E;
  border-radius: 4px;
}

.theloge-overview-map-cards-container::-webkit-scrollbar-thumb {
  background: #CF9D42;
  border-radius: 4px;
}

.theloge-overview-map-cards-container::-webkit-scrollbar-thumb:hover {
  background: #CF9D42;
} */

/* Cards Grid - 2 Columns */
.theloge-overview-map-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Location Card */
.location-card {
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .location-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
} */

.location-card.selected {
  /* border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2), 0 10px 25px -5px rgba(0, 0, 0, 0.15); */
  transform: scale(1.05);
}

/* Card Image */
.card-image {
  position: relative;
  height: 130px;
  overflow: hidden;
  border-radius: 8px;
}

.card-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Supreme", Sans-serif;
}

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-badge.golf {
  background-color: #CF9D42;
  color: #FFFFFF;
}

.card-badge.hotel {
  background-color: #1C293E;
  color: #FFFFFF;
}

/* Card Content */
.card-content {
  padding: 16px 0;
}

.theloge-overview-map-card-title {
  font-weight: 600;
  color: #0E1115;
  margin-bottom: 8px;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  font-family: "Supreme", Sans-serif;
}

.card-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #64748B;
}

.card-address p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.card-address svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Map Marker Styles (for Leaflet custom markers) */
/* Inline styles are used for dynamic marker colors */

/* Responsive Design */
@media (max-width: 768px) {
  .theloge-overview-map-wrapper {
    flex-direction: column;
    height: auto !important;
  }

  /* Sidebar at top - full width */
  .theloge-overview-map-sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 20px);
    max-width: 100%;
    height: auto;
    margin: 10px;
    border-radius: 12px;
    order: -1;
    flex: 0 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .theloge-overview-map-sidebar-header {
    padding: 16px;
  }

  .theloge-overview-map-sidebar-header h2 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  /* Horizontal Scrollable Cards Container */
  .theloge-overview-map-cards-container {
    flex: 0 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px;
    scroll-behavior: smooth;
    max-height: 350px;
  }

  /* Custom Scrollbar for Horizontal Scroll */
  /* .theloge-overview-map-cards-container::-webkit-scrollbar {
    height: 6px;
    width: auto;
  }

  .theloge-overview-map-cards-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
  }

  .theloge-overview-map-cards-container::-webkit-scrollbar-thumb {
    background: #CF9D42;
    border-radius: 4px;
  }

  .theloge-overview-map-cards-container::-webkit-scrollbar-thumb:hover {
    background: #CF9D42;
  } */

  /* Horizontal Grid Layout */
  .theloge-overview-map-cards-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    grid-template-columns: unset;
    width: max-content;
  }

  /* Card sizing for horizontal scroll */
  .location-card {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .card-image {
    height: 160px;
  }

  .theloge-overview-map-card-title {
    font-size: 14px;
  }

  .card-address {
    font-size: 11px;
  }

  .card-badge {
    padding: 4px 8px;
    font-size: 9px;
  }

  /* Map below sidebar - use height control from Elementor */
  #theloge-overview-map {
    flex: 1 1 100%;
    width: calc(100% - 20px);
    margin: 10px;
    order: 1;
    min-height: 400px;
    border-radius: 12px;
  }
}
