/* ========================================
   TRANSPORT PAGE STYLES
   ======================================== */

/* Hero Section Wrapper */
.transport-hero-wrapper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Hero Section */
.transport-hero {
    position: relative;
    background: linear-gradient(to right, #0d6efd 0%, #0d6efd 100%);
    height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
}

.transport-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(13, 110, 253, 0.9) 0%, rgba(13, 110, 253, 0.5) 100%);
    z-index: 1;
}

.transport-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

/* Route Cards */
.transport-route-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.transport-card-header {
    background: linear-gradient(to right, rgba(13, 110, 253, 0.05) 0%, rgba(0, 188, 212, 0.05) 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem;
}

.route-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.route-header-top .badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #212529;
}

/* Schedule Info */
.schedule-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.schedule-item strong {
    color: #212529;
    margin-left: 0.25rem;
}

/* Fare Info */
.fare-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.fare-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fare-item strong {
    color: #198754;
    margin-left: 0.25rem;
    font-weight: 600;
}

/* Stops Info */
.stops-info {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.stops-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.stops-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stop-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 0;
    padding-left: 1.5rem;
    position: relative;
}

.stop-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0d6efd;
    font-weight: bold;
}

/* Tabs */
.transport-tabs {
    border-bottom: 2px solid #e9ecef;
    gap: 0.5rem;
}

.transport-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.transport-tabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.transport-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: transparent;
}

/* Schedule Tables */
.table-responsive {
    border-radius: 0 0 8px 8px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    font-weight: 600;
    color: #495057;
    padding: 1rem 0.75rem;
}

.table tbody tr {
    border-color: #e9ecef;
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

/* Route Info Box */
.route-info-box {
    background: linear-gradient(to right, rgba(13, 110, 253, 0.05) 0%, rgba(0, 188, 212, 0.05) 100%);
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
    padding: 1rem;
}

.route-info-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.route-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 6px;
    color: #0d6efd;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Info Cards */
.info-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.info-card .card-header {
    background: linear-gradient(to right, rgba(13, 110, 253, 0.05) 0%, rgba(0, 188, 212, 0.05) 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem;
}

.info-card .card-title {
    color: #0d6efd;
    margin-bottom: 0;
}

.important-info-card .card-header {
    border-left: 5px solid #0d6efd;
}

.contacts-card .card-header {
    border-left: 5px solid #0d6efd;
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0d6efd;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Contacts List */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.contact-value {
    color: #0d6efd;
    font-size: 1rem;
}

.contact-value a {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-value a:hover {
    text-decoration: underline;
}

/* Company Cards */
.company-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.company-card-header {
    background: linear-gradient(to right, rgba(13, 110, 253, 0.05) 0%, rgba(0, 188, 212, 0.05) 100%);
    border-bottom: 1px solid #e9ecef;
    border-left: 5px solid #0d6efd;
    padding: 1.25rem;
    text-align: center;
}

.company-card-header .card-title {
    color: #0d6efd;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.company-logo {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-section .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0;
}

.contact-section .contact-item i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-section .contact-label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.1rem;
}

.contact-section .contact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
}

.contact-section .contact-value a {
    color: #0d6efd;
    text-decoration: none;
    word-break: break-all;
}

.contact-section .contact-value a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

.company-card .card-footer {
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.company-card .card-footer .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
}

/* Responsive Wrapper Padding */
@media (min-width: 576px) {
    .transport-hero-wrapper {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 768px) {
    .transport-hero-wrapper {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 992px) {
    .transport-hero-wrapper {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1200px) {
    .transport-hero-wrapper {
        max-width: 1320px;
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

@media (min-width: 1400px) {
    .transport-hero-wrapper {
        max-width: 1400px;
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

@media (min-width: 1600px) {
    .transport-hero-wrapper {
        max-width: 1500px;
        padding-left: 7rem;
        padding-right: 7rem;
    }
}

/* Responsive Hero Height */
@media (max-width: 992px) {
    .transport-hero {
        height: 300px;
        border-radius: 6px;
    }

    .hero-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .hero-icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

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

@media (max-width: 768px) {
    .transport-hero {
        height: 280px;
        border-radius: 6px;
    }

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

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

    .hero-header {
        gap: 1rem;
    }

    .hero-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .route-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .route-header-top .badge {
        display: inline-block;
    }

    .transport-tabs {
        gap: 0;
        flex-wrap: wrap;
    }

    .transport-tabs .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .table thead th {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }

    .table tbody td {
        font-size: 0.85rem;
        padding: 0.6rem 0.5rem;
    }

    .route-info-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-list li {
        font-size: 0.9rem;
        padding-left: 1.25rem;
    }

    .contact-item {
        gap: 0.2rem;
    }

    .contact-label {
        font-size: 0.85rem;
    }

    .contact-value {
        font-size: 0.95rem;
    }

    .company-card-header {
        padding: 1rem;
    }

    .company-logo {
        max-height: 70px;
        margin-bottom: 0.75rem;
    }

    .contact-section .contact-item {
        padding: 0.6rem;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .transport-hero {
        height: 250px;
        border-radius: 4px;
    }

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

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

    .lead {
        font-size: 0.95rem !important;
    }

    .hero-header {
        gap: 0.75rem;
    }

    .hero-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .transport-route-card {
        border-radius: 8px;
    }

    .transport-card-header {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .transport-tabs {
        margin-bottom: 1rem;
    }

    .transport-tabs .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .transport-tabs i {
        font-size: 0.9rem;
    }

    .table thead th {
        font-size: 0.75rem;
        padding: 0.5rem 0.4rem;
    }

    .table tbody td {
        font-size: 0.8rem;
        padding: 0.5rem 0.4rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .info-card {
        margin-bottom: 1rem;
    }

    .row.g-4 > * {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .schedule-info {
        gap: 0.5rem;
    }

    .schedule-item {
        font-size: 0.85rem;
    }

    .fare-info {
        gap: 0.5rem;
    }

    .fare-item {
        font-size: 0.85rem;
    }

    .stops-header {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .stop-item {
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }

    .info-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        padding-left: 1.1rem;
    }

    .route-info-box {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .route-info-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .contact-label {
        font-size: 0.8rem;
    }

    .contact-value {
        font-size: 0.9rem;
    }

    .company-card {
        border-radius: 8px;
    }

    .company-card-header {
        padding: 0.75rem;
    }

    .company-card-header .card-title {
        font-size: 0.95rem;
    }

    .company-logo {
        max-height: 60px;
        margin-bottom: 0.5rem;
    }

    .contact-section {
        gap: 0.5rem;
    }

    .contact-section .contact-item {
        padding: 0.5rem;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .contact-section .contact-label {
        font-size: 0.75rem;
    }

    .contact-section .contact-value {
        font-size: 0.85rem;
    }

    .company-card .card-footer {
        padding: 0.5rem 0.75rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .transport-route-card,
    .transport-tabs .nav-link,
    .info-card,
    .table tbody tr {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .transport-hero {
        display: none;
    }

    .transport-route-card:hover,
    .info-card:hover {
        box-shadow: none;
        transform: none;
    }

    .transport-tabs .nav-link.active::after {
        content: '';
    }
}
