/* ========================================
   GLOBAL STYLES FOR CARPLUS
   ======================================== */

/* ========================================
   HERO SECTION - THREE PART LAYOUT
   ======================================== */
.hero-section {
    background: #f8f9fa;
    /* color: white; */
    min-height: 60vh;
}

.hero-layout {
    min-height: 60vh;
}

/* Left Part: Category Links */
.hero-categories {
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.category-links-container {
    height: 100%;
}

.category-links-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    padding-left: 1.5rem;
}

.category-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-link-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
    border-left-color: #007bff;
    text-decoration: none;
}

.category-link i {
    font-size: 0.8rem;
    color: #007bff;
}

/* Middle Part: Slideshow */
.hero-slideshow {
    padding: 1rem 0 0 0;
    position: relative;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Right Part: Booking Form */
.hero-booking {
    background: #ffffff;
    border-left: 1px solid #e9ecef;
    padding: 1rem 1.5rem 0 1.5rem;
}

.booking-form-container {
    height: 100%;
}

.booking-form-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.booking-form-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.booking-form-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.booking-form-container .form-label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.booking-form-container .form-control {
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.booking-form-container .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.booking-form-container .btn {
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.form-check-label{color:#000}

/* Carousel Controls Styling */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.carousel-indicators {
    bottom: 1rem;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Collapsible button animations */
.toggle-categories i,
.toggle-booking i {
    transition: transform 0.3s ease;
}

.toggle-categories[aria-expanded="false"] i,
.toggle-booking[aria-expanded="false"] i {
    transform: rotate(180deg);
}

.toggle-categories[aria-expanded="true"] i,
.toggle-booking[aria-expanded="true"] i {
    transform: rotate(0deg);
}

/* Video Container Styles */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    clear: both;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
    max-width: 100%;
}

/* Ensure video containers don't break layout in news content */
.news-content .video-container {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Fix for news article layout */
.news-article {
    overflow: hidden;
}

.news-article .video-container {
    clear: both;
    float: none;
    display: block;
}

/* Responsive video container */
@media (max-width: 768px) {
    .video-container {
        margin: 0.5rem 0;
    }
}

/* News Card Styles */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card .card-title a:hover {
    color: #007bff !important;
}

.news-card .card-img-top {
    transition: transform 0.3s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Car Card Badge Styles */
.car-seat-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.car-fuel-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Ensure proper spacing and alignment for car card badges */
.car-card .card-body .d-flex {
    align-items: center;
}

.car-card .car-brand {
    flex: 1;
    min-width: 0;
    margin-right: 0.5rem;
}

.car-card .car-title {
    flex: 1;
    min-width: 0;
    margin-right: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .hero-layout {
        flex-direction: column;
    }
    
    .hero-categories {
        order: 1;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 1.5rem;
    }
    
    .hero-slideshow {
        order: 2;
    }
    
    .hero-booking {
        order: 3;
        border-left: none;
        border-top: 1px solid #e9ecef;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Hide carousel controls on mobile */
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    /* Mobile-friendly slideshow ratio */
    .hero-slide {
        min-height: 27vh;
    }
    .hero-categories,
    .hero-booking {
        padding: 1rem;
    }

    /* Additional mobile padding for hero sections */
    .hero-categories .category-block,
    .hero-booking .category-block {
        margin-bottom: 1rem;
    }

    .hero-categories .category-block .p-3,
    .hero-booking .category-block .p-3 {
        padding: 0.75rem !important;
    }

    .hero-booking .category-block .collapse .p-3 {
        padding: 0.75rem !important;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .category-links-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .booking-form-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    background-color: #687667 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff !important;
}

.navbar-brand:hover {
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: #fff !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    opacity: 0.8;
}

.navbar-nav .dropdown-toggle {
    color: #fff !important;
}

.navbar-nav .dropdown-toggle:hover {
    color: #fff !important;
}

.navbar-nav .dropdown-menu {
    background-color: #fff;
}

.navbar-nav .dropdown-item {
    color: #333 !important;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333 !important;
}

.navbar-toggler {
    border-color: #fff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   CARDS & CAR COMPONENTS
   ======================================== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.car-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.car-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.car-image-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.car-image-link:hover {
    opacity: 0.9;
}

.car-image-link:hover img {
    transform: scale(1.02);
}

.price-tag {
    /* background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 15px;
    border-radius: 20px; */
    font-weight: bold;
}

/* ========================================
   CATEGORY BLOCKS
   ======================================== */
.category-block {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}
.category-block-border{
    border: 5px solid #687667 !important;
    /* border-radius: 0 !important; */
    margin-bottom: 0.1rem;
}
.category-block:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-block .bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef;
}

.toggle-category {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-category:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

/* ========================================
   SOCIAL BUTTONS FIXED
   ======================================== */
.social-buttons-fixed {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(44, 62, 80, 0.7);
    border-radius: 32px;
    padding: 10px 8px 10px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    align-items: flex-start;
}

.social-buttons-fixed .btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.85;
    transition: opacity 0.2s;
    background: rgba(255, 255, 255, 0.7);
}

.social-buttons-fixed .btn:hover {
    opacity: 1;
}

.social-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s;
    margin-bottom: 0;
}

.social-toggle-btn:hover {
    background: #217dbb;
    opacity: 1;
}

.social-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: max-height 0.3s, opacity 0.3s;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.social-buttons-list.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.social-buttons-fixed .btn .zalo-icon {
    width: 48px;
    height: 48px;
}

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

/* Tablet and below (≤768px) */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
        color: #fff !important;
    }
    
    .navbar-collapse {
        background-color: #687667;
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 0.375rem;
    }
    
    .navbar-nav .nav-link {
        color: #fff !important;
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-link:hover {
        color: #fff !important;
        opacity: 0.8;
    }

    .car-image {
        height: 180px;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .social-toggle-btn {
        width: 45px !important;
        height: 45px !important;
    }

    /* Category block mobile adjustments */
    .category-block .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .toggle-category {
        align-self: flex-end;
        margin-top: 0.5rem;
    }

    .car-card .card-body {
        padding: 1rem;
    }

    .car-card .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    /* Social buttons mobile */
    .social-buttons-fixed {
        left: 10px;
        bottom: 10px;
        gap: 10px;
        padding: 6px 4px 6px 4px;
    }

    .social-buttons-fixed .btn,
    .social-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .social-buttons-fixed .btn .zalo-icon {
        width: 40px;
        height: 40px;
    }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }

    .car-image {
        height: 160px;
    }

    .price-tag {
        font-size: 0.85rem;
        padding: 4px 10px;
    }

    /* Category block mobile adjustments */
    .category-block {
        margin-bottom: 1rem !important;
    }

    .category-block .p-3 {
        padding: 1rem 1rem 1rem 0.5rem !important;
    }

    .car-card .card-title {
        font-size: 0.8rem;
    }

    .price-tag {
        font-size: 0.9rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-decoration-none {
    text-decoration: none !important;
}

.text-decoration-none:hover {
    text-decoration: none !important;
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }

    to {
        max-height: 500px;
        opacity: 1;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.toggle-category:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .social-buttons-fixed,
    .navbar,
    .footer {
        display: none !important;
    }

    .category-block {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .car-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

.category-block {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.category-block:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-block .bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef;
}

.toggle-category {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-category:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.car-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .category-block .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .toggle-category {
        align-self: flex-end;
        margin-top: 0.5rem;
    }

    .car-card .card-body {
        padding: 1rem;
    }

    .car-card .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
}

.lead table,
.card-text table,
.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.lead table th,
.lead table td,
.card-text table th,
.card-text table td,
.description-content table th,
.description-content table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.lead table th,
.card-text table th,
.description-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.lead img,
.card-text img,
.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0;
    display: block;
}

.table th,
.table td {
    /* max-width: 35%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; */
    white-space: normal;     /* allow wrapping */
    word-wrap: break-word;   /* break long words if needed */
    overflow-wrap: break-word; /* modern alternative */
}

/* 
.table th:nth-child(2), 
.table td:nth-child(2) {
    white-space: normal;
    max-width: 10%;
}

.table th:nth-child(5), 
.table td:nth-child(5) {
    max-width: 25%;
    white-space: normal;
    word-wrap: break-word;
}

.table th:nth-child(8), 
.table td:nth-child(8) {
    max-width: 15%;
    white-space: normal;
} */

/* Make category badges more compact */
/* .table td .badge {
    display: inline-block;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
} */

/* .table td span {
    max-width: 35%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
} */

/* Category title with red identification bar */
.category-title {
    position: relative;
    padding-left: 12px;

}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 6px;
    height: 79%;
    background: #fb4848;
}

.detail-car-title {
    position: relative;
    padding-left: 12px;
}



/* Car card improvements */
.car-brand {
    font-size: 0.85rem;
    font-weight: 500;
}

.price-action-section {
    background-color: #fb4848;
    padding: 0.75rem;
    /* border-radius: 0.375rem; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-tag {
    font-size: 1.2rem;
    margin: 0;
}

.btn-detail {
    background: none;
    /* border: 1px solid white; */
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: underline;
}

.btn-detail:hover {
    background-color: white;
    color: #fb4848 !important;
    text-decoration: none;
}

.break-line-overflow-wrap{
    white-space: normal;     /* allow wrapping */
    word-wrap: break-word;   /* break long words if needed */
    overflow-wrap: break-word; /* modern alternative */
}

.td-category-name{
    max-width: 100%;
    margin-bottom: 5px;
    padding: 7px;
}

/* Mobile */
@media (max-width: 767.98px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Mobile car card improvements */
    .car-card .card-body {
        padding: 0;
    }
    
    .price-tag {
        font-size: 14px;
        max-width: 60%;
    }
    
    /* Mobile badge adjustments */
    .car-seat-badge,
    .car-fuel-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .car-card .car-brand {
        font-size: 0.75rem;
    }
    
    .car-card .car-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .car-title {
        font-size: 0.5rem;
        line-height: 1.3;
        padding-left: 0.5rem;
    }

    .car-brand {
        font-size: 0.75rem;
        padding-top: 0.5rem;
        padding-left: 0.5rem;
        font-size: 0.8rem;
    }

    .price-action-section {
        /* padding: 0.5rem; */
        padding: 0;
        width: 100%;
    }

    .btn-detail {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Remove padding on mobile for car list container */
    .collapse .p-3 {
        padding: 0 !important;
    }

    /* Mobile category header - ensure same line layout */
    .category-block .d-flex {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100%;
    }

    /* Mobile form padding */
    .hero-booking .category-block .p-3,
    .hero-categories .category-block .p-3 {
        padding: 1rem !important;
    }

    .hero-booking .category-block .collapse .p-3 {
        padding: 1rem !important;
    }

/* Mobile form elements spacing */
.hero-booking .form-control {
    padding: 0.75rem;
    font-size: 0.9rem;
}

.hero-booking .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hero-booking .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.hero-booking .form-check {
    margin-bottom: 0.5rem;
}

.hero-booking .form-check-label {
    font-size: 0.9rem;
}

/* Desktop: Keep special requests and submit button on same line */
@media (min-width: 768px) {
    .hero-booking .no-padding-top-bottom {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Mobile: Stack special requests and submit button vertically */
@media (max-width: 767.98px) {
    .hero-booking .row .col-9,
    .hero-booking .row .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-booking .row .col-3 {
        margin-top: 0.5rem;
    }
}

    .category-title {
        flex: 1;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        display: inline-block;
        white-space: normal;     /* allow wrapping */
        word-wrap: break-word;   /* break long words if needed */
        overflow-wrap: break-word; /* modern alternative */
    }

    .category-title a {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .toggle-category {
        flex-shrink: 0;
        margin-left: 0.5rem;
        min-width: 40px;
        white-space: nowrap;
        display: inline-block;
    }

    /* Additional mobile fixes for category header */
    .category-block .d-flex.justify-content-between.align-items-center {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    .category-block .category-title {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-right: 0.5rem !important;
    }

    .category-block .toggle-category {
        flex: 0 0 auto !important;
        margin-left: 0 !important;
    }

    .detail-car-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 5px;
        width: 6px;
        height: 20px;
        background: #fb4848;
    }
    
    .lead table,
    .card-text table,
    .description-content table {
        font-size: 8px;    
    }
    
    .car-seat-badge {
        margin-top: 5px;
    }

}


/* Desktop */
@media (min-width: 768px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    /* Desktop-only padding for car list container */
    .collapse .p-3 {
        padding: 1rem !important;
    }
    .detail-car-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 7px;
        width: 6px;
        height: 26px;
        background: #fb4848;
    }

    #bookingCollapse .no-padding-top-bottom{
        padding: 0.5rem 1rem 0 1rem !important;
    }
}

/* Toggle button styles for hero sections */
.toggle-categories,
.toggle-booking {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-categories:hover,
.toggle-booking:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Custom utility classes for w-5 and h-5 - SVG only */
svg.w-5 {
    width: 1.25rem !important;
}

svg.h-5 {
    height: 1.25rem !important;
}
