/* ================= SEARCH SECTION ================= */

.search-section {
    padding: 40px 20px 48px;
    background: linear-gradient(135deg, #10201b 0%, #1d5c46 100%);
    border-bottom: 1px solid #e1e5e1;
}

.search-container {
    width: min(1150px, 100%);
    margin: 0 auto;
}

.search-header-text {
    margin-bottom: 20px;
    color: #fff;
}

.search-header-text h2 {
    margin: 0 0 4px;
    font-size: 1.75rem;
    font-weight: 700;
}

.search-header-text p {
    margin: 0;
    color: #a3c1ad;
    font-size: 0.9rem;
}

.search-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.search-field {
    min-width: 0;
}

.search-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

.search-field input,
.search-field select {
    width: 100%;
    height: 46px;
    padding: 0 12px 0 38px;
    font: inherit;
    font-size: 0.9rem;
    color: var(--ink);
    background: #f9fbf9;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}

.search-field input:hover,
.search-field select:hover {
    border-color: #cbd3cd;
}

.search-field input:focus,
.search-field select:focus {
    background: #fff;
    border-color: var(--silk);
    box-shadow: 0 0 0 3px rgba(29, 92, 70, 0.12);
}

.search-button {
    height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--marigold);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
}

.search-button:hover {
    background: var(--marigold-dark);
    transform: translateY(-1px);
}


/* ==========================================================
   VEHICLE RESULTS
   ========================================================== */

.vehicles-section {
    padding: 42px 20px 70px;
}

.vehicles-container {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.results-header h2 {
    margin: 0 0 4px;
    font-size: 1.65rem;
    color: var(--ink);
}

.results-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.vehicle-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e6e1;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(16, 32, 27, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(16, 32, 27, 0.13);
}

.vehicle-card__image {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef4f0, #dce9e2);
    overflow: hidden;
}

.vehicle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.vehicle-card__body {
    padding: 20px;
}

.vehicle-card__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.vehicle-card__brand {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-card__name {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 700;
}

.vehicle-card__price {
    text-align: right;
    white-space: nowrap;
}

.vehicle-card__price strong {
    display: block;
    color: var(--silk);
    font-size: 1.25rem;
}

.vehicle-card__price span {
    color: var(--muted);
    font-size: 0.75rem;
}

.vehicle-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.vehicle-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f0f4f1;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 500;
}

.vehicle-card__book {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--silk);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.vehicle-card__book:hover {
    background: var(--silk-dark);
}

.no-vehicles {
    padding: 70px 20px;
    text-align: center;
    border: 1px dashed #cbd3cd;
    border-radius: 18px;
    background: #fff;
}

.no-vehicles-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.no-vehicles h3 {
    margin: 0 0 6px;
    color: var(--ink);
}

.no-vehicles p {
    margin: 0;
    color: var(--muted);
}


/* ==========================================================
   RESPONSIVE & MOBILE OPTIMIZATIONS
   ========================================================== */

@media (max-width: 1100px) {
    .search-box {
        grid-template-columns: repeat(3, 1fr);
    }
    .search-button {
        width: 100%;
    }
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .search-section {
        padding: 16px 12px 24px;
    }

    .search-header-text {
        margin-bottom: 12px;
    }

    .search-header-text h2 {
        font-size: 1.35rem;
    }

    .search-header-text p {
        font-size: 0.8rem;
    }

    .search-box {
        padding: 14px 12px;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
    }

    .search-field:first-child {
        grid-column: span 2;
    }

    .search-button {
        grid-column: span 2;
        width: 100%;
        height: 42px;
        margin-top: 4px;
    }

    .search-field label {
        margin-bottom: 4px;
        font-size: 0.78rem;
    }

    .search-field input,
    .search-field select {
        height: 40px;
        font-size: 0.85rem;
        padding-left: 34px;
    }

    .field-icon {
        left: 10px;
        width: 16px;
        height: 16px;
    }

    .vehicles-section {
        padding: 30px 14px 50px;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .booking-dialog__content {
        padding: 18px 16px;
    }
}


/* ==========================================================
   COMPACT BOOKING CONFIRMATION DIALOG
   ========================================================== */

.booking-dialog {
    width: min(440px, calc(100vw - 24px));
    max-height: 85vh;
    padding: 0;
    border: 0;
    border-radius: 18px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.booking-dialog::backdrop {
    background: rgba(10, 24, 19, .65);
    backdrop-filter: blur(3px);
}

.booking-dialog__content {
    position: relative;
    padding: 20px 22px;
}

.booking-dialog__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
}

.booking-dialog__eyebrow {
    margin: 0 0 2px;
    color: var(--silk);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.booking-dialog h2 {
    margin: 0 30px 10px 0;
    font-size: 1.3rem;
}

.booking-countdown {
    display: grid;
    /*gap: 2px;*/
    justify-items: center;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #f0f6f1;
}

.booking-countdown span,
.booking-countdown small {
    color: var(--muted);
    font-size: .8rem;
}

.booking-countdown strong {
    color: var(--silk);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.booking-summary {
    display: grid;
    /*gap: 8px;*/
}

.booking-summary > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.booking-summary span {
    color: var(--muted);
    font-size: 0.84rem;
}

.booking-summary strong {
    text-align: right;
    font-size: 0.84rem;
}

.summary-divider {
    border: 0;
    border-top: 1px dashed var(--line);
    margin: 6px 0;
}

.booking-summary__total {
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.booking-summary__total strong {
    color: var(--silk);
    font-size: 1.15rem;
    font-weight: 700;
}

.booking-payment {
    margin-top: 12px;
}

.booking-payment label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.booking-payment select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
}

.booking-payment p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.booking-dialog__error {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 8px;
}

.booking-confirm-btn,
.booking-cancel-btn {
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
    border-radius: 9px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.booking-confirm-btn {
    border: 0;
    background: var(--marigold);
    color: var(--ink);
}

.booking-confirm-btn:disabled {
    opacity: .6;
    cursor: wait;
}

.booking-cancel-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}