/* ==========================================
   PAGE DÉTAILS BOX - STYLES
   ========================================== */

.box-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Fil d'ariane */
.box-breadcrumb {
    padding: 15px 0;
    color: #666;
    font-size: 14px;
}

.box-breadcrumb a {
    color: #215297;
    text-decoration: none;
}

.box-breadcrumb a:hover {
    text-decoration: underline;
}

/* En-tête */
.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 3px solid #EE9B01;
    margin-bottom: 40px;
}

.box-header h1 {
    margin: 0 0 10px 0;
    color: #215297;
    font-size: 36px;
}

.box-location {
    color: #666;
    font-size: 16px;
}

.box-location i {
    color: #EE9B01;
    margin-right: 5px;
}

.status-badge {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
}

.status-badge.available {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.status-badge.unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Section principale */
.box-main-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Galerie photos */
.box-gallery {
    width: 100%;
}

/* Photo du site - Bannière */
.site-photo-banner {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.site-photo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
}

.site-photo-label i {
    color: #EE9B01;
    margin-right: 10px;
}

/* Photo principale du box */
.main-photo {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Compteur de photos */
.photo-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.photo-counter i {
    margin-right: 8px;
    color: #EE9B01;
}

.photo-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: #EE9B01;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #215297;
}

/* Sidebar info et prix */
.box-info-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.box-price-card {
    background: linear-gradient(135deg, #215297 0%, #1a4178 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(33, 82, 151, 0.3);
}

.price-main {
    margin-bottom: 10px;
}

.price-amount {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.price-period {
    font-size: 18px;
    opacity: 0.9;
}

.price-details {
    font-size: 14px;
    opacity: 0.8;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* Caractéristiques */
.box-features {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    font-size: 24px;
    color: #EE9B01;
    width: 40px;
    text-align: center;
}

.feature-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 15px;
}

.feature-label {
    color: #666;
    font-size: 14px;
}

.feature-value {
    font-weight: bold;
    color: #215297;
    font-size: 18px;
}

/* Bouton réservation */
.btn-reserve-box {
    display: block;
    width: 100%;
    padding: 18px;
    background: #28a745;
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-reserve-box:hover:not(.disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-reserve-box i {
    margin-right: 10px;
}

.btn-reserve-box.disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.reservation-info {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.reservation-info i {
    color: #215297;
    margin-right: 5px;
}

.reservation-info a {
    color: #215297;
    text-decoration: underline;
}

/* Onglets détails */
.box-details-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.details-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 3px solid #EE9B01;
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.tab-button:hover {
    background: white;
    color: #215297;
}

.tab-button.active {
    background: white;
    color: #215297;
    border-bottom-color: #215297;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #215297;
    margin-top: 0;
    margin-bottom: 25px;
}

.tab-content h3 {
    color: #215297;
    margin-top: 30px;
    margin-bottom: 15px;
}

.tab-content ul {
    list-style: none;
    padding: 0;
}

.tab-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.tab-content ul li:last-child {
    border-bottom: none;
}

/* Grille équipements */
.equipements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.equipement-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.equipement-card:hover {
    background: #215297;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(33, 82, 151, 0.3);
}

.equipement-card i {
    color: #EE9B01;
    margin-bottom: 15px;
}

.equipement-card:hover i {
    color: white;
}

.equipement-card h4 {
    margin: 15px 0 10px 0;
    color: #215297;
}

.equipement-card:hover h4 {
    color: white;
}

.equipement-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.equipement-card:hover p {
    color: rgba(255,255,255,0.9);
}

/* Accès */
.acces-info {
    margin-top: 30px;
}

.acces-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.acces-item i {
    color: #EE9B01;
    margin-right: 20px;
    margin-top: 5px;
}

.acces-item h4 {
    margin: 0 0 10px 0;
    color: #215297;
}

.acces-item p {
    margin: 5px 0;
    color: #666;
}

.btn-map {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #215297;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-map:hover {
    background: #1a4178;
}

/* Tarifs */
.tarifs-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.tarif-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.tarif-row.total {
    border-bottom: none;
    border-top: 3px solid #215297;
    margin-top: 10px;
    padding-top: 20px;
    font-size: 20px;
}

.tarifs-info {
    margin: 30px 0;
}

.tarifs-info ul {
    background: #fff;
    padding: 20px 30px;
    border-left: 4px solid #EE9B01;
}

.tarifs-info ul li {
    padding: 10px 0;
}

.tarifs-info i {
    color: #28a745;
    margin-right: 10px;
}

.tarifs-simulation {
    background: #215297;
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.tarifs-simulation h3 {
    color: white;
    margin-top: 0;
}

.simulation-calculator {
    margin-top: 20px;
}

.simulation-calculator label {
    display: block;
    margin-bottom: 10px;
}

.simulation-calculator input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    margin-bottom: 20px;
}

.simulation-result {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
}

.simulation-result strong {
    font-size: 32px;
    display: block;
    margin-top: 10px;
}

/* Section contact */
.box-contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}

.box-contact-section h2 {
    color: #215297;
    margin-bottom: 30px;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-btn {
    padding: 15px 40px;
    background: #215297;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-btn:hover {
    background: #EE9B01;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(238, 155, 1, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .box-main-section {
        grid-template-columns: 1fr;
    }
    
    .box-info-sidebar {
        position: static;
    }
    
    .equipements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .box-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .box-status {
        margin-top: 15px;
    }
    
    .box-header h1 {
        font-size: 28px;
    }
    
    .main-photo {
        height: 300px;
    }
    
    .photo-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .equipements-grid {
        grid-template-columns: 1fr;
    }
    
    .details-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 50%;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
