/* 28 Nov 2026: compact search box (dates + guests + dog + Search button) and the range date picker.
   New file; css/style.css is not changed. No inline styles anywhere (CSP style-src 'self').
   Loaded after style.css and aa-extras.css so these rules win over the old full-width layout. */

/* Whole block: compact, left-aligned, stacked, Search button last */
.date-search-form{flex-direction:column;align-items:flex-start;gap:12px;max-width:360px;margin-left:0;margin-right:auto}
.date-search-fields{flex:none;width:100%}
.date-search-form.ds-picker-on .date-search-fields{display:none}
.date-search-extra{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 20px;width:100%}
.date-search-form select{font:inherit;font-weight:500;color:var(--ink);border:1px solid var(--line);border-radius:0;padding:8px 10px;background:#fff;min-height:44px;min-width:96px;box-sizing:border-box}
.date-search-form label.date-search-dog{flex-direction:row;align-items:center;gap:10px;min-height:44px;font-size:.95rem;font-weight:600;color:var(--ink);cursor:pointer}
.date-search-dog input{width:22px;height:22px;margin:0;accent-color:#000;cursor:pointer}
.date-search-form select:focus-visible,.date-search-dog input:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.date-search-note{margin:0 0 14px;color:var(--mute);font-size:.95rem}
.date-search-note a{color:var(--sky-link);text-decoration:underline}

/* The two date boxes: one control, both halves open the calendar */
.ds-range-wrap{position:relative;width:100%}
.ds-range{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);background:#fff}
.ds-seg{display:flex;flex-direction:column;gap:2px;align-items:flex-start;min-height:56px;padding:8px 12px;margin:0;border:0;border-radius:0;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer;width:100%}
.ds-seg+.ds-seg{border-left:1px solid var(--line)}
.ds-seg-label{font-size:.8rem;font-weight:600;color:var(--mute)}
.ds-seg-value{font-size:1rem;font-weight:500;color:var(--ink)}
.ds-seg.is-active{box-shadow:inset 0 0 0 2px #000}
.ds-seg:focus-visible{outline:3px solid #f59e0b;outline-offset:-3px}

/* Calendar pop-up: one month on phones, two on wider screens */
.ds-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:60;box-sizing:border-box;width:min(340px,calc(100vw - 32px));padding:12px;background:#fff;border:1px solid #373435;box-shadow:0 8px 24px rgba(0,0,0,.18);scroll-margin-bottom:96px}
.ds-pop[hidden]{display:none}
@media (min-width:700px){.ds-pop{width:auto}}
.ds-pop-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.ds-hint{margin:0;flex:1;text-align:center;font-size:.9rem;font-weight:600;color:var(--ink)}
.ds-nav{width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);font:inherit;font-size:1.5rem;line-height:1;cursor:pointer}
.ds-nav:disabled{opacity:.35;cursor:default}
.ds-nav:focus-visible,.ds-close:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.ds-months{display:flex;gap:24px}
.ds-month{width:100%}
@media (min-width:700px){.ds-month{width:266px}}
.ds-month-title{margin:0 0 6px;text-align:center;font-weight:700;color:#373435}
.ds-grid{width:100%;border-collapse:collapse;table-layout:fixed}
.ds-grid th{padding:2px 0 4px;font-size:.75rem;font-weight:600;color:var(--mute);text-align:center}
.ds-grid abbr{text-decoration:none}
.ds-grid td{padding:1px;text-align:center}
.ds-day{display:block;width:100%;aspect-ratio:1/1;min-height:38px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:var(--ink);font:inherit;font-size:.95rem;cursor:pointer}
.ds-day:hover{box-shadow:inset 0 0 0 1px #000}
.ds-day.is-today{font-weight:800;text-decoration:underline}
.ds-day.is-in-range{background:#E4E4E4}
.ds-day.is-hover-end{background:#E4E4E4;box-shadow:inset 0 0 0 1px #000}
.ds-day.is-start,.ds-day.is-end{background:#000;color:#fff;box-shadow:none}
.ds-day.is-disabled{color:#a4a8ac;cursor:not-allowed}
.ds-day.is-disabled:hover{box-shadow:none}
.ds-day:focus-visible{outline:3px solid #f59e0b;outline-offset:-3px;position:relative;z-index:1}
.ds-pop-foot{display:flex;justify-content:flex-end;margin-top:6px}
.ds-close{min-height:44px;padding:0 8px;border:0;background:none;color:var(--ink);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}

/* Keep the heading clear of the sticky header when the Stay link jumps here */
#date-search{scroll-margin-top:96px}

@media (max-width:720px){#date-search{scroll-margin-top:168px}}
