/* Ana stil dosyası */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.header {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.header i {
    color: #007bff;
}

.right-sidebar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.menu-button {
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.menu-button:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

.menu-button.active {
    background: #007bff;
    color: white;
}

.menu-panel {
    position: absolute;
    top: 70px;
    right: 10px;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.menu-panel.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
}

.map-type-option {
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.map-type-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.map-type-option.active {
    border-color: #007bff;
    background: #e7f3ff;
}

.map-type-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    color: #007bff;
}

.layer-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s;
}

.layer-item:hover {
    background: #f8f9fa;
}

.layer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.layer-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.layer-name {
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.layer-count {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85em;
    min-width: 40px;
    text-align: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.info-panel {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 350px;
    max-height: 300px;
    overflow-y: auto;
}

.info-title {
    color: #007bff;
    margin-bottom: 12px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coordinate-display {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.property-table tr {
    border-bottom: 1px solid #eee;
}

.property-table td {
    padding: 8px 4px;
}

.property-key {
    font-weight: 600;
    color: #495057;
    width: 40%;
}

.loading-status {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    gap: 6px;
}

.tool-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.tool-btn i {
    font-size: 20px;
    color: #007bff;
}

.refresh-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
}

.refresh-btn:hover {
    background: #0056b3;
}

/* E-İMAR POPUP STİLLERİ */
.eimar-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.eimar-popup-container {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.eimar-left-panel {
    width: 400px;
    background: #f8f9fa;
    padding: 25px;
    border-right: 2px solid #e9ecef;
    overflow-y: auto;
}

.eimar-right-panel {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow-y: auto;
    max-height: 100%;
}

.eimar-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 20px;
}

.eimar-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.eimar-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0 5px 0;
}

.eimar-subtitle {
    color: #007bff;
    font-size: 18px;
    font-weight: 500;
}

.eimar-website {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

.eimar-form-group {
    margin-bottom: 20px;
}

.eimar-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.eimar-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.eimar-form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.eimar-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.eimar-col {
    flex: 1;
}

.eimar-button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.eimar-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.eimar-btn-primary {
    background: #007bff;
    color: white;
}

.eimar-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.eimar-btn-secondary {
    background: #6c757d;
    color: white;
}

.eimar-btn-secondary:hover {
    background: #545b62;
}

.eimar-btn-danger {
    background: #dc3545;
    color: white;
}

.eimar-btn-danger:hover {
    background: #c82333;
}

.eimar-btn-success {
    background: #28a745;
    color: white;
}

.eimar-btn-success:hover {
    background: #218838;
}

.eimar-btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
}

.eimar-btn-close:hover {
    background: #c82333;
    transform: rotate(90deg);
}

.eimar-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.eimar-table-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.eimar-table {
    width: 100%;
    border-collapse: collapse;
}

.eimar-table th {
    background: #2c3e50;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.eimar-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.eimar-table tr:last-child td {
    border-bottom: none;
}

.eimar-table tr:hover td {
    background: #f8f9fa;
}

.eimar-field-value {
    font-weight: 600;
    color: #007bff;
}

.eimar-map-container {
    height: 300px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
}

.eimar-map-inner {
    width: 100%;
    height: 100%;
}

.eimar-a4-container {
    background: white;
    border: 2px dashed #6c757d;
    border-radius: 8px;
    padding: 25px;
    margin: 20px;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.eimar-a4-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px double #007bff;
}

.parcel-visualization {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.parcel-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.parcel-map {
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: #6c757d;
    font-weight: 600;
}

.overlap-analysis {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.overlap-title {
    color: #856404;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overlap-result {
    font-size: 14px;
    color: #495057;
    margin-bottom: 10px;
}

.overlap-layer {
    background: white;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 4px solid #007bff;
}

.overlap-percentage {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

.overlap-high {
    background: #dc3545;
}

.overlap-medium {
    background: #ffc107;
    color: #212529;
}

.main-map-container {
    height: 300px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px;
    position: relative;
    border-top: 3px solid #2c3e50;
}

.main-map-header {
    padding: 10px 15px;
    background: #2c3e50;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px 8px 0 0;
}

.main-map-inner {
    width: 100%;
    height: calc(100% - 42px);
}

/* Point etiketleri için stiller */
.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

.point-label, .eimar-point-label {
    z-index: 1000 !important;
}

/* Konuma Git butonu için stil */
.location-control {
    position: absolute;
    top: 90px;
    left: 10px;
    z-index: 1000;
}

.location-btn {
    background: white;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #007bff;
    font-size: 18px;
    transition: all 0.3s;
}

.location-btn:hover {
    background: #007bff;
    color: white;
    transform: scale(1.05);
}

.location-btn.active {
    background: #007bff;
    color: white;
}

.user-location-marker {
    width: 12px;
    height: 12px;
    background-color: #007bff;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,123,255,0.5);
}

.location-accuracy-circle {
    fill: none;
    stroke: #007bff;
    stroke-width: 2;
    stroke-opacity: 0.3;
    fill-opacity: 0.1;
    fill: #007bff;
}

/* Şeffaflık kontrolü için stiller */
.opacity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.opacity-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, rgba(0,0,0,0), currentColor);
    border-radius: 3px;
    outline: none;
}

.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid currentColor;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.opacity-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid currentColor;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.opacity-value {
    font-size: 12px;
    min-width: 30px;
    text-align: center;
    color: #495057;
    font-weight: 500;
}

.layer-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Tüm katmanlar şeffaflık kontrolü */
.all-layers-opacity {
    padding: 15px;
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
}

.all-layers-opacity-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-layers-opacity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.all-layers-opacity-slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #e9ecef, #007bff);
    border-radius: 4px;
    outline: none;
}

.all-layers-opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #007bff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.all-layers-opacity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #007bff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.all-layers-opacity-value {
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    color: #007bff;
    font-weight: 600;
}

/* Ölçüm paneli stilleri */
.measurement-panel {
    position: absolute;
    top: 70px;
    right: 10px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.measurement-panel.active {
    display: block;
    animation: slideIn 0.3s ease;
}

.measurement-controls {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.measurement-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.measurement-btn {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.measurement-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.measurement-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.measurement-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.action-btn-primary {
    background: #28a745;
    color: white;
}

.action-btn-primary:hover {
    background: #218838;
}

.action-btn-secondary {
    background: #6c757d;
    color: white;
}

.action-btn-secondary:hover {
    background: #5a6268;
}

.action-btn-danger {
    background: #dc3545;
    color: white;
}

.action-btn-danger:hover {
    background: #c82333;
}

.measurement-results {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    padding: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.result-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-value {
    font-size: 14px;
    color: #495057;
}

.result-details {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.measurement-hint {
    padding: 10px 15px;
    background: #e7f3ff;
    border-radius: 6px;
    margin: 10px 15px;
    font-size: 13px;
    color: #004085;
    border-left: 4px solid #007bff;
}

.measurement-instruction {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
    text-align: center;
}

.coordinate-list {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 5px;
}

.coordinate-item {
    padding: 5px 8px;
    font-size: 12px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
}

.coordinate-item:last-child {
    border-bottom: none;
}

/* Ölçüm için özel cursor */
.measurement-cursor {
    cursor: crosshair !important;
}

.measurement-marker {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}