/* ==================================================================
   Utility Classes for Hidden/Visible Elements
   ================================================================== */

.nav-dashboard-hidden {
  visibility: hidden !important;
}

.auth-loading-hidden {
  display: none !important;
}

/* Dashboard link styling in mobile menu */
.mobile-dashboard {
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-align: center !important;
  margin: 0.5rem 0 !important;
  transition: all 0.3s ease !important;
}

.mobile-dashboard:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4) !important;
}

/* Header styling to match OurTeam.html */
header {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-nav a,
.brand {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
  /* Prevent layout shifts during load */
  min-width: 100px;
  min-height: 100px;
  flex-shrink: 0;
  will-change: transform;
  transform: translateZ(0);
}

.logo-link:hover {
  transform: translateZ(0) scale(1.05);
}

.mobile-nav-content a {
  color: white !important;
  transition: color 0.2s ease;
}

.mobile-nav-content a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hamburger-line {
  background: white !important;
}

/* Updated background - different from OurTeam but still professional */
body {
  background: linear-gradient(135deg, #2d5a87 0%, #4a7ba7 50%, #6fa8dc 100%) !important;
  background-color: #2d5a87 !important; /* Fallback color to prevent white flash */
  min-height: 100vh;
  transition: none !important; /* Prevent any background transitions */
}

/* Ensure background stays consistent when mobile menu is open */
body.menu-open {
  background: linear-gradient(135deg, #2d5a87 0%, #4a7ba7 50%, #6fa8dc 100%) !important;
  background-color: #2d5a87 !important; /* Fallback color */
  transition: none !important; /* Prevent any background transitions */
}

header h1 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.btn-signIn {
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-signIn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white !important;
  border: 2px solid white;
}





.orobor-logo-white {
  filter: invert(1) brightness(2) drop-shadow(0 2px 2px rgba(0,0,0,0.35)) drop-shadow(0 6px 12px rgba(0,0,0,0.2));
  /* Optimize filter rendering to prevent stuttering */
  will-change: filter;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Collection Hero Section */
.collection-hero-section {
  padding: 8rem 0 6rem 0;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.collection-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.collection-hero-content {
  margin-bottom: 4rem;
}

.collection-hero-title {
  font-size: 5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.collection-hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 4rem auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.collection-hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

.collection-hero-stats .stat-item {
  text-align: center;
  color: white;
}

.collection-hero-stats .stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: #3498db;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.collection-hero-stats .stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Simple Animation Base Classes */
.fade-in {
  opacity: 0;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
}

/* Responsive Design for Collection Hero */
@media (max-width: 1200px) {
  .collection-hero-title {
    font-size: 4rem;
  }
  
  .collection-hero-stats {
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .collection-hero-section {
    padding: 6rem 0 4rem 0;
  }
  
  .collection-hero-title {
    font-size: 3rem;
  }
  
  .collection-hero-subtitle {
    font-size: 1.3rem;
  }
  
  .collection-hero-stats {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .collection-hero-stats .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .collection-hero-section {
    padding: 4rem 0 3rem 0;
  }
  
  .collection-hero-container {
    padding: 0 1rem;
  }
  
  .collection-hero-title {
    font-size: 2.5rem;
  }
  
  .collection-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .collection-hero-stats .stat-number {
    font-size: 2rem;
  }
  
  .collection-hero-stats .stat-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .collection-hero-title {
    font-size: 2rem;
  }
  
  .collection-hero-subtitle {
    font-size: 1rem;
  }
}

/* Search container */
.search-container {
    position: relative;
    width: 100%;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    z-index: 1000;
}

.search-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.state-filter-wrapper {
    flex-shrink: 0;
}

.state-filter {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 14px 20px;
    padding-right: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    min-width: 160px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23111111' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    font-family: 'Lora', serif;
}

.state-filter:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.state-filter:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.01);
}

.state-filter option {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    padding: 12px 16px;
    border: none;
    font-weight: 500;
}

.search-overlay {
    position: relative;
    flex: 1;
    min-width: 0;
}

.location-counter-wrapper {
    flex-shrink: 0;
}

.location-counter-display {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 14px 22px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 52px;
}

.location-count-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    line-height: 1;
    margin-bottom: 2px;
    font-family: 'Lora', serif;
}

.location-count-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    font-family: 'Lora', serif;
}

#search-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: #111111;
}

#search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.01);
}

#search-input::placeholder {
    color: #6b7280;
    font-weight: 500;
}

/* Search results dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    color: #111111;
    z-index: 1001;
}

.search-results.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

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

.search-result-item h4 {
    margin: 0 0 6px 0;
    color: #111111;
    font-size: 15px;
    font-weight: 600;
}

.search-result-item p {
    margin: 0;
    color: #374151;
        font-size: 13px;
    font-weight: 500;
    }

/* Map container */
    .container {
    position: relative;
    height: calc(100vh - 215px);
    margin: 0 auto;
    max-width: 90%;
    padding: 0 1rem;
    overflow: hidden;
}

/* Map */
#map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Call to Action Section */
.map-cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: transparent;
}

.map-cta-message {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem 0;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.map-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 16px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.map-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
}

.map-cta-button i {
    font-size: 16px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.map-cta-button:hover i {
    transform: translateX(4px);
}

/* Tennis Icon Marker Styling */
.tennis-marker {
    background: transparent;
    border: none;
}

.tennis-marker img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
    }
    
.tennis-marker:hover img {
    transform: scale(1.15);
}
    
/* Map Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    }
    
.leaflet-popup-content {
    margin: 0;
    padding: 0;
    min-width: 160px;
    }
    
.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    border-right: none;
    }
    
.popup-content {
    padding: 12px 14px;
    }
    
.popup-content h3 {
    margin: 0 0 6px 0;
    color: #1e293b;
        font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    }
    
.popup-content p {
    margin: 0;
    color: #64748b;
        font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    }
    
.popup-content p strong {
    color: #475569;
    font-weight: 600;
    }

.popup-address {
    margin-top: 6px !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.popup-phone {
    margin-top: 4px !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

/* Responsive search bar */
@media (max-width: 768px) {
    .search-container {
        padding: 1rem 1.5rem;
}

    .search-filter-wrapper {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
}

    .state-filter {
        width: 100%;
        min-width: auto;
}

    #search-input {
        padding: 12px 18px;
        font-size: 14px;
}

    .search-result-item {
        padding: 14px 18px;
}

    .container {
        height: calc(100vh - 220px);
        max-width: 98%;
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 1rem;
}

    .search-filter-wrapper {
        gap: 0.625rem;
}

    .location-counter-display {
        padding: 12px 18px;
        min-width: auto;
        min-height: 48px;
  }
  
    .location-count-number {
        font-size: 18px;
  }
  
    .location-count-label {
        font-size: 11px;
  }
  
    .state-filter {
        padding: 12px 16px;
        padding-right: 36px;
        font-size: 14px;
    min-width: auto;
  }
  
    .search-overlay {
        width: 100%;
    }
    
    #search-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .container {
        height: calc(100vh - 200px);
        max-width: 98%;
        padding: 0 0.5rem;
  }
  
    .map-cta-section {
        padding: 2rem 1.5rem;
  }
  
    .map-cta-message {
        font-size: 1.1rem;
  }
  
    .map-cta-button {
        padding: 14px 28px;
        font-size: 15px;
  }
}




