/* -------------------------------------------------------------
 * City Landing Page Custom Styles (Desh Parivahan)
 * Popular Truck Routes Table & Cross-Device Responsive Layout
 * Supports Desktop, Tablets, and Small Mobile Screens (320px - 1440px+)
 * ------------------------------------------------------------- */

/* ======== Popular Truck Routes Section ======== */
.popularRoutes_sec {
    padding: 80px 0;
    background-color: #ffffff;
}

.popularRoutes_sec .secSubtitle {
    color: #6c757d;
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.6;
}

.routesTableWrapper {
    margin-top: 40px;
    border: 1px solid #EDEDED;
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.routesTable {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 650px; /* Ensures clean readable layout without text squishing on mobile scroll */
}

.routesTable thead th {
    background-color: #FDF3E7;
    color: #212529;
    font-weight: 600;
    font-size: 16px;
    padding: 18px 24px;
    border: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.routesTable tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F1F1F1;
}

.routesTable tbody tr:hover {
    background-color: #FAFBFD;
}

.routesTable tbody td {
    padding: 20px 24px;
    vertical-align: middle;
    font-size: 15px;
    color: #495057;
    border-top: 1px solid #F1F1F1;
    line-height: 1.5;
}

.routeFromTo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #12926e;
    font-size: 16px;
    white-space: nowrap;
}

.routeFromTo .routeArrow {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.routeVehiclesText {
    font-size: 15px;
    color: #404040;
    font-weight: 400;
    display: inline-block;
}

/* ======== Tablet Devices (<= 991px) ======== */
@media (max-width: 991.999px) {
    /* Fix for Find Trucks & Goods section on Tablet (768px - 991px) */
    .findTruckGoods_sec {
        padding: 60px 0 40px;
        overflow-x: hidden;
    }

    .findTruckGoods_sec .leftSideImageBox {
        max-width: 480px;
        margin: 0 auto;
        position: relative;
    }

    .findTruckGoods_sec .leftSideImageBox .mainImage {
        max-width: 90%;
        max-height: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .findTruckGoods_sec .leftSideImageBox .animatedRoundImage {
        width: 100%;
        height: auto;
    }

    .findTruckGoods_sec .findTruckGoodsContent {
        text-align: center;
        margin-top: 20px;
    }

    .findTruckGoods_sec .findTruckGoodsContent .appDownloadBtnBox {
        justify-content: center;
        margin-top: 30px;
    }

    .popularRoutes_sec {
        padding: 60px 0;
    }

    .routesTable thead th,
    .routesTable tbody td {
        padding: 16px 20px;
        font-size: 14px;
    }

    .routeFromTo {
        font-size: 15px;
        gap: 10px;
    }
}

/* ======== Mobile Screen Landscape & Medium (<= 768px) ======== */
@media (max-width: 768px) {
    .popularRoutes_sec {
        padding: 45px 0;
    }

    .popularRoutes_sec .secSubtitle {
        font-size: 14px;
        margin-top: 8px;
    }

    .routesTableWrapper {
        margin-top: 25px;
        border-radius: 12px;
    }

    .routesTable thead th,
    .routesTable tbody td {
        padding: 14px 16px;
        font-size: 14px;
    }

    .routeFromTo {
        font-size: 14px;
        gap: 8px;
    }

    .routeVehiclesText {
        font-size: 14px;
    }
}

/* ======== Small Mobile Screen (<= 480px) ======== */
@media (max-width: 480px) {
    .popularRoutes_sec {
        padding: 35px 0;
    }

    .popularRoutes_sec .secSubtitle {
        font-size: 13px;
    }

    .routesTableWrapper {
        margin-top: 20px;
        border-radius: 10px;
    }

    .routesTable thead th,
    .routesTable tbody td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .routeFromTo {
        font-size: 13px;
        gap: 6px;
    }

    .routeFromTo .routeArrow svg {
        width: 18px;
        height: 10px;
    }

    .routeVehiclesText {
        font-size: 13px;
    }
}
