/* GPA Club Finder - Main Styles */

/* ================================
   CLUB FINDER CONTAINER
   ================================ */
.gpa-club-finder {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.gpa-club-intro {
    text-align: center;
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 20px;
}

/* ================================
   VIEW STATES
   ================================ */
.gpa-view-active {
    display: block;
}

.gpa-view-hidden {
    display: none;
}

.gpa-hidden {
    display: none !important;
}

/* ================================
   US MAP STYLES
   ================================ */
/* OUTER CONTAINER */
#gpa-us-map-container {
    width: 100%;
    max-width: 1800px;   /* 🔥 aur zyada width */
    margin: 0 auto;
}

/* SVG MAP */
.gpa-us-map {
  width: 1200px;   /* yahan size badhao */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}




.gpa-states path {
    fill: #d1d5db !important;
    stroke: #ffffff !important;
    stroke-width: 1.5 !important;
    stroke-dasharray: none !important;
    cursor: pointer;
    transition: fill 0.2s ease, opacity 0.2s ease;
}

.gpa-states path:hover {
    fill: #9ca3af !important;
}

.gpa-states path.active,
.gpa-states path:active {
    fill: #6b7280 !important;
}

.gpa-state-labels text {
    pointer-events: all;              
    font-size: 10px;
    fill: #1a365d;
    font-weight: 700;
    cursor: pointer;
    dominant-baseline: middle;        
    text-anchor: middle;              
}


.gpa-state-labels text:hover {
    fill: #0f172a;   /* darker navy */
}



/* ================================
   STATE VIEW STYLES
   ================================ */
#gpa-state-view {
    padding: 0;
}

.gpa-state-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    padding: 0 10px;
}

.gpa-back-btn {
    background: none;
    border: none;
    color: #1a365d;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.gpa-back-btn:hover {
    color: #2c5282;
    text-decoration: underline;
}

#gpa-state-title {
    font-size: 22px;
    color: #1a365d;
    margin: 0;
    font-weight: 600;
}

.gpa-search-hint {
    color: #718096;
    font-size: 14px;
    margin: 0 0 15px 10px;
}

/* ================================
   SEARCH BOX
   ================================ */
.gpa-search-box {
    display: flex;
    margin: 0 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#gpa-search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 15px;
    outline: none;
}

#gpa-search-input::placeholder {
    color: #a0aec0;
}

#gpa-search-btn {
    background: #1a365d;
    border: none;
    color: #fff;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#gpa-search-btn:hover {
    background: #2c5282;
}

#gpa-search-btn svg {
    width: 20px;
    height: 20px;
}

/* ================================
   MAP WRAPPER & LAYOUT
   ================================ */
.gpa-map-wrapper {
    display: flex;
    height: 550px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

#gpa-mapbox-map {
    flex: 2;
    min-width: 0;
}

/* ================================
   CLUB SIDEBAR
   ================================ */
#gpa-club-sidebar {
    flex: 1;
    max-width: 380px;
    min-width: 300px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ================================
   FILTER BOX
   ================================ */
.gpa-filter-box {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

#gpa-filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#gpa-filter-input:focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.1);
}

#gpa-filter-input::placeholder {
    color: #a0aec0;
}

.gpa-search-notice {
    padding: 12px 15px;
    background: #fef3c7;
    border-bottom: 1px solid #f59e0b;
    color: #92400e;
    font-size: 13px;
    text-align: center;
}

#gpa-club-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.gpa-zoom-hint {
    text-align: center;
    color: #718096;
    font-size: 15px;
    padding: 40px 20px;
}

/* ================================
   CLUB LIST ITEMS
   ================================ */
.gpa-club-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
}

.gpa-club-item:hover {
    background: #f7fafc;
}

.gpa-club-item.active {
    background: #ebf8ff;
    border-left: 3px solid #1a365d;
}

.gpa-club-item-name {
    font-weight: 600;
    color: #1a365d;
    font-size: 15px;
    margin-bottom: 5px;
}

.gpa-club-item-location {
    color: #718096;
    font-size: 13px;
}

.gpa-club-item-distance {
    color: #a0aec0;
    font-size: 12px;
    margin-top: 3px;
}

/* ================================
   CLUB DETAIL PANEL (Inline)
   ================================ */
#gpa-club-detail {
    display: none;
}

.gpa-club-detail-inline {
    background: #ebf8ff;
    border-bottom: 2px solid #1a365d;
    border-left: 4px solid #1a365d;
    margin: 0;
    padding: 0;
}

.gpa-club-detail-inline .gpa-detail-header {
    background: #e2e8f0;
    padding: 15px 20px;
    border-bottom: 1px solid #cbd5e0;
}

.gpa-club-detail-inline .gpa-detail-content {
    padding: 15px 20px;
}

.gpa-club-detail-inline .gpa-detail-name {
    font-size: 16px;
    margin: 0 0 5px;
}

.gpa-club-detail-inline .gpa-detail-section {
    margin-bottom: 12px;
}

.gpa-club-detail-inline .gpa-detail-section-title {
    font-size: 13px;
    margin-bottom: 5px;
}

.gpa-club-detail-inline .gpa-detail-address,
.gpa-club-detail-inline .gpa-detail-contact {
    font-size: 13px;
}

.gpa-club-detail-inline .gpa-detail-website-btn {
    padding: 8px 16px;
    font-size: 13px;
}

.gpa-club-detail-inline .gpa-detail-section-info {
    margin-top: 12px;
    padding: 12px;
}

.gpa-club-detail-inline .gpa-detail-section-info p {
    font-size: 13px;
    margin: 3px 0;
}

.gpa-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.gpa-detail-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.gpa-detail-close:hover {
    color: #1a365d;
}

.gpa-detail-content {
    padding: 20px;
}

.gpa-detail-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 8px;
}

.gpa-detail-code {
    color: #718096;
    font-size: 14px;
    margin-bottom: 20px;
}

.gpa-detail-section {
    margin-bottom: 20px;
}

.gpa-detail-section-title {
    font-weight: 600;
    color: #1a365d;
    font-size: 14px;
    margin-bottom: 8px;
}

.gpa-detail-address {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.gpa-detail-contact {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.8;
}

.gpa-detail-contact a {
    color: #2b6cb0;
    text-decoration: none;
}

.gpa-detail-contact a:hover {
    text-decoration: underline;
}

.gpa-detail-website-btn {
    display: inline-block;
    background: #1a365d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    transition: background 0.2s;
}

.gpa-detail-website-btn:hover {
    background: #2c5282;
    color: #fff;
}

.gpa-detail-section-info {
    background: #f7fafc;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.gpa-detail-section-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #4a5568;
}

/* ================================
   MAPBOX MARKER STYLES
   ================================ */
.gpa-marker {
    width: 30px;
    height: 30px;
    background: #c53030;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.gpa-marker:hover {
    transform: scale(1.1);
}

.gpa-marker-cluster {
    width: 40px;
    height: 40px;
    background: #c53030;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gpa-marker-cluster.large {
    width: 50px;
    height: 50px;
    font-size: 16px;
}

/* Mapbox popup overrides */
.mapboxgl-popup-content {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mapboxgl-popup-close-button {
    font-size: 18px;
    padding: 5px 10px;
}

/* ================================
   AFFILIATE PAGE
   ================================ */
.gpa-affiliate {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.gpa-affiliate h2 {
    color: #1a365d;
    margin-bottom: 20px;
}

.gpa-affiliate p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

/* ================================
   RESPONSIVE STYLES
   ================================ */
@media (max-width: 900px) {
    .gpa-map-wrapper {
        flex-direction: column;
        height: auto;
    }

    #gpa-mapbox-map {
        height: 400px;
    }

    #gpa-club-sidebar {
        max-width: 100%;
        min-width: 100%;
        height: 350px;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}

@media (max-width: 600px) {
    .gpa-state-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #gpa-state-title {
        font-size: 18px;
    }

    .gpa-search-box {
        margin: 0 0 15px;
    }

    #gpa-mapbox-map {
        height: 300px;
    }

    #gpa-club-sidebar {
        height: 300px;
    }

    .gpa-club-item {
        padding: 12px 15px;
    }

    .gpa-detail-content {
        padding: 15px;
    }
}

/* ================================
   LOADING STATE
   ================================ */
.gpa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #718096;
}

.gpa-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #1a365d;
    border-radius: 50%;
    animation: gpa-spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes gpa-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   NO CLUBS MESSAGE
   ================================ */
.gpa-no-clubs {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.gpa-no-clubs-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.gpa-no-clubs p {
    margin: 0;
    font-size: 15px;
}

/* ================================
   NO STATE MESSAGE
   ================================ */
.gpa-no-state {
    text-align: center;
    padding: 60px 20px;
    color: #4a5568;
}

.gpa-no-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

.gpa-no-state .gpa-back-btn {
    display: inline-block;
    background: #1a365d;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.gpa-no-state .gpa-back-btn:hover {
    background: #2c5282;
    color: #fff;
}
