/* Shared layouts: contain long content without hiding page overflow. */
img, video, iframe { max-width: 100%; }
.row > *, .input-group, .admin-main, .admin-sidebar, .booking-property > div { min-width: 0; }
.footer p, .contact-method span, .confirmation-page, .admin-session-name { overflow-wrap: anywhere; }
.villa-menu-toggle, .admin-menu-toggle { display: none; }
.public-site > .footer { background: #14191b; color: #edf4f7; padding-top: 50px; }
.public-site > .footer h2 { font-size: 1.6rem; }
.public-site > .footer h3 { font-size: .85rem; }
.public-site > .footer p, .public-site > .footer a { font-size: .85rem; }
.confirmation-page { background: #f3f8fa; }
.confirmation-header { background: #1b303d; }
.confirmation-page .text-warning, #downpaymentModal .text-warning { color: #356780 !important; }
.confirmation-header .text-warning { color: #b9e0f3 !important; }
.confirmation-page .btn-warning, #downpaymentModal .btn-success { background: #1b303d; border-color: #1b303d; color: #fff !important; }
#downpaymentModal .modal-content { height: 100%; }
#downpaymentModal .modal-content > form { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
#downpaymentModal .modal-body { min-height: 0; overflow-y: auto; }
#downpaymentModal .modal-header, #downpaymentModal .modal-footer { flex-shrink: 0; }
.confirmation-page .badge, #paymentQrAccount { white-space: normal; line-height: 1.6; overflow-wrap: anywhere; }
.modal { z-index: 11000; }
.modal-backdrop { z-index: 10990; }
.modal-content { max-width: 100%; }
.modal-body { overflow-wrap: anywhere; }
.admin-body .table-responsive { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-session-card > div { min-width: 0; }
.admin-session-name { white-space: normal; overflow-wrap: anywhere; }
.admin-body .nav-tabs .nav-link { color: #50677c !important; }
.admin-body .nav-tabs .nav-link.active { background: #e9f1f8; border-color: #c6d7e4; color: #193c57 !important; }
@media(max-width: 991px) {
    .villa-menu-toggle, .admin-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #d5e2e8; border-radius: 10px; background: transparent; color: #294a5a; font-size: 1.15rem; }
    .site-navbar .container { gap: 8px; }
    .site-navbar .navbar-brand { margin-right: auto; }
    .site-navbar .villa-nav-links { display: none; }
    .site-navbar.menu-open .villa-nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 20px 20px; flex-direction: column; gap: 4px; border-bottom: 1px solid #dce7ed; background: #fff; box-shadow: 0 14px 24px #304d6210; }
    .site-navbar .villa-nav-links a { color: #2c4a59; padding: 13px; font-size: .8rem; letter-spacing: .04em; }
    .admin-mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .admin-menu-toggle { color: #e6f2f8; border-color: #46576c; }
    .admin-navigation-panel { display: none; }
    .admin-sidebar.menu-open .admin-navigation-panel { display: block; padding-top: 18px; }
    .admin-sidebar { min-height: 0; }
    .admin-body .admin-topbar { margin-bottom: 18px; }
    .admin-body .admin-topbar-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
    .admin-body .admin-topbar-actions .btn { flex: 0 1 auto; width: auto; }
    .admin-body .fc .fc-toolbar { flex-wrap: wrap; gap: 12px; }
    .admin-body .fc .fc-toolbar-title { font-size: 1.15rem; }
}
@media(max-width: 575px) {
    input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: 16px !important; }
    textarea { min-height: 100px; }
    .btn, .form-select { min-height: 44px; }
    .site-navbar .nav-booking-btn { display: inline-flex; align-items: center; min-height: 42px; }
    .site-navbar .navbar-brand { white-space: normal; max-width: 55%; font-size: .76rem; }
    .site-navbar .navbar-brand span { max-width: 125px; }
    .villa-home .hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); overflow-wrap: normal; }
    .villa-home .hero .hero-copy { padding: 20px 16px; }
    .villa-home .hero-date-input .form-control { padding-left: 34px; padding-right: 6px; font-size: 14px !important; }
    .villa-home .hero-date-input > i { left: 10px; }
    .hero-date-picker { max-width: calc(100vw - 24px); }
    .hero-date-day { min-height: 40px; }
    .hero-date-picker-nav button { width: 40px; height: 40px; }
    .inquiry-launcher { width: 50px; height: 50px; padding: 0; justify-content: center; }
    .inquiry-launcher > span { display: none; }
    .inquiry-close { min-height: 44px; min-width: 36px; }
    .inquiry-topics button { min-height: 40px; }
    .inquiry-panel { max-height: calc(100dvh - 100px); }
    .footer { padding-bottom: 65px; }
    .confirmation-page { padding: 24px 0 70px; }
    .confirmation-page .container { padding-inline: 16px; }
    .confirmation-header, .confirmation-body { padding: 24px 18px; }
    .confirmation-header h1 { font-size: 1.65rem; }
    .confirmation-body > .text-center .d-flex { flex-wrap: wrap; gap: 8px; text-align: left; }
    .confirmation-page .display-6 { font-size: 1.9rem; }
    #paymentQrPanel { padding: 18px !important; }
    .modal-dialog { margin: 10px; }
    .modal-dialog-scrollable { height: calc(100% - 20px); }
    .modal-header .btn-close { flex-shrink: 0; min-width: 32px; min-height: 32px; }
    .modal-footer .btn { white-space: normal; }
    .admin-body .admin-page-title { font-size: 1.5rem; }
    .admin-body .admin-card.p-4, .admin-body .card-body.p-4 { padding: 18px !important; }
    .admin-body .admin-table th, .admin-body .admin-table td { padding: 12px; }
    .admin-body .admin-main .nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-width: 100%; scrollbar-width: thin; }
    .admin-body .admin-main .nav-tabs .nav-link { white-space: nowrap; }
    .admin-body .admin-notification-dropdown { width: min(340px, calc(100vw - 32px)); min-width: 0; }
    .admin-body .fc .fc-toolbar-title { font-size: 1rem; }
    .admin-body .fc .fc-button { min-height: 40px; padding: 7px; font-size: .75rem; }
    .admin-body .fc .fc-col-header-cell-cushion { padding: 6px 0; font-size: .65rem; }
    .admin-body .fc .fc-daygrid-day-number { font-size: .75rem; }
}
