/* ======================================================================
   GRILLE ET COMPOSANTS RESPONSIVES PARCOTRIP
   ====================================================================== */

.pt-grid-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    padding: 40px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pt-park-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #f1f2f6 !important;
    color: inherit !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    cursor: pointer !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.pt-park-card:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: #4a51ff !important;
}

.pt-cover-wrapper {
    overflow: hidden !important;
    width: 100% !important;
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    position: relative !important;
}

.pt-park-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}

.pt-park-card:hover .pt-park-img {
    transform: scale(1.05) !important;
}

.pt-card-details {
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    box-sizing: border-box !important;
}

.pt-card-details h2 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.pt-park-card:hover .pt-card-details h2 {
    color: #4a51ff !important;
}

/* ======================================================================
   JAUGES ET BADGES D'AFFLUENCE
   ====================================================================== */
.pt-attendance-box {
    margin-top: auto !important;
    background: #f8fafc !important;
    padding: 14px !important;
    border-radius: 12px !important;
    border: 1px solid #edf2f7 !important;
    box-sizing: border-box !important;
}

.pt-attendance-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #718096 !important;
}

.pt-badge {
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    display: inline-block !important;
}
.pt-badge.low { background: #e3fcef !important; color: #0e6245 !important; }
.pt-badge.medium { background: #fff3e0 !important; color: #b65a00 !important; }
.pt-badge.high { background: #ffebee !important; color: #c62828 !important; }

.pt-progress-bg {
    background: #e2e8f0 !important;
    height: 8px !important;
    width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.pt-progress-fill {
    height: 100% !important;
    border-radius: 10px !important;
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.pt-progress-fill.low { background: linear-gradient(90deg, #2ed573, #26af5c) !important; }
.pt-progress-fill.medium { background: linear-gradient(90deg, #ffa502, #ff7f50) !important; }
.pt-progress-fill.high { background: linear-gradient(90deg, #ff4757, #ff6b81) !important; }

/* ======================================================================
   L'ENCADRÉ POPUP (FENÊTRE MODALE)
   ====================================================================== */
.pt-modal-overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important;
    background: rgba(26, 32, 44, 0.65) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    display: flex !important; justify-content: center !important; align-items: center !important;
    z-index: 99999 !important;
    opacity: 0 !important; pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}
.pt-modal-overlay.active { opacity: 1 !important; pointer-events: auto !important; }

.pt-modal-container {
    background: #ffffff !important;
    width: 92% !important; max-width: 580px !important; height: 75vh !important; max-height: 650px !important;
    border-radius: 24px !important; padding: 30px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3) !important;
    display: flex !important; flex-direction: column !important;
    transform: scale(0.95) translateY(-10px) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-sizing: border-box !important;
}
.pt-modal-overlay.active .pt-modal-container { transform: scale(1) translateY(0) !important; }

.pt-modal-header {
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    border-bottom: 1px solid #edf2f7 !important; padding-bottom: 15px !important; margin-bottom: 20px !important;
}
.pt-modal-header h3 { font-size: 1.6rem !important; font-weight: 800; color: #1a202c !important; margin: 0 !important; }

.pt-close-btn {
    background: #f7fafc !important; border: none !important; width: 40px !important; height: 40px !important;
    border-radius: 50% !important; color: #4a5568 !important; cursor: pointer !important;
    display: flex !important; justify-content: center !important; align-items: center !important; font-size: 1.3rem !important;
    transition: all 0.2s ease !important;
}
.pt-close-btn:hover { background: #ffebee !important; color: #ff4757 !important; transform: rotate(90deg) !important; }

.pt-modal-scroll { overflow-y: auto !important; flex-grow: 1 !important; padding-right: 5px !important; }
.pt-modal-scroll::-webkit-scrollbar { width: 6px !important; }
.pt-modal-scroll::-webkit-scrollbar-track { background: #f1f2f6 !important; border-radius: 10px !important; }
.pt-modal-scroll::-webkit-scrollbar-thumb { background: #cbd5e1 !important; border-radius: 10px !important; }

.pt-ride-row {
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    padding: 14px 18px !important; border-radius: 14px !important; background: #f8fafc !important;
    margin-bottom: 12px !important; border: 1px solid #edf2f7 !important;
    box-sizing: border-box !important;
}
.pt-ride-row:hover { background: #f1f5f9 !important; }
.pt-ride-name { font-weight: 600 !important; color: #1a202c !important; font-size: 0.95rem !important; }

.pt-wait-badge {
    padding: 6px 14px !important; border-radius: 30px !important; font-weight: 700 !important; font-size: 0.85rem !important;
    text-align: center !important; min-width: 75px !important; display: inline-block !important;
}
.pt-wait-badge.low { background: #e3fcef !important; color: #0e6245 !important; }
.pt-wait-badge.medium { background: #fff3e0 !important; color: #b65a00 !important; }
.pt-wait-badge.high { background: #ffebee !important; color: #c62828 !important; }
.pt-wait-badge.closed { background: #edf2f7 !important; color: #a0aec0 !important; font-weight: 500 !important; }

.pt-spinner { text-align: center !important; padding: 60px 0 !important; color: #4a51ff !important; font-weight: 600 !important; }
.pt-spinner i { margin-bottom: 15px !important; font-size: 2.5rem !important; display: block !important; }