/* The vacation-rental guest selector (ag-guests.js): Booking.com's layout in the search box's blue and navy. */
.agg { display: flex; flex-direction: column; gap: 16px; color: #0E1B33; text-align: start; }
.agg *, .agg-pop * { box-sizing: border-box; }
.agg [hidden] { display: none !important; }
.agg-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; }
.agg-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.agg-label { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.agg-hint { font-size: 12.5px; line-height: 1.35; color: #5A687C; }
.agg-step { display: flex; align-items: center; gap: 4px; flex: none; padding: 3px; border: 1px solid #D3D9E1; border-radius: 10px; }
.agg-btn { display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #006FCF; font: inherit; font-size: 22px; line-height: 1; font-weight: 500; cursor: pointer; }
.agg-btn:hover:not(:disabled) { background: #EAF3FC; }
.agg-btn:disabled { color: #A3ADBA; cursor: default; }
.agg-btn:focus-visible, .agg-switch:focus-visible, .agg-age select:focus-visible { outline: 3px solid #006FCF; outline-offset: 2px; }
.agg-n { min-width: 40px; text-align: center; font-size: 16px; font-weight: 600; white-space: nowrap; }
.agg-ages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -4px; }
.agg-age { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; font-weight: 600; color: #2E3B4E; }
.agg-age select { width: 100%; height: 44px; min-height: 0; padding: 0 10px; border: 1px solid #C3CBD5; border-radius: 10px; background: #fff; color: #0E1B33; font: inherit; font-size: 15px; font-weight: 500; }
.agg-age select[aria-invalid="true"] { border: 2px solid #B42318; }
.agg-msg { margin: -6px 0 0; font-size: 13.5px; line-height: 1.4; font-weight: 500; color: #B42318; }
.agg-msg:empty { display: none; }
.agg-row-pets { padding-top: 14px; border-top: 1px solid #E1E5EB; }
.agg-switch { position: relative; flex: none; width: 50px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 15px; background: #C3CBD5; cursor: pointer; transition: background .15s; }
.agg-switch[aria-checked="true"] { background: #006FCF; }
.agg-knob { position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 23, 90, .3); transition: inset-inline-start .15s; }
.agg-switch[aria-checked="true"] .agg-knob { inset-inline-start: 23px; }
:root[dir="rtl"] .agg, :root[dir="rtl"] .agg-pop { font-family: Cairo, Inter, system-ui, sans-serif; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .agg-switch, .agg-knob { transition: none; } }

/* the popup (results bar, property page) */
.agg-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.agg-dialog::backdrop { background: rgba(0, 23, 90, .08); }
.agg-pop { position: fixed; display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow-y: auto; background: #fff; border: 1px solid #E1E5EB; border-radius: 14px; box-shadow: 0 18px 48px rgba(0, 23, 90, .22); color: #0E1B33; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.5; }
.agg-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px 20px; }
.agg-title { flex: 1; margin: 0; font-size: 17px; font-weight: 700; }
.agg-x { display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 20px; background: transparent; color: #00175A; cursor: pointer; }
.agg-x svg { width: 22px; height: 22px; }
.agg-body { padding: 8px 20px 4px; }
.agg-foot { padding: 14px 20px 18px; }
.agg-done, .sb-pop-trav .sb-done { display: block; width: 100%; min-height: 46px; border: 0; border-radius: 10px; background: #00175A; color: #fff; font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.agg-done:hover { background: #0B2A7A; }
.agg-dialog.is-phone .agg-pop { inset: auto 0 0 0; width: 100%; max-width: none; max-height: calc(100% - 24px); border: 0; border-radius: 18px 18px 0 0; }
.agg-dialog.is-phone .agg-foot { position: sticky; bottom: 0; background: #fff; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #E1E5EB; }
.agg-dialog.is-phone::backdrop { background: rgba(0, 23, 90, .35); }

/* a button that opens the popup, in a form row */
.agg-field { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 0 14px; border: 1px solid #D3D9E1; border-radius: 10px; background: #fff; color: #0E1B33; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.3; text-align: start; cursor: pointer; }
.agg-field:hover { border-color: #B8C2CF; }
.agg-field:focus-visible { outline: 0; border-color: #006FCF; box-shadow: 0 0 0 2px #006FCF; }
.agg-field svg { width: 20px; height: 20px; flex: none; color: #00175A; }
.agg-field span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-field .agg-field { min-height: 40px; padding: 0 10px; font-size: 14px; }
