/* ============================================
   PADELGAME CLUBS MAP
   ============================================ */
.pg-clubs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
}

.pg-clubs-header {
    text-align: center;
    margin-bottom: 28px;
}

.pg-clubs-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1A237E;
    margin-bottom: 8px;
}

.pg-clubs-header p {
    color: #757575;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Controls */
.pg-clubs-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pg-source-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #212121;
    font-size: 0.9rem;
}

.pg-source-selector select,
.pg-sort-controls select {
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.pg-source-selector select:focus,
.pg-sort-controls select:focus {
    border-color: #00C853;
    outline: none;
}

.pg-clubs-dept-filter {
    flex-shrink: 0;
}

.pg-dept-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #212121;
    font-size: 0.9rem;
}

.pg-dept-selector select {
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 200px;
}

.pg-dept-selector select:focus {
    border-color: #00C853;
    outline: none;
}

.pg-dept-selector select:disabled {
    background: #F5F5F5;
    color: #BDBDBD;
    cursor: not-allowed;
}

/* Layout */
.pg-clubs-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Map */
.pg-map-container {
    background: #F5F7FA;
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 90px;
    align-self: start;
    box-sizing: border-box;
}

#pg-france-map {
    width: 100%;
    height: auto;
}

#pg-france-map path {
    fill: #C5CAE9;
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.2s ease, transform 0.2s ease;
}

#pg-france-map path:hover {
    fill: #7986CB;
}

#pg-france-map path.pg-has-clubs {
    fill: #81C784;
}

#pg-france-map path.pg-has-clubs:hover {
    fill: #4CAF50;
}

#pg-france-map path.pg-active {
    fill: #00C853 !important;
}

.pg-map-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #757575;
}

.pg-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.pg-dot-active { background: #00C853; }
.pg-dot-has { background: #81C784; }

/* List */
.pg-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.pg-list-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A237E;
    margin: 0;
}

.pg-sort-controls label {
    font-size: 0.85rem;
    color: #757575;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pg-clubs-list {
    max-height: 600px;
    min-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

.pg-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9E9E9E;
}

.pg-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

/* Club card */
.pg-club-card {
    background: #fff;
    border: 1px solid #ECEFF1;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.pg-club-card:hover {
    border-color: #00C853;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateX(2px);
}

.pg-club-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.pg-club-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1A237E;
    margin: 0;
}

.pg-club-source {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 50px;
    white-space: nowrap;
}

.pg-source-dataes {
    background: #E3F2FD;
    color: #1565C0;
}

.pg-source-padelgame {
    background: #E8F5E9;
    color: #00962E;
}

.pg-club-address {
    color: #616161;
    font-size: 0.85rem;
    margin: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.pg-club-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.pg-club-tag {
    font-size: 0.75rem;
    color: #757575;
    background: #F5F5F5;
    padding: 3px 10px;
    border-radius: 50px;
}

.pg-club-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.pg-club-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #00C853;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pg-club-link:hover {
    text-decoration: underline;
}

.pg-club-count-badge {
    background: #00C853;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-left: 8px;
}

.pg-loading {
    text-align: center;
    padding: 40px;
    color: #9E9E9E;
}

.pg-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E0E0E0;
    border-top-color: #00C853;
    border-radius: 50%;
    animation: pg-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes pg-spin {
    to { transform: rotate(360deg); }
}


/* ============================================
   CTA — Référencer son club
   ============================================ */
.pg-clubs-cta {
    clear: both;
    position: relative;
    z-index: 5;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px;
    background: linear-gradient(135deg, #1A237E 0%, #00C853 100%);
    border-radius: 16px;
    padding: 36px 32px;
    overflow: hidden;
}

.pg-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.pg-cta-text {
    flex: 1 1 320px;
    min-width: 0;
}

.pg-clubs-cta .pg-cta-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800 !important;
    line-height: 1.3;
    margin: 0 0 10px 0 !important;
    color: #ffffff !important;
}

.pg-clubs-cta .pg-cta-text p {
    margin: 0 !important;
    font-size: 0.98rem;
    font-weight: 600 !important;
    line-height: 1.5;
    color: #ffffff !important;
    opacity: 1 !important;
}

.pg-clubs-cta .pg-cta-button {
    background: #FFD600;
    color: #1A237E !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800 !important;
    font-size: 1rem;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 0 0 auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.pg-clubs-cta .pg-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    color: #1A237E !important;
}

@media (max-width: 640px) {
    .pg-cta-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .pg-cta-text {
        flex: 1 1 auto;
    }
    .pg-cta-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Footer */
.pg-clubs-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #ECEFF1;
    text-align: center;
    font-size: 0.8rem;
    color: #9E9E9E;
}

.pg-clubs-footer a {
    color: #00C853;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
    .pg-clubs-layout {
        grid-template-columns: 1fr;
    }
    .pg-map-container {
        position: relative;
        top: 0;
        max-width: 450px;
        margin: 0 auto;
    }
    .pg-clubs-list {
        max-height: none;
    }
}

@media (max-width: 600px) {
    .pg-clubs-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .pg-clubs-search {
        max-width: 100%;
    }
    .pg-clubs-header h2 {
        font-size: 1.4rem;
    }
}

/* Region hover label */
.pg-region-label {
    position: absolute;
    background: #1A237E;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
    white-space: nowrap;
    transform: translate(-50%, -130%);
}

.pg-region-label.pg-visible {
    opacity: 1;
}

.pg-map-container {
    position: relative;
}

/* Piste & type tags */
.pg-tag-pistes {
    background: #E8F5E9 !important;
    color: #00962E !important;
    font-weight: 600;
}

.pg-tag-type {
    background: #E3F2FD !important;
    color: #1565C0 !important;
    font-weight: 600;
}

/* ============================================
   TABS — Clubs / Coachs / Stages
   ============================================ */
.pg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ECEFF1;
    flex-wrap: wrap;
}

.pg-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #757575;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
}

.pg-tab:hover {
    color: #1A237E;
    background: #F5F7FA;
}

.pg-tab-active {
    color: #00C853;
    border-bottom-color: #00C853;
}

/* Import source badge */
.pg-source-import {
    background: #FFF3E0 !important;
    color: #E65100 !important;
}

/* Info tag (tarif/dates) */
.pg-tag-info {
    background: #FFF8E1 !important;
    color: #F57F17 !important;
    font-weight: 600;
}

@media (max-width: 600px) {
    .pg-tab {
        padding: 10px 14px;
        font-size: 0.85rem;
        flex: 1;
    }
}
