/* Styles pour les pages de destinations */

/* Reset et base */
.dest-content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
}

/* Hero section avec image de fond */
.dest-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.dest-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}

.dest-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
}

.dest-hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.dest-hero-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    opacity: 0.95;
}

.dest-hero-location i {
    color: #667eea;
}

/* Quick info bar */
.dest-quick-info {
    background: var(--bg-secondary);
    padding: 20px 40px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    box-shadow: 0 2px 15px var(--shadow-color);
    border-bottom: 1px solid var(--border-color);
}

.dest-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dest-info-item i {
    font-size: 24px;
    color: #667eea;
    width: 35px;
    text-align: center;
}

.dest-info-item .info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dest-info-item .info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Main content area */
.dest-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
}

/* Persona banner */
.dest-persona-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: none;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dest-persona-banner.visible {
    display: flex;
}

.dest-persona-banner i {
    font-size: 24px;
}

/* Introduction text */
.dest-intro {
    font-size: 19px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border-left: 5px solid #667eea;
}

/* Section cards */
.dest-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dest-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.dest-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.dest-section-title i {
    color: #667eea;
    font-size: 28px;
}

/* Lists styling */
.dest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dest-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.dest-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dest-list li::before {
    content: '→';
    color: #667eea;
    font-weight: bold;
    flex-shrink: 0;
}

.dest-list li strong {
    color: var(--text-primary);
}

/* Grid for practical info */
.dest-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dest-info-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dest-info-card i {
    font-size: 32px;
    color: #667eea;
}

.dest-info-card .card-content {
    flex: 1;
}

.dest-info-card .card-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.dest-info-card .card-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Conclusion box */
.dest-conclusion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-top: 30px;
    font-size: 17px;
    line-height: 1.8;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.dest-conclusion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Action buttons */
.dest-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.dest-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dest-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dest-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.dest-btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.dest-btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
}

.dest-btn-favorite {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.dest-btn-favorite.active {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.dest-btn-favorite:hover:not(.active) {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Responsive - Mobile uniquement (téléphones) */
@media (max-width: 480px) {
    /* Layout principal */
    .dest-content {
        padding-bottom: 70px; /* Espace pour la nav mobile fixe */
    }

    /* Hero section mobile */
    .dest-hero {
        height: 250px;
        padding: 20px;
    }

    .dest-hero h1 {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .dest-hero-location {
        font-size: 16px;
        gap: 8px;
    }

    /* Quick info bar - scroll horizontal sur mobile */
    .dest-quick-info {
        padding: 15px;
        gap: 15px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dest-quick-info::-webkit-scrollbar {
        display: none;
    }

    .dest-info-item {
        flex-shrink: 0;
        gap: 10px;
    }

    .dest-info-item i {
        font-size: 20px;
        width: 28px;
    }

    .dest-info-item .info-label {
        font-size: 10px;
    }

    .dest-info-item .info-value {
        font-size: 14px;
    }

    /* Main content mobile */
    .dest-main {
        padding: 15px;
    }

    /* Persona banner mobile */
    .dest-persona-banner {
        padding: 15px;
        font-size: 14px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }

    .dest-persona-banner i {
        font-size: 20px;
    }

    /* Introduction mobile */
    .dest-intro {
        font-size: 16px;
        line-height: 1.7;
        padding: 20px;
        margin-bottom: 25px;
    }

    /* Section cards mobile */
    .dest-section {
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .dest-section:hover {
        transform: none;
    }

    .dest-section-title {
        font-size: 18px;
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .dest-section-title i {
        font-size: 22px;
    }

    /* Lists mobile */
    .dest-list li {
        padding: 12px 0;
        gap: 10px;
        font-size: 14px;
        line-height: 1.5;
    }

    /* Info grid mobile - une seule colonne */
    .dest-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dest-info-card {
        padding: 15px;
        gap: 12px;
    }

    .dest-info-card i {
        font-size: 26px;
    }

    .dest-info-card .card-label {
        font-size: 11px;
    }

    .dest-info-card .card-value {
        font-size: 15px;
    }

    /* Conclusion box mobile */
    .dest-conclusion {
        padding: 20px;
        font-size: 15px;
        line-height: 1.7;
        margin-top: 20px;
    }

    .dest-conclusion-title {
        font-size: 18px;
        gap: 10px;
        margin-bottom: 12px;
    }

    /* Action buttons mobile - empilés */
    .dest-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 25px;
    }

    .dest-btn {
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .dark-mode-toggle {
        top: auto;
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .rating-stars {
        font-size: 20px;
    }

    .similar-destinations-grid {
        grid-template-columns: 1fr;
    }

    .recent-destinations {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .recent-dest-item {
        min-width: 150px;
    }
}

/* ==================== */
/* SYSTÈME DE NOTATION */
/* ==================== */
.rating-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px var(--shadow-color);
    text-align: center;
}

.rating-section h3 {
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-size: 18px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 28px;
    margin-bottom: 10px;
}

.rating-stars i {
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #f1c40f;
    transform: scale(1.15);
}

.rating-stars i.hovered {
    color: #f1c40f;
}

.rating-count {
    font-size: 14px;
    color: var(--text-muted);
}

.rating-average {
    font-size: 24px;
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 5px;
}

/* ========================= */
/* DESTINATIONS SIMILAIRES */
/* ========================= */
.similar-destinations {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.similar-destinations h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    margin: 0 0 25px 0;
    font-size: 22px;
}

.similar-destinations h2 i {
    color: #667eea;
}

.similar-destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.similar-dest-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.similar-dest-card:hover {
    transform: translateY(-5px);
}

.similar-dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-dest-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.similar-dest-card .dest-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.similar-dest-card .dest-country {
    font-size: 12px;
    opacity: 0.85;
}

/* ========================== */
/* HISTORIQUE RÉCENT */
/* ========================== */
.recent-destinations-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.recent-destinations-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 18px;
}

.recent-destinations-section h3 i {
    color: #667eea;
}

.recent-destinations {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.recent-dest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: var(--bg-primary);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.recent-dest-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.recent-dest-item img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-dest-item span {
    font-size: 14px;
    font-weight: 500;
}
