/* ══ Date range picker (wwwroot/js/vs-datepicker.js) ══════════════════════════
   The theme's calendar colours (style.css .ui-datepicker): gold header, cream days, gold selection. */

.vd-trigger {
    display: block; width: 100%; padding: 2px 0; border: none; background: transparent; cursor: pointer; text-align: left;
    font-family: "Urbanist", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.5; color: #141414;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vd-trigger.is-empty { color: #8a8478; font-weight: 500; }
.vd-trigger:focus-visible { outline: 2px solid rgba(189, 148, 90, .5); outline-offset: 3px; border-radius: 4px; }
/* Outside the search bars (filter forms): a bordered field */
.vd-trigger.is-boxed {
    padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; min-width: 150px;
}
.vd-trigger.is-boxed.is-open, .vd-trigger.is-boxed:hover { border-color: #BD945A; }
.vr-field:has(.vd-trigger.is-open) { background: #fbf8f3; }

.vd-pop {
    position: absolute; z-index: 1062; width: max-content; max-width: calc(100vw - 24px);
    background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 16, 10, .22); border: 1px solid #ece7df;
    font-family: "Urbanist", sans-serif; color: #141414; animation: vd-in .16s ease-out;
}
@keyframes vd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.vd-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px; background: #BD945A; color: #fff; }
.vd-titles { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; }
.vd-titles span { font-family: "Gilda Display", serif; font-size: 19px; letter-spacing: .02em; }
.vd-nav {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: transparent;
    color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
    transition: background .15s;
}
.vd-nav:hover, .vd-nav:focus-visible { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45); color: #fff; outline: none; }

.vd-phase { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 16px 2px; font-size: 15px; font-weight: 700; }
.vd-phase span { display: flex; flex-direction: column; align-items: center; padding: 6px 14px; border-radius: 12px; border: 1px solid transparent; min-width: 110px; }
.vd-phase small { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a8478; }
.vd-phase span.is-on { border-color: rgba(189, 148, 90, .45); background: #fbf8f3; }
.vd-phase i { color: #BD945A; }

.vd-months { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 26px; padding: 10px 18px 6px; }
.vd-week, .vd-grid { display: grid; grid-template-columns: repeat(7, 42px); gap: 4px 0; }
.vd-week span { text-align: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #8a8478; padding: 6px 0; }
.vd-day {
    position: relative; isolation: isolate; height: 40px; margin: 0; padding: 0; border: none; cursor: pointer;
    background: transparent; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 40px; color: #141414;
    -webkit-tap-highlight-color: transparent;
}
.vd-day::before {
    content: ""; position: absolute; inset: 2px 3px; z-index: -1; border-radius: 10px; background: #f4f1ed; transition: background .12s;
}
.vd-day:hover:not([disabled]), .vd-day:focus-visible { color: #fff; outline: none; }
.vd-day:hover:not([disabled])::before, .vd-day:focus-visible::before { background: #BD945A; }
.vd-day[disabled] { cursor: default; color: #c9c3b8; }
.vd-day[disabled]::before { background: transparent; }
.vd-day.is-today { text-decoration: underline; text-decoration-color: #BD945A; text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* The stay: a band from check-in to check-out */
.vd-day.is-in { background: rgba(189, 148, 90, .16); }
.vd-day.is-in::before { background: transparent; }
.vd-day.is-in:hover::before { background: #BD945A; }
.vd-day.is-start, .vd-day.is-end { color: #fff; }
.vd-day.is-start::before, .vd-day.is-end::before { background: #BD945A; box-shadow: 0 4px 12px rgba(189, 148, 90, .45); }
.vd-ranged .vd-day.is-start { background: linear-gradient(90deg, transparent 50%, rgba(189, 148, 90, .16) 50%); }
.vd-ranged .vd-day.is-end { background: linear-gradient(90deg, rgba(189, 148, 90, .16) 50%, transparent 50%); }

.vd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 16px; border-top: 1px solid #f0ece6; margin-top: 6px; }
.vd-summary { font-size: 14px; font-weight: 700; color: #6b4d24; min-height: 20px; }
.vd-done {
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background: #141414; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; transition: background .15s;
}
.vd-done:hover, .vd-done:focus-visible { background: #BD945A; outline: none; }

/* Phones: a sheet at the bottom of the screen, over a dimmed page */
.vd-backdrop { position: fixed; inset: 0; z-index: 1061; background: rgba(20, 16, 10, .45); animation: vd-in .16s ease-out; }
.vd-pop.is-sheet {
    position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none;
    border-radius: 20px 20px 0 0; animation: vd-up .2s ease-out; padding-bottom: env(safe-area-inset-bottom);
}
@keyframes vd-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.vd-pop.is-sheet .vd-week, .vd-pop.is-sheet .vd-grid { grid-template-columns: repeat(7, 1fr); }
.vd-pop.is-sheet .vd-months { padding: 8px 12px 4px; }
