
:root {
    --karayana-orange: #f15927;
    --karayana-dark: #1f2b3e;
    --karayana-grey: #737b87;
    --karayana-border: #e7e9ed;
}

.flatpickr-calendar.open {
    z-index: 999999 !important;
    max-width: calc(100vw - 20px);
}

@media (max-width: 767px) {
    .flatpickr-calendar {
        font-size: 14px;
    }

    .flatpickr-calendar.open {
        position: absolute !important;
    }

    .flatpickr-time input {
        font-size: 16px !important;
    }
}

.image_viewer_box {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1000px;
    text-align: center;
    padding: 20px 55px;
}

.image_viewer_box #largeVehicleImage {
    display: block;
    width: 100%;
    height: min(65vh, 650px);
    max-height: 65vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

.gallery_image_counter {
    color: #fff;
    font-size: 13px;
    margin-bottom: 12px;
}

.gallery_nav {
    position: absolute;
    top: 42%;
    z-index: 6;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #1f2b3e;
    cursor: pointer;
    transition: .25s;
}

.gallery_nav:hover {
    background: #f15927;
    color: #fff;
}

.gallery_prev {
    left: 0;
}

.gallery_next {
    right: 0;
}

.vehicle_gallery_thumbnails {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 5px 0 10px;
}

.vehicle_gallery_thumbnail {
    flex: 0 0 76px;
    width: 76px;
    height: 58px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    opacity: .7;
    cursor: pointer;
}

.vehicle_gallery_thumbnail.active {
    border-color: #f15927;
    opacity: 1;
}

.vehicle_gallery_thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 576px) {
    .image_viewer_box {
        width: 100%;
        padding: 15px 35px;
    }

    .image_viewer_box #largeVehicleImage {
        height: 48vh;
        max-height: 48vh;
    }

    .gallery_nav {
        width: 30px;
        height: 36px;
    }

    .gallery_prev {
        left: 0;
    }

    .gallery_next {
        right: 0;
    }

    .vehicle_gallery_thumbnail {
        flex-basis: 62px;
        width: 62px;
        height: 48px;
    }
}


/* =============================================================
   HERO
============================================================= */

.karayana_inventory_label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.inventory_hero_text {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 15px;
    opacity: .9;
}


/* =============================================================
   NOTICE
============================================================= */

.karayana_notice_section {
    padding: 18px 0;
    background: #fff;
}

.karayana_notice {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(
            100deg,
            #f15927,
            #ff814c
    );
    color: #fff;
    box-shadow: 0 8px 25px rgba(31,43,62,.10);
}

.notice_icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
}

.notice_text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.notice_divider {
    opacity: .5;
}

.unlimited_badge {
    padding: 6px 12px;
    border-radius: 30px;
    background: #fff;
    color: var(--karayana-orange);
    font-size: 11px;
    font-weight: 800;
}


/* =============================================================
   HEADING
============================================================= */

.inventory_heading {
    margin-bottom: 38px;
}

.inventory_small_title {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--karayana-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* =============================================================
   FILTER BOX
============================================================= */

.vehicle_filter_box {
    margin-bottom: 42px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--karayana-border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(31,43,62,.06);
}


/* SEARCH */

.vehicle_search {
    position: relative;
    margin-bottom: 18px;
}

.vehicle_search i {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: var(--karayana-orange);
    font-size: 16px;
}

.vehicle_search input {
    width: 100%;
    height: 52px;
    padding: 0 20px 0 48px;
    border: 1px solid var(--karayana-border);
    border-radius: 8px;
    outline: none;
    color: var(--karayana-dark);
    font-size: 14px;
    transition: .3s;
}

.vehicle_search input:focus {
    border-color: var(--karayana-orange);
    box-shadow: 0 0 0 3px rgba(241,89,39,.08);
}


/* FILTER ROW */

.vehicle_filter_row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.vehicle_filter label {
    display: block;
    margin-bottom: 6px;
    color: var(--karayana-dark);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.vehicle_filter label i {
    color: var(--karayana-orange);
    margin-right: 3px;
}

.vehicle_filter select {
    width: 100%;
    height: 43px;
    padding: 0 10px;
    border: 1px solid var(--karayana-border);
    border-radius: 7px;
    background: #fff;
    color: var(--karayana-dark);
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.vehicle_filter select:focus {
    border-color: var(--karayana-orange);
}


/* FILTER FOOTER */

.filter_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--karayana-border);
}

.cars_found {
    color: var(--karayana-grey);
    font-size: 12px;
}

.cars_found strong {
    margin-right: 3px;
    color: var(--karayana-orange);
    font-size: 17px;
}

.reset_filter {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--karayana-dark);
    font-size: 12px;
    cursor: pointer;
}

.reset_filter:hover {
    color: var(--karayana-orange);
}


/* =============================================================
   VEHICLE GRID
============================================================= */

.vehicle_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.vehicle_item {
    transition: .3s ease;
}

.vehicle_item.hide_vehicle {
    display: none;
}


/* =============================================================
   VEHICLE CARD
============================================================= */

.vehicle_card {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--karayana-border);
    border-radius: 13px;
    box-shadow: 0 6px 25px rgba(31,43,62,.055);
    transition: .35s ease;
}

.vehicle_card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(31,43,62,.13);
}


/* =============================================================
   IMAGE
============================================================= */

.vehicle_image {
    position: relative;
    overflow: hidden;
    height: 235px;
    background: #f2f3f5;
}

.vehicle_image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.vehicle_card:hover .vehicle_image img {
    transform: scale(1.045);
}


/* STATUS */

.vehicle_status {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 30px;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

.active_status {
    color: #17854b;
}

.active_status span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: #21aa66;
}

.inactive_status {
    color: #c0392b;
}


/* IMAGE VIEW */

.view_image {
    position: absolute;
    right: 13px;
    top: 13px;
    z-index: 3;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: rgba(31,43,62,.88);
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

.view_image:hover {
    background: var(--karayana-orange);
}


/* IMAGE PRICE */

.image_price {
    position: absolute;
    right: 13px;
    bottom: 13px;
    padding: 7px 11px;
    border-radius: 6px;
    background: rgba(31,43,62,.90);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.image_price small {
    font-size: 9px;
    font-weight: 400;
    opacity: .8;
}


/* =============================================================
   CARD CONTENT
============================================================= */

.vehicle_content {
    padding: 19px;
}

.vehicle_brand {
    margin-bottom: 3px;
    color: var(--karayana-orange);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.vehicle_title_area h3 {
    margin: 0;
    color: var(--karayana-dark);
    font-size: 19px;
    font-weight: 700;
}


/* SPECS */

.vehicle_specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 17px 0;
}

.vehicle_spec {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 5px;
    background: #f6f7f8;
    color: #68717d;
    font-size: 9px;
    font-weight: 700;
}

.vehicle_spec i {
    margin-right: 4px;
    color: var(--karayana-orange);
}


/* =============================================================
   PRICE / BUTTON
============================================================= */

.vehicle_bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--karayana-border);
}

.vehicle_rate small {
    display: block;
    margin-bottom: 2px;
    color: var(--karayana-grey);
    font-size: 9px;
}

.vehicle_rate strong {
    color: var(--karayana-dark);
    font-size: 22px;
    font-weight: 800;
}

.vehicle_rate span {
    color: var(--karayana-grey);
    font-size: 9px;
}


.vehicle_book_button {
    min-width: 112px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 6px;
    background: var(--karayana-orange);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: .3s;
}

.vehicle_book_button:hover {
    background: #d9471b;
    color: #fff !important;
}

.vehicle_book_button.disabled {
    background: #ddd;
    color: #777 !important;
    cursor: not-allowed;
}


/* =============================================================
   NO RESULT
============================================================= */

.no_vehicle_result {
    padding: 70px 20px;
    text-align: center;
}

.no_result_icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--karayana-orange);
    font-size: 27px;
}

.no_vehicle_result h3 {
    margin-bottom: 8px;
    color: var(--karayana-dark);
}

.no_vehicle_result p {
    margin-bottom: 20px;
    color: var(--karayana-grey);
}


/* =============================================================
   IMAGE VIEWER
============================================================= */

.vehicle_image_viewer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.vehicle_image_viewer.show {
    display: flex;
}

.image_viewer_overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,16,27,.90);
    backdrop-filter: blur(5px);
}

.image_viewer_box {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 950px;
    text-align: center;
}

.image_viewer_box img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
}

.close_image_viewer {
    position: absolute;
    top: -45px;
    right: 0;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--karayana-dark);
    cursor: pointer;
    z-index: 5;
}

.vehicle_loading {
    grid-column: 1 / -1;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--karayana-orange);
    font-size: 14px;
}

.vehicle_loading i {
    font-size: 30px;
}


/* =============================================================
   RESPONSIVE
============================================================= */

@media (max-width: 991px) {

    .vehicle_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle_filter_row {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 576px) {

    .karayana_notice {
        justify-content: flex-start;
    }

    .notice_text {
        display: block;
        line-height: 1.8;
    }

    .notice_divider {
        display: none;
    }

    .vehicle_filter_row {
        grid-template-columns: 1fr;
    }

    .vehicle_grid {
        grid-template-columns: 1fr;
    }

    .vehicle_image {
        height: 225px;
    }

    .vehicle_bottom {
        align-items: center;
    }

    .vehicle_rate strong {
        font-size: 20px;
    }

}

/* PICKUP LOCATION */

.vehicle_pickup_location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 11px;
    background: #fff8f4;
    border: 1px solid #ffe4d8;
    border-radius: 7px;
}

.vehicle_pickup_location > i {
    margin-top: 3px;
    color: var(--karayana-orange);
    font-size: 15px;
}

.vehicle_pickup_details {
    flex: 1;
    min-width: 0;
}

.vehicle_pickup_label {
    display: block;
    margin-bottom: 3px;
    color: var(--karayana-grey);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.vehicle_pickup_address {
    color: var(--karayana-dark);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.vehicle_map_link {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #fbd2c0;
    color: var(--karayana-orange) !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: .25s ease;
}

.vehicle_map_link:hover {
    background: var(--karayana-orange);
    color: #fff !important;
}
       /* Magnific Popup booking form */

   .vehicle_booking_popup {
       position: relative;
       width: 92%;
       max-width: 680px;
       margin: 30px auto;
       padding: 30px;
       background: #fff;
       border-radius: 14px;
       box-shadow: 0 20px 70px rgba(0, 0, 0, .20);
   }

.booking_popup_header {
    margin-bottom: 22px;
    text-align: center;
}

.booking_popup_label {
    color: #f15927;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.booking_popup_header h3 {
    margin: 8px 0;
    color: #1f2b3e;
    font-size: 27px;
    font-weight: 800;
}

.booking_popup_header p {
    margin: 0;
    color: #737b87;
    font-size: 13px;
}

.booking_selected_vehicle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid #ffe0d3;
    border-radius: 8px;
    background: #fff7f3;
    color: #1f2b3e;
    font-size: 14px;
    font-weight: 700;
}

.booking_selected_vehicle i {
    color: #f15927;
    font-size: 22px;
}

.booking_form_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.booking_field label {
    display: block;
    margin-bottom: 7px;
    color: #1f2b3e;
    font-size: 12px;
    font-weight: 700;
}

.booking_field input,
.booking_field select {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #e7e9ed;
    border-radius: 7px;
    background: #fff;
    color: #1f2b3e;
    font-size: 13px;
    outline: none;
}

.booking_field input:focus,
.booking_field select:focus {
    border-color: #f15927;
    box-shadow: 0 0 0 3px rgba(241, 89, 39, .08);
}

.booking_submit_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    border: 0;
    border-radius: 7px;
    background: #f15927;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .25s;
}

.booking_submit_button:hover {
    background: #d9471b;
}

.booking_submit_button:disabled {
    cursor: wait;
    opacity: .65;
}

.booking_contact {
    margin: 16px 0 0;
    text-align: center;
    color: #737b87;
    font-size: 12px;
}

.booking_contact a {
    color: #f15927;
    font-weight: 700;
}

#bookingFormMessage {
    margin-top: 12px;
    font-size: 13px;
}

#bookingFormMessage.error {
    color: #c0392b;
}

#bookingFormMessage.success {
    color: #17854b;
}

/* Popup overlay and close button */
.mfp-bg {
    z-index: 100000;
}

.mfp-wrap {
    z-index: 100001;
}

.mfp-container {
    padding: 20px 10px;
}

.vehicle_booking_popup .mfp-close {
    color: #1f2b3e;
}

@media (max-width: 576px) {
    .vehicle_booking_popup {
        width: 100%;
        margin: 15px auto;
        padding: 22px 17px;
    }

    .booking_popup_header h3 {
        font-size: 23px;
    }

    .booking_form_grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}


/* VERY SMALL MOBILE */

@media (max-width: 380px) {

    .vehicle_bottom {
        display: block;
    }

    .vehicle_book_button {
        width: 100%;
        margin-top: 12px;
    }

}