:root {
    /* Urban Clean Palette */
    --bus-primary: #1F3A5F;
    /* User: Header / Major Text */
    --bus-accent: #E11D48;
    /* Complementary Accent (Rose/Red for visibility) or maybe a blue-ish one? sticking to a safe accent if not specified, but BlueOcean had Orange. Let's use a nice bright Blue or maybe keep Orange/Gold for contrast? User didn't specify. Let's use a standard bright color for buttons/accents that fits Urban Clean. Maybe a Teal or just a lighter Blue? Let's stick to the BlueOcean structure but mapped. */
    /* Actually, for "Urban Clean", let's use a crisp Blue or just keep the Orange/Red for alerts? */
    /* Let's use #3B82F6 (Bright Blue) or similar. Or keep Orange for high contrast elements like buttons? */
    /* Let's define accent as a complementary or just a lighter shade of primary? No, buttons need contrast. */
    /* I'll use #E11D48 (Rose) for nice contrast with Navy, or maybe #F59E0B (Amber). Let's go with #F59E0B to match the "Bus" feel which often implies yellow/orange warnings. */
    --bus-accent: #F59E0B;

    --bus-bg: #F4F6F8;
    /* User: Background */
    --bus-text: #2B2E34;
    /* User: Main Text */
    --bus-border: #1F3A5F;
    --bus-subtext: #6B7280;
    /* User: Sub Text */
}

/* Global Font Application */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif !important;
    background-color: var(--bus-bg) !important;
    color: var(--bus-text) !important;
    line-height: 1.8 !important;
}

/* Headers */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: 'Noto Sans JP', sans-serif !important;
    color: var(--bus-primary) !important;
    letter-spacing: 0.05em;
    font-weight: 700 !important;
}

/* Text Contrast overrides */
.text-muted,
.small,
.text-secondary,
.text-slate-500,
.text-slate-600,
.text-slate-400 {
    color: var(--bus-subtext) !important;
}

/* --- Hero & Content Blocks --- */
.content-block {
    border: 1px solid #E5E7EB !important;
    border-radius: 1rem !important;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.map-illustration-card {
    max-width: 896px;
    border: 8px solid #ffffff !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Feature & Route Cards */
.feature-card,
.route-card,
.info-card {
    border: 1px solid #E5E7EB !important;
    border-radius: 1rem !important;
    background-color: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Hover effects */
.route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--bus-primary) !important;
}

/* Feature Icons */
.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.feature-icon-box.blue {
    background-color: #EFF6FF !important;
    color: var(--bus-primary) !important;
}

.feature-icon-box.orange {
    background-color: #FFF7ED !important;
    color: var(--bus-accent) !important;
}

.feature-icon-box.green {
    background-color: #F0FDF4 !important;
    color: #10B981 !important;
}

.feature-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: block;
}

/* Borders */
.border {
    border-color: #E5E7EB !important;
}

/* Cards generic */
.bg-white {
    background-color: #ffffff !important;
}

/* Route List Map Link */
section#routes a[href="map/"] {
    background-color: var(--bus-primary);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 0.5rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
}

section#routes a[href="map/"]:hover {
    background-color: #111827;
    /* Darker shade of primary */
}

/* Modern Route Cards */
.route-card-modern {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.route-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.route-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: #ccc;
    /* Default fallback */
}

/* Route Specific Colors */
.route-card-modern.route-blue::before {
    background-color: #007bff;
    /* Bright Blue */
}

.route-card-modern.route-orange::before {
    background-color: #fd7e14;
    /* Orange */
}

.route-card-body {
    padding: 20px 24px;
    padding-left: 34px;
    /* Space for left border */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Route Badges */
.route-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-right: 12px;
    color: #1F3A5F;
    background-color: #E2E8F0;
    /* Default */
}

.route-badge.blue {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.route-badge.orange {
    background-color: #FFEDD5;
    color: #9A3412;
}

.route-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1F3A5F;
    display: inline-block;
    vertical-align: middle;
}

.route-details {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #4B5563;
    font-weight: 600;
    line-height: 1.8;
}

/* Action Icon (Arrow in Circle) */
.route-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 15px;
}

.route-card-modern:hover .route-action-icon {
    transform: translateX(5px);
}

.route-action-icon.blue {
    background-color: #0056b3;
    /* Darker Blue */
}

.route-action-icon.orange {
    background-color: #ea580c;
    /* Darker Orange */
}

/* Full Map Button Override */
.btn-map-full {
    background-color: #1F3A5F !important;
    /* Dark Blue */
    color: #ffffff !important;
    border: none !important;
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s !important;
}

.btn-map-full:hover {
    background-color: #162a45 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Buttons */
select,
button,
.btn-primary {
    background-color: var(--bus-primary) !important;
    border-color: var(--bus-primary) !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    color: var(--bus-primary) !important;
    border-color: var(--bus-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--bus-primary) !important;
    color: #ffffff !important;
}

/* Header Override */
header {
    background-color: var(--bus-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

header h1,
header h2,
header h3,
header p,
header a,
header span {
    color: #ffffff !important;
    text-shadow: none !important;
}

header .navbar-brand {
    color: #ffffff !important;
}

header nav a {
    color: #E5E7EB !important;
    opacity: 0.9;
}

header nav a:hover {
    color: #ffffff !important;
    opacity: 1;
}

/* Footer Override (Redesign) */
footer {
    background: linear-gradient(135deg, #1F3A5F 0%, #162a45 100%) !important;
    /* Subtle gradient */
    color: #ffffff !important;
    border-top: none !important;
    padding-top: 60px;
    padding-bottom: 30px;
    margin-top: 60px;
}

.footer-top-section {
    padding-bottom: 40px;
}

footer h2.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    color: #ffffff !important;
    display: block;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contact-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.footer-contact-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #F59E0B;
    /* Orange/Gold accent */
    line-height: 1;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
}

.footer-divider {
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid #F59E0B;
    /* Accent line */
    margin-bottom: 30px;
    opacity: 0.7;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-nav-link {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    padding-left: 15px;
    /* for potential bullet */
}

.footer-nav-link::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.4);
}

.footer-nav-link:first-child::before {
    display: none;
    padding-left: 0;
}

.footer-nav-link:first-child {
    padding-left: 0;
}

.header-top-bar nav {
    display: flex;
    gap: 30px;
    /* Match footer gap */
    align-items: center;
}

.header-top-bar a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    /* Match footer font size */
    font-weight: bold;
    text-decoration: none;
    margin-left: 0;
    /* Remove old margin */
}

/* Texture overlay for subtle noise/paper feel if desired, skipping for now to keep it clean but using gradient on footer directly */


/* Map specific overrides */
#map-container {
    height: 600px;
    border: 1px solid #E5E7EB !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #D1D5DB;
    border-radius: 4px;
}

/* Bus Marker & Map Fixes */
.bus-marker-img-box img {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

#stop-list-container {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Header Override (Fixed Style) */
.site-header {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    position: fixed !important;
    /* Fixed position */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    padding-top: 0;
    /* Remove top padding */
}

.header-card {
    background-color: transparent;
    border-radius: 0;
    /* Square edges */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: visible;
    position: relative;
    border: none;
    width: 100%;
    margin: 0;
}

.header-top-bar {
    background-color: var(--bus-primary);
    color: #ffffff;
    border-radius: 0;
    /* Square edges */
    padding: 8px 0;
    /* Reduced padding */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 40px;
}

.header-main-area {
    padding: 15px 0;
    /* Vertical padding */
    background-color: #ffffff;
    border-radius: 0;
    /* Square edges */
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content-container {
    padding-left: 140px;
    /* Space for bus image */
    width: 100%;
    display: flex;
    align-items: center;
}

.header-bus-img {
    position: absolute;
    left: 0;
    /* Align with container start logic handled in HTML if possible, or fixed here */
    /* Since we want it relative to the container content, we might need a different approach.
       But for fixed header, let's keep it simple: It sits on the left of the main area.
       We will need to align it with the container in HTML or use calculation.
       Let's use a simple absolute position relative to the main area wrapper which will be container-aligned.
    */
    bottom: 10px;
    width: 120px;
    height: auto;

    z-index: 10;
}

/* Adjustments for fixed header spacing */
body {
    padding-top: 180px !important;
    /* Push content down */
}

/* Specific overrides for the text inside header */
.header-brand-title {
    font-size: 2rem !important;
    color: var(--bus-primary) !important;
    line-height: 1.2;
}

.header-brand-subtitle {
    font-size: 1rem !important;
    color: var(--bus-primary) !important;
    opacity: 0.8;
}

/* Catchphrase Section */
.hero-catchphrase-area {
    text-align: center;
    padding: 30px 20px;
}

.hero-catchphrase-text {
    font-size: 1.05rem;
    color: #1F3A5F !important;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Override existing navbar behavior if needed */
.navbar {
    padding: 0 !important;
}

/* Bus Marker */
.bus-marker-icon {
    background: none;
    border: none;
}

.bus-marker-base {
    position: relative;
    width: 60px;
    height: 60px;
    /* Centering handled by Leaflet iconAnchor */
}

.bus-marker-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    /* Removed white background */
    border: none;
    /* Removed border */
    box-shadow: none;
    /* Removed shadow if unwanted, or keep for depth? User said "white frame", implying background/border */
    /* box-shadow: 0 1px 2px rgba(0,0,0,0.3); Keeping shadow might look weird without background */
    overflow: visible;
    /* Changed to visible just in case */
    z-index: 1;
}

.bus-marker-img-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bus-marker-img-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile Header Optimization */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-container {
    display: none;
    position: fixed;
    top: 60px;
    /* Adjust based on header height */
    left: 0;
    width: 100%;
    background-color: var(--bus-primary);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-container.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-list {
    gap: 15px;
}

.mobile-nav-item {
    width: 100%;
}

.mobile-nav-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    flex-grow: 1;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-nav-toggle.active {
    transform: rotate(180deg);
}

.mobile-nav-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    /* Hidden by default */
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
}

.mobile-nav-sub-list.show {
    display: block;
}

.mobile-nav-sub-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 0 10px 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-sub-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {

    /* Hide Desktop Nav */
    .header-top-bar nav {
        display: none !important;
    }

    /* Show Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
    }

    /* Header Main Area Adjustments */
    .header-main-area {
        height: auto !important;
        /* Auto height for 2 lines */
        min-height: 70px !important;
        padding-top: 10px;
        padding-bottom: 10px;
        border-top: 5px solid var(--bus-primary) !important;
        /* Navy Border */
    }

    .header-bus-img {
        width: 60px !important;
        /* Smaller logo */
        bottom: 0 !important;
    }

    .header-content-container {
        padding-left: 70px !important;
        /* Adjust for smaller logo */
        display: flex;
        align-items: center;
        height: 100%;
    }

    .header-brand-title {
        font-size: 1.0rem !important;
        /* Slightly smaller for 2 lines */
        line-height: 1.2 !important;
        /* white-space: nowrap;  <-- Removed to allow wrapping */
    }

    .header-brand-title br {
        /* display: none; <-- Removed to allow wrapping */
    }

    .header-top-bar {
        position: absolute;
        top: 15px;
        /* Center vertically (70px height - 5px border - 44px button)/2 approx + border */
        right: 15px;
        width: auto;
        /* Shrink to fit button */
        background-color: transparent;
        /* Transparent background */
        padding: 0;
        z-index: 1040;
        /* Above main area */
    }

    .mobile-menu-btn {
        display: block;
        background-color: var(--bus-primary);
        /* Add background */
        border-radius: 4px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-card {
        padding-bottom: 0 !important;
    }

    /* Adjust catchphrase area spacing */
    main.container {
        padding-top: 1rem !important;
        /* Reduced padding */
    }

    /* Add space for fixed header in body */
    body {
        padding-top: 100px !important;
        /* Adjusted for 2-line title header */
    }
}

/* Guide Page Styles */
.guide-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.guide-intro {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

.text-highlight-orange {
    color: #f97316;
}

.text-highlight-blue {
    color: #0ea5e9;
}

.text-highlight-pink {
    color: #ec4899;
}

.guide-row {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 25px;
}

.guide-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.guide-label {
    background-color: #fef08a;
    /* Yellow-200 */
    color: #854d0e;
    /* Yellow-900 */
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 120px;
    text-align: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.guide-content {
    flex-grow: 1;
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
}

.guide-note {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.guide-sub-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.guide-sub-list li {
    margin-bottom: 5px;
    padding-left: 1.2em;
    text-indent: -1.2em;
}

@media (max-width: 768px) {
    .guide-row {
        flex-direction: column;
    }

    .guide-label {
        margin-bottom: 10px;
        width: 100%;
        text-align: left;
    }
}

/* Guide Page Styles */
.guide-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.guide-intro {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

.text-highlight-orange {
    color: #f97316;
}

.text-highlight-blue {
    color: #0ea5e9;
}

.text-highlight-pink {
    color: #ec4899;
}

.guide-row {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 25px;
}

.guide-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.guide-label {
    background-color: #fef08a;
    /* Yellow-200 */
    color: #854d0e;
    /* Yellow-900 */
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 120px;
    text-align: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.guide-content {
    flex-grow: 1;
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
}

.guide-note {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.guide-sub-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.guide-sub-list li {
    margin-bottom: 5px;
    padding-left: 1.2em;
    text-indent: -1.2em;
}

@media (max-width: 768px) {
    .guide-row {
        flex-direction: column;
    }

    .guide-label {
        margin-bottom: 10px;
        width: 100%;
        text-align: left;
    }
}

/* Contact Info Section Styles */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* Space between cards */
    margin-top: 50px;
    justify-content: center;
}

.contact-card {
    flex: 1 1 300px;
    /* Grow, shrink, basis */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Soft shadow for visibility */
    background-color: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.contact-card-header {
    padding: 15px 20px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.contact-card-body {
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-dept {
    font-size: 0.95rem;
    color: #555;
    font-weight: bold;
    display: block;
}

.contact-phone {
    font-size: 1.4rem;
    font-weight: 900;
    color: #333;
    font-family: 'Zen Maru Gothic', sans-serif;
    display: block;
    margin-top: 5px;
}

.contact-phone i {
    font-size: 1.1rem;
    margin-right: 8px;
    opacity: 0.7;
}

/* Color Variants */
.contact-card-orange {
    border-top: 5px solid #f97316;
}

.contact-card-orange .contact-card-header {
    background-color: #f97316;
}

.contact-card-orange .contact-phone {
    color: #f97316;
}

.contact-card-blue {
    border-top: 5px solid #0ea5e9;
}

.contact-card-blue .contact-card-header {
    background-color: #0ea5e9;
}

.contact-card-blue .contact-phone {
    color: #0ea5e9;
}

.contact-card-green {
    border-top: 5px solid #22c55e;
}

.contact-card-green .contact-card-header {
    background-color: #22c55e;
}

.contact-card-green .contact-phone {
    color: #22c55e;
}

@media (max-width: 768px) {
    .contact-row {
        flex-direction: column;
        gap: 15px;
        /* Reduced gap for mobile */
    }

    .contact-card {
        width: 100%;
        margin-bottom: 0;
        /* Let flex gap handle it, or use small margin if gap not supported */
    }

    .contact-card-header {
        font-size: 1.15rem;
        /* Slightly reduced to fit better if needed, but keeping large */
        padding: 8px 10px;
        /* Aggressively reduced */
        line-height: 1.2;
    }

    .contact-card-body {
        padding: 10px 10px;
        /* Aggressively reduced */
        gap: 0;
        /* Removing gap completely, controlling via margin/line-height */
    }

    .contact-dept {
        font-size: 1.0rem;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .contact-phone {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-top: 0;
    }

    .contact-phone i {
        font-size: 1.4rem;
        /* Adjust icon size to match */
    }
}

/* Timeline Stop List Styles */
#stop-list {
    padding: 0;
}

.stop-list-item {
    display: flex;
    position: relative;
    padding: 0;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    /* Light divider */
    background-color: #f8fafc;
    /* Default light gray for future/past? Reference shows white/gray diff */
    transition: all 0.2s ease;
}

.stop-list-item:last-child {
    border-bottom: none;
}

/* Marker Column */
.stop-marker-col {
    width: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    /* Align dot with text baseline roughly */
}

.stop-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0;
    z-index: 0;
}

.stop-list-item:first-child .stop-line {
    top: 20px;
    /* Start line at dot for first item */
}

.stop-list-item:last-child .stop-line {
    bottom: auto;
    height: 20px;
    /* End line at dot for last item */
}

.stop-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1;
    /* Default gray dot */
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cbd5e1;
    z-index: 1;
    position: relative;
}

/* Text Column */
.stop-text-col {
    flex-grow: 1;
    padding: 15px 15px 15px 0;
    display: flex;
    align-items: center;
}

.stop-name {
    font-size: 1rem;
    color: #64748b;
    /* Default gray text */
    font-weight: 500;
}

/* Past State */
.stop-state-passed .stop-name {
    color: #94a3b8;
}

/* Active (Next) State */
.stop-list-item.active {
    background-color: #fffbeb;
    /* Yellow-50 */
    border-left: 5px solid #f59e0b;
    /* Orange border */
}

.stop-list-item.active .stop-name {
    color: #2563eb;
    /* Blue text */
    font-weight: 700;
    font-size: 1.05rem;
}

.stop-list-item.active .stop-dot {
    background-color: #fff;
    border: 3px solid #f59e0b;
    /* Orange ring */
    box-shadow: none;
    width: 16px;
    height: 16px;
}

/* Bus Icon on Timeline */
.timeline-bus-icon {
    position: absolute;
    left: 50%;
    top: -10px;
    /* Position above the dot slightly */
    transform: translateX(-50%);
    z-index: 2;
    background-color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #f97316;
}

.timeline-bus-icon i {
    color: #f97316;
    font-size: 0.8rem;
}

/* =============================================
   Service List (Daily Schedule in Detail Panel)
   ============================================= */

.service-list-container {
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB #F9FAFB;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    background-color: #F9FAFB;
}

.service-list-container::-webkit-scrollbar {
    width: 6px;
}

.service-list-container::-webkit-scrollbar-track {
    background: #F9FAFB;
    border-radius: 3px;
}

.service-list-container::-webkit-scrollbar-thumb {
    background-color: #D1D5DB;
    border-radius: 3px;
}

.service-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #E5E7EB;
    border-left: 4px solid transparent;
    background-color: #F9FAFB;
    transition: background-color 0.15s ease, border-left-color 0.15s ease;
    gap: 10px;
}

.service-list-item:last-child {
    border-bottom: none;
}

.service-list-item:hover {
    background-color: #EFF6FF;
    border-left-color: #93C5FD;
}

/* Active (currently selected) service */
.service-list-item.is-active {
    background-color: #EFF6FF !important;
    border-left-color: var(--bus-primary) !important;
}

.service-list-item.is-active .service-item-name {
    color: var(--bus-primary) !important;
    font-weight: 800 !important;
}

.service-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.service-item-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    font-family: 'Noto Sans JP', sans-serif;
    min-width: 48px;
}

.service-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-item-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.service-item-badge.badge-running {
    background-color: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}

.service-item-badge.badge-completed {
    background-color: #F3F4F6;
    color: #9CA3AF;
    border: 1px solid #E5E7EB;
}

.service-item-badge.badge-scheduled {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

/* Dim completed items slightly */
.service-list-item.status-completed .service-item-time,
.service-list-item.status-completed .service-item-name {
    color: #9CA3AF !important;
}
