body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    height: 100vh;
    background-color: #f8f9fa;
    overflow: hidden;
}

h2 {
    display: none;
}

.sidebar {
    width: 320px;
    min-width: 320px;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    height: 100vh;
}

.sidebar-header {
    padding: 20px 15px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

.brand-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.sidebar-section {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #34495e;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-group.row {
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 12px;
    color: #555;
}

select,
input[type="text"] {
    padding: 6px 10px;
    width: 100%;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: 34px;
}

input[type="file"] {
    font-size: 12px;
    width: 100%;
    height: 30px;
}

button {
    height: 34px;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    width: 100%;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#map {
    flex: 1;
    height: 100vh;
    border: none;
    z-index: 1;
}

#loading {
    display: none;
    color: #e74c3c;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    padding: 10px;
}

/* YENİ POPUP STİLLERİ */
.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    width: 260px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px;
}

.popup-badge {
    background-color: #3bb2d0;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(59, 178, 208, 0.4);
}

.popup-date {
    color: #888;
    font-size: 12px;
    font-weight: 500;
}

.popup-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 0 20px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4f6f8;
    margin: 0 20px 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #444;
}

.popup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}

.popup-table tr {
    border-top: 1px solid #f0f0f0;
}

.popup-table td {
    padding: 8px 20px;
}

.popup-table td:first-child {
    color: #777;
    font-weight: 500;
    width: 45%;
}

.popup-table td:last-child {
    color: #222;
    font-weight: 600;
    text-align: right;
}

/* PARSEL YAZILARI */
.parcel-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
}

.parcel-label::before {
    display: none !important;
}

/* KATMAN KONTROLÜ */
.layer-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.layer-checkbox input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.layer-checkbox span {
    font-size: 14px;
    color: #444;
}