/* =====================================
   ANDAMAN GUIDERS - CAB LISTING
   Ocean Blue Premium Theme
===================================== */

.cab-listing-page {
    --cab-primary: #0784c6;
    --cab-deep: #063b66;
    --cab-aqua: #27c7e6;
    --cab-text: #12354d;
    --cab-muted: #658092;
    --cab-border: #e4f1f7;
    background: #f7fcff;
    color: var(--cab-text);
}


/* HERO */

.cab-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 65px max(6%, calc((100% - 1200px) / 2));
    background:
        radial-gradient(circle at 80% 15%,
            rgba(39, 199, 230, .25),
            transparent 32%),
        linear-gradient(125deg, #042e50, #075985 55%, #0784c6);
}

.cab-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -130px;
    top: -180px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
}

.cab-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: 7%;
    bottom: -250px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
}

.cab-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.cab-eyebrow {
    display: inline-block;
    color: #76e8fa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.cab-hero h1 {
    margin: 18px 0 15px;
    color: #fff;
    font-family: var(--heading-font, "Playfair Display", serif);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.12;
    font-weight: 700;
}

.cab-hero h1 span {
    color: #73d7f5;
}

.cab-hero-content>p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.9;
}

.cab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    font-size: 13px;
    color: #c6edfa;
}

.cab-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.cab-breadcrumb a:hover {
    color: #73d7f5;
}


/* SECTION */

.cab-section {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
    padding: 75px 0 90px;
}

.cab-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 32px;
}

.cab-section-label {
    color: var(--cab-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.cab-section-heading h2 {
    margin: 10px 0;
    color: var(--cab-deep);
    font-family: var(--heading-font, "Playfair Display", serif);
    font-size: clamp(28px, 3vw, 38px);
}

.cab-section-heading p {
    margin: 0;
    color: var(--cab-muted);
    font-size: 14px;
    line-height: 1.7;
}

.cab-count {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid #dceff7;
    border-radius: 50px;
    background: #fff;
    color: var(--cab-deep);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.cab-count i {
    color: var(--cab-primary);
}


/* THREE-COLUMN GRID */

.cab-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}


/* CARD */

.cab-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(7, 132, 198, .12);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(6, 59, 102, .055);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.cab-card:hover {
    transform: translateY(-7px);
    border-color: rgba(7, 132, 198, .3);
    box-shadow: 0 22px 45px rgba(6, 59, 102, .12);
}


/* VEHICLE IMAGE */

.cab-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8faff, #cceefa);
}

.cab-card-image::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(6, 35, 57, .2));
    pointer-events: none;
}

.cab-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .55s ease;
}

.cab-card:hover .cab-card-image img {
    transform: scale(1.07);
}

.cab-category,
.cab-rating {
    position: absolute;
    z-index: 2;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 800;
}

.cab-category {
    left: 14px;
    max-width: 65%;
    overflow: hidden;
    color: var(--cab-deep);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cab-category i {
    color: var(--cab-primary);
}

.cab-rating {
    right: 14px;
    color: #a56b00;
}

.cab-rating i {
    color: #f4b400;
}


/* CONTENT */

.cab-card-content {
    padding: 22px;
}

.cab-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cab-card-subtitle {
    color: var(--cab-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.cab-card-title h3 {
    margin: 8px 0 0;
    color: var(--cab-deep);
    font-size: 20px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cab-car-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #e9faff, #d9f6ff);
    color: var(--cab-primary);
    font-size: 19px;
}

.cab-description {
    min-height: 48px;
    margin: 15px 0 20px;
    color: var(--cab-muted);
    font-size: 13px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* SPECIFICATIONS */

.cab-specifications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #edf4f8;
    border-bottom: 1px solid #edf4f8;
}

.cab-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cab-spec>i {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #effaff;
    color: var(--cab-primary);
    font-size: 13px;
}

.cab-spec strong,
.cab-spec small {
    display: block;
}

.cab-spec strong {
    color: var(--cab-deep);
    font-size: 11px;
}

.cab-spec small {
    margin-top: 4px;
    color: var(--cab-muted);
    font-size: 10px;
}


/* CARD FOOTER */

.cab-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
}

.cab-price span {
    display: block;
    margin-bottom: 5px;
    color: var(--cab-muted);
    font-size: 11px;
}

.cab-price strong {
    color: var(--cab-deep);
    font-size: 15px;
}

.cab-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0784c6, #27c7e6);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease;
}

.cab-details-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 132, 198, .25);
}


/* EMPTY STATE */

.cab-empty {
    grid-column: 1 / -1;
    padding: 65px 20px;
    border: 1px dashed #b9e6f5;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.cab-empty>i {
    color: var(--cab-primary);
    font-size: 44px;
}

.cab-empty h3 {
    margin: 18px 0 8px;
    color: var(--cab-deep);
}

.cab-empty p {
    margin-bottom: 22px;
    color: var(--cab-muted);
}

.cab-empty a {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--cab-primary);
    color: #fff;
    text-decoration: none;
}


/* RESPONSIVE */

@media (max-width: 1050px) {
    .cab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .cab-hero {
        min-height: 320px;
        padding: 50px 24px;
    }

    .cab-section {
        width: calc(100% - 30px);
        padding: 50px 0 65px;
    }

    .cab-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cab-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cab-card-image {
        height: 235px;
    }

    .cab-card-content {
        padding: 19px;
    }

    .cab-card-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cab-details-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cab-card,
    .cab-card-image img,
    .cab-details-btn {
        transition: none;
    }
}