/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/**
 * ═══════════════════════════════════════════════════════════════
 * LOCATION CHÂTEL - CSS COMPLET POUR LES LOGEMENTS
 * ═══════════════════════════════════════════════════════════════
 * 
 * À ajouter dans :
 * - Apparence > Personnaliser > CSS Additionnel
 * - OU dans beTheme > Theme Options > Custom CSS
 * 
 * Responsive : Mobile First
 */

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

.logement-chatel-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logement-chatel-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* ═══════════════════════════════════════════════════════════════
   TITRE PRINCIPAL H1
   ═══════════════════════════════════════════════════════════════ */

.logement-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0 30px 0;
    text-align: center;
    color: #2c2c2c;
}

@media (min-width: 768px) {
    .logement-title {
        font-size: 3rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   BANDEAU INFOS TYPE AIRBNB (Facts)
   ═══════════════════════════════════════════════════════════════ */

.facts {
    --red: #D91E18;
    --label: #6b7280;
    --card: #f7f7f8;
    --radius: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

@media (min-width: 480px) {
    .facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .facts {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.facts__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: var(--card);
    border-radius: var(--radius);
}

.facts__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.facts__icon img,
.facts__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--red);
}

.facts__text {
    display: flex;
    flex-direction: column;
}

.facts__label {
    font-size: 12px;
    color: var(--label);
}

.facts__value {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    margin-top: 2px;
    white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════
   GALERIE PHOTOS
   ═══════════════════════════════════════════════════════════════ */

.photo-gallery-chalet {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0;
}

@media (min-width: 768px) {
    .photo-gallery-chalet {
        grid-template-columns: repeat(2, 1fr);
    }
}

.photo-gallery-chalet img {
    width: 100%;
    height: auto;
    aspect-ratio: 570 / 430;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.photo-gallery-chalet img:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .photo-gallery-chalet img {
        width: 570px;
        height: 430px;
    }
}

/* Bouton "Voir plus de photos" */
.gallery-btn-chalet {
    padding: 12px 24px;
    background: #D91E18;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.gallery-btn-chalet:hover {
    background: #b31712;
}

/* Lightbox */
.gallery-lightbox-chalet {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-chalet.active {
    display: flex !important;
}

.gallery-img-chalet {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
}

.gallery-close-chalet {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 1000000;
}

.gallery-close-chalet:hover {
    color: #ccc;
}

.gallery-nav-chalet {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.gallery-prev-chalet,
.gallery-next-chalet {
    background: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s ease;
}

.gallery-prev-chalet:hover,
.gallery-next-chalet:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

body.no-scroll-chalet {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}


/* ═══════════════════════════════════════════════════════════════
   ÉQUIPEMENTS
   ═══════════════════════════════════════════════════════════════ */

.amenities-section {
    margin: 40px 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.amenity-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
    .amenity-card {
        padding: 20px;
    }
}

.amenity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.amenity-card.unavailable {
    opacity: 0.5;
    pointer-events: none;
}

.icon-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .icon-container {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
}

.amenity-card:hover .icon-container {
    background: #fecaca;
    transform: scale(1.05);
}

.icon {
    width: 22px;
    height: 22px;
}

@media (min-width: 768px) {
    .icon {
        width: 28px;
        height: 28px;
    }
}

.amenity-title {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .amenity-title {
        font-size: 14px;
    }
}

.amenity-status {
    font-size: 11px;
    color: #6b7280;
}

@media (min-width: 768px) {
    .amenity-status {
        font-size: 12px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   INFORMATIONS PRATIQUES
   ═══════════════════════════════════════════════════════════════ */

.infos {
    max-width: 600px;
    margin: 40px auto;
    font-family: system-ui, sans-serif;
}

.infos h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.info-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.info-card .icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}

.info-card .icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.info-card .text h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.info-card .text p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════════════
   AVIS DES VOYAGEURS
   ═══════════════════════════════════════════════════════════════ */

.container {
    max-width: 1200px;
    margin: 40px auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .reviews-title {
        font-size: 32px;
    }
}

.overall-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 4px;
}

.star {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
    color: #fbbf24;
}

@media (min-width: 768px) {
    .star {
        width: 24px;
        height: 24px;
    }
}

.rating-text {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

@media (min-width: 768px) {
    .rating-text {
        font-size: 24px;
    }
}

.rating-count {
    color: #6b7280;
    font-size: 16px;
}

.subtitle {
    color: #6b7280;
    font-size: 16px;
    margin-top: 8px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .review-card {
        padding: 24px;
    }
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

@media (min-width: 480px) {
    .review-header {
        flex-wrap: nowrap;
    }
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.review-star {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
    color: #fbbf24;
}

.review-date {
    font-size: 14px;
    color: #6b7280;
    margin-left: auto;
}

@media (max-width: 479px) {
    .review-date {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }
}

.review-text {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   RÉSERVATION
   ═══════════════════════════════════════════════════════════════ */

.reservation-box {
    background: #fff7f7;
    border: 1px solid #f4d5d5;
    border-radius: 16px;
    padding: 30px 20px;
    max-width: 1000px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    text-align: center;
    font-family: system-ui, sans-serif;
}

@media (min-width: 768px) {
    .reservation-box {
        padding: 40px;
    }
}

.reservation-box h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
}

@media (min-width: 768px) {
    .reservation-box h2 {
        font-size: 24px;
    }
}

.reservation-box p {
    font-size: 15px;
    color: #374151;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .reservation-box p {
        font-size: 16px;
    }
}

.reservation-box hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #f4d5d5;
}

.reservation-box .advantages {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .reservation-box .advantages {
        gap: 20px;
    }
}

.reservation-box .advantages > div {
    flex: 1;
    min-width: 120px;
}

.reservation-box .advantages strong {
    display: block;
    color: #D91E18;
    margin-bottom: 4px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .reservation-box .advantages strong {
        font-size: 16px;
    }
}

.reservation-box .advantages span {
    color: #6b7280;
    font-size: 13px;
}

@media (min-width: 768px) {
    .reservation-box .advantages span {
        font-size: 14px;
    }
}

/* Section réservation complète */
.booking-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.booking-header {
    text-align: center;
    margin-bottom: 50px;
}

.booking-header h2 {
    font-size: 2em;
    color: #3d2817;
    margin-bottom: 20px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .booking-header h2 {
        font-size: 2.5em;
    }
}

.booking-subtitle {
    font-size: 1.1em;
    color: #6b5d52;
    margin-bottom: 30px;
}

.booking-intro-text {
    max-width: 900px;
    margin: 0 auto 15px;
    color: #5a4a3a;
    line-height: 1.6;
    font-size: 14px;
}

@media (min-width: 768px) {
    .booking-intro-text {
        font-size: 16px;
    }
}

.booking-intro-text strong {
    color: #3d2817;
}

.booking-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .booking-options {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.booking-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(61, 40, 23, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .booking-card {
        padding: 35px 30px;
    }
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #FB0001;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(61, 40, 23, 0.15);
}

.booking-card:hover::before {
    transform: scaleX(1);
}

.booking-card-badge {
    display: inline-block;
    background: #FB0001;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 20px;
}

.booking-card-title {
    font-size: 1.3em;
    color: #3d2817;
    margin-bottom: 15px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .booking-card-title {
        font-size: 1.4em;
    }
}

.booking-card-description {
    color: #6b5d52;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.9em;
}

@media (min-width: 768px) {
    .booking-card-description {
        font-size: 0.95em;
    }
}

/* Contact Form 7 dans booking card */
.booking-cf7-container {
    margin-top: 20px;
}

.booking-cf7-container .wpcf7 {
    margin: 0;
}

.booking-cf7-container .wpcf7-form p {
    margin-bottom: 15px;
}

.booking-cf7-container .wpcf7-form label {
    display: block;
    color: #3d2817;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.booking-cf7-container .wpcf7-form input[type="text"],
.booking-cf7-container .wpcf7-form input[type="email"],
.booking-cf7-container .wpcf7-form input[type="tel"],
.booking-cf7-container .wpcf7-form input[type="date"],
.booking-cf7-container .wpcf7-form textarea,
.booking-cf7-container .wpcf7-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0d5cc;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #fafaf8;
}

.booking-cf7-container .wpcf7-form input:focus,
.booking-cf7-container .wpcf7-form textarea:focus,
.booking-cf7-container .wpcf7-form select:focus {
    outline: none;
    border-color: #FB0001;
    background: white;
}

.booking-cf7-container .wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.booking-cf7-container .wpcf7-form input[type="submit"] {
    background: #FB0001;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.booking-cf7-container .wpcf7-form input[type="submit"]:hover {
    background: #d90001;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 0, 1, 0.3);
}

.booking-cf7-container .wpcf7-not-valid-tip {
    color: #FB0001;
    font-size: 0.85em;
    margin-top: 5px;
}

.booking-cf7-container .wpcf7-response-output {
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

/* Logos plateformes */
.booking-logos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid #f0ebe5;
}

@media (min-width: 768px) {
    .booking-logos-container {
        gap: 25px;
    }
}

.booking-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 75px;
    background: #fafaf8;
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(61, 40, 23, 0.08);
}

@media (min-width: 768px) {
    .booking-logo-wrapper {
        width: 220px;
        height: 90px;
    }
}

.booking-logo-wrapper:hover {
    background: #f0ebe5;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(61, 40, 23, 0.15);
}

.booking-logo-wrapper img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .booking-logo-wrapper img {
        height: 45px;
    }
}

.booking-platform-text {
    text-align: center;
    margin-top: 25px;
    color: #6b5d52;
    font-size: 0.9em;
}

@media (min-width: 768px) {
    .booking-platform-text {
        font-size: 0.95em;
    }
}