/* ===== SHUTTLE LOGO ===== */
.tally_express_shuttle_logo_display {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tally_express_shuttle_logo_display img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
}

/* ===== MAIN IMAGE SLIDER ===== */
.tally_express_car_details_images {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.tally_express_car_details_feature_image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.tally_express_car_details_feature_image .tally_express_car_image_details {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 12px;
    transition: opacity 0.4s ease;
}

/* ===== THUMBNAIL GALLERY ===== */
.tally_express_car_details_gallery {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.tally_express_car_details_gallery::-webkit-scrollbar {
    height: 4px;
}

.tally_express_car_details_gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.tally_express_gallery_image {
    width: 80px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.tally_express_gallery_image:hover,
.tally_express_gallery_image.active {
    border-color: var(--tally_express_color_theme, #f97316);
    opacity: 1;
    transform: scale(1.05);
}

/* View More Button */
.mpcrbm_car_details_view_more {
    background: var(--tally_express_color_theme, #f97316) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.mpcrbm_car_details_view_more:hover {
    filter: brightness(1.1);
}

/* Smooth fade image animation */
.tally_express_gallery_image_fade_out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tally_express_gallery_image_fade_in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== SLIDER NAV ARROWS ===== */
.tally_express_slider_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    color: #333;
}

.tally_express_slider_nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.tally_express_slider_prev {
    left: 10px;
}

.tally_express_slider_next {
    right: 10px;
}

/* ===== SLIDER DOTS ===== */
.tally_express_slider_dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.tally_express_slider_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.tally_express_slider_dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ===== IMAGE COUNTER ===== */
.tally_express_slider_counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

/* ===== POPUP LIGHTBOX ===== */
.tally_express_gallery_image_popup_wrapper {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.tally_express_gallery_image_popup_content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    top: 30px;
    margin: auto;
}

.tally_express_gallery_image_popup_item {
    display: none;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation: fadeIn 0.4s ease;
}

.tally_express_gallery_image_popup_container img.active {
    display: block;
    opacity: 1;
}

.tally_express_gallery_image_popup_close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4444;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.tally_express_gallery_image_popup_prev,
.tally_express_gallery_image_popup_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    border: none;
    color: #000;
    font-size: 22px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.tally_express_gallery_image_popup_prev:hover,
.tally_express_gallery_image_popup_next:hover {
    background: #fff;
}

.tally_express_gallery_image_popup_prev { left: 10px; }
.tally_express_gallery_image_popup_next { right: 10px; }

/* ===== TERMS & FEATURES ===== */
.tally_express_term_wrapper {
    max-width: 900px;
    margin: 20px auto;
    font-family: "Inter", Arial, sans-serif;
}

.tally_express_term_wrapper_popup {
    margin: 20px auto;
    font-family: "Inter", Arial, sans-serif;
}

.tally_express_term_item {
    background: #ffffff;
    border-radius: 14px;
    padding: 5px 10px;
    margin-bottom: 5px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid #4f46e5;
}

.tally_express_bus_feature_items {
    background: #ffffff;
    border-radius: 14px;
    padding: 5px 10px;
    margin-bottom: 5px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tally_express_term_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.tally_express_term_header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.tally_express_term_index {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.tally_express_term_title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.tally_express_term_content {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    padding-left: 10px;
}

.tally_express_term_content p {
    margin: 0;
}

.tally_express_bus_popup_holder {
    display: none;
}

.tally_express_bus_photos_wrapper_popup {
    overflow: scroll;
    height: 60vh;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .tally_express_gallery_image {
        width: 60px !important;
        height: 45px !important;
    }

    .tally_express_slider_nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
