﻿:root {
    color-scheme: light;
}
html, body {
    overflow-x: hidden;
    color-scheme: light !important;
}
body {
    background: #f5f7fb;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    padding-bottom:90px;

}

.navbar {
    backdrop-filter: blur(10px);
}

.navbar-custom {
    background: #3b5998;
}

    .navbar-custom .nav-link {
        color: white !important;
    }

/* ========================= */
/* 🎴 CARD */
/* ========================= */

.card-modern {
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: 0.2s;
}

    .card-modern:hover {
        transform: translateY(-3px);
    }

/* ========================= */
/* 🧾 BADGE */
/* ========================= */

.badge-soft-success {
    background: rgba(25,135,84,.1);
    color: #198754;
}

.badge-soft-danger {
    background: rgba(220,53,69,.1);
    color: #dc3545;
}

/* ========================= */
/* 🚍 EVENT */
/* ========================= */

.event-wrapper {
    display: flex;
    flex-direction: column;
}

.event-img-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
}

.event-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 4px solid #fff;
    border-radius: 16px;
}

/* ========================= */
/* 💊 ECZANE */
/* ========================= */

.eczane-card {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.2s;
}
    .eczane-card:hover {
        transform: translateY(-3px);
    }

    .eczane-card .btn {
        border-radius: 10px;
        font-size: 13px;
    }

/* ========================= */
/* 📢 DUYURU */
/* ========================= */

.duyuru-card {
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* ========================= */
/* 📱 MOBILE MENU */
/* ========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #3b5998;
    color: white;
    z-index: 9999;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

    .mobile-menu.active {
        left: 0;
    }

.menu-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    color: white;
    text-decoration: none;
}

/* kapatma */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* overlay */
#menuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
}

    #menuOverlay.active {
        display: block;
    }

/* ========================= */
/* 📱 MOBILE BOTTOM FIX */
/* ========================= */

.mobile-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 65px;
    background: #3b5998;
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
    z-index: 99999;
    border-radius: 18px 18px 0 0;
}

    /* linkler */
    .mobile-bottom a {
        flex: 1;
        text-align: center;
        color: #fff;
        text-decoration: none;
        font-size: 11px;
    }

    /* ikon */
    .mobile-bottom i {
        display: block;
        font-size: 20px;
        margin-bottom: 3px;
    }
    .mobile-bottom .nav-item {
        display: flex;
        flex-direction: column; /* 🔥 ALT ALTA */
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        font-size: 11px;
    }


/* ========================= */
/* 📱 MOBILE ONLY */
/* ========================= */

@media (max-width: 768px) {

    .mobile-menu {
        display: flex;
    }

    .mobile-bottom {
        display: flex;
    }
}

/* ========================= */
/* 💻 DESKTOP ONLY */
/* ========================= */

@media (min-width: 769px) {

    .mobile-menu,
    .mobile-bottom,
    #menuOverlay {
        display: none !important;
    }
}

.call-btn {
    position: fixed;
    bottom: 80px; 
    right: 15px;
    width: 55px;
    height: 55px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 9999;
}


/* ortak kart */
.stat-card {
    border-radius: 16px;
    border: none;
    height: 70px; /* 🔥 search ile aynı */
    color: white;
}

/* kırmızı */
.stat-red {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

/* yeşil */
.stat-green {
    background: linear-gradient(135deg, #198754, #51cf66);
}

/* başlık */
.stat-title {
    font-size: 12px;
    opacity: 0.9;
}

/* sayı */
.stat-number {
    font-size: 20px;
    font-weight: 600;
}

/* ikon */
.stat-icon {
    font-size: 26px;
    opacity: 0.8;
}



.liman-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.servis-card {
    border-radius: 12px;
    border: 1px solid #eee;
    transition: 0.2s;
    background: #fafafa;
}

    .servis-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.time-badge {
    min-width: 65px;
    text-align: center;
    font-size: 13px;
}

.servis-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* 🔥 mobil fix */
@media (max-width: 576px) {

    .servis-flex {
        flex-direction: column;
        align-items: flex-start;
    }

        .servis-flex .d-flex.align-items-center {
            width: 100%;
        }

        .servis-flex .d-flex.flex-column {
            width: 100%;
            align-items: flex-start !important;
        }
}

/* saat container */
.servis-times {
    display: flex;
    gap: 10px;
}

/* kutu */
.time-box {
    min-width: 85px;
    padding: 8px 10px;
    border-radius: 12px;
    text-align: center;
}

/* label */
.time-label {
    font-size: 11px;
    opacity: 0.8;
}

/* saat */
.time-value {
    font-size: 16px;
    font-weight: 600;
}

/* üniversite */
.time-box.uni {
    background: #e6f4ea;
    color: #198754;
}

/* terminal */
.time-box.ter {
    background: #e7f1ff;
    color: #0d6efd;
}
@media (max-width: 576px) {

    .servis-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .servis-times {
        width: 100%;
        justify-content: space-between;
    }

    .time-box {
        flex: 1;
    }
}

.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.submenu {
    display: none;
    padding-left: 10px;
}

.menu-dropdown.active .submenu {
    display: block;
}

.menu-sublink {
    display: block;
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

.contact-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    transition: 0.2s;
}

    .contact-item i {
        font-size: 18px;
        color: #3b5998;
    }

    .contact-item:hover {
        background: #f8f9fa;
    }

#mapWrapper {
    position: relative;
    height: 100%;
    padding-bottom: 65px;
}
@media (max-width: 900px) {
    #mapWrapper {
        padding-bottom: 115px;
    }
}
.map-normal {
    position: relative !important;
    height: 350px !important;
    width: 100%;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}
.map-fullscreen {
    position: fixed;
    inset: 0; 
    width: 100vw;
    height: 100vh;
}
.leaflet-popup-content {
    margin: 8px 12px;
}
.leaflet-control-zoom a {
    background: #fff !important;
    color: #000 !important;
    display: block !important;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 18px;
    border-radius: 4px;
}

.leaflet-control-zoom {
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.popup-card {
    min-width: 160px;
}

.popup-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.popup-id {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 6px;
}

.popup-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #dc3545; /* 🔥 kırmızı */
    color: #fff;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

    .popup-btn:hover {
        background: #bb2d3b; /* 🔥 koyu kırmızı */
    }

.leaflet-container a {
    color: white;
}

/* 🔥 BUTON CONTAINER */
.tab-buttons {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0; /* 🔥 width yerine bunu kullan */
    height: 60px;
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: hidden; /* 🔥 scroll kapat */
    box-sizing: border-box; /* 🔥 taşmayı engeller */

    background: #f5f7fb;
}

/* 🔥 BUTON */
.tab-btn {
    flex: 1;
    min-width: 100px;
    border: none;
    border-radius: 20px;
    padding: 10px;
    font-size: 14px;
    background: #e9ecef;
    color: #333;
    transition: 0.2s;
}

    /* ACTIVE */
    .tab-btn.active {
        background: #f4c430;
        color: #000;
        font-weight: 600;
    }

    /* HOVER */
    .tab-btn:hover {
        background: #dee2e6;
    }

/* CONTENT */
.tab-content {
    position: absolute;
    top: 130px;
    bottom: 85px;
    left: 0;
    right: 0;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    padding-bottom: 80px;
}

.active-content {
    display: flex;
    flex-direction: column;
    opacity: 1;
    pointer-events: auto; /* 🔥 KRİTİK */
}

/* MAP */
#mapTab {
    flex: 1;
    display: flex;
    height: 100%;
}

#mapOtobus {
    flex: 1;
    width: 100%;
    height: 100%;
}

#saatTab,
#durakTab {
    width: 100%;
    height: 100%;
    
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-bottom:135px;
}

.kolon {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.headerSaat {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.subheaderSaat {
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

.cardSaat {
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.saat {
    font-size: 16px;
    font-weight: bold;
}

.aciklama {
    font-size: 11px;
    opacity: 0.8;
}

/* MOBİL */
@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (prefers-color-scheme: dark) {
    html {
        color-scheme: light;
    }
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: visible; /* 🔥 EKLE */
}


@media (min-width: 900px) {
    .main-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .blok {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .saat {
        font-size: 14px;
    }

    .cardSaat div {
        font-size: 11px;
    }

    .aciklama {
        font-size: 10px;
    }


    .cardSaat {
        padding: 8px;
    }

        .cardSaat div {
            word-break: break-word;
        }
}
.map-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #d62d20;
    color: #f7f7f7;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    pointer-events: none; /* 🔥 haritayı engellemez */
}

/* CONTAINER */
.durak-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    padding-bottom:135px;
    height: auto; /* üst header'a göre ayarla */
}

/* CARD */
.durak-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset; /* 🔥 scroll fix */
}

/* HEADER */
.durak-header {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

/* DURAK LİSTESİ */
.durak-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1; /* 🔥 kalan alanı kapla */
    overflow: visible;
    min-height: 0; /* 🔥 scroll fix */
    padding-right: 4px;
}

/* DURAK ITEM */
.durak-item {
    display: block; /* 🔥 taşma fix */
    width: 100%;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #f5f5f5;
    transition: all 0.2s ease;
}

    .durak-item:hover {
        background: #007bff;
        color: #fff;
        transform: translateX(3px);
    }

/* Tablet */
@media (max-width: 900px) {
    .durak-container {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
}

/* Mobil */
@media (max-width: 600px) {
    .durak-container {
        grid-template-columns: 1fr;
        
        height: auto;
    }

    
}