/* Searchable country controls retain native selects as the submitted values. */
.hotel-search-form select[hidden] { display: none; }
.country-search { position: relative; min-width: 0; }
.hotel-search-form .country-search input { width: 100%; height: 48px; min-height: 48px; padding: 0 14px; border: 1px solid #cbd9e6; border-radius: 10px; background: #fbfcfe; color: #173451; font-size: 14px; }
.hotel-search-form .control-with-icon .country-search input { padding-left: 42px; }
.country-search input:focus { outline: 2px solid #208d81; outline-offset: 1px; }
.country-options { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 90; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid #cbd9e6; border-radius: 10px; box-shadow: 0 12px 28px #102e4c26; padding: 5px; }
.country-options [role="option"] { padding: 9px 12px; font-size: 14px; color: #173451; border-radius: 6px; cursor: pointer; }
.country-options [role="option"]:hover, .country-options [aria-selected="true"] { background: #e5f5f2; color: #176e68; }
.country-no-results { padding: 12px; color: #61778c; font-size: 13px; }
/* Reference-style search controls. Loaded only on the home/search page. */
.search-panel { position: relative; max-width: none; padding: 46px 28px 26px; border: 1px solid #dbe5ed; border-radius: 22px; background: #fff; }
.search-panel-heading { margin: 0; }
.search-panel-heading > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-panel-heading .secure-note { position: absolute; top: 14px; right: 28px; padding: 7px 12px; font-size: 12px; background: #e5f5f2; color: #176e68; }
.hotel-search-form { align-items: start; gap: 14px; grid-template-columns: minmax(200px,1.8fr) minmax(320px,2fr) minmax(180px,1.15fr) minmax(140px,.82fr) minmax(130px,.9fr); }
.hotel-search-form .field > label, .hotel-search-form .field-label-row { font-size: 15px; font-weight: 750; color: #122f50; margin-bottom: 9px; min-height: 21px; letter-spacing: 0; }
.hotel-search-form .field-error:empty { display: none; }
.hotel-search-form .control-with-icon input, .hotel-search-form .control-with-icon select, .hotel-search-form .guest-trigger, .hotel-search-form .date-trigger { height: 62px; font-size: 15px; color: #173451; border: 1px solid #cbd9e6; background: #fbfcfe; border-radius: 14px; }
.hotel-search-form input::placeholder { color: #6f7f8c; opacity: 1; }
.date-trigger-copy > span, .field-label-row [data-night-count] { display: none; }
.date-trigger-copy strong { font-size: 15px; font-weight: 650; white-space: nowrap; }
.date-trigger-icon { width: 21px; height: 21px; flex-basis: 21px; fill: #2b4a6b; }
.date-trigger { gap: 10px; padding-left: 14px; }
.hotel-search-form .date-trigger.is-active { border-color: #208d81; box-shadow: 0 0 0 1px #208d81; background: #fff; }
.search-action-wrap { padding-top: 30px; }
.search-button { height: 62px; min-height: 62px; font-size: 20px; border-radius: 14px; background: linear-gradient(120deg,#23968a,#126c68); box-shadow: 0 14px 28px #19867c26; }
.date-popover, .guest-popover { border: 1px solid #ccdbe5; border-radius: 19px; box-shadow: 0 16px 42px #102e4c26; background: #fff; }
.date-popover { width: 370px; padding: 18px; overflow: visible; }
.date-popover::before, .guest-popover::before { content: ''; position: absolute; top: -10px; left: var(--pointer-left,50%); width: 18px; height: 18px; background: #fff; border-left: 1px solid #ccdbe5; border-top: 1px solid #ccdbe5; transform: translateX(-50%) rotate(45deg); }
.date-popover-head { padding-bottom: 16px; }
.date-popover-head > div > span { color: #173451; font-size: 16px; font-weight: 750; text-transform: none; letter-spacing: 0; }
.date-popover-head strong { font-size: 12px; font-weight: 500; color: #526982; }
.calendar-nav button { width: 30px; height: 30px; border-radius: 50%; }
.calendar-months { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; padding: 14px 0; }
.calendar-month + .calendar-month { border-left: 1px solid #e6edf2; padding-left: 20px; }
.calendar-month-title { margin-bottom: 14px; font-size: 16px; }
.calendar-grid { gap: 3px 0; }
.calendar-weekday { font-size: 11px; color: #526982; }
.calendar-day { height: 34px; border-radius: 50%; font-size: 13px; box-shadow: none; }
.calendar-day.is-start, .calendar-day.is-end { background: #218b80; color: #fff; box-shadow: none; border-radius: 50%; width: 34px; height: 34px; padding: 0; justify-self: center; align-self: center; display: grid; place-items: center; }
.calendar-day.is-in-range { background: #e0f3ef; color: #174b49; border-radius: 0; }
.date-popover-foot { padding-top: 16px; }
.date-popover-foot > span { display: grid; gap: 5px; }
.date-popover-foot strong { font-size: 12px; color: #224263; }
.date-popover-foot small { font-size: 11px; color: #61778c; }
.date-popover-foot button { border-radius: 22px; background: #eaf1f6; color: #224263; border: 1px solid #cedde8; }
.guest-popover { padding: 14px; overflow: visible; }
.guest-popover-head { padding-bottom: 16px; border-bottom: 1px solid #e9eff3; }
.guest-popover-head strong { font-size: 16px; color: #173451; }
.guest-popover-head small { font-size: 12px; color: #61778c; }
.guest-popover .room-editor { background: transparent; border: 0; padding: 12px 0; }
.guest-popover .room-editor-heading { padding-bottom: 8px; }
.guest-popover .counter-row { padding: 12px 0; border-bottom: 1px solid #e9eff3; }
.guest-popover .counter-row strong { font-size: 14px; color: #173451; }
.guest-popover .counter-row small { color: #61778c; font-size: 12px; }
.guest-popover .counter-controls button { width: 32px; height: 32px; border-radius: 50%; border: 0; color: #224263; background: #e8f0f4; font-size: 20px; }
.guest-popover .counter-controls span { font-size: 16px; color: #173451; }
.guest-popover .child-ages { padding: 12px; background: #f0f8fa; border-radius: 12px; }
.guest-popover-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
.guest-popover-actions .primary-small { width: 100%; padding: 13px; background: linear-gradient(120deg,#23968a,#126c68); font-size: 16px; border-radius: 9px; }
.hotel-search-form button:focus-visible { outline: 3px solid #8bd6c9; outline-offset: 3px; }
@media(min-width: 1250px) and (max-width: 1450px) {
    .hotel-search-form { gap: 10px; grid-template-columns: minmax(200px,1.6fr) minmax(360px,2fr) minmax(195px,1.1fr) minmax(120px,.75fr) minmax(120px,.8fr); }
    .date-fields { gap: 10px; }
    .date-trigger-copy strong { font-size: 13px; }
    .guest-trigger-main > span { font-size: 13px; }
    .hotel-search-form .guest-trigger { padding-left: 12px; padding-right: 12px; }
}

/* Country controls use their own compact row, without stretching the search row. */
.hotel-search-form { grid-template-columns: minmax(200px,1.6fr) minmax(320px,2fr) minmax(180px,1.1fr) minmax(130px,.8fr); }
.guest-country-fields { grid-column: 1 / -1; order: 2; display: flex; flex-wrap: wrap; gap: 16px 24px; border-top: 1px solid #e3ebf1; padding-top: 16px; }
.guest-country-fields > .field { flex: 1 1 260px; max-width: 460px; min-width: 0; }
.guest-country-fields > [hidden] { display: none; }
.guest-country-fields small { display: block; margin-top: 6px; color: #526982; font-size: 12px; line-height: 1.4; }
.hotel-search-form #nationality { width: 100%; height: 62px; padding: 0 14px; border: 1px solid #cbd9e6; border-radius: 14px; color: #173451; background: #fbfcfe; font-size: 15px; }
.hotel-search-form .uae-resident-option { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; font-weight: 500; }
.uae-resident-option input { width: 16px; height: 16px; flex-shrink: 0; }
.search-action-wrap { order: 1; }
@media (max-width: 1249px) and (min-width: 761px) { .hotel-search-form { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .hotel-search-form { grid-template-columns: minmax(0,1fr); } .guest-country-fields { order: 0; } }
@media(max-width: 1249px) and (min-width: 761px) {
    .hotel-search-form { grid-template-columns: 1fr 1fr; }
    .search-action-wrap { grid-column: auto; padding-top: 30px; }
}
@media(max-width: 760px) {
    .search-panel { padding: 52px 16px 20px; }
    .search-panel-heading .secure-note { right: 16px; }
    .hotel-search-form { grid-template-columns: 1fr; gap: 15px; }
    .search-action-wrap { padding-top: 0; }
    .date-trigger-copy strong { font-size: 13px; }
    .date-trigger { padding-left: 10px; gap: 7px; }
    .date-popover { width: auto; overflow-y: auto; padding: 18px; }
    .calendar-months { grid-template-columns: 1fr; }
    .calendar-day { height: 40px; }
    .calendar-day.is-start, .calendar-day.is-end { width: 36px; height: 36px; }
    .date-popover::before, .guest-popover::before { display: none; }
    .guest-popover { padding: 18px; max-height: 75vh; overflow-y: auto; }
}

/* Compact search: stay details first, guest countries and submit beneath. */
.search-panel { padding: 38px 22px 20px; border-radius: 18px; }
.search-panel-heading .secure-note { top: 10px; right: 22px; padding: 4px 9px; font-size: 11px; }
.hotel-search-form { grid-template-columns: minmax(0,1.25fr) minmax(0,1.5fr) minmax(0,1fr); gap: 14px 16px; }
.hotel-search-form .field > label, .hotel-search-form .field-label-row { font-size: 13px; font-weight: 600; min-height: 18px; margin-bottom: 6px; }
.hotel-search-form .control-with-icon input, .hotel-search-form .control-with-icon select,
.hotel-search-form .guest-trigger, .hotel-search-form .date-trigger, .hotel-search-form #nationality {
    height: 48px; min-height: 48px; border-radius: 10px; font-size: 14px;
}
.hotel-search-form .date-trigger-copy strong { font-size: 14px; font-weight: 600; }
.hotel-search-form .date-fields { gap: 12px; }
.guest-country-fields { grid-column: 1 / 3; order: 0; gap: 16px; padding-top: 0; border-top: 0; }
.guest-country-fields > .field { flex: 1 1 0; max-width: none; }
.guest-country-fields small { font-size: 11px; margin-top: 4px; }
.search-action-wrap { grid-column: 3; order: 0; padding-top: 24px; }
.search-button { height: 48px; min-height: 48px; border-radius: 10px; font-size: 16px; box-shadow: 0 6px 16px #19867c20; }
.date-popover-head { gap: 8px; }
.calendar-nav { flex-shrink: 0; }
.hero-copy h1 { font-size: clamp(30px,3.2vw,44px); line-height: 1.15; }
.hero-copy p { font-size: 15px; }
/* Inherit the shared .container width/gutters used by the site header. */
@media (min-width: 761px) and (max-width: 1000px) {
    .hotel-search-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .hotel-search-form .destination-field { grid-column: 1; }
    .hotel-search-form .date-fields { grid-column: 2; }
    .guest-country-fields { grid-column: 1 / -1; }
    .search-action-wrap { grid-column: 2; grid-row: 2; }
}
@media (max-width: 760px) {
    .search-panel { padding: 38px 16px 16px; }
    .hotel-search-form { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .guest-country-fields { grid-column: 1; flex-wrap: wrap; gap: 12px; }
    .guest-country-fields > .field { flex: 1 1 180px; }
    .search-action-wrap { grid-column: 1; padding-top: 0; }
    .hotel-search-form .date-trigger-copy strong { font-size: 13px; }
}

/* Keep actions visible while the room cards scroll independently. */
.guest-popover:not([hidden]) { display: flex; flex-direction: column; max-height: min(480px, 72dvh); padding: 14px; overflow: hidden; }
.guest-popover .guest-popover-head { flex: 0 0 auto; padding-bottom: 10px; gap: 8px; }
.guest-popover .guest-popover-head strong { font-size: 14px; }
.guest-popover .room-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8abbb6 #edf3f5; padding-right: 5px; }
.guest-popover .room-editor { padding: 10px 0; }
.guest-popover .room-editor-heading { padding: 0; margin-bottom: 4px; font-size: 13px; }
.guest-popover .counter-row { padding: 6px 0; }
.guest-popover .counter-row strong { font-size: 13px; }
.guest-popover .counter-row small { font-size: 11px; }
.guest-popover .counter-controls span { font-size: 14px; }
.guest-popover .child-ages { margin-top: 6px; padding: 8px; }
.guest-popover .child-age-grid { gap: 6px; }
.guest-popover .child-age-grid select { height: 34px; }
.guest-popover .guest-popover-actions { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #e9eff3; background: #fff; }
.guest-popover-actions .primary-small { padding: 10px; font-size: 13px; }
.guest-popover-actions .text-button { text-align: left; padding: 10px 0; }
