/* ==========================================================================
   Golden Drive — Smart rental search
   Markup: resources/views/website/components/smart-search.blade.php
   ========================================================================== */

.gd-search {
    --gd-gold: #be944e;
    --gd-gold-dark: #a37b39;
    --gd-gold-soft: #f7f0e4;
    --gd-gold-softer: #fbf7f0;
    --gd-ink: #201f1d;
    --gd-ink-2: #4a4740;
    --gd-muted: #8a857b;
    --gd-line: #ece6db;
    --gd-surface: #ffffff;
    --gd-field: #f8f6f2;
    --gd-warn: #b26a00;
    --gd-warn-bg: #fff6e5;
    --gd-error: #c0392b;
    --gd-error-bg: #fdeeec;
    --gd-radius: 20px;
    --gd-shadow: 0 24px 60px -24px rgba(61, 41, 7, 0.45), 0 2px 10px rgba(32, 31, 29, 0.06);

    position: relative;
    z-index: 30;
    background: var(--gd-surface);
    border: 1px solid rgba(190, 148, 78, 0.18);
    border-radius: var(--gd-radius);
    box-shadow: var(--gd-shadow);
    padding: 18px 18px 14px;
    color: var(--gd-ink);
}

/* While a popover is open, lift the card above page chrome that follows it
   (e.g. the sticky filter bar .gd-fbar on /search-cars, z-index 40) */
.gd-search.has-open-pop {
    z-index: 45;
}

.gd-search--hero {
    margin: -48px auto 0;
}

.gd-search--page {
    margin: 0 0 8px;
}

.gd-search *,
.gd-search *::before,
.gd-search *::after {
    box-sizing: border-box;
}

.gd-search :where(button) {
    font: inherit;
}

/* ---------- Bar ---------- */

.gd-search__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.gd-seg__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gd-muted);
}

.gd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gd-gold);
    box-shadow: 0 0 0 4px rgba(190, 148, 78, 0.18);
}

.gd-dot--end {
    background: var(--gd-ink);
    box-shadow: 0 0 0 4px rgba(32, 31, 29, 0.1);
}

.gd-seg__fields {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    background: var(--gd-field);
    border: 1px solid var(--gd-line);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gd-seg__fields:hover {
    border-color: rgba(190, 148, 78, 0.55);
}

.gd-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    border-radius: 13px;
    color: inherit;
    text-align: start;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.gd-field--time::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--gd-line);
    transition: opacity 0.2s ease;
}

.gd-field:hover {
    background: rgba(255, 255, 255, 0.7);
}

.gd-field:focus-visible {
    outline: 2px solid var(--gd-gold);
    outline-offset: -2px;
}

.gd-field.is-active {
    background: #fff;
    box-shadow: 0 0 0 2px var(--gd-gold), 0 8px 24px -10px rgba(190, 148, 78, 0.6);
    z-index: 1;
}

.gd-field.is-active::before,
.gd-field.is-active + .gd-field::before {
    opacity: 0;
}

.gd-field__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--gd-gold-soft);
    color: var(--gd-gold-dark);
    font-size: 17px;
    transition: background 0.2s ease, color 0.2s ease;
}

.gd-field.is-active .gd-field__icon,
.gd-field:hover .gd-field__icon {
    background: var(--gd-gold);
    color: #fff;
}

.gd-field__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.gd-field__value {
    font-size: 17px;
    font-weight: 700;
    color: var(--gd-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-field__sub {
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gd-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rental length badge between pick-up and return */
.gd-search__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 66px;
    min-width: 84px;
}

.gd-search__link::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px dashed rgba(190, 148, 78, 0.45);
}

.gd-duration {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--gd-ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 16px -6px rgba(32, 31, 29, 0.6);
    transition: background 0.25s ease, transform 0.25s ease;
}

.gd-duration.is-late {
    background: var(--gd-warn);
}

.gd-duration.is-bump {
    animation: gd-bump 0.35s ease;
}

/* Submit */
.gd-search__action {
    display: flex;
}

.gd-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 66px;
    padding: 0 28px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #cfa862 0%, var(--gd-gold) 45%, var(--gd-gold-dark) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 12px 24px -12px rgba(163, 123, 57, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gd-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 16px 30px -12px rgba(163, 123, 57, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.gd-submit:active {
    transform: translateY(0);
}

.gd-submit:focus-visible {
    outline: 3px solid rgba(190, 148, 78, 0.45);
    outline-offset: 2px;
}

.gd-submit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 15px;
}

.gd-submit__spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gd-spin 0.7s linear infinite;
}

.gd-submit.is-loading {
    cursor: progress;
}

.gd-submit.is-loading .gd-submit__icon {
    display: none;
}

.gd-submit.is-loading .gd-submit__spinner {
    display: inline-block;
}

/* ---------- Footer: chips + hint ---------- */

.gd-search__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
}

.gd-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.gd-chips__label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gd-muted);
    white-space: nowrap;
}

.gd-chips__label i {
    color: var(--gd-gold);
}

.gd-chips__list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gd-chips__list::-webkit-scrollbar {
    display: none;
}

.gd-chip {
    flex: 0 0 auto;
    padding: 6px 13px;
    border: 1px solid var(--gd-line);
    border-radius: 999px;
    background: #fff;
    color: var(--gd-ink-2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.18s ease;
}

.gd-chip:hover {
    border-color: var(--gd-gold);
    color: var(--gd-gold-dark);
    background: var(--gd-gold-softer);
}

.gd-chip.is-active {
    background: var(--gd-ink);
    border-color: var(--gd-ink);
    color: #fff;
}

.gd-chip:focus-visible {
    outline: 2px solid var(--gd-gold);
    outline-offset: 2px;
}

.gd-hint {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    animation: gd-fade-in 0.25s ease;
}

.gd-hint[hidden] {
    display: none;
}

.gd-hint i {
    font-size: 15px;
}

.gd-hint--info {
    background: var(--gd-gold-softer);
    color: var(--gd-ink-2);
}

.gd-hint--info i {
    color: var(--gd-gold);
}

.gd-hint--warn {
    background: var(--gd-warn-bg);
    color: #7a4a00;
}

.gd-hint--warn i {
    color: var(--gd-warn);
}

.gd-hint--error {
    background: var(--gd-error-bg);
    color: var(--gd-error);
}

.gd-hint__action {
    padding: 0;
    border: 0;
    background: none;
    color: var(--gd-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.gd-hint__action:hover {
    color: var(--gd-gold-dark);
}

.gd-search.is-shaking {
    animation: gd-shake 0.4s ease;
}

/* ---------- Popovers ---------- */

.gd-pop {
    position: absolute;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--gd-line);
    border-radius: 18px;
    box-shadow: 0 30px 70px -20px rgba(32, 31, 29, 0.35), 0 4px 14px rgba(32, 31, 29, 0.08);
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.gd-pop[hidden] {
    display: none;
}

.gd-pop.is-open {
    opacity: 1;
    transform: none;
}

.gd-pop--time {
    width: 360px;
    max-width: 100%;
    padding: 16px 16px 12px;
}

.gd-pop__handle {
    display: none;
}

.gd-pop__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.gd-pop__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gd-ink);
}

.gd-pop__subtitle {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--gd-muted);
}

.gd-pop__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--gd-field);
    color: var(--gd-ink-2);
    cursor: pointer;
    transition: background 0.15s ease;
}

.gd-pop__close:hover {
    background: var(--gd-gold-soft);
    color: var(--gd-gold-dark);
}

.gd-pop__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gd-line);
}

.gd-pop__note {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--gd-warn-bg);
    color: #7a4a00;
    font-size: 12.5px;
    line-height: 1.4;
}

.gd-pop__note[hidden] {
    display: none;
}

.gd-cal-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--gd-ink);
}

.gd-cal-summary__dates {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gd-cal-summary__dates em {
    font-style: normal;
    font-weight: 500;
    color: var(--gd-muted);
}

.gd-cal-summary__dates i {
    color: var(--gd-gold);
}

.gd-cal-summary__days {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gd-gold-soft);
    color: var(--gd-gold-dark);
    font-size: 12.5px;
    font-weight: 700;
}

.gd-btn-done {
    flex: 0 0 auto;
    padding: 9px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--gd-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gd-btn-done:hover {
    background: #000;
}

[dir="rtl"] .gd-flip {
    display: inline-block;
    transform: scaleX(-1);
}

/* ---------- Range calendar (booking-site style) ---------- */

.gd-pop--calendar {
    width: 700px;
    padding: 16px 18px 14px;
}

.gd-range-tabs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.gd-range-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 14px;
    border: 1.5px solid var(--gd-line);
    border-radius: 14px;
    background: var(--gd-field);
    color: var(--gd-ink);
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.gd-range-tab:hover {
    border-color: rgba(190, 148, 78, 0.55);
}

.gd-range-tab:focus-visible {
    outline: 2px solid var(--gd-gold);
    outline-offset: 2px;
}

.gd-range-tab.is-active {
    background: #fff;
    border-color: var(--gd-gold);
    box-shadow: 0 0 0 3px rgba(190, 148, 78, 0.18);
}

.gd-range-tab__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gd-muted);
}

.gd-range-tab.is-active .gd-range-tab__label {
    color: var(--gd-gold-dark);
}

.gd-range-tab__value {
    max-width: 100%;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gd-range-tab__value.is-empty {
    font-weight: 500;
    color: var(--gd-muted);
}

.gd-range-tabs__arrow {
    align-self: center;
    flex: 0 0 auto;
    color: var(--gd-gold);
    font-size: 16px;
}

.gd-cal-instruction {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0 2px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gd-ink-2);
}

.gd-cal-instruction__min {
    font-weight: 500;
    color: var(--gd-muted);
}

.gd-cal {
    position: relative;
}

.gd-cal__nav {
    position: absolute;
    top: -2px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gd-line);
    border-radius: 50%;
    background: #fff;
    color: var(--gd-ink);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.gd-cal__nav--prev {
    inset-inline-start: 0;
}

.gd-cal__nav--next {
    inset-inline-end: 0;
}

.gd-cal__nav:hover:not(:disabled) {
    border-color: var(--gd-gold);
    background: var(--gd-gold-softer);
    color: var(--gd-gold-dark);
}

.gd-cal__nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.gd-weekdays.gd-cal__weekdays {
    display: none;
}

.gd-cal__months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.gd-month__title {
    height: 30px;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
    color: var(--gd-ink);
}

.gd-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--gd-muted);
}

.gd-month__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    row-gap: 2px;
}

.gd-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gd-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gd-day--pad {
    pointer-events: none;
}

.gd-day > span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

/* range band behind the circles */
.gd-day::before {
    content: '';
    position: absolute;
    top: 3px;
    bottom: 3px;
    inset-inline: 0;
    background: transparent;
}

.gd-day.is-in-range::before,
.gd-day.is-start.has-range::before,
.gd-day.is-end::before {
    background: var(--gd-gold-soft);
}

.gd-day.is-start.has-range::before {
    inset-inline-start: 50%;
}

.gd-day.is-end::before {
    inset-inline-end: 50%;
}

.gd-day.is-start.is-end::before {
    background: transparent;
}

.gd-day.is-preview.is-in-range::before,
.gd-day.is-preview.is-end::before,
.gd-day.is-start.is-preview::before {
    background: var(--gd-gold-softer);
}

.gd-day:hover:not(:disabled) > span {
    background: var(--gd-gold-soft);
    color: var(--gd-gold-dark);
}

.gd-day.is-start > span,
.gd-day.is-end > span,
.gd-day.is-start:hover > span,
.gd-day.is-end:hover > span {
    background: var(--gd-ink);
    color: #fff;
}

.gd-day.is-end.is-preview > span {
    background: var(--gd-gold);
    color: #fff;
}

.gd-day.is-today > span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--gd-gold);
}

.gd-day.is-start.is-today > span::after,
.gd-day.is-end.is-today > span::after {
    background: #fff;
}

.gd-day:disabled {
    color: #cfcac0;
    cursor: default;
}

.gd-day.is-blocked > span {
    text-decoration: line-through;
    text-decoration-color: rgba(190, 148, 78, 0.5);
}

.gd-day:focus {
    outline: none;
}

.gd-day:focus-visible > span {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gd-gold);
}

/* rental length tooltip on the hovered return day */
.gd-day[data-gd-days]::after {
    content: attr(data-gd-days);
    position: absolute;
    bottom: calc(100% - 2px);
    left: 50%;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--gd-ink);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
    animation: gd-fade-in 0.12s ease;
}

/* ---------- Time picker ---------- */

.gd-hours {
    max-height: 340px;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
    scrollbar-width: thin;
}

.gd-hours__group + .gd-hours__group {
    margin-top: 12px;
}

.gd-hours__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gd-muted);
}

.gd-hours__label i {
    color: var(--gd-gold);
    font-size: 14px;
}

.gd-hours__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.gd-hour {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 4px;
    border: 1px solid var(--gd-line);
    border-radius: 11px;
    background: #fff;
    color: var(--gd-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gd-hour small {
    margin-top: 2px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gd-warn);
}

.gd-hour:hover:not(:disabled) {
    border-color: var(--gd-gold);
    background: var(--gd-gold-softer);
}

.gd-hour.is-selected {
    background: var(--gd-ink);
    border-color: var(--gd-ink);
    color: #fff;
}

.gd-hour.is-selected small {
    color: #ffd38a;
}

.gd-hour:disabled {
    color: #cfcac0;
    background: #faf9f7;
    border-style: dashed;
    cursor: not-allowed;
}

.gd-hour:focus-visible {
    outline: 2px solid var(--gd-gold);
    outline-offset: 1px;
}

/* ---------- Backdrop (mobile sheets) ---------- */

.gd-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(20, 18, 14, 0.5);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.gd-backdrop[hidden] {
    display: none;
}

.gd-backdrop.is-open {
    opacity: 1;
}

html.gd-scroll-lock,
html.gd-scroll-lock body {
    overflow: hidden !important;
}

/* ---------- Animations ---------- */

@keyframes gd-spin {
    to { transform: rotate(360deg); }
}

@keyframes gd-fade-in {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: none; }
}

@keyframes gd-bump {
    50% { transform: scale(1.08); }
}

@keyframes gd-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .gd-search *,
    .gd-search.is-shaking,
    .gd-pop {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Large tablets / small laptops ---------- */

@media (max-width: 1199.98px) {
    .gd-search__bar {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .gd-search__action {
        grid-column: 1 / -1;
    }

    .gd-submit {
        width: 100%;
        height: 56px;
    }
}

/* ---------- Tablet & mobile: stacked card + bottom sheets ---------- */

@media (max-width: 991.98px) {
    .gd-search {
        --gd-radius: 18px;
        padding: 14px;
    }

    .gd-search--hero {
        margin-top: -32px;
    }

    /* Bottom sheets must cover the whole page, including a sticky header */
    .gd-search.has-open-pop {
        z-index: 1100;
    }

    .gd-search__bar {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .gd-seg__label {
        margin-bottom: 6px;
    }

    .gd-field {
        min-height: 58px;
        padding: 8px 12px;
        gap: 10px;
    }

    .gd-field__icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .gd-field__value {
        font-size: 16px;
    }

    .gd-search__link {
        height: 40px;
        min-width: 0;
    }

    .gd-search__link::before {
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        border-top: 0;
        border-inline-start: 2px dashed rgba(190, 148, 78, 0.45);
    }

    .gd-search__action {
        grid-column: auto;
        margin-top: 14px;
    }

    .gd-submit {
        height: 54px;
        border-radius: 13px;
    }

    .gd-search__footer {
        flex-direction: column;
        align-items: stretch;
        margin-top: 12px;
    }

    .gd-chips {
        order: 2;
    }

    .gd-hint {
        order: 1;
    }

    /* Popovers become bottom sheets */
    .gd-pop {
        position: fixed;
        z-index: 1100;
        left: 0 !important;
        right: 0;
        top: auto !important;
        bottom: 0;
        width: 100% !important;
        max-width: none;
        max-height: 88vh;
        max-height: 88dvh;
        overflow-y: auto;
        border-radius: 22px 22px 0 0;
        border: 0;
        padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
        opacity: 1;
        transform: translateY(100%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .gd-pop.is-open {
        transform: translateY(0);
    }

    .gd-pop__handle {
        display: block;
        width: 40px;
        height: 4px;
        margin: 2px auto 12px;
        border-radius: 4px;
        background: #ddd6ca;
    }

    .gd-pop__foot {
        position: sticky;
        bottom: calc(-16px - env(safe-area-inset-bottom));
        margin: 12px -16px calc(-16px - env(safe-area-inset-bottom));
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
    }

    .gd-btn-done {
        padding: 12px 26px;
    }

    .gd-hours {
        max-height: none;
        overflow: visible;
    }

    .gd-hours__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gd-hour {
        min-height: 48px;
    }

    /* Range calendar: full-height sheet, months scroll vertically like booking apps */
    .gd-pop--calendar {
        display: flex;
        flex-direction: column;
        height: 92vh;
        height: 92dvh;
        max-height: none;
        overflow: hidden;
        padding-bottom: 0;
    }

    .gd-pop--calendar .gd-pop__head {
        flex: 0 0 auto;
    }

    .gd-range-tab {
        padding: 8px 12px;
    }

    .gd-range-tab__value {
        font-size: 14px;
    }

    .gd-cal-instruction {
        flex: 0 0 auto;
        margin-bottom: 4px;
    }

    .gd-cal {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        margin: 0 -16px;
    }

    .gd-cal__nav,
    .gd-month__weekdays {
        display: none;
    }

    .gd-weekdays.gd-cal__weekdays {
        display: grid;
        flex: 0 0 auto;
        margin: 0;
        padding: 8px 16px;
        border-bottom: 1px solid var(--gd-line);
    }

    .gd-cal__months {
        display: block;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 6px 16px 20px;
    }

    .gd-month + .gd-month {
        margin-top: 18px;
    }

    .gd-month__title {
        position: sticky;
        top: -6px;
        z-index: 4;
        margin: 0 -16px 6px;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.96);
        text-align: start;
    }

    .gd-day {
        height: 48px;
    }

    .gd-day > span {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .gd-pop--calendar .gd-pop__foot {
        position: static;
        flex: 0 0 auto;
        margin: 0 -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 20px -12px rgba(32, 31, 29, 0.25);
    }
}

@media (max-width: 575.98px) {
    .gd-search {
        padding: 12px;
    }

    .gd-field {
        padding: 8px 10px;
    }

    .gd-field__icon {
        display: none;
    }

    .gd-field--date .gd-field__icon {
        display: inline-flex;
    }

    .gd-seg__fields {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    }
}
