* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }


body { 
    overflow: hidden; 
    background-color: #f4f4f4; 
    height: 100vh; 
}

/* NAVBAR*/ 
.navbar { 
    background: #fff; height: 70px; display: flex; align-items: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 0 5%; position: sticky; top: 0; z-index: 1001; 
}
.nav-container { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 700; color: #000; text-transform: uppercase; letter-spacing: 1px; }
.logo span { color: #cc0000; }
.nav-links { list-style: none; display: flex; gap: 40px; align-items: center; margin: 0 auto; }
.nav-links a { text-decoration: none; color: #555; font-size: 15px; font-weight: 600; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #cc0000; }
.btn-nav-red, .btn-esnaf { 
    background: #cc0000 !important; color: #fff !important; padding: 10px 25px; border-radius: 8px; 
    cursor: pointer; border: none !important; font-weight: 600; text-decoration: none !important;
    transition: 0.3s; display: inline-block;
}
.btn-nav-red:hover, .btn-esnaf:hover { background: #a00000 !important; transform: translateY(-2px); }

/* HARİTA VE FİLTRELEME */
.filter-wrapper { position: absolute; top: 85px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; gap: 10px; background: rgba(255,255,255,0.95); padding: 10px 20px; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.filter-btn { border: 1px solid #eee; background: #fff; padding: 7px 15px; border-radius: 20px; cursor: pointer; font-size: 12px; transition: 0.2s; font-weight: 500; }
.filter-btn.active { background: #cc0000 !important; color: #fff !important; border-color: #cc0000 !important; }

/* Harita Boyutu */
#map { height: calc(100vh - 70px); width: 100%; z-index: 1; }

/* YAN PANEL*/
#side-panel {
    height: 100%;
    width: 0; 
    position: fixed; 
    z-index: 1002; 
    top: 0;
    right: 0; 
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.4s; 
    box-shadow: -5px 0 25px rgba(0,0,0,0.2); 
    padding-top: 80px; 
}

#side-panel.active {
    width: 350px; 
}

.close-panel {
    position: absolute;
    top: 15px; 
    right: 25px;
    font-size: 36px;
    color: #818181;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1003;
}
.close-panel:hover { color: #cc0000; }

#panel-content { padding: 0 20px 20px 20px; }

/* FIRSAT KART TASARIMI */
.firsat-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; overflow-y: auto; height: calc(100vh - 150px); }
.firsat-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; cursor: pointer; }
.firsat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.firsat-img { width: 100%; height: 180px; object-fit: cover; }
.firsat-content { padding: 20px; }
.firsat-badge { background: #fff5f5; color: #cc0000; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; margin-bottom: 10px; }
.firsat-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 8px; }
.firsat-text { font-size: 14px; color: #666; line-height: 1.5; }

/* HAKKIMIZDA */
.about-wrapper { max-width: 1000px; margin: 50px auto; padding: 40px; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat-card { padding: 30px; background: #fff5f5; border-radius: 15px; border: 1px solid #ffebeb; }

/* MODALLAR */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.modal-content { background: #fff; margin: 5% auto; padding: 40px 30px 30px 30px; border-radius: 15px; width: 450px; position: relative; text-align: center; }
.close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #999; }
.admin-modal { width: 400px !important; padding: 35px !important; }
.login-inputs-wide { display: flex; flex-direction: column; gap: 15px; margin: 25px 0; }
.login-inputs-wide input { width: 100% !important; padding: 14px 18px !important; border: 1px solid #ddd !important; border-radius: 12px !important; font-size: 15px !important; outline: none; background: #fdfdfd; }
.login-inputs-wide input:focus { border-color: #cc0000 !important; box-shadow: 0 0 8px rgba(204, 0, 0, 0.15); background: #fff; }
.admin-modal .btn-nav-red { width: 100% !important; padding: 15px !important; font-size: 16px !important; border-radius: 12px !important; margin-top: 5px; }

/* ESNAF PANELİ */
.wrapper { 
    width: 95% !important; max-width: 1400px !important; 
    height: calc(100vh - 85px) !important; 
    margin: 10px auto !important; 
    background: #fff; border-radius: 20px !important; 
    box-shadow: 0 5px 30px rgba(0,0,0,0.1) !important; 
    display: grid !important; 
    grid-template-columns: 350px 1fr !important; 
    overflow: hidden !important; position: relative;
}
.sidebar { padding: 20px; overflow-y: auto; }
.sidebar h2 { font-size: 18px !important; margin-bottom: 15px !important; color: #cc0000; text-align: center; }
.sidebar .form-group { margin-bottom: 12px !important; }
.sidebar label { font-size: 12px; font-weight: 600; color: #333; margin-bottom: 4px; display: block; }
.sidebar .form-control { width: 100%; padding: 8px 12px !important; font-size: 13px !important; border: 1px solid #ddd; border-radius: 8px; }
.wrapper #map { height: 100% !important; width: 100% !important; border-radius: 0 20px 20px 0; }



@media (max-width: 768px) {

    body {
        overflow-y: auto !important; 
        height: auto !important;
    }

    .navbar {
        height: auto !important;
        padding: 15px !important;
    }
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        gap: 10px;
        flex-wrap: wrap; 
        justify-content: center;
        padding: 0;
    }
    .nav-links li { margin: 5px 0; }
    
    .filter-wrapper {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
        box-shadow: none !important;
        background: transparent !important;
    }

    #map {
        height: 50vh !important;
    }

    #side-panel.active {
        width: 100% !important;
        z-index: 9999;
    }
    .close-panel {
        top: 20px;
        right: 20px;
    }

    .wrapper {
        display: flex !important; 
        flex-direction: column-reverse; 
        height: auto !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .sidebar {
        width: 100% !important;
        height: auto !important;
        border-right: none !important;
        padding-bottom: 50px;
    }

    .wrapper #map {
        height: 300px !important;
        border-radius: 0 !important;
    }
    
    .modal-content {
        width: 90% !important;
        margin: 20% auto !important;
        padding: 20px !important;
    }

    .firsat-container {
        padding: 10px;
        gap: 15px;
        height: auto !important;
    }
    .stats-grid {
        grid-template-columns: 1fr; 
    }
}