/* Hotel System V1.1.7 — Final Visual QA */

html,
body{
    max-width:100%;
    overflow-x:hidden;
}

img,
svg,
video,
canvas{
    max-width:100%;
    height:auto;
}

input,
select,
textarea,
button{
    max-width:100%;
}

main{
    min-width:0;
}

.container{
    max-width:1180px;
}

/* Consistent typography */
h1,h2,h3,h4{
    text-wrap:balance;
}

p{
    text-wrap:pretty;
}

/* Prevent long values breaking cards */
.booking-code,
.account-booking-card,
.account-content-card,
.booking-side-card,
.booking-form-card,
.auth-card{
    overflow-wrap:anywhere;
}

/* Consistent controls */
input,
select,
textarea{
    font-size:16px;
}

button,
.btn,
.booking-primary,
.account-btn,
.auth-primary,
.auth-secondary{
    min-height:44px;
}

/* Image guards */
.room-card__image,
.booking-room-image,
.media-card__image,
.service-card__visual{
    background-repeat:no-repeat;
    background-position:center;
    background-size:cover;
}

.gallery-tile img,
.gallery-grid img{
    object-fit:cover;
}

/* Cards */
.room-card,
.media-card,
.service-card,
.booking-room-card,
.account-booking-card,
.account-form-card,
.account-content-card,
.account-payment-card,
.auth-card{
    box-shadow:0 8px 28px rgba(0,0,0,.035);
}

/* Header */
.site-header{
    backdrop-filter:saturate(150%) blur(10px);
}

.header-actions{
    flex-shrink:0;
}

/* Booking */
.booking-search-card,
.booking-room-card,
.booking-form-card,
.booking-side-card{
    min-width:0;
}

.booking-room-info,
.booking-room-price{
    min-width:0;
}

/* Account */
.account-detail-main,
.account-payment-card{
    min-width:0;
}

/* Empty states */
.booking-empty,
.account-empty,
.public-empty{
    border:1px solid #e6e2da;
}

/* Mobile */
@media(max-width:640px){

    body{
        padding-bottom:72px;
    }

    .site-header__inner{
        gap:10px;
    }

    .brand{
        min-width:0;
        flex:1;
    }

    .brand__mark{
        flex:0 0 auto;
    }

    .brand__text{
        min-width:0;
        max-width:calc(100vw - 120px);
    }

    .header-actions{
        gap:6px;
    }

    .hero{
        min-height:520px;
    }

    .hero__content{
        padding-bottom:120px;
    }

    .hero h1{
        font-size:40px;
        line-height:1.02;
    }

    .booking-bar{
        width:calc(100% - 24px);
        bottom:-184px;
    }

    .hero + .section{
        padding-top:226px;
    }

    .booking-hero{
        min-height:270px;
    }

    .booking-page-head,
    .account-page-head{
        padding-top:44px;
        padding-bottom:34px;
    }

    .booking-page-head h1,
    .account-page-head h1{
        font-size:36px;
    }

    .booking-room-card,
    .booking-two-col,
    .account-detail-grid{
        width:100%;
    }

    .booking-form-card,
    .booking-side-card,
    .account-form-card,
    .account-content-card,
    .account-payment-card,
    .auth-card{
        padding:20px 16px;
    }

    .booking-room-price{
        align-items:stretch;
    }

    .booking-room-price form,
    .booking-room-price .booking-primary{
        width:100%;
    }

    .account-booking-card{
        gap:16px;
        padding:18px;
    }

    .account-statuses{
        gap:10px;
    }

    .account-statuses div{
        min-width:0;
    }

    .account-btn,
    .auth-secondary,
    .booking-primary{
        width:100%;
    }

    .section-head{
        gap:10px;
    }

    .section-head>a{
        flex-shrink:0;
    }

    .footer-grid{
        gap:26px;
    }

    .site-footer{
        padding-top:44px;
    }

    .mobile-book{
        bottom:10px;
        left:12px;
        right:12px;
    }
}

/* Very small phones */
@media(max-width:380px){

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

    .hero h1,
    .auth-hero h1,
    .account-hero h1{
        font-size:34px;
    }

    .section-head{
        display:block;
    }

    .section-head>a{
        display:inline-block;
        margin-top:8px;
    }

    .booking-success-grid,
    .account-statuses{
        grid-template-columns:1fr;
    }
}
