body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

#map {
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* Modern Query Panel - Horizontal Top Layout */
.query-panel {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 95vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.panel-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-header h2 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Harita ikonu ekle (CSS ile) */
.panel-header h2::before {
    content: '🔍';
    font-size: 16px;
}

.panel-content {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    /* Küçük ekranlarda sarması için */
    align-items: flex-end;
    /* Butonla aynı hizaya gelsin */
    gap: 12px;
    justify-content: center;
}

.form-group {
    margin: 0;
    width: auto;
    min-width: 140px;
    /* Her bir input için minimum genişlik */
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 8px 12px;
    /* Daha kompakt */
    height: 38px;
    /* Sabit yükseklik */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    box-sizing: border-box;
    transition: all 0.2s ease;
    appearance: none;
}

.form-group select:focus,
.form-group input:focus {
    background-color: #fff;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.form-group select:disabled,
.form-group input:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #f1f5f9;
}

.form-row {
    display: flex;
    gap: 8px;
    flex: 1;
    /* Esnek genişlik */
    min-width: 160px;
    /* Ada/Parsel grubu için min genişlik */
}

.form-group.half {
    flex: 1;
    min-width: 60px;
    /* Ada ve Parsel inputları daha dar olabilir */
}

/* Parsel Sorgula Butonu */
button#query-btn {
    width: auto;
    /* Metin değiştiğinde butonun anında genişlemesi için min-width artırıldı */
    min-width: 160px;
    padding: 0 40px;
    /* Geniş iç boşluk */
    height: 48px;
    background: linear-gradient(135deg, #ff5e00 0%, #ff8c00 100%);
    color: #fff;
    border: none;
    border-radius: 8px;

    /* Font İyileştirmesi */
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    /* Daha modern, çok kalın değil */
    letter-spacing: 0.5px;
    /* Okunabilirlik */

    cursor: pointer;
    /* ÖNEMLİ: Width animasyonunu engellemek için sadece gerekenleri transition yap */
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4);
    margin-top: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    /* Asla alt satıra geçme */
    overflow: hidden;
    /* Taşma olursa gizle (garanti olsun) */
    text-overflow: ellipsis;
}

/* İkon ekle */
button#query-btn::before {
    content: '🔍';
    font-size: 16px;
    margin-bottom: 2px;
    flex-shrink: 0;
    /* İkonun küçülmesini engelle */
}

button#query-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.5);
    /* Hover gölgesi */
    background: linear-gradient(135deg, #ff8c00 0%, #ff5e00 100%);
}

button#query-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .query-panel {
        top: 20px;
        left: 50%;
        width: 90%;
        transform: translateX(-50%);
        border-radius: 12px;
    }

    .panel-content {
        flex-direction: column;
        /* Mobilde dikey */
        align-items: stretch;
    }

    button#query-btn {
        width: 100%;
        margin-top: 8px;
        height: 44px;
        /* Mobilde daha büyük buton */
    }

    .form-group {
        width: 100%;
    }
}



/* Parcel Details Panel - Clean White Theme */
.parcel-details {
    position: absolute;
    top: 70px;
    right: 15px;
    width: 280px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    animation: slideIn 0.3s ease-out;
    border: 1px solid #e5e7eb;
}

/* Scrollbar stili */
.parcel-details::-webkit-scrollbar {
    width: 6px;
}

.parcel-details::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.parcel-details::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.details-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.details-header h3 {
    margin: 0;
    font-size: 15px;
    color: #fff;
    font-weight: 700;
}

#close-details {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

#close-details:hover {
    background: rgba(0, 0, 0, 0.4);
}

.details-content {
    padding: 14px;
}

.detail-item {
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #ff6b35;
}

.detail-item:hover {
    background: #f3f4f6;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item .label {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-item .value {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
}

/* Sunum Ayarları Butonu - Premium Siyah/Antrasit */
.action-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    /* Premium Dark */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Hafif border */
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    /* Ters gradient */
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn:active {
    transform: translateY(0) scale(0.98);
}

.action-btn.recording {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    /* Koyu Kırmızı */
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    animation: pulse 1.5s infinite;
    border: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* ===== GOOGLE EARTH STUDIO STYLE MODAL ===== */
.ge-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ge-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ge-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalZoomIn 0.3s ease-out;
}

@keyframes modalZoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.ge-modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
}

.ge-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.ge-subtitle {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.ge-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.ge-close-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.ge-modal-body {
    padding: 0 30px 20px;
}

/* Templates Grid */
.ge-templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .ge-templates-grid {
        grid-template-columns: 1fr;
    }
}

.ge-template-card {
    background: rgba(40, 45, 55, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ge-template-card:hover {
    background: rgba(60, 65, 80, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ge-template-card.active {
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.15);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.2);
}

.ge-template-preview {
    height: 100px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Template preview backgrounds */
.zoom-preview {
    background: linear-gradient(180deg, #1a237e 0%, #283593 50%, #3949ab 100%);
}

.orbit-preview {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2' stroke-dasharray='8,4'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.ptp-preview {
    background: linear-gradient(180deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab0 100%);
}

.spiral-preview {
    background: linear-gradient(180deg, #2d3436 0%, #636e72 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,50 m0,-30 a30,30 0 1,1 0,60 a25,25 0 1,0 0,-50 a20,20 0 1,1 0,40 a15,15 0 1,0 0,-30' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.ge-preview-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.ge-template-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Advanced Settings Section */
.ge-advanced-section {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.ge-advanced-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.ge-advanced-toggle:hover {
    color: #fff;
}

.toggle-icon {
    transition: transform 0.3s;
    font-size: 10px;
}

.ge-advanced-toggle.open .toggle-icon {
    transform: rotate(90deg);
}

.ge-advanced-content {
    padding: 15px 0;
}

.ge-setting-row {
    margin-bottom: 16px;
}

.ge-setting-row:last-child {
    margin-bottom: 0;
}

.ge-setting-row label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 600;
}

.ge-setting-row label span {
    color: #4285f4;
    font-weight: 600;
}

.ge-radio-group {
    display: flex;
    gap: 16px;
}

.ge-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #111827;
    font-weight: 500;
}

.ge-radio input[type="radio"] {
    accent-color: #4285f4;
}

/* Range sliders for white theme */
.ge-modal input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.ge-modal input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4285f4;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
    transition: transform 0.2s;
}

.ge-modal input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.ge-modal input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4285f4;
    cursor: pointer;
    border: none;
}

/* Modal Footer */
.ge-modal-footer {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid #e5e7eb;
}

.ge-btn-primary,
.ge-btn-secondary {
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.ge-btn-primary {
    background: #34a853;
    color: white;
}

.ge-btn-primary:hover {
    background: #2d9249;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.ge-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.ge-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Simple Modal Styles */
.simple-modal {
    max-width: 400px;
}

.simple-setting {
    padding: 20px 0;
}

.simple-setting label {
    display: block;
    font-size: 15px;
    color: #111827;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.simple-setting .value-display {
    color: #ff6b35;
    font-weight: 700;
    font-size: 20px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-modal:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

.settings-group {
    margin-bottom: 24px;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 4px solid #0ea5e9;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.settings-info p {
    margin: 0;
    font-size: 14px;
    color: #0369a1;
    font-weight: 500;
}

.setting-hint {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 6px;
    font-style: italic;
}

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.setting-label span {
    color: #667eea;
    font-weight: 700;
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked+span {
    font-weight: 600;
    color: #667eea;
}

.radio-option:has(input:checked) {
    border-color: #667eea;
    background: #f5f7ff;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* ===== SIMPLE PARCEL OVERLAY - OPTIMIZED ===== */
#neon-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

/* Base parcel fill - subtle cyan overlay */
.parcel-base-fill {
    fill: rgba(0, 200, 255, 0.15);
    stroke: none;
}

/* Main stroke - simple cyan border with glow */
.parcel-main-stroke {
    fill: none;
    stroke: #00ffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px #00ffff) drop-shadow(0 0 12px rgba(0, 200, 255, 0.5));
}

/* Drone HUD style info overlay */
.drone-hud-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 200, 255, 0.5);
    border-radius: 8px;
    padding: 12px 16px;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    z-index: 100;
    display: none;
}

.drone-hud-overlay.active {
    display: block;
    animation: hudFadeIn 0.5s ease-out;
}

@keyframes hudFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drone-hud-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.drone-hud-row:last-child {
    margin-bottom: 0;
}

.drone-hud-label {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 12px;
}

.drone-hud-value {
    color: #00ffff;
    font-weight: bold;
}

/* ===== HARITA KATMAN KONTROLÜ ===== */
.map-layer-control {
    position: absolute;
    top: 80px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.layer-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.layer-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.layer-btn.active {
    background: #4a90e2;
    color: white;
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.4);
}

/* ===== ÖLÇÜM ARAÇLARI ===== */
.measurement-toolbar {
    position: absolute;
    bottom: 30px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.measure-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.measure-btn:hover {
    background: #fff;
    transform: scale(1.08);
}

.measure-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.measurement-result {
    position: absolute;
    bottom: 100px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #00ffff;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.measurement-result #measurement-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* ===== POI KONTROL ===== */
.poi-control {
    position: absolute;
    bottom: 30px;
    right: 10px;
    z-index: 1000;
}

.poi-toggle-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.poi-toggle-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.poi-toggle-btn.active {
    background: #4a90e2;
    color: white;
}

.poi-panel {
    position: absolute;
    bottom: 50px;
    right: 0;
    width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.poi-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.poi-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.poi-categories {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poi-categories label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.poi-categories input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4a90e2;
}

.poi-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0 16px 12px;
}

.poi-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poi-item:last-child {
    border-bottom: none;
}

.poi-distance {
    color: #666;
    font-size: 12px;
}

/* ===== DEĞERLEME BÖLÜMÜ ===== */
.valuation-section {
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.valuation-header {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    color: #333;
}

.valuation-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.valuation-row label {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.valuation-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.valuation-row input:focus {
    border-color: #4a90e2;
    outline: none;
}

.valuation-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #4a90e2;
}

.total-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d8f2d;
}

/* Bölge Tahmini */
.region-estimate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #ffc107;
}

.estimate-label {
    font-size: 13px;
    color: #6d4c41;
    font-weight: 500;
}

.estimate-value {
    font-size: 14px;
    font-weight: 700;
    color: #e65100;
}

/* ===== YAKIN YERLER - White Theme ===== */
.nearby-places-section {
    margin-top: 12px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
}

.nearby-header {
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 10px;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nearby-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid #e5e7eb;
}

.nearby-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.nearby-item:last-child {
    margin-bottom: 0;
}

.nearby-icon {
    font-size: 16px;
}

.nearby-label {
    flex: 1;
    font-size: 11px;
    color: #4b5563;
}

.nearby-value {
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    padding: 3px 8px;
    border-radius: 10px;
}

/* ===== GOOGLE MAPS LİNKİ ===== */
.maps-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.maps-link:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.maps-link:active {
    transform: scale(0.98);
}

/* Mobil Arama Trigger - Varsayılan Gizli */
.mobile-search-trigger {
    display: none;
}

/* Masaüstü için kapatma butonunu gizle */
.mobile-close-btn {
    display: none;
}

/* Mobil Arama Trigger - Varsayılan Gizli */
.mobile-search-trigger {
    display: none;
}

/* Query Panel - Mobil Görünümü (Bottom Sheet) */
@media (max-width: 768px) {

    /* Mobil Trigger Stili */
    .mobile-search-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: absolute;
        top: 20px;
        /* Üstte arama çubuğu gibi */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: 50px;
        background: #fff;
        border-radius: 25px;
        /* Hap şeklinde */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 2px solid #ff6b35;
        /* Turuncu kenarlık */
    }

    .mobile-search-trigger:active {
        transform: translateX(-50%) scale(0.98);
    }

    .search-icon {
        font-size: 18px;
    }

    .search-text {
        font-size: 14px;
        font-weight: 600;
        color: #ff6b35;
        /* Turuncu yazı */
    }

    .query-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 20px 16px 30px 16px;
        /* Alt boşluk artırıldı (iPhone Home Bar vb.) */
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

        /* Varsayılan olarak GİZLİ (Aşağıda) */
        transform: translateY(100%);
        visibility: hidden;
        /* Erişilemez olsun */

        /* Overflow Fix */
        max-height: 80vh;
        /* Ekranın %80'ini geçemesin */
        overflow-y: auto;
        /* İçerik taşarsa kaydırılsın */
        display: flex;
        flex-direction: column;
    }

    .query-panel.active {
        transform: translateY(0);
        visibility: visible;
    }

    .query-panel.hidden-mobile {
        transform: translateY(100%);
    }

    .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Kapatma butonu stili */
    .mobile-close-btn {
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        line-height: 1;
        padding: 4px 8px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.2);
        display: block;
        /* Mobilde görünür */
    }

    .mobile-close-btn:active {
        background: rgba(255, 255, 255, 0.4);
    }

    .panel-content {
        flex-direction: column;
        gap: 12px;
    }

    .form-row {
        width: 100%;
        /* Tam genişlik */
    }

    .form-group {
        width: 100%;
    }

    /* Parsel Detay Paneli - Mobil (Bottom Sheet) */
    .parcel-details {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 75vh;
        /* Daha yüksek */
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        animation: slideUp 0.3s ease-out;
        z-index: 1002;
        /* Sorgu panelinden üstte */
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.2);
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    /* Harita Katman Kontrolü - Mobil */
    .map-layer-control {
        top: 70px;
        right: 12px;
        flex-direction: column;
        /* Dikey kalsın, daha temiz */
        gap: 8px;
    }

    .layer-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Ölçüm Araçları - Mobil */
    .measurement-toolbar {
        bottom: unset;
        top: 140px;
        /* Üstte kalsın */
        right: 12px;
        left: unset;
        align-items: flex-end;
    }

    .measure-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .measurement-result {
        top: 260px;
        left: 50%;
        transform: translateX(-50%);
        bottom: unset;
        width: auto;
        white-space: nowrap;
    }

    /* POI Kontrol - Mobil */
    .poi-control {
        bottom: 220px;
        /* Panellerin üstünde */
        right: 12px;
    }

    .poi-panel {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 50vh;
    }

    /* Değerleme - Mobil */
    .valuation-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .valuation-row input {
        width: 100%;
    }

    /* Presentation Modal - Mobil */
    .pres-content {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        top: auto;
        left: 0;
        transform: none;
        border-radius: 20px 20px 0 0;
        animation: slideUp 0.3s ease-out;
    }

    @keyframes presSlideIn {

        /* Reset desktop animation */
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Touch-Friendly Butonlar */
    button,
    .action-btn,
    select,
    input[type="text"],
    input[type="number"] {
        min-height: 48px;
        /* Touch target size */
        font-size: 16px;
        /* Okunabilirlik */
    }
}

@media (max-width: 480px) {
    .query-panel {
        padding: 10px 12px;
    }

    .form-group {
        min-width: 100%;
    }

    .parcel-details {
        max-height: 70vh;
    }

    .details-content {
        padding: 16px;
    }

    .map-layer-control {
        top: 60px;
    }

    .layer-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ===== MODERN PRESENTATION MODAL ===== */
.pres-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    font-family: 'Inter', sans-serif;
}

.pres-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pres-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 380px;
    overflow: hidden;
    animation: presSlideIn 0.3s ease-out;
}

@keyframes presSlideIn {
    from {
        transform: translate(-50%, -45%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.pres-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pres-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pres-icon {
    width: 32px;
    height: 32px;
    color: #fff;
    animation: floatIcon 2s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.pres-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.pres-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.pres-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.pres-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pres-body {
    padding: 20px;
}

.pres-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.mode-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-card input {
    display: none;
}

.mode-card:hover {
    border-color: #ff6b35;
    background: #fff7f3;
}

.mode-card.selected,
.mode-card:has(input:checked) {
    border-color: #ff6b35;
    background: #fff7f3;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.mode-svg {
    width: 48px;
    height: 48px;
    transition: all 0.3s;
}

.mode-card:hover .mode-svg,
.mode-card.selected .mode-svg,
.mode-card:has(input:checked) .mode-svg {
    transform: scale(1.05);
}

/* SVG Animasyonları - Artık SVG içinde tanımlı */
/* .orbit-svg {
    animation: orbitRotate 4s linear infinite;
} */

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.zoom-svg {
    animation: zoomPulse 2s ease-in-out infinite;
}

@keyframes zoomPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* .spiral-svg {
    animation: spiralSpin 3s linear infinite;
} */

@keyframes spiralSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.mode-card span {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.duration-section {
    margin-top: 16px;
}

.duration-val {
    color: #ff6b35;
    font-weight: 700;
    font-size: 18px;
}

.pres-modal input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 10px 0;
}

.pres-modal input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff6b35;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.range-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}

.pres-footer {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

.pres-btn-cancel {
    flex: 1;
    padding: 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.pres-btn-cancel:hover {
    background: #f3f4f6;
}

.pres-btn-start {
    flex: 1.5;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.pres-btn-start svg {
    width: 16px;
    height: 16px;
}

.pres-btn-start:hover {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}