/* ============================================================================
   TripManga - Shared Search Form Styles
   Used across: /stays, /experiences, /flights, /car-rentals
   Brand: #038a52 (green), #f47c04 (orange), #1a2b48 (navy)
   ============================================================================ */

/* ── Hero Banner ──────────────────────────────────────────────────────────── */
.car-hero {
    position: relative;
    min-height: 340px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 72px;
    overflow: hidden;
}

.car-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 43, 72, 0.75) 0%, rgba(26, 43, 72, 0.55) 100%);
    z-index: 1;
}

.car-hero>* {
    position: relative;
    z-index: 2;
}

.car-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.car-hero__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

.car-hero__geo-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: -16px 0 20px;
    line-height: 1.4;
}

.car-hero__geo-hint i {
    margin-right: 4px;
    font-size: 12px;
}

/* ── Search Bar (floating container) ──────────────────────────────────────── */
.car-search-bar {
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 1100px;
    margin: -90px auto 0;
}

/* ── Mobile Trigger (hidden on desktop) ───────────────────────────────────── */
.car-search-mobile-trigger {
    display: none;
}

/* ── Search Form - Horizontal Layout ──────────────────────────────────────── */
.car-search-form-inline {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    overflow: visible;
    position: relative;
}

/* ── Search Fields ────────────────────────────────────────────────────────── */
.car-search-form-inline .search-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
    border-right: 1px solid #eaedf1;
    min-width: 0;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.car-search-form-inline .search-field:hover {
    background: #fafbfc;
}

.car-search-form-inline .search-field:last-of-type {
    border-right: none;
}

.car-search-form-inline .search-field .field-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #8492a6;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.car-search-form-inline .search-field .field-label i {
    font-size: 13px;
    color: #038a52;
}

.car-search-form-inline .search-field .field-value,
.car-search-form-inline .search-field .render {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2b48;
    line-height: 1.3;
}

/* Inputs & selects */
.car-search-form-inline .search-field input,
.car-search-form-inline .search-field select {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2b48;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    width: 100%;
    cursor: pointer;
}

.car-search-form-inline .search-field input::placeholder {
    color: #b0bec5;
    font-weight: 400;
    font-size: 15px;
}

.car-search-form-inline .location-input {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a2b48;
    border: none !important;
    padding: 0 !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

.car-search-form-inline .location-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Time select */
.car-search-form-inline .time-select {
    font-family: 'Poppins', sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2b48 !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238492a6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 2px center !important;
    padding-right: 18px !important;
    cursor: pointer;
    max-height: 40px;
}

/* ── Location Field ───────────────────────────────────────────────────────── */
.car-search-form-inline .search-field--location {
    flex: 2;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding-left: 28px;
}

.car-search-form-inline .search-field--location .location-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e8ecf1;
}

.car-search-form-inline .search-field--location .location-icon i {
    font-size: 20px;
    color: #1a2b48;
}

.car-search-form-inline .search-field--location .location-text {
    flex: 1;
    min-width: 0;
}

.car-search-form-inline .search-field--location .location-text .field-label {
    color: #8492a6;
}

/* ── Dates & Times Fields ─────────────────────────────────────────────────── */
.car-search-form-inline .search-field--dates,
.car-search-form-inline .search-field--times {
    flex: 1.2;
    padding: 20px 20px;
    position: relative;
    transition: background 0.2s ease;
    cursor: pointer;
}

.car-search-form-inline .search-field--times {
    flex: 0.8;
}

.car-search-form-inline .search-field--dates:hover,
.car-search-form-inline .search-field--times:hover {
    background: #fafbfc;
}

/* Date display (Sat 14 Mar - Sun 15 Mar) */
.car-sf__date-display,
.tour-sf__date-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a2b48;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    white-space: nowrap;
}

.car-sf__date-sep,
.tour-sf__date-sep {
    color: #8492a6;
    font-weight: 400;
    font-size: 14px;
}

/* Time trigger display */
.car-sf__time-trigger {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1a2b48;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.car-sf__time-sep {
    color: #8492a6;
    font-weight: 400;
    margin: 0 2px;
}

.car-sf__time-chevron {
    font-size: 10px;
    color: #8492a6;
    margin-left: 4px;
}

/* Time dropdown menu */
.car-sf__time-menu {
    min-width: 320px;
    padding: 0 !important;
}

.car-sf__time-cols {
    display: flex;
    border-bottom: 1px solid #eaedf1;
}

.car-sf__time-col {
    flex: 1;
    padding: 0;
}

.car-sf__time-col:first-child {
    border-right: 1px solid #eaedf1;
}

.car-sf__time-col-label {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #8492a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.car-sf__time-list {
    padding: 4px 0;
}

.car-sf__time-done {
    width: 100%;
    padding: 10px;
    border: none;
    background: #f8fafb;
    font-size: 14px;
    font-weight: 600;
    color: #038a52;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.15s;
}

.car-sf__time-done:hover {
    background: #e8f5ee;
}

/* ── Passengers / Guests Field ────────────────────────────────────────────── */
.car-search-form-inline .search-field--passengers {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 20px;
    border-right: 1px solid #eaedf1;
}

.car-search-form-inline .search-field--passengers .field-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #8492a6;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.car-search-form-inline .search-field--passengers .field-label i {
    font-size: 12px;
    color: #038a52;
}

/* ── Custom Dropdown (.tm-dropdown) ───────────────────────────────────────── */
.tm-dropdown {
    position: relative;
    width: 100%;
}

.tm-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    line-height: 1.3;
}

.tm-dropdown__trigger:focus {
    outline: none;
}

.tm-dropdown__value {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2b48;
    white-space: nowrap;
}

.tm-dropdown__icon {
    font-size: 11px;
    color: #8492a6;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tm-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: -20px;
    min-width: 130px;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    z-index: 1000;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

.tm-dropdown__menu::-webkit-scrollbar {
    width: 5px;
}

.tm-dropdown__menu::-webkit-scrollbar-track {
    background: transparent;
}

.tm-dropdown__menu::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 4px;
}

.tm-dropdown__menu--up {
    top: auto;
    bottom: calc(100% + 8px);
}

.tm-dropdown__menu.is-open {
    display: block;
}

.tm-dropdown__item {
    padding: 9px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3c4858;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.tm-dropdown__item:hover {
    background: #f0faf5;
    color: #038a52;
}

.tm-dropdown__item.is-selected {
    background: #e8f8f0;
    color: #038a52;
    font-weight: 700;
    position: relative;
}

.tm-dropdown__item.is-selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #038a52;
}

/* ── Guest Counter Dropdown (Hotel) ───────────────────────────────────────── */
.tm-dropdown__menu--guest {
    min-width: 260px;
    max-height: none;
    padding: 14px 18px;
    left: -24px;
}

.tm-dropdown__guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tm-dropdown__guest-row:last-child {
    border-bottom: none;
}

.tm-dropdown__guest-label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1a2b48;
}

.tm-dropdown__guest-label strong {
    font-weight: 600;
}

.tm-dropdown__guest-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tm-dropdown__counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #1a2b48;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.tm-dropdown__counter-btn:hover {
    border-color: #038a52;
    color: #038a52;
    background: #f0faf5;
}

.tm-dropdown__counter-btn:active {
    transform: scale(0.92);
}

.tm-dropdown__counter-value {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2b48;
    min-width: 20px;
    text-align: center;
}

/* ── Search Button ────────────────────────────────────────────────────────── */
.car-search-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 40px;
    min-height: 90px;
    background: #f47c04;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.car-search-btn:hover {
    background: #038a52;
}

.car-search-btn i {
    font-size: 18px;
}

/* ── Smart Search / Airport Autocomplete ──────────────────────────────────── */
.smart-search {
    position: relative;
}

.smart-search__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    max-height: 280px;
    overflow-y: auto;
}

.smart-search__item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s ease;
}

.smart-search__item:hover {
    background: #f0faf5;
}

.smart-search__item:last-child {
    border-bottom: none;
}

/* ── Flight Form (alternate BEM: car-search-form-inline__field) ───────────── */
.car-search-form-inline .car-search-form-inline__field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 20px;
    border-right: 1px solid #eaedf1;
    min-width: 0;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 1;
}

.car-search-form-inline .car-search-form-inline__field:hover {
    background: #fafbfc;
}

.car-search-form-inline .car-search-form-inline__field label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #8492a6;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.car-search-form-inline .car-search-form-inline__field label i {
    font-size: 13px;
    color: #038a52;
}

.car-search-form-inline .car-search-form-inline__field input[type="text"] {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a2b48;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    width: 100%;
    cursor: pointer;
}

.car-search-form-inline .car-search-form-inline__field input[type="text"]::placeholder {
    color: #b0bec5;
    font-weight: 400;
    font-size: 14px;
}

.car-search-form-inline .car-search-form-inline__field--location {
    flex: 1.5;
}

.car-search-form-inline .car-search-form-inline__field--date {
    flex: 0 0 140px;
}

.car-search-form-inline .car-search-form-inline__field--submit {
    flex: 0 0 auto;
    padding: 0;
    border-right: none;
}

.car-search-form-inline__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 36px;
    min-height: 90px;
    background: #f47c04;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease;
    white-space: nowrap;
}

.car-search-form-inline__btn:hover {
    background: #e06e00;
}

.car-search-form-inline__btn i {
    font-size: 17px;
}

/* ── Service Type Toggle Pills ────────────────────────────────────────────── */
.car-search-service-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    justify-content: center;
}

.car-service-pill {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.car-service-pill.active {
    background: #f47c04;
    border-color: #f47c04;
    color: #fff;
}

.car-service-pill:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ========================================================================== */
/*   HOTELS.COM-INSPIRED HOTEL SEARCH FORM                                    */
/* ========================================================================== */
.hotel-search-form {
    display: flex;
    align-items: stretch;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    overflow: visible;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.hotel-sf__field {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-right: 1px solid #eaedf1;
    min-width: 0;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 1;
}

.hotel-sf__field--where {
    flex: 1.3;
}

.hotel-sf__field--dates {
    flex: 1.4;
}

.hotel-sf__field--travellers {
    flex: 1;
    border-right: none;
}

.hotel-sf__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hotel-sf__icon i {
    font-size: 18px;
    color: #038a52;
}

.hotel-sf__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hotel-sf__label {
    font-size: 11px;
    font-weight: 600;
    color: #8492a6;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    line-height: 1;
    white-space: nowrap;
}

.hotel-sf__input {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a2b48;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1.4;
    outline: none !important;
    width: 100%;
}

.hotel-sf__input::placeholder {
    color: #b0bec5;
    font-weight: 400;
}

.hotel-sf__input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Dates display */
.hotel-sf__date-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a2b48;
    line-height: 1.4;
}

.hotel-sf__date-sep {
    color: #94a3b8;
    font-weight: 400;
}

.hotel-sf__datepicker-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Travellers */
.hotel-sf__travellers-trigger {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.hotel-sf__travellers-trigger:focus {
    outline: none;
    box-shadow: none;
}

.hotel-sf__travellers-summary {
    font-size: 15px;
    font-weight: 600;
    color: #1a2b48;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotel-sf__chevron {
    font-size: 10px;
    color: #8492a6;
    margin-left: auto;
    flex-shrink: 0;
}

.hotel-sf__dropdown {
    display: none;
    /* position/top/left set by JS via setProperty to escape any container overflow */
    position: fixed;
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.hotel-sf__dropdown.is-open {
    display: block;
}

.hotel-sf__dropdown .tm-dropdown__guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hotel-sf__dropdown .tm-dropdown__guest-row:last-of-type {
    border-bottom: none;
}

.hotel-sf__done-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #f47c04;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.hotel-sf__done-btn:hover {
    background: #038a52;
}

/* Search button */
.hotel-sf__search-btn {
    background: #f47c04;
    border: none;
    color: #fff;
    padding: 0 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 120px;
    border-radius: 0 0 16px 0;
    flex-shrink: 0;
}

.hotel-sf__search-btn:hover {
    background: #038a52;
}

.hotel-sf__search-btn:active {
    background: #026b41;
}

.hotel-sf__search-btn i {
    font-size: 16px;
}


/* ========================================================================== */
/*   RESPONSIVE                                                                */
/* ========================================================================== */

/* ── Tablet (≤ 1024px) ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .car-search-bar {
        margin: -86px auto 20px;
        padding: 0 16px;
    }

    /* Hotel/Tour homepage form tablet layout lives in hotel-search-form.css
       (compact 2-column grid). The old rules here referenced a nonexistent
       .hotel-sf__field--dates and have been removed to avoid conflicts. */

    .car-search-form-inline {
        flex-direction: column;
        border-radius: 14px;
    }

    .car-search-form-inline .search-field {
        border-right: none;
        border-bottom: 1px solid #eaedf1;
        padding: 16px 22px;
    }

    .car-search-form-inline .search-field:last-of-type {
        border-bottom: none;
    }

    .car-search-form-inline .search-field--location {
        flex: none;
        padding-left: 22px;
        gap: 14px;
    }

    .car-search-form-inline .search-field--passengers {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #eaedf1;
        padding: 16px 22px;
    }

    .car-search-form-inline .search-field--dates,
    .car-search-form-inline .search-field--times {
        flex: none;
        padding: 16px 22px;
        border-bottom: 1px solid #eaedf1;
    }

    .car-search-btn {
        min-height: 56px;
        border-radius: 0 0 10px 10px;
        font-size: 16px;
        padding: 0 30px;
    }

    .car-hero {
        min-height: 260px;
        padding: 36px 16px 80px;
    }

    .car-hero__title {
        font-size: 24px;
    }

    /* Flight alternate BEM fields */
    .car-search-form-inline .car-search-form-inline__field {
        border-right: none;
        border-bottom: 1px solid #eaedf1;
        padding: 16px 22px;
        flex: none;
    }

    .car-search-form-inline .car-search-form-inline__field--submit {
        padding: 0;
    }

    .car-search-form-inline__btn {
        min-height: 56px;
        border-radius: 0 0 10px 10px;
        width: 100%;
    }
}

/* ── Mobile (< 768px) ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .car-search-bar {
        margin: -82px auto 16px;
        padding: 0 12px;
    }

    /* Hotel form mobile */
    .hotel-search-form {
        flex-direction: column;
        border-radius: 14px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
        border-top: 3px solid #038a52;
    }

    .hotel-sf__field {
        border-right: none;
        border-bottom: 1px solid #eaedf1;
        padding: 14px 18px;
        gap: 12px;
        flex: none;
    }

    .hotel-sf__icon {
        width: 38px;
        height: 38px;
    }

    .hotel-sf__search-btn {
        min-height: 50px;
        font-size: 15px;
        border-radius: 0 0 11px 11px;
        padding: 0 24px;
        width: 100%;
    }

    .hotel-sf__dropdown {
        min-width: 0;
        max-width: 320px;
        border-radius: 10px;
    }

    /* Show mobile trigger */
    .car-search-mobile-trigger {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
        padding: 14px 16px;
        cursor: pointer;
        transition: box-shadow 0.2s ease;
        border-top: 3px solid #038a52;
    }

    .car-search-mobile-trigger:active {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .car-search-mobile-trigger.is-hidden {
        display: none;
    }

    .car-search-mobile-trigger__icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f5f6f8;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .car-search-mobile-trigger__icon i {
        font-size: 18px;
        color: #1a2b48;
    }

    .car-search-mobile-trigger__text {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .car-search-mobile-trigger__location {
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: #1a2b48;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .car-search-mobile-trigger__dates {
        font-family: 'Poppins', sans-serif;
        font-size: 12px;
        color: #8492a6;
        margin-top: 2px;
    }

    .car-search-mobile-trigger__btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f47c04;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .car-search-mobile-trigger__btn i {
        font-size: 14px;
        color: #fff;
    }

    /* Show form on mobile - remove default hide */
    .car-search-form-inline {
        display: flex;
        flex-direction: column;
        border-radius: 14px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
        border-top: 3px solid #038a52;
        animation: tmSlideDown 0.3s ease;
        overflow: visible;
    }

    .car-search-form-inline.is-open {
        display: flex;
    }

    .car-search-form-inline .search-field {
        border-right: none;
        border-bottom: 1px solid #eaedf1;
        padding: 14px 18px;
        pointer-events: auto;
    }

    .car-search-form-inline .search-field--location {
        flex: none;
        padding-left: 18px;
        gap: 12px;
    }

    .car-search-form-inline .search-field--location .location-icon {
        width: 38px;
        height: 38px;
    }

    .car-search-form-inline .search-field--location .location-icon i {
        font-size: 17px;
    }

    .car-search-form-inline .location-input {
        pointer-events: auto !important;
        -webkit-user-select: auto !important;
        user-select: auto !important;
        touch-action: auto !important;
    }

    .car-search-form-inline .smart-search,
    .car-search-form-inline .g-map-place {
        position: relative;
        z-index: 20;
    }

    .car-search-form-inline .search-field--dates,
    .car-search-form-inline .search-field--times {
        flex: none;
        padding: 14px 18px;
    }

    .car-search-form-inline .search-field--passengers {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #eaedf1;
        padding: 14px 18px;
    }

    /* Dropdown mobile */
    .tm-dropdown__menu {
        min-width: 120px;
        max-height: 200px;
        left: -18px;
        right: auto;
    }

    .tm-dropdown__menu--guest {
        min-width: 240px;
        left: -18px;
    }

    /* Field values compact */
    .car-search-form-inline .field-value,
    .car-search-form-inline .render {
        font-size: 15px !important;
    }

    .car-search-btn {
        min-height: 50px;
        font-size: 15px;
        border-radius: 0 0 11px 11px;
        padding: 0 24px;
    }

    /* Hero compact */
    .car-hero {
        min-height: 220px;
        padding: 28px 12px 56px;
    }

    .car-hero__title {
        font-size: 20px;
    }

    .car-hero__subtitle {
        font-size: 13px;
    }

    /* Flight alternate BEM fields */
    .car-search-form-inline .car-search-form-inline__field {
        border-right: none;
        border-bottom: 1px solid #eaedf1;
        padding: 14px 18px;
        flex: none;
    }

    .car-search-form-inline .car-search-form-inline__field--submit {
        padding: 0;
    }

    .car-search-form-inline__btn {
        min-height: 50px;
        border-radius: 0 0 11px 11px;
        font-size: 15px;
        width: 100%;
    }

    /* Service toggle pills - always visible on mobile */
    .car-search-service-toggle {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .car-service-pill {
        font-size: 11px;
        padding: 6px 14px;
    }

    /* Flight mobile trigger (alternate pattern) */
    .car-search-form-mobile-trigger {
        margin-bottom: 12px;
    }

    .car-search-form-mobile-trigger button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #fff;
        border: none;
        border-radius: 14px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
        border-top: 3px solid #038a52;
        padding: 14px 20px;
        font-family: 'Poppins', sans-serif;
        font-size: 15px;
        font-weight: 600;
        color: #1a2b48;
        cursor: pointer;
    }

    .car-search-form-mobile-trigger button i {
        color: #038a52;
    }
}

@keyframes tmSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Small Mobile (≤ 480px) ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .car-hero {
        min-height: 200px;
        padding: 24px 10px 50px;
    }

    .car-search-mobile-trigger {
        padding: 12px 14px;
        gap: 10px;
    }

    .car-search-mobile-trigger__location {
        font-size: 13px;
    }

    .car-search-mobile-trigger__dates {
        font-size: 11px;
    }

    .tm-dropdown__menu--guest {
        min-width: 220px;
        left: -14px;
    }

    .tm-dropdown__counter-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .tm-dropdown__counter-value {
        font-size: 14px;
    }
}

/* ============================================================================
   CAR SEARCH FORM (CSF) - Single-Row Compact Layout
   Brand: #038a52 (green), #f47c04 (orange), #1a2b48 (navy)
   ============================================================================ */

/* ============================================================================
   CAR SEARCH FORM - Hotel-style layout  (.car-sf)
   Fields: Pick-up | Drop-off | Dates | Times | Passengers | Search
   ============================================================================ */

/* ── Service Pills ─────────────────────────────────────────────────────────── */
.car-sf__pills {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px 0;
    font-family: 'Poppins', sans-serif;
}

.car-sf__pill {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.car-sf__pill:hover {
    border-color: #038a52;
    color: #038a52;
    background: #f0faf5;
}

.car-sf__pill.is-on {
    background: #038a52;
    color: #fff;
    border-color: #038a52;
}

/* ── Form Container ───────────────────────────────────────────────────────── */
.car-sf {
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    overflow: visible;
    position: relative;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 16px;
}

.car-sf.shake {
    animation: tmShake 0.5s ease;
}

/* ── Fields Row ───────────────────────────────────────────────────────────── */
.car-sf__row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    background: none;
    padding: 10px 16px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Individual Field ─────────────────────────────────────────────────────── */
.car-sf__field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    background: #f8fafc;
    border: 2px solid #c8c8c8;
    border-radius: 12px;
    padding: 11px 14px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.car-sf__field:hover {
    border-color: #038a52;
    box-shadow: 0 0 0 3px rgba(3, 138, 82, .12);
}

.car-sf__field.has-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .10);
}

/* Row 1 field sizing: Pickup | Dropoff (equal) | Passengers */
.car-sf__field--pickup {
    flex: 1;
    height: 82px;
}

.car-sf__field--dropoff {
    flex: 1;
    height: 82px;
}

.car-sf__field--pax {
    flex: 0 0 220px;
    white-space: nowrap;
    height: 82px;
}

/* Row 2 field sizing: From | Till (equal) | Search btn */
.car-sf__field--from {
    flex: 1;
    padding: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: visible;
    height: 82px;
    background: #f8fafc;
}

.car-sf__field--till {
    flex: 1;
    padding: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: visible;
    height: 82px;
    background: #f8fafc;
}

.car-sf__field--from:hover,
.car-sf__field--till:hover {
    border-color: #cbd5e1;
    background: #fff;
}

/* ── Date+Time Group (From / Till fields) ─────────────────────────────────── */
.car-sf__dt-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

.car-sf__dt-date,
.car-sf__dt-time {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    min-width: 0;
}

/* Date gets 60% of the combined field width, Time gets 40% */
.car-sf__dt-date {
    flex: 3;
    min-width: 0;
}

.car-sf__dt-time {
    flex: 2;
}

.car-sf__dt-date:hover,
.car-sf__dt-time:hover {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

/* Icon inside date/time - smaller than row-1 icons to fit compact height */
.car-sf__dt-date .car-sf__icon,
.car-sf__dt-time .car-sf__icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
    flex-shrink: 0;
}

/* Content (label + value) stacked vertically */
.car-sf__dt-date .car-sf__content,
.car-sf__dt-time .car-sf__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.car-sf__dt-divider {
    width: 1px;
    background: #e2e8f0;
    align-self: stretch;
    flex-shrink: 0;
    margin: 8px 0;
}

.car-sf__dt-val {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Combined date+time popover: fixed width keeps calendar to 1 month */
.car-sf__popover--combined {
    width: 340px;
    max-width: calc(100vw - 32px);
}

/* Time popover within combined date+time popover */
.car-sf__popover--combined .car-sf__time-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.car-sf__popover--combined .car-sf__time-field {
    flex: 1;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.car-sf__popover--combined .car-sf__time-field:hover,
.car-sf__popover--combined .car-sf__time-field.is-active {
    border-color: #f47c04;
}

.car-sf__popover--combined .car-sf__time-field-label {
    font-size: 11px;
    font-weight: 600;
    color: #8492a6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.car-sf__popover--combined .car-sf__time-field-val {
    font-size: 14px;
    font-weight: 500;
    color: #1a2b48;
}

/* Type-in time input inside popover */
.car-sf__time-input {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a2b48;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    width: 100%;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.car-sf__time-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Single-time popover (narrower) */
.car-sf__popover--single-time {
    min-width: 180px;
    max-width: 220px;
}

.car-sf__popover--single-time .car-sf__time-scroll {
    max-height: 240px;
}

/* ── Icon (circular, muted dark bg like hotel) ───────────────────────────── */
.car-sf__icon {
    flex-shrink: 0;
    font-size: 18px;
    color: #475569;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8edf2;
    border: none;
    border-radius: 50%;
}

.car-sf__icon i {
    color: #475569;
}

.car-sf__icon--alt {
    color: #475569;
}

/* ── Content column (label + input/value) ─────────────────────────────────── */
.car-sf__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── Label ────────────────────────────────────────────────────────────────── */
.car-sf__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    margin-bottom: 2px;
    pointer-events: none;
}

/* ── Text Input (location fields) ─────────────────────────────────────────── */
.car-sf__input {
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    padding: 0;
    width: 100%;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.car-sf__input:focus {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.car-sf__input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Suppress green focus ring from the global input:focus rule in app.css */
.car-sf__field:focus-within {
    border-color: #cbd5e1;
    box-shadow: none;
    outline: none;
}
/* Catch any input inside search form components - global rule sets green border-color + box-shadow */
.car-sf input:focus,
.car-sf textarea:focus,
.hotel-search-form input:focus,
.hotel-search-form textarea:focus,
.hotel-sf__field input:focus {
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure wrapper divs don't restrict field clickability */
.car-sf__content .g-map-place,
.car-sf__content .g-map-place-dropoff,
.car-sf__content .smart-search,
.hotel-sf__content .g-map-place,
.hotel-sf__content .smart-search {
    width: 100%;
    flex: 1;
    min-width: 0;
}

/* ── Places Autocomplete Dropdown (custom, replaces legacy google Autocomplete) ─── */
.tm-ac-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 2100;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    max-height: 280px;
    overflow-y: auto;
}

.tm-ac-dropdown.is-open {
    display: block;
    animation: carSfPopIn 0.2s ease;
}

.tm-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

.tm-ac-item:last-child {
    border-bottom: none;
}

.tm-ac-item:hover {
    background: #f1f5f9;
}

.tm-ac-item i {
    color: #94a3b8;
    font-size: 15px;
    flex-shrink: 0;
}

.tm-ac-powered {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 16px 8px;
    font-size: 11px;
    color: #94a3b8;
    gap: 4px;
}

.tm-ac-powered img {
    height: 14px;
}

/* ── Date display ─────────────────────────────────────────────────────────── */
.car-sf__date-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.car-sf__date-sep {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13px;
}

/* ── Time display ─────────────────────────────────────────────────────────── */
.car-sf__time-display {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

/* ── Passengers trigger ───────────────────────────────────────────────────── */
.car-sf__pax-trigger {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
    width: 100%;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
}

.car-sf__pax-trigger:focus,
.car-sf__pax-trigger:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}

.car-sf__pax-trigger .car-sf__pax-val {
    color: #94a3b8;
    font-weight: 400;
}

.car-sf__pax-trigger .car-sf__pax-val.has-value {
    color: #1e293b;
    font-weight: 500;
}

/* ── Search Button ────────────────────────────────────────────────────────── */
.car-sf__search-btn {
    flex: 0 0 220px;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    height: 80px;
    background: #f47c04;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    letter-spacing: .2px;
}

.car-sf__search-btn:hover {
    background: #038a52;
    transform: translateY(-1px);
}

.car-sf__search-btn i {
    font-size: 14px;
}

/* ── Popover (calendar / time) ────────────────────────────────────────────── */
.car-sf__popover {
    display: none;
    /* position/top/left set via JS as position:fixed to escape any container overflow */
    z-index: 9999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    min-width: 320px;
}

.car-sf__popover.is-open {
    display: block;
    animation: carSfPopIn 0.2s ease;
}

@keyframes carSfPopIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.car-sf__popover-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 18px;
    font-weight: 700;
    color: #1a2b48;
}

.car-sf__popover-body {
    padding: 12px 22px 8px;
}

.car-sf__popover-foot {
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    padding: 12px 22px 16px;
    border-top: 1px solid #f1f5f9;
}

.car-sf__popover-done {
    padding: 12px 32px;
    background: #f47c04;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
    text-align: center;
}

.car-sf__popover-done:hover {
    background: #038a52;
}

/* Cancel button */
.car-sf__popover-cancel {
    padding: 12px 32px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
    text-align: center;
}

.car-sf__popover-cancel:hover {
    background: #e2e8f0;
}

/* Calendar styling lives in public_html/css/shared-calendar.css (.tm-cal-popover) */

/* ── Time Popover ─────────────────────────────────────────────────────────── */
.car-sf__popover--times {
    min-width: 340px;
}

.car-sf__time-cols {
    display: flex;
    gap: 16px;
}

.car-sf__time-col {
    flex: 1;
    min-width: 0;
}

.car-sf__time-col-label {
    font-size: 12px;
    font-weight: 600;
    color: #8492a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-align: center;
}

.car-sf__time-scroll {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

.car-sf__time-scroll::-webkit-scrollbar {
    width: 4px;
}

.car-sf__time-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.car-sf__time-scroll::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 4px;
}

.car-sf__time-opt {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.car-sf__time-opt:last-child {
    border-bottom: none;
}

.car-sf__time-opt:hover {
    background: #f0faf5;
    color: #038a52;
}

.car-sf__time-opt.is-on {
    background: #038a52;
    color: #fff;
    font-weight: 700;
}

/* ── Passengers Dropdown ──────────────────────────────────────────────────── */
.car-sf__dropdown {
    display: none;
    /* position/top/left set via JS as position:fixed to escape any container overflow */
    min-width: 160px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    z-index: 9999;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

.car-sf__dropdown::-webkit-scrollbar {
    width: 5px;
}

.car-sf__dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.car-sf__dropdown::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 4px;
}

.car-sf__dropdown.is-open {
    display: block;
}

.car-sf__dropdown-item {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #3c4858;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s;
    font-family: 'Poppins', sans-serif;
}

.car-sf__dropdown-item:hover {
    background: #f0faf5;
    color: #038a52;
}

.car-sf__dropdown-item.is-on {
    background: #e8f8f0;
    color: #038a52;
    font-weight: 700;
}

/* ── Overlay ──────────────────────────────────────────────────────────────── */
.car-sf__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1500;
}

.car-sf__overlay.is-active {
    display: block;
}

/* Google Places override */
.pac-container {
    z-index: 3000 !important;
}

/* ── Shake ─────────────────────────────────────────────────────────────────  */
@keyframes tmShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* ============================================================================
   CAR-SF - RESPONSIVE
   ============================================================================ */

/* ── Tablet (≤ 1024px) ────────────────────────────────────────────────────── */
/* Tablet - compact 2-column grid (768–1024px).
   Row 1: Pick-up | Drop-off, then Passengers full width.
   Row 2: Pick-up date | Drop-off date, then Search full width.
   (Previously Passengers was a 200px orphan that wrapped awkwardly.) */
@media (min-width: 768px) and (max-width: 1024px) {
    .car-sf__row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .car-sf__field--pickup,
    .car-sf__field--dropoff,
    .car-sf__field--from,
    .car-sf__field--till {
        /* -8px (gap is 10px) leaves slack so two columns never wrap */
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .car-sf__field--pax {
        flex: 1 1 100%;
    }

    .car-sf__search-btn {
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
    }
}

/* ── Mobile (< 768px) ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {

    /* Search results page: hide behind trigger bar - needs bg when sliding over content */
    .car-sf {
        display: none;
        background: transparent;
        border-radius: 14px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
        border-top: 3px solid #038a52;
        animation: tmSlideDown 0.3s ease;
    }

    .car-sf.is-open {
        display: block;
    }

    /* Homepage: always visible (no mobile trigger bar there) */
    #homeCarSearchForm.car-sf {
        display: block;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
    }

    .car-sf__pills {
        padding: 10px 14px 0;
    }

    .car-sf__tabs {
        padding: 10px 14px 0;
    }

    .car-sf__row {
        flex-direction: column;
        gap: 8px;
        padding: 6px 14px;
    }

    .car-sf__field--pickup,
    .car-sf__field--dropoff,
    .car-sf__field--from,
    .car-sf__field--till,
    .car-sf__field--pax {
        flex: none;
        width: 100%;
    }

    .car-sf__search-btn {
        flex: none;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .car-sf__popover {
        /* JS sets position:fixed and coordinates via setProperty - just constrain size */
        border-radius: 16px;
        max-height: 80vh;
        overflow-y: auto;
        animation: carSfSlideUp 0.3s ease;
    }

    .car-sf__time-cols {
        flex-direction: column;
        gap: 12px;
    }

    .car-sf__time-scroll {
        max-height: 140px;
    }

    .car-search-mobile-trigger {
        display: flex;
    }
}

@keyframes carSfSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Small Mobile (≤ 480px) ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .car-sf__field {
        padding: 8px 12px;
        gap: 8px;
    }

    .car-sf__popover-body {
        padding: 10px 16px 6px;
    }

    .car-sf__popover-head {
        padding: 12px 16px 8px;
    }

    .car-sf__popover-foot {
        padding: 10px 16px 14px;
    }

    .car-sf__popover-done {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================================
   SEARCH FORM RESPONSIVE FIXES - Touch Targets, Overflow, Spacing
   ============================================================================ */

/* Fix car-service-pill touch targets - minimum 44px */
@media (max-width: 767px) {
    .car-service-pill {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Prevent popover overflow on small devices */
@media (max-width: 480px) {
    .car-sf__popover {
        min-width: auto;
    }

    .hotel-sf__dropdown {
        min-width: auto;
    }
}

/* Prevent search bar from overflowing container */
.car-search-bar,
.car-search-form-inline {
    max-width: 100%;
}

/* ── Global search autocomplete - group labels & listing items ── */
.tm-ac-group-label {
    padding: 6px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.tm-ac-item--listing {
    justify-content: space-between;
}

.tm-ac-item--listing span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-ac-item--listing small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.tm-ac-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: #e0f2fe;
    color: #0369a1;
    margin-left: 8px;
}
/* ============================================================
   TM Destination Autocomplete Dropdown (car search form)
   ============================================================ */
.car-sf__field .tm-sf-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 9999;
    display: none;
}
.car-sf__field .tm-sf-suggestions::-webkit-scrollbar { display: none; }
.car-sf__field .tm-sf-suggestions.is-open { display: block; }
