/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #d32f2f;
    --secondary-color: #c62828;
    --futa-orange: #d32f2f;
    --futa-orange-dark: #c62828;
    --text-dark: #2d3748;
}

/* ==================== BODY ==================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Be Vietnam Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

/* ==================== FUTA NAVBAR ==================== */
.futa-navbar {
    background: linear-gradient(135deg, #c62828 0%, #d32f2f 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.futa-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1400px;
}

/* Logo Section - Left */
.futa-logo-section {
    background: white;
    padding: 8px 20px;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 25px;
}

.futa-logo-section .logo-icon {
    font-size: 1.6rem;
    color: #d32f2f;
}

.futa-logo-section .logo-text .logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d32f2f;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.futa-logo-section .logo-text .logo-subtitle {
    font-size: 0.6rem;
    color: #0d5c2e;
    font-weight: 600;
    margin: 2px 0 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Menu Items - Center */
.futa-navbar .navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.futa-navbar .nav-item {
    margin: 0;
}

.futa-navbar .nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 16px 14px !important;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
}

.futa-navbar .nav-link:hover {
    background: rgba(255,255,255,0.12);
    border-bottom-color: white;
}

.futa-navbar .nav-link.active {
    background: rgba(255,255,255,0.18);
    border-bottom-color: white;
}

/* Login Button - Right (inherits from global.css) */
.futa-login-btn {
    background: white !important;
    color: var(--futa-orange) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 20px !important;
    border-radius: 20px !important;
    border: 2px solid white !important;
    transition: all 0.2s ease;
    margin-left: 12px;
    text-transform: none;
    white-space: nowrap;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.futa-login-btn:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mobile Toggle */
.navbar-toggler {
    border: 2px solid white;
    padding: 6px 10px;
    background: transparent;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== HERO BANNER ==================== */
.hero-section {
    background: linear-gradient(135deg, #9b1a1a 0%, #d32f2f 50%, #b71c1c 100%);
    padding: 60px 20px 80px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-banner-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-banner-content {
    text-align: center;
    padding: 10px 0 4px;
}

.hero-banner-title {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 16px rgba(0,0,0,0.25);
}

.hero-banner-title i {
    font-family: 'Font Awesome 6 Free';
    font-size: 2rem;
    margin-right: 12px;
    opacity: 0.9;
    vertical-align: middle;
}

.hero-banner-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    margin: 0 0 15px;
    letter-spacing: 0.3px;
}

.hero-banner-card img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 0;
}

.search-box {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.search-box h3 {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-weight: 800;
    color: #1a1a2e;
    font-size: 1.6rem;
    letter-spacing: -0.3px;
}
@media (max-width: 576px) {
    .search-box h3 { font-size: 1.15rem; letter-spacing: 0; }
    .search-box { padding: 20px 16px; }
}

.search-box .form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.search-box .form-control,
.search-box .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--futa-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-search {
    background: linear-gradient(135deg, var(--futa-orange), var(--futa-orange-dark));
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: linear-gradient(135deg, #b71c1c, #b71c1c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-reset {
    background: #6c757d;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #5a6268;
    color: white;
}

/* ==================== SCHEDULES SECTION ==================== */
.schedules-section {
    background: #f8f9fa;
    padding: 40px 0 60px;
}

.schedules-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 0;
}

/* Schedule Cards */
.schedule-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.schedule-card .card-body {
    padding: 20px;
    border-left: 5px solid var(--futa-orange);
    border-radius: 0 0 15px 15px;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.schedule-card .route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.schedule-card .location {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    flex: 1;
}

.schedule-card .arrow {
    color: var(--futa-orange);
    font-size: 1.5rem;
    margin: 0 15px;
}

.schedule-card .info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #4a5568;
}

.schedule-card .info-row i {
    width: 25px;
    color: var(--futa-orange);
    margin-right: 10px;
}

.schedule-card .price {
    background: linear-gradient(135deg, var(--futa-orange), var(--secondary-color));
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 15px;
}

.schedule-card .note {
    background: #f7fafc;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

.schedule-card .btn-detail {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: white;
    border: 2px solid var(--futa-orange);
    color: var(--futa-orange);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.schedule-card .btn-detail:hover {
    background: var(--futa-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ==================== LOADING ==================== */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-text {
    font-size: 1.2rem;
    color: #718096;
    font-weight: 500;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    color: #718096;
}

/* ==================== MODAL DETAIL ==================== */
.modal-detail .modal-content {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.modal-detail .modal-header {
    background: linear-gradient(135deg, var(--futa-orange), var(--futa-orange-dark));
    color: white;
    padding: 20px 30px;
    border: none;
}

.modal-detail .modal-header h5 {
    font-weight: bold;
    margin: 0;
}

.modal-detail .modal-body {
    padding: 30px;
}

.vehicle-image-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-image-container .no-image {
    text-align: center;
    color: #cbd5e0;
}

.vehicle-image-container .no-image i {
    font-size: 4rem;
    margin-bottom: 10px;
    display: block;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h6 {
    color: var(--futa-orange);
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
}

.detail-row i {
    width: 30px;
    color: var(--futa-orange);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.detail-row .label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 120px;
}

.detail-row .value {
    color: #4a5568;
    flex: 1;
}

.vehicle-type-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--futa-orange), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.price-highlight {
    font-size: 2rem;
    font-weight: bold;
    color: var(--futa-orange);
    text-align: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    margin: 20px 0;
}

.modal-detail .btn-close {
    filter: brightness(0) invert(1);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .futa-navbar .container {
        flex-wrap: wrap;
    }
    
    .futa-logo-section {
        margin-right: auto;
        border-radius: 0 0 18px 18px;
        padding: 7px 16px;
    }
    
    .futa-logo-section .logo-icon {
        font-size: 1.4rem;
    }
    
    .futa-logo-section .logo-text .logo-title {
        font-size: 1rem;
    }
    
    .futa-logo-section .logo-text .logo-subtitle {
        font-size: 0.55rem;
    }
    
    .navbar-collapse {
        width: 100%;
        background: rgba(0,0,0,0.05);
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .futa-navbar .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .futa-navbar .nav-link {
        padding: 12px 18px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-left: 2px solid transparent;
    }
    
    .futa-navbar .nav-link:hover,
    .futa-navbar .nav-link.active {
        border-left-color: white;
        border-bottom-color: transparent;
    }
    
    .futa-login-btn {
        margin: 10px 18px !important;
        text-align: center;
    }
    
    .hero-section {
        padding: 20px 15px 40px;
    }
    
    .hero-banner-card {
        max-height: 250px;
    }
    
    .hero-banner-content {
        padding: 20px 20px 15px;
    }
    
    .hero-banner-title {
        font-size: 1.6rem;
        letter-spacing: 0.8px;
    }
    
    .hero-banner-subtitle {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .hero-banner-card img {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .schedules-container {
        grid-template-columns: 1fr;
    }
    
    .search-section {
        padding: 40px 0;
    }
    
    .search-box {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .hero-banner-card {
        max-height: 200px;
    }
    
    .hero-banner-content {
        padding: 18px 15px 12px;
    }
    
    .hero-banner-title {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }
    
    .hero-banner-subtitle {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .hero-banner-card img {
        max-height: 200px;
    }
}
