/* ============================================
   CSS pour detail.html - Page de détails POI
   ============================================ */

/* Reset du main pour enlever tout style par défaut */
main {
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
}

/* Hero Section */
.hero-detail {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(102, 126, 234, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

/* Breadcrumb */
.breadcrumb-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumb-detail a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.breadcrumb-detail a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb-detail span {
    opacity: 0.7;
}

/* Titre et badges */
.hero-title-section {
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.badge-category {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Localisation */
.hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-location i {
    font-size: 1.2rem;
}

/* Rating et Actions */
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.rating-stars .star {
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Boutons d'action */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

.action-btn i {
    font-size: 1.2rem;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.action-btn.active i {
    color: #ff6b6b;
}

.action-btn {
    transition: transform 0.2s ease;
}

/* Container principal */
.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: #f5f5f5;
}

/* Sections */
.content-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #667eea;
    font-size: 1.6rem;
}

/* Grid d'informations modernes */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.info-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.info-card-content {
    color: #555;
    line-height: 1.6;
}

.info-item-modern {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.info-item-modern i {
    color: #667eea;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    width: 20px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.info-item-modern strong {
    color: #333;
    min-width: 120px;
}

.info-item-modern > div {
    flex: 1;
    margin: 0;
    padding: 0;
    text-align: left;
}

.info-item-modern > div * {
    margin: 0;
    padding: 0;
}

.info-value,
.info-value-success,
.info-value-danger,
.info-value-muted {
    display: inline;
    font-size: 0.95rem;
    line-height: 1.4;
}

.info-value {
    color: #333;
    font-weight: 400;
}

.info-value-success {
    color: #28a745;
    font-weight: 600;
}

.info-value-danger {
    color: #dc3545;
    font-weight: 600;
}

.info-value-muted {
    color: #999;
    font-weight: 400;
}

/* Tags modernes */
.tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.tag-modern:hover {
    transform: scale(1.05);
}

.tag-modern i {
    font-size: 0.9rem;
}

/* Description */
.description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Galerie Photos Modernisée */
.gallery-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Carte interactive */
.content-section .map-container.map-modern {
    height: 400px !important;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.content-section .map-container.map-modern iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Section Avis Moderne */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.add-review-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.add-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

/* Résumé des avis */
.reviews-summary {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid #e0e0e0;
}

.summary-score {
    text-align: center;
    padding: 1rem;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.score-stars {
    font-size: 1.5rem;
    color: #ffd700;
    margin: 0.5rem 0;
}

.star-big {
    margin: 0 0.1rem;
}

.score-text {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
}

.summary-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    min-width: 80px;
    font-size: 0.9rem;
    color: #555;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.bar-count {
    min-width: 30px;
    text-align: right;
    font-weight: 600;
    color: #333;
}

/* Liste des avis */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card-modern {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.review-card-modern:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.review-date {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #666;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
}

.star-review {
    font-size: 1.3rem;
    color: #ddd;
}

.star-review.filled {
    color: #ffd700;
}

.review-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 1rem 0;
}

.review-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.review-photo {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.review-photo:hover {
    transform: scale(1.05);
}

/* Pas d'avis */
.no-reviews {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-reviews i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-reviews p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.no-reviews-subtitle {
    font-size: 1rem;
    color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-detail {
        height: 280px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        width: 100%;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
    }

    .detail-container {
        padding: 2rem 1rem;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .gallery-modern {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }

    .review-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
