/* 📱 STYLES MOBILE - DESTINATION TOURISTIQUE */

/* Masquer l'interface mobile par défaut */
.mobile-interface {
    display: none;
}

/* Styles mobile uniquement */
@media (max-width: 768px) {
    /* Masquer le layout desktop */
    .booking-layout {
        display: none !important;
    }

    /* Afficher l'interface mobile */
    .mobile-interface {
        display: block !important;
        min-height: 100vh;
        background: #f8f9fa;
    }

    /* Header de recherche */
    .mobile-search-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #0071c2;
        padding: 16px;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-search-form {
        display: flex;
        gap: 12px;
        width: 100%;
    }

    /* Conteneur de géolocalisation */
    .mobile-geolocation-container {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 0;
        margin-top: 12px;
    }

    /* Bouton de géolocalisation */
    .mobile-geolocation-btn {
        background: #fff;
        color: #0071c2;
        border: 1px solid rgba(0,113,194,0.25);
        border-radius: 999px;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
        width: 100%;
        justify-content: center;
    }

    .mobile-geolocation-btn .icon { font-size: 18px; line-height: 1; }
    .mobile-geolocation-btn .label-group { display: flex; flex-direction: column; line-height: 1.1; }
    .mobile-geolocation-btn .label-top { font-size: 12px; font-weight: 500; opacity: 0.9; }
    .mobile-geolocation-btn .label-bottom { font-size: 14px; font-weight: 700; }

    .mobile-geolocation-btn:hover {
        background: #0071c2;
        color: #fff;
        border-color: #0071c2;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    }

    .mobile-geolocation-btn:active {
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    }

    .mobile-geolocation-btn.loading {
        background: #6c757d;
        color: #fff;
        border-color: #6c757d;
        animation: pulse 1.5s infinite;
    }
    
    .mobile-geolocation-btn.active {
        background: #28a745;
        color: #fff;
        border-color: #28a745;
    }

    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.7; }
        100% { opacity: 1; }
    }

    /* Bouton Reset géolocalisation */
    .mobile-geolocation-reset-btn {
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
        font-size: 16px;
        font-weight: bold;
        flex-shrink: 0;
    }
    
    .mobile-geolocation-reset-btn:hover {
        background: #c82333;
        transform: scale(1.05);
    }
    
    .mobile-geolocation-reset-btn:active {
        transform: scale(0.95);
    }

    .mobile-search-input {
        flex: 1;
        padding: 12px 16px;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        background: white;
    }

    .mobile-search-btn {
        background: #febb02;
        color: #262626;
        border: none;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }

    /* Onglets */
    .mobile-tabs {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        display: flex;
        border-top: 1px solid #e7e7e7;
        z-index: 999;
    }

    .mobile-tab {
        flex: 1;
        padding: 12px;
        text-align: center;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .mobile-tab.active {
        border-bottom-color: #0071c2;
        color: #0071c2;
    }

    .mobile-tab-icon {
        font-size: 20px;
    }

    .mobile-tab-count {
        background: #f5f5f5;
        color: #666;
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 12px;
    }

    /* Sections */
    .mobile-sections {
        min-height: 100vh;
        margin-top: 57px;
    }

    .mobile-section {
        display: none;
        min-height: calc(100vh - 140px);
        background: white;
    }

    .mobile-section.active {
        display: block;
    }

    .mobile-section-header {
        padding: 16px;
        border-bottom: 1px solid #e7e7e7;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-section-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .mobile-close-filters-btn,
    .mobile-close-map-btn {
        background: none;
        border: none;
        font-size: 20px;
        padding: 8px;
        cursor: pointer;
        color: #666;
    }

    /* Résultats */
    .mobile-results-list {
        padding: 16px;
    }

    .mobile-result-card {
        background: white;
        border: 1px solid #e7e7e7;
        border-radius: 8px;
        margin-bottom: 16px;
        overflow: hidden;
    }

    .mobile-result-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 48px;
        position: relative;
        overflow: hidden;
    }
    
    /* 🎨 Assurer que le placeholder secteur s'affiche correctement sur mobile */
    .mobile-result-image > div[style*="background-image"] {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .mobile-result-content {
        padding: 16px;
    }

    .mobile-result-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #0071c2;
    }

    .mobile-result-location {
        font-size: 14px;
        color: #666;
        margin-bottom: 8px;
    }

    .mobile-result-description {
        font-size: 14px;
        color: #333;
        margin-bottom: 12px;
    }

    .mobile-result-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        color: #666;
        gap: 8px;
        margin-top: 8px;
    }
    
    .mobile-voir-plus-btn {
        flex: 1;
        background: #0071c2;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 8px 12px;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.2s;
    }
    
    .mobile-voir-plus-btn:hover {
        background: #005a9a;
    }
    
    .mobile-voir-plus-btn:active {
        transform: scale(0.98);
    }
    
    .mobile-map-btn {
        background: #28a745;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 8px 12px;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.2s;
        min-width: 44px;
    }
    
    .mobile-map-btn:hover {
        background: #218838;
    }
    
    .mobile-map-btn:active {
        transform: scale(0.98);
    }
    
    .mobile-result-image {
        position: relative;
        cursor: pointer;
    }
    
    .map-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 113, 194, 0.8);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .mobile-result-image:hover .map-overlay {
        opacity: 1;
    }

    /* Filtres */
    .mobile-filters-content {
        padding: 16px;
    }

    .mobile-filter-group {
        margin-bottom: 24px;
    }

    .mobile-filter-group-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 12px;
        color: #333;
    }

    .mobile-filter-option {
        padding: 8px 0;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: background-color 0.2s;
        border-radius: 4px;
        margin: 0 -8px;
        padding: 8px;
    }
    
    .mobile-filter-option:hover {
        background-color: #f0f8ff;
    }
    
    .mobile-filter-option:active {
        background-color: #e6f3ff;
    }

    .mobile-filter-checkbox {
        width: 20px;
        height: 20px;
        border: 2px solid #0071c2;
        border-radius: 4px;
        position: relative;
        cursor: pointer;
    }

    .mobile-filter-checkbox.checked {
        background-color: #0071c2;
        border-color: #0071c2;
    }
    
    .mobile-filter-checkbox.checked::after {
        content: '✓';
        position: absolute;
        top: -2px;
        left: 2px;
        color: white;
        font-size: 16px;
        font-weight: bold;
    }

    .mobile-filter-label {
        font-size: 14px;
        color: #333;
        cursor: pointer;
    }

    /* Carte */
    .mobile-map-content {
        height: calc(100vh - 140px);
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #666;
    }
} 