/* ---- From car_info.php ---- */
.form-control {
    background-color: #fff;
}

.booking-details .other-details dt {
    float: left;
}

.booking-details .other-details dt,
.booking-details .other-details dd {
    border-top: 1px solid #f5f5f5;
}

.travelo-box {
    padding: 10px;
}

.booking-details .other-details {
    text-align: right;
}

.cabTypeDropdown .dropdown-toggle,
.cabTypeDropdown .dropdown-menu,
.cabTypeDropdown label,
#mapPickerModal,
#mapPickerModal .btn,
#mapPickerModal .modal-title {
    font-family: inherit;
    font-size: inherit;
}

/* ---- Custom time dropdown (self-contained, no external plugin) ---- */
.timepicker-wrap {
    position: relative;
}

.time-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    margin-top: 4px;
    padding: 4px 0;
}

.time-dropdown-list.open {
    display: block;
}

.time-dropdown-list .time-option {
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.time-dropdown-list .time-option:hover {
    background: #f0f6ff;
}

.time-dropdown-list .time-option.selected {
    background: #0d6efd;
    color: #fff;
}

/* ---- Search box card (same footprint as the flight search box) ---- */
.car-search-card {
    background: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    padding: 24px 24px 10px 24px;
    margin-bottom: 24px;
}

.car-search-card label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.car-search-card .form-control {
    height: 42px;
    border-radius: 6px;
}

.car-search-card .carQuery {
    width: 100%;
    height: 42px;
    font-weight: 700;
    letter-spacing: .3px;
}

/* ---- Results panel: bigger than before ---- */
.cab-results-panel {
    border-width: 1px;
    border-style: solid;
    border-color: rgb(229, 232, 236);
    border-image: none;
    border-radius: 8px;
    overflow: hidden;
    background: rgb(255, 255, 255);
}

.cab-results-header {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: rgb(136, 136, 136);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 16px 38px;
    background: rgb(250, 251, 252);
    border-bottom: 1px solid rgb(229, 232, 236);
}

.cab-row {
        display: flex;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid rgb(238, 240, 242);
            gap: 15px;
}

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

.cab-row:hover {
    background: #fafbfc;
}

.col-cab {
        display: flex;
            align-items: center;
            flex: 0 0 240px;
            gap: 10px;
}

.col-cab img {
    width: 96px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
}

.cab-name {
    font-size: 19px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.cab-model {
    font-size: 14px;
    color: #888;
    margin-top: 3px;
}

.assured-badge {
    display: inline-block;
    margin-top: 6px;
    background: #28a745;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
}

.col-capacity {
    font-size: 12.5px;
        color: rgb(85, 85, 85);
        flex: 1;
}

.col-capacity span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
}

.col-cancel {
    flex: -1 0 145px;
        font-size: 13.5px;
        color: #888;
}

.col-price {
    text-align: right;
        flex: 0 0 90px;
}

.col-price .amount {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.col-action {
    text-align: right;
        flex: 0 0 100px;
}

.col-action .btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
}

.col-action .btn:hover {
    background: #0b5ed7;
}

@media (max-width:900px) {
    .col-cancel {
        display: none;
    }
}

@media (max-width:700px) {
    .cab-row {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .col-cab {
        flex: 1 1 100%;
    }

    .col-capacity {
        flex: 1 1 100%;
    }

    .col-price {
        flex: 1;
        text-align: left;
    }

    .col-action {
        flex: 1;
    }
}

/* ---- Skeleton shimmer loader (matches flight-page loading style) ---- */
.skeleton-block {
    background: linear-gradient(90deg, #eceff1 25%, #f5f6f7 37%, #eceff1 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.skeleton-row {
    display: flex;
    align-items: center;
    padding: 24px 26px;
    border-bottom: 1px solid #eef0f2;
    gap: 18px;
}

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

.skeleton-img {
    width: 96px;
    height: 64px;
    flex-shrink: 0;
}

.skeleton-lines {
    flex: 0 0 200px;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-loading-label {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.skeleton-mid {
    flex: 1;
    display: flex;
    gap: 14px;
}

.skeleton-mid .skeleton-block {
    height: 14px;
    width: 70px;
}

.skeleton-price {
    flex: 0 0 170px;
    text-align: right;
}

.skeleton-price .skeleton-block {
    height: 22px;
    width: 80px;
    margin-left: auto;
}

.skeleton-action {
    flex: 0 0 140px;
    text-align: right;
}

.skeleton-action .skeleton-block {
    height: 38px;
    width: 100px;
    margin-left: auto;
    border-radius: 6px;
}

/* ---- Submit button loading state ---- */
.carQuery.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: .85;
}

.carQuery.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .7s linear infinite;
}

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

/* Force radio buttons to be clickable */
.radio.radio-inline input[type="radio"] {
    opacity: 1 !important;
    position: relative !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    float: none !important;
    display: inline-block !important;
    pointer-events: auto !important;
    z-index: 999 !important;
    -webkit-appearance: radio !important;
    appearance: radio !important;
}

.radio.radio-inline {
    display: inline-block !important;
    padding-left: 0 !important;
    cursor: pointer !important;
}

.radio.radio-inline label {
    cursor: pointer !important;
}

/* Cab Type Dropdown */
.cabTypeDropdown {
    position: relative;
}

.cabTypeBtn {
    cursor: pointer;
    background: #fff !important;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    text-align: left;
}

.cabTypeBtn .caret {
    float: right;
    margin-top: 8px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    display: none;
    width: 100%;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu label {
    padding: 5px 10px;
    margin: 0;
    cursor: pointer;
    display: block;
}

.dropdown-menu label:hover {
    background: #f5f5f5;
}

.dropdown-menu input[type="checkbox"] {
    margin-right: 8px;
}

/* Fix cab type text overflow */
.cabTypeBtn span {
    display: inline-block;
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu label {
    display: block;
    padding: 5px 10px;
    cursor: pointer;
    margin: 0;
}

.dropdown-menu label:hover {
    background: #f5f5f5;
}

.dropdown-menu input[type="checkbox"] {
    margin-right: 8px;
}

/* Cancel Booking Page Styles */
.cancel-box {
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.cancel-box h3 {
    color: #dc3545;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.booking-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.booking-info p {
    margin: 5px 0;
}

.cancel-reason-dropdown {
    margin: 20px 0;
}

.cancel-reason-dropdown select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-cancel {
    background: #dc3545;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #c82333;
}

.btn-cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-msg {
    color: #dc3545;
    display: none;
    margin: 10px 0;
}

.success-msg {
    color: #28a745;
    display: none;
    margin: 10px 0;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

/* ============================================
   MAPPLS AUTOSUGGEST DROPDOWN
   ============================================ */

.form-group.custom-group {
    position: relative;
}

#addressSuggestions,
#addressSuggestionsTo {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

#addressSuggestions:not(:empty),
#addressSuggestionsTo:not(:empty) {
    display: block;
}

#addressSuggestions .address-suggestion,
#addressSuggestionsTo .address-suggestion {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.15s ease;
    display: block;
    background: #ffffff;
    text-align: left;
    font-family: inherit;
    margin: 0;
}

#addressSuggestions .address-suggestion:last-child,
#addressSuggestionsTo .address-suggestion:last-child {
    border-bottom: none;
}

#addressSuggestions .address-suggestion:hover,
#addressSuggestionsTo .address-suggestion:hover {
    background: #f5f9ff;
}

#addressSuggestions .address-name,
#addressSuggestionsTo .address-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 2px;
    line-height: 1.3;
}

#addressSuggestions .address-text,
#addressSuggestionsTo .address-text {
    display: block;
    font-size: 12.5px;
    color: #7a7a7a;
    line-height: 1.35;
}

#addressSuggestions .address-suggestion.no-result,
#addressSuggestionsTo .address-suggestion.no-result {
    color: #999999;
    font-size: 13px;
    font-style: italic;
    cursor: default;
    text-align: center;
    padding: 14px;
}

/* Style the pickup/drop textareas */
.form-group.custom-group .search_address {
    width: 100%;
    resize: none;
    min-height: 44px;
    height: auto;
    padding: 0px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1;
    outline: none;
    transition: border-color 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
    background-attachment: scroll;
}

.form-group.custom-group .search_address:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.12);
}

/* Scrollbar styling */
#addressSuggestions::-webkit-scrollbar,
#addressSuggestionsTo::-webkit-scrollbar {
    width: 6px;
}

#addressSuggestions::-webkit-scrollbar-thumb,
#addressSuggestionsTo::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 3px;
}

#addressSuggestions::-webkit-scrollbar-thumb:hover,
#addressSuggestionsTo::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Compact form tweaks */
.compact-form .form-group {
    margin-bottom: 12px;
}

.compact-form label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    display: block;
}

.compact-form .form-control {
    height: 38px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    box-shadow: none;
}

.compact-form textarea.form-control {
    height: auto;
    min-height: 60px;
}

.compact-form .form-control:focus {
    border-color: #2f80ed;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.1);
}

/* Inline checkboxes */
.cb-inline {
    font-weight: normal !important;
    font-size: 13px !important;
    color: #444 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
}

.cb-inline input[type="checkbox"] {
    margin: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* GST block — like flight page */
.gst-compact {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    background: #fafafa;
    margin-top: 6px;
}

.gst-compact .cb-inline span span {
    text-transform: none;
    letter-spacing: 0;
}


/* ==========================================================
   LOCATION INPUT — textarea + pin icon (inside box)
   ========================================================== */
.loc-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.loc-input-wrap .search_address,
.loc-input-wrap textarea.search_address {
    width: 100%;
    padding: 12px 46px 12px 16px !important;
    /* fixed: real left padding */
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    min-height: 80px;
    resize: none;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.loc-input-wrap .search_address::placeholder {
    color: #b0b0b0 !important;
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
}

.loc-input-wrap .search_address::-webkit-input-placeholder {
    color: #b0b0b0 !important;
}

.loc-input-wrap .search_address::-moz-placeholder {
    color: #b0b0b0 !important;
}

.loc-input-wrap .search_address:focus {
    border-color: #2f80ed;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.12);
    outline: none;
}

/* Pin icon: sits INSIDE top-right of the box */
.loc-input-wrap .map-pin-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    z-index: 5;
    transition: all .15s ease;
}

/* Colors: pickup = green, drop = red */
.loc-input-wrap .map-pin-btn.pin-pickup {
    color: #28a745;
    border-color: #d6f0dd;
}

.loc-input-wrap .map-pin-btn.pin-pickup:hover {
    background: #f0fbf3;
    border-color: #28a745;
    color: #1e7e34;
}

.loc-input-wrap .map-pin-btn.pin-drop {
    color: #e74c3c;
    border-color: #f7d9d4;
}

.loc-input-wrap .map-pin-btn.pin-drop:hover {
    background: #fdf3f2;
    border-color: #e74c3c;
    color: #c0392b;
}

.loc-input-wrap .map-pin-btn:active {
    transform: scale(0.96);
}

.loc-input-wrap .map-pin-btn i {
    font-size: 16px;
    line-height: 1;
}

/* ==========================================================
   MAP PICKER MODAL
   ========================================================== */
body.mp-modal-open {
    overflow: hidden;
}

.mp-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mp-modal.open {
    display: flex;
}

.mp-modal-box {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: mpModalIn .18s ease-out;
}

@keyframes mpModalIn {
    from {
        transform: translateY(12px);
        opacity: 0;
    }

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

.mp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.mp-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.mp-modal-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 6px;
    transition: color .15s;
}

.mp-modal-close:hover {
    color: #222;
}

/* Search bar inside modal */
.mp-modal-search {
    position: relative;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.mp-search-input {
    width: 100%;
    height: 40px;
    padding: 8px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.mp-search-input:focus {
    border-color: #2f80ed;
}

.mp-search-results {
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.mp-search-results:empty {
    display: none;
}

.mp-search-result {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background .12s;
}

.mp-search-result:last-child {
    border-bottom: none;
}

.mp-search-result:hover {
    background: #f6f9ff;
}

.mp-r-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.mp-r-addr {
    font-size: 12px;
    color: #888;
}

/* Map container inside modal */
.mp-map-container {
    flex: 1;
    width: 100%;
    min-height: 300px;
    background: #eaeaea;
    position: relative;
}

/* Modal footer */
.mp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #eee;
    background: #fff;
}

.mp-btn {
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
}

.mp-btn-cancel {
    background: #fff;
    color: #555;
    border-color: #dcdcdc;
}

.mp-btn-cancel:hover {
    background: #f5f5f5;
}

.mp-btn-confirm {
    background: #2f80ed;
    color: #fff;
}

.mp-btn-confirm:hover:not(:disabled) {
    background: #1f6edc;
}

.mp-btn-confirm:disabled {
    background: #c7d8f0;
    cursor: not-allowed;
}