/* Modern Cabs Page Styles */

/* General Layout */
.containernew {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 26px 24px 34px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f9fafb 0%, #edf2f7 40%, #ffffff 100%);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
}

.containernew::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.25), transparent 65%);
    opacity: 0.6;
    pointer-events: none;
}

.containernew::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 65%);
    opacity: 0.8;
    pointer-events: none;
}

/* Page Title */
.footerlink h1 {
    font-size: 1.875rem;
    /* text-3xl ~30px to mirror index.php */
    line-height: 2.25rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    --tw-text-opacity: 1;
    color: rgb(200 16 46 / var(--tw-text-opacity, 1));
}
/* .footerlink h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
} */

.footerlink h1 span {
    /* color: #2c3e50 !important; */
    --tw-text-opacity: 1;
    color: rgb(200 16 46 / var(--tw-text-opacity, 1));
    /* text-primary from index.php */
    /* Override inline style */
}

/* Search/Filter Section */
.leftsecfull {
    width: 100%;
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.cartoptxt {
    font-size: 1.875rem;
    /* text-3xl ~30px */
    font-weight: 700;
    color: #1F2937;
    /* text-gray-800 from index.php */
    margin-bottom: 15px;
    /* border-bottom: 2px solid #eee; */
    padding-bottom: 10px;
}

.txtoption {
    background-color: unset !important;
    border: none !important;
}

.searchbycon {
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.15);
}

.searchtxt {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.frmtxtbox {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-weight: 500;
    background-color: #ffffff;
    min-width: 180px;
}

.frmtxtbox:focus {
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* Car Grid Layout */
#serchcarsec,
.section.group,
.tab-pane.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Car Card Design */
.newcarsec,
.toursecon,
.car-sec {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    border: none;
    /* Removed border */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    /* Needed for top animation */
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    animation: cardFadeIn 0.6s ease-out both;
}

.newcarsec:hover,
.toursecon:hover,
.car-sec:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.22);
}

/* Card Image */
.newcarsec img,
.toursecon img,
.car-sec img {
    width: 100%;
    height: 220px;
    /* Increased height slightly */
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
    /* Remove bottom space */
}

.newcarsec:hover img,
.toursecon:hover img,
.car-sec:hover img {
    transform: scale(1.03);
}

/* Card Content */
.grid_desc,
.car-in {
    padding: 0 20px 20px 20px;
    /* Remove top padding so title can be flush if needed, but we use negative margins anyway */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    position: static;
    /* Ensure it doesn't trap fixed elements if relative */
    z-index: 2;
}

/* Car Name - Dark Bar Style with Red Text */
.cartxtsecnew,
.tourtitle,
.mc-car-name {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    /* Changed to red */
    background-color: rgba(52, 73, 94, 0.85);
    /* Dark Blue/Grey with transparency for blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: calc(100% + 40px);
    /* Full width including parent padding */
    margin-left: -20px;
    margin-right: -20px;
    margin-top: 0;
    margin-bottom: 15px;
    padding: 12px 0;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Added box shadow */
}

.cargroupsec,
.tourdesc,
.mc-feature {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

/* Buttons Container */
.carbotoomsec,
.view-m,
.col-lg-12.no-padding {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 15px;
    border-top: none;
    /* Removed border as per typical card designs with this style */
}

.newdetailsec,
.bookingbtncon,
.tourbtncon {}

.lightbox .header {
    background: #2c3e50;
    color: #fff;
    padding: 15px 20px;
}

.lightbox .h3 {
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.lightbox .btn {
    color: #fff;
    opacity: 0.8;
}

.lightbox .btn:hover {
    opacity: 1;
}

.pointsproductdetail {
    font-weight: 600;
    color: #555;
    padding: 12px 15px !important;
    border-bottom: 1px solid #eee;
}

.productdetail {
    color: #333;
    padding: 12px 15px !important;
    border-bottom: 1px solid #eee;
}

/* Specific overrides for Self Drive Page */
.car-sec {
    padding: 0 !important;
}

.car-in {
    padding: 0;
}

.mc-car-name {
    padding: 15px;
}

.mc-feature ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.mc-feature li {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.mc-feature img {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    object-fit: contain;
}

.col-md-4.col-sm-6.col-xs-12 {
    width: 100%;
    /* Reset bootstrap column width inside grid */
    padding: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {

    #serchcarsec,
    .section.group,
    .tab-pane.active {
        grid-template-columns: repeat(2, 1fr);
    }

  @media (max-width: 600px) {

    #serchcarsec,
    .section.group,
    .tab-pane.active {
        grid-template-columns: 1fr;
    }

    .footerlink h1 {
        font-size: 24px;
    }

    .searchbycon {
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        padding: 10px 14px;
        gap: 8px;
    }

    .carbotoomsec {
        flex-direction: column;
        align-items: center;
    }

    .cardsec1,
    .booknewbuton,
    .button12 {
        width: 100%;
    }

    .containernew {
        padding: 20px 14px 26px;
        border-radius: 14px;
    }
}

/* Hide legacy elements that might interfere */
.smallmask,
.smallmask1 {
    display: none;
}

/* ===== CARD ANIMATION KEYFRAMES ===== */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
