/* =========================================================
   A-HOUSE SHOW
========================================================= */

.ahouse-show {
    /* background: #f5f3ee; */
    color: var(--cream);
    min-height: 100vh;
    padding: 50px 0 100px;
}

.ahouse-show .container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   RETOUR
========================================================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 55px;
    margin-top: 80px;
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap 0.25s ease, color 0.25s ease;
}

.back-link:hover {
    color: #263025;
    gap: 15px;
}


/* =========================================================
   HEADER
========================================================= */

.ahouse-show-header {
    max-width: 850px;
    margin-bottom: 50px;
}

.ahouse-show .section-label {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ahouse-show-header h1 {
    margin: 0;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 0.9;
    font-weight: 500;
    letter-spacing: -0.055em;
    color: var(--cream);
}

.ahouse-show-header p {
    margin: 30px 0 0;
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   GRANDE IMAGE
========================================================= */

.ahouse-show-image {
    width: 100%;
    height: 650px;

    overflow: hidden;

    background: #dfe3d9;
}


.ahouse-image-placeholder span {
    font-size: 12rem;
    font-weight: 600;

    color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   INFORMATIONS
========================================================= */

.ahouse-show-info {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border-bottom: 1px solid #dddcd5;

    margin-bottom: 90px;
}

.ahouse-show-info>div {
    padding: 30px 25px;

    border-right: 1px solid #dddcd5;
}

.ahouse-show-info>div:first-child {
    padding-left: 0;
}

.ahouse-show-info>div:last-child {
    border-right: none;
}

.ahouse-show-info span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ahouse-show-info strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
}

.available {
    color: var(--moss);
}

.unavailable {
    color: var(--honey-deep);
}


/* =========================================================
   CONTENU
========================================================= */

.ahouse-show-content {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 360px;

    gap: 100px;

    align-items: start;
}

.ahouse-show-content h2 {
    max-width: 650px;
    color: var(--cream);
    margin: 15px 0 25px;

    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1;

    font-weight: 500;

    letter-spacing: -0.045em;
}

.ahouse-show-content p {
    max-width: 650px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.9;
}

/* =========================================================
   BLOC RÉSERVATION
========================================================= */

.ahouse-booking {
    padding: 35px;
    border-radius: 30px;
    width: 100%;
    box-sizing: border-box;
    background:
        radial-gradient(
            circle at center,
            var(--forest) 0%,
            var(--forest-dark) 70%
        );
}

.ahouse-booking>span:first-child {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ahouse-booking strong {
    display: inline-block;
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 500;
}

.ahouse-booking small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.ahouse-booking .cta-button {
    width: 100%;
    justify-content: space-between;
    margin-top: 30px;
    padding: 16px 20px;
    /* background: #f5f3ee; */
    color: #263025;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition:
        background 0.25s ease,
        gap 0.25s ease;
}

.ahouse-booking .cta-button:hover {
    background: var(--white);
    color: var(--bark-deep);
}

/* =========================================================
   DISPONIBILITÉ
========================================================= */

.booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.date-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.date-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
}

.date-field input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.availability-result {
    margin-top: 20px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
}

.availability-result.available {
    color: #b8c9aa;
}

.availability-result.unavailable {
    color: #e3aaa0;
}

.booking-price {
    margin-top: 25px;
}

.booking-price strong {
    font-size: 2.5rem;
}

.booking-price small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
}

.cta-button.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

@media (max-width: 600px) {

    .booking-dates {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   CAROUSSEL 
========================================================= */

.ahouse-gallery {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.gallery-main {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-button {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.gallery-button:hover {
    transform: scale(1.08);
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumbnail {
    flex: 0 0 90px;
    width: 90px;
    height: 70px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: none;
}

.gallery-thumbnail.active {
    border-color: currentColor;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   RESPONSIVE — A-HOUSE SHOW
   ========================================================= */


/* ---------------------------------------------------------
   TABLETTE
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .ahouse-show {
        padding: 35px 0 80px;
    }

    .ahouse-show .container {
        width: min(100% - 40px, 900px);
    }

    .back-link {
        margin-top: 50px;
        margin-bottom: 40px;
    }

    .ahouse-show-header {
        margin-bottom: 35px;
    }

    .ahouse-show-header h1 {
        font-size: clamp(3rem, 8vw, 5rem);
    }

    .ahouse-show-image {
        height: 500px;
    }


    /* =========================
       INFORMATIONS
       ========================= */

    .ahouse-show-info {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 65px;
    }

    .ahouse-show-info > div {
        padding: 22px 20px;
        border-bottom: 1px solid #dddcd5;
    }

    .ahouse-show-info > div:nth-child(2) {
        border-right: none;
    }

    .ahouse-show-info > div:nth-child(3),
    .ahouse-show-info > div:nth-child(4) {
        border-bottom: none;
    }

    .ahouse-show-info > div:first-child {
        padding-left: 20px;
    }


    /* =========================
       CONTENU
       ========================= */

    .ahouse-show-content {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 50px;
    }

    .ahouse-show-content h2 {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }

    .ahouse-booking {
        padding: 28px;
    }


    /* =========================
       GALERIE
       ========================= */

    .ahouse-gallery {
        gap: 15px;
    }

    .gallery-main {
        height: 500px;
    }

    .gallery-button {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .ahouse-show {
        padding: 25px 0 60px;
    }

    .ahouse-show .container {
        width: calc(100% - 30px);
    }


    /* =========================
       RETOUR
       ========================= */

    .back-link {
        margin-top: 25px;
        margin-bottom: 30px;
        font-size: 0.8rem;
    }


    /* =========================
       HEADER
       ========================= */

    .ahouse-show-header {
        margin-bottom: 30px;
    }

    .ahouse-show .section-label {
        margin-bottom: 12px;
        font-size: 0.65rem;
    }

    .ahouse-show-header h1 {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
        line-height: 0.95;
        letter-spacing: -0.045em;
    }

    .ahouse-show-header p {
        margin-top: 20px;
        font-size: 0.95rem;
        line-height: 1.7;
    }


    /* =========================
       GALERIE
       ========================= */

    .ahouse-gallery {
        display: flex;
        position: relative;
        gap: 0;
    }

    .gallery-main {
        width: 100%;
        height: 400px;
        border-radius: 16px;
    }

    .gallery-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;

        width: 40px;
        height: 40px;

        font-size: 18px;
    }

    .gallery-button:hover {
        transform: translateY(-50%);
    }

    .gallery-button:first-child {
        left: 10px;
    }

    .gallery-button:last-child {
        right: 10px;
    }

    .gallery-thumbnails {
        gap: 8px;
        margin-top: 10px;
    }

    .gallery-thumbnail {
        flex: 0 0 70px;
        width: 70px;
        height: 55px;
        border-radius: 8px;
    }


    /* =========================
       INFORMATIONS
       ========================= */

    .ahouse-show-info {
        grid-template-columns: 1fr;
        margin-bottom: 55px;
    }

    .ahouse-show-info > div,
    .ahouse-show-info > div:first-child {
        padding: 18px 0;
        border-right: none;
        border-bottom: 1px solid #dddcd5;
    }

    .ahouse-show-info > div:last-child {
        border-bottom: none;
    }

    .ahouse-show-info span {
        margin-bottom: 7px;
        font-size: 0.65rem;
    }

    .ahouse-show-info strong {
        font-size: 1rem;
    }


    /* =========================
       CONTENU
       ========================= */

    .ahouse-show-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ahouse-show-content h2 {
        margin: 10px 0 20px;
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .ahouse-show-content p {
        font-size: 0.95rem;
        line-height: 1.8;
    }


    /* =========================
       BLOC RÉSERVATION
       ========================= */

    .ahouse-booking {
        width: 100%;
        padding: 25px 20px;
        border-radius: 22px;
    }

    .ahouse-booking strong {
        font-size: 2.3rem;
    }

    .ahouse-booking .cta-button {
        margin-top: 25px;
        padding: 14px 16px;
    }


    /* =========================
       DATES
       ========================= */

    .booking-dates {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .date-field input {
        padding: 12px;
    }

    .availability-result {
        line-height: 1.5;
    }

    .booking-price strong {
        font-size: 2.2rem;
    }
}


/* ---------------------------------------------------------
   PETIT MOBILE
   --------------------------------------------------------- */

@media (max-width: 430px) {

    .ahouse-show {
        padding-bottom: 45px;
    }

    .ahouse-show .container {
        width: calc(100% - 24px);
    }

    .back-link {
        margin-top: 20px;
        margin-bottom: 25px;
    }

    .ahouse-show-header h1 {
        font-size: 2.8rem;
    }

    .ahouse-show-header p {
        font-size: 0.9rem;
    }


    /* Galerie */

    .gallery-main {
        height: 320px;
        border-radius: 14px;
    }

    .gallery-button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .gallery-button:first-child {
        left: 7px;
    }

    .gallery-button:last-child {
        right: 7px;
    }

    .gallery-thumbnail {
        flex-basis: 62px;
        width: 62px;
        height: 48px;
    }


    /* Informations */

    .ahouse-show-info {
        margin-bottom: 45px;
    }


    /* Contenu */

    .ahouse-show-content {
        gap: 30px;
    }

    .ahouse-show-content h2 {
        font-size: 2.2rem;
    }


    /* Réservation */

    .ahouse-booking {
        padding: 22px 17px;
        border-radius: 20px;
    }

    .ahouse-booking strong {
        font-size: 2rem;
    }

    .booking-price strong {
        font-size: 2rem;
    }
}


/* ---------------------------------------------------------
   TRÈS PETIT ÉCRAN
   --------------------------------------------------------- */

@media (max-width: 360px) {

    .ahouse-show .container {
        width: calc(100% - 20px);
    }

    .ahouse-show-header h1 {
        font-size: 2.5rem;
    }

    .gallery-main {
        height: 280px;
    }

    .gallery-button {
        width: 34px;
        height: 34px;
    }

    .ahouse-booking {
        padding: 20px 15px;
    }

    .ahouse-booking strong {
        font-size: 1.8rem;
    }

    .booking-price strong {
        font-size: 1.8rem;
    }
}


/* ---------------------------------------------------------
   ACCESSIBILITÉ
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .back-link,
    .gallery-button,
    .ahouse-booking .cta-button {
        transition: none !important;
    }

    .gallery-button:hover {
        transform: none;
    }
}