/* 
 * Popular Routes CSS Component
 * File: assets/css/popular-routes.css
 * Description: Dedicated styling for popular routes shortcode block (Centered & Matched to Booking Card Width)
 */

.wpcab-popular-routes-wrapper,
.wpcab-routes-container {
    /* width: 96% !important; */
    max-width: 1400px !important;
    margin: 30px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    background-color: transparent !important;
}

/* When embedded inside page containers that already define 1400px/90% bounds */
.wpcab-top-routes-body .wpcab-popular-routes-wrapper,
.wpcab-city-taxi-page-wrapper .wpcab-popular-routes-wrapper,
.wpcab-airport-cab-page-wrapper .wpcab-popular-routes-wrapper,
.content-wrapper .wpcab-popular-routes-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px auto !important;
}

.wpcab-popular-routes-card,
.wpcab-routes-container .route-section {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 28px 32px !important;
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important; */
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.wpcab-popular-routes-card .route-group-block {
    margin-bottom: 28px !important;
}

.wpcab-popular-routes-card .route-group-block:last-child {
    margin-bottom: 0 !important;
}

.wpcab-popular-routes-card h3,
.wpcab-routes-container h3 {
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 14px 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.wpcab-popular-routes-card .route-grid,
.wpcab-routes-container .route-list,
ul.route-grid,
ul.route-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px 28px !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    width: 100% !important;
}

.wpcab-popular-routes-card .route-grid li,
.wpcab-routes-container .route-list li,
ul.route-grid li,
ul.route-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    display: block !important;
}

.wpcab-popular-routes-card .route-grid li::before,
.wpcab-routes-container .route-list li::before,
ul.route-grid li::before,
ul.route-list li::before {
    content: none !important;
    display: none !important;
}

.wpcab-popular-routes-card .route-grid a,
.wpcab-routes-container .route-list a {
    color: #2b529a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.15s ease, text-decoration 0.15s ease !important;
    display: inline-block !important;
    word-break: break-word !important;
    padding: 2px 0 !important;
}

.wpcab-popular-routes-card .route-grid a:hover,
.wpcab-routes-container .route-list a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .wpcab-popular-routes-card,
    .wpcab-routes-container .route-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px 24px !important;
    }

    .wpcab-popular-routes-card .route-grid,
    .wpcab-routes-container .route-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {

    html body .wpcab-popular-routes-wrapper,
    html body .wpcab-routes-container,
    .wpcab-popular-routes-wrapper,
    .wpcab-routes-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px auto !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
    }

    .wpcab-popular-routes-card,
    .wpcab-routes-container .route-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px !important;
        margin: 10px auto !important;
        border-radius: 12px !important;
    }

    .wpcab-popular-routes-card h3,
    .wpcab-routes-container h3 {
        font-size: 16px !important;
    }

    .wpcab-popular-routes-card .route-grid,
    .wpcab-routes-container .route-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px 14px !important;
    }

    .wpcab-popular-routes-card .route-grid a,
    .wpcab-routes-container .route-list a {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {

    .wpcab-popular-routes-card .route-grid,
    .wpcab-routes-container .route-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}