/* ====================================
   OPTIMISATIONS PAGE DETAILS.HTML
   Réduction du scroll et espacement compact
   ==================================== */

/* ===== BOUTON DE RÉSERVATION FIXE MOBILE ===== */
.mobile-booking-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #006699 0%, #0088cc 100%);
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-booking-bar.visible {
    transform: translateY(0);
}

.mobile-booking-bar.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-booking-info {
    flex: 1;
    color: white;
}

.mobile-booking-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.mobile-booking-price small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.mobile-booking-label {
    font-size: 0.8rem;
    opacity: 0.95;
    margin: 0;
}

.mobile-booking-bar .btn-book-mobile {
    background: white;
    color: #006699;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-booking-bar .btn-book-mobile:active {
    transform: scale(0.95);
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-booking-bar.visible {
    animation: slideDown 0.3s ease forwards;
}

/* Compensation du header fixe */
@media (max-width: 768px) {
    .mobile-booking-bar.show {
        display: flex !important;
    }

    /* Ajouter un padding en haut quand la barre est visible */
    body.mobile-bar-visible {
        padding-top: 60px;
    }
}

/* ===== RÉDUCTION DES ESPACEMENTS GLOBAUX ===== */
.container-xxl.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.container-xxl.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* ===== HEADER DE LA PROPRIÉTÉ ===== */
.property-header {
    padding: 1rem 0 !important;
    margin-bottom: 1.5rem !important;
}

.property-name {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
}

.property-meta {
    gap: 0.75rem !important;
}

/* ===== GALERIE MODERNE ===== */
.modern-gallery {
    margin: 1rem 0 !important;
}

.main-photo-modern {
    height: 400px !important;
}

.side-photos-modern {
    height: 400px !important;
}

.side-photo-item {
    height: calc(200px - 0.25rem) !important;
}

/* ===== CONTENT CARDS ===== */
.content-card {
    padding: 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.section-title {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
}

.property-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* ===== HIGHLIGHTS (POINTS FORTS) ===== */
.highlight-item {
    padding: 0.75rem !important;
    gap: 0.75rem !important;
}

.highlight-item i {
    font-size: 1.25rem !important;
}

.highlight-content h5 {
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem !important;
}

.highlight-content p {
    font-size: 0.85rem !important;
    margin: 0 !important;
}

/* ===== PROPERTY SPECS (DÉTAILS) ===== */
.property-specs {
    margin-top: 0.5rem !important;
}

.property-specs .row {
    margin-bottom: 0 !important;
}

.property-specs .col-md-6 {
    margin-bottom: 0.75rem !important;
}

.spec-item {
    padding: 0.75rem !important;
}

.spec-item i {
    font-size: 1.5rem !important;
}

.spec-label {
    font-size: 0.8rem !important;
}

.spec-value {
    font-size: 1rem !important;
}

/* ===== AMENITIES (ÉQUIPEMENTS) ===== */
.modern-amenities {
    gap: 0.5rem !important;
}

.modern-amenity-item {
    padding: 0.6rem 0.8rem !important;
    gap: 0.6rem !important;
}

.modern-amenity-item i {
    font-size: 1.1rem !important;
}

.modern-amenity-item span {
    font-size: 0.875rem !important;
}

/* ===== CONDITIONS DE SÉJOUR ===== */
.condition-item {
    padding: 0.75rem !important;
    gap: 0.6rem !important;
}

.condition-item i {
    font-size: 1.1rem !important;
}

.condition-item span {
    font-size: 0.875rem !important;
}

/* ===== REVIEWS (AVIS) ===== */
.review-item {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.reviewer-avatar {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.9rem !important;
}

.reviewer-name {
    font-size: 0.95rem !important;
}

.review-date {
    font-size: 0.8rem !important;
}

.review-rating {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
}

.review-text {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* ===== BOOKING SIDEBAR (CARTE DE RÉSERVATION) ===== */
.booking-sidebar {
    position: sticky;
    top: 80px !important;
}

.booking-card-modern {
    padding: 1.25rem !important;
}

.price-header {
    padding-bottom: 1rem !important;
    margin-bottom: 1rem !important;
}

.price-amount {
    font-size: 1.75rem !important;
}

.price-currency {
    font-size: 1.1rem !important;
}

.price-period {
    font-size: 0.9rem !important;
}

.booking-form .form-group {
    margin-bottom: 0.75rem !important;
}

.booking-form .form-label {
    font-size: 0.85rem !important;
    margin-bottom: 0.35rem !important;
}

.booking-form .form-control,
.booking-form .form-select {
    padding: 0.6rem !important;
    font-size: 0.9rem !important;
}

.booking-form .btn-book {
    padding: 0.75rem !important;
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.price-breakdown {
    padding: 0.75rem !important;
    font-size: 0.85rem !important;
    margin-top: 0.75rem !important;
}

.booking-features {
    padding-top: 0.75rem !important;
    margin-top: 0.75rem !important;
}

.feature-item {
    padding: 0.35rem 0 !important;
}

.feature-item span {
    font-size: 0.85rem !important;
}

/* ===== CONTACT CARD ===== */
.contact-card {
    padding: 1.25rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.contact-card h5 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

.help-icon {
    width: 55px !important;
    height: 55px !important;
    margin-bottom: 0.75rem !important;
}

.help-icon i {
    font-size: 1.75rem !important;
}

.contact-card .btn {
    padding: 0.75rem !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
}

.contact-info {
    padding: 0.75rem !important;
    margin-top: 0.75rem !important;
}

.info-item {
    margin-bottom: 0.5rem !important;
}

.info-item span {
    font-size: 0.85rem !important;
}

/* ===== RÉDUCTION DES ESPACEMENTS ENTRE SECTIONS ===== */
.content-card + .content-card {
    margin-top: 0 !important;
}

#highlights-section,
#property-details-section,
#stay-conditions-section,
#reviews-section {
    margin-bottom: 1.25rem !important;
}

/* ===== PAGE HEADER (Breadcrumb) ===== */
.page-header {
    padding: 4rem 0 3rem !important;
}

.page-header-inner {
    padding: 2rem 0 !important;
}

.page-header h1 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 991px) {
    /* Galerie plus compacte sur tablette */
    .main-photo-modern {
        height: 300px !important;
    }

    .side-photos-modern {
        height: 200px !important;
    }

    .side-photo-item {
        height: calc(100px - 0.25rem) !important;
    }

    /* Sidebar devient statique */
    .booking-sidebar {
        position: static !important;
        margin-top: 1.5rem !important;
    }

    /* Réduction supplémentaire des espacements */
    .content-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 768px) {
    /* Container principal */
    .container-xxl.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Header réduit */
    .property-header {
        padding: 0.75rem 0 !important;
        margin-bottom: 1rem !important;
    }

    .property-name {
        font-size: 1.4rem !important;
    }

    .property-meta {
        font-size: 0.85rem !important;
    }

    /* Galerie mobile compacte */
    .modern-gallery {
        margin: 0.75rem 0 !important;
    }

    .main-photo-modern {
        height: 250px !important;
    }

    .side-photos-modern {
        height: auto !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.35rem !important;
    }

    .side-photo-item {
        height: 100px !important;
    }

    /* Content cards très compacts */
    .content-card {
        padding: 0.875rem !important;
        margin-bottom: 0.875rem !important;
    }

    .section-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .section-title i {
        font-size: 1rem !important;
    }

    /* Description plus compacte */
    .property-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Highlights en une seule colonne */
    .highlights-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .highlight-item {
        padding: 0.6rem !important;
    }

    /* Specs en une colonne */
    .property-specs .col-md-6 {
        margin-bottom: 0.5rem !important;
    }

    .spec-item {
        padding: 0.6rem !important;
    }

    /* Amenities plus compacts */
    .modern-amenities {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }

    .modern-amenity-item {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.8rem !important;
    }

    .modern-amenity-item i {
        font-size: 1rem !important;
    }

    /* Conditions compactes */
    .conditions-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .condition-item {
        padding: 0.6rem !important;
    }

    /* Reviews compactes */
    .review-item {
        padding: 0.75rem !important;
        margin-bottom: 0.6rem !important;
    }

    .reviewer-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .reviewer-name {
        font-size: 0.9rem !important;
    }

    .review-text {
        font-size: 0.85rem !important;
    }

    /* Booking card compacte */
    .booking-card-modern {
        padding: 1rem !important;
    }

    .price-header {
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .price-amount {
        font-size: 1.5rem !important;
    }

    .booking-form .form-group {
        margin-bottom: 0.6rem !important;
    }

    .booking-form .btn-book {
        padding: 0.65rem !important;
        font-size: 0.95rem !important;
    }

    /* Contact card compacte */
    .contact-card {
        padding: 1rem !important;
        margin-top: 0.75rem !important;
    }

    .help-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.5rem !important;
    }

    .help-icon i {
        font-size: 1.5rem !important;
    }

    .contact-card h5 {
        font-size: 1rem !important;
    }

    .contact-card .btn {
        padding: 0.65rem !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.6rem !important;
    }

    /* Page header réduit sur mobile */
    .page-header {
        padding: 3rem 0 2rem !important;
    }

    .page-header-inner {
        padding: 1.5rem 0 !important;
    }

    .page-header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .breadcrumb {
        font-size: 0.85rem !important;
    }
}

/* ===== OPTIMISATIONS SUPPLÉMENTAIRES ===== */

/* Réduire l'espacement des grilles */
.highlights-grid,
.conditions-grid {
    gap: 0.75rem !important;
}

/* Réduire les marges des rows */
.row {
    --bs-gutter-y: 0.75rem !important;
}

/* Optimiser les icônes */
.fas, .far, .fab {
    vertical-align: middle;
}

/* Améliorer la densité du contenu */
* {
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3 !important;
}

/* Réduire les espacements Bootstrap par défaut */
.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mt-3 {
    margin-top: 0.75rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Scroll plus fluide */
html {
    scroll-behavior: smooth;
}

/* Optimisation de la sidebar sticky */
@media (min-width: 992px) {
    .booking-sidebar {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .booking-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .booking-sidebar::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .booking-sidebar::-webkit-scrollbar-thumb {
        background: #006699;
        border-radius: 3px;
    }
}
