:root {
    --mebis-primary: #0d6efd;
    --mebis-secondary: #6c757d;
    --mebis-accent: #198754;
}

/* Ortofoto tile'larındaki beyaz boşlukları alttaki harita ile harmanla */
.mebis-ortho-tiles {
    mix-blend-mode: multiply;
}

/* Mezar bilgi panelinde "Çiçek/Temizlik Sipariş Et" butonları */
.service-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.service-btn {
    flex: 1 1 140px; padding: 10px 14px;
    border: none; border-radius: 8px;
    color: #fff; font-weight: 600; font-size: .92rem;
    cursor: pointer; transition: transform .15s, filter .15s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.service-btn.flower { background: linear-gradient(135deg, #e91e63, #c2185b); }
.service-btn.clean { background: linear-gradient(135deg, #198754, #146c43); }
.service-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.service-btn:active { transform: scale(0.98); }
.service-hint i { color: #0d6efd; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
}

#map {
    height: 100vh;
    width: 100vw;
    z-index: 1;
}

.search-panel {
    position: fixed;
    left: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid rgba(0,0,0,0.1);
    padding: 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.search-panel.active {
    left: 0;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
}

.search-toggle {
    position: relative;
    left: auto;
    top: auto;
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #495057;
    border: 2px solid #007bff;
    min-width: 140px;
}

.search-toggle i {
    font-size: 16px;
    color: #007bff;
    transition: all 0.3s ease;
    background: rgba(0,123,255,0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-toggle:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

.search-toggle:hover i {
    color: white;
    background: rgba(255,255,255,0.2);
}

.search-toggle:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.search-form {
    padding: 12px;
}

.search-form input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-form button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background: #0056b3;
}

.info-panel {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 450px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    padding: 0;
}

.info-panel.active {
    transform: translateX(0);
    display: block;
}

.info-close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

input, button {
    margin: 5px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.info-header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-header .close-btn {
    font-size: 24px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}

.info-header .close-btn:hover {
    color: white;
}

.info-content {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photo-btn {
    width: 100%;
    margin-top: 10px;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 2000;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007bff;
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-header h3 i {
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 50%;
}

.search-header .close-btn {
    font-size: 24px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}

.search-header .close-btn:hover {
    color: white;
}

.results-list {
    margin-top: 15px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px;
}

.mezarlik-group {
    margin-bottom: 20px;
}

.mezarlik-group h5 {
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 10px 0;
}

.result-item {
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s;
}

.result-item:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.result-item strong {
    display: block;
    color: #212529;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.result-details {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

.result-details small {
    display: inline-block;
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Kaydırma çubuğu stilleri */
.results-list::-webkit-scrollbar {
    width: 8px;
}

.results-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.results-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.form-group {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.form-group:hover, .form-group:focus-within {
    background: #fff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.form-group label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.form-group label i {
    font-size: 0.9rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,123,255,0.1);
    border-radius: 4px;
    margin-right: 8px;
    color: #007bff;
}

.form-group input {
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    width: 100%;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,.1);
    outline: none;
}

/* Arama ipuçları */
.search-tips {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 4px;
    padding-left: 28px;
}

/* Placeholder rengi ve stili */
.form-group input::placeholder {
    color: transparent;
}

/* Arama sonuçları bölümü için daha fazla alan */
#searchResults {
    padding: 0 12px 12px 12px;
    overflow-y: auto;
    max-height: calc(100vh - 180px); /* Arama formunun yeni yüksekliğine göre ayarlandı */
}

.mezarlik-group h5 {
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 10px 0;
}

.result-item {
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.result-item:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.result-item strong {
    color: #212529;
    font-size: 0.95rem;
}

.result-details {
    margin-top: 5px;
    color: #6c757d;
}

/* Yükleniyor animasyonu */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bildirim stilleri */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.notification.info {
    background-color: #007bff;
}

.notification.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobil uyumluluk için medya sorgusu */
@media (max-width: 576px) {
    .search-panel, .side-panel, .info-panel {
        width: 100% !important;
        left: -100% !important;
        right: auto !important;
        transform: none !important;
    }
    
    .search-panel.active, .side-panel.active {
        left: 0 !important;
    }

    .info-panel {
        right: -100% !important;
        left: auto !important;
    }

    .info-panel.active {
        right: 0 !important;
    }
    
    .control-buttons {
        left: 10px !important;
        top: 80px !important; /* Zoom butonlarının altına (approx 70px zoom + 10px gap) */
        flex-direction: column !important;
        width: auto !important;
        gap: 8px !important;
    }

    .control-button {
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 4px !important; /* Leaflet stiline yakın karemsi-yuvarlak */
        justify-content: center !important;
        background: white !important;
        border: 2px solid rgba(0,0,0,0.2) !important;
        box-shadow: 0 1px 5px rgba(0,0,0,0.4) !important;
    }
    
    .control-button span {
        display: none !important;
    }

    .control-button i {
        margin: 0 !important;
        background: transparent !important;
        width: auto !important;
        height: auto !important;
        font-size: 16px !important;
        color: #007bff !important;
    }

    .control-button:hover {
        background: #f0f7ff !important;
        border-color: #007bff !important;
    }
}

/* Kontrol butonları container */
.control-buttons {
    position: absolute;
    left: 15px;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

/* Ortak buton stili */
.control-button {
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #495057;
    border: 2px solid #007bff;
    min-width: 140px;
}

.control-button i {
    font-size: 16px;
    color: #007bff;
    transition: all 0.3s ease;
    background: rgba(0,123,255,0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-button:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

.control-button:hover i {
    color: white;
    background: rgba(255,255,255,0.2);
}

.control-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Yan panel ortak stilleri */
.side-panel {
    position: fixed;
    left: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.side-panel.active {
    transform: translateX(400px);
}

/* Hizmetler paneli stilleri */
.service-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-section h4 {
    color: #007bff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-section li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.service-section li:last-child {
    border-bottom: none;
}

/* Satış paneli stilleri */
.info-box {
    background: #e8f4ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cemetery-select {
    margin-bottom: 20px;
}

.cemetery-select select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-top: 5px;
}

.price-info, .payment-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#searchResults {
    padding: 0 15px 15px 15px;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

/* Mezar fotoğrafı bölümü */
.grave-photo {
    width: 100%;
    max-width: 300px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.grave-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 10px;
    box-sizing: border-box;
    margin: 0 auto;
    cursor: zoom-in;
}

.grave-photo .no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: #6c757d;
    gap: 15px;
    padding: 20px;
    text-align: center;
}

.grave-photo .no-photo i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Fotoğraf büyütme (lightbox) */
.photo-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    cursor: zoom-out;
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.photo-lightbox-close {
    position: fixed;
    top: max(15px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    font-size: 36px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
}

/* Mezar bilgileri */
.grave-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    width: 140px;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
}

.info-value {
    flex: 1;
    color: #212529;
    font-weight: 600;
    font-size: 1rem;
}

/* Ses kontrolü bölümü güncellemesi */
.audio-control {
    margin-top: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.audio-info {
    flex: 1;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #dee2e6;
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-control i {
    color: #6c757d;
    font-size: 0.8rem;
    width: 20px;
    text-align: center;
}

/* Tüm paneller için ortak başlık stili */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007bff;
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-header h3 i {
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 50%;
}

.search-header .close-btn {
    font-size: 24px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}

.search-header .close-btn:hover {
    color: white;
}

/* Yan panel içerik stillerini güncelle */
.side-panel .services-content,
.side-panel .sales-content,
#todayResults {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 60px); /* Başlık yüksekliğini çıkar */
}

/* Katman kontrolü stilleri */
.leaflet-control-layers {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.leaflet-control-layers-base {
    padding: 6px;
}

.leaflet-control-layers-base label {
    margin: 0;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.leaflet-control-layers-base label:hover {
    background: #f8f9fa;
}

.leaflet-control-layers-base input[type="radio"] {
    margin-right: 8px;
}

.leaflet-control-layers-toggle {
    width: 36px !important;
    height: 36px !important;
    background-size: 20px !important;
    border-radius: 8px !important;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.leaflet-control-layers-expanded {
    padding: 6px !important;
    background: white !important;
    border-radius: 8px !important;
}

/* Çeşme ikonu stilleri */
.fountain-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    width: 24px !important;
    height: 24px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.fountain-icon i {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Çeşme popup stilleri */
.cesme-popup {
    padding: 6px;
    max-width: 150px;
}

.cesme-popup h4 {
    margin: 0 0 6px 0;
    color: #007bff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cesme-popup p {
    margin: 3px 0;
    font-size: 12px;
}

/* Çeşme ikonu stilleri */
.fountain-marker {
    background: transparent;
    border: none;
}

.custom-fountain-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0099ff;
    border: 1px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.custom-fountain-icon i {
    color: white;
    font-size: 12px;
}

.custom-fountain-icon:hover {
    transform: scale(1.1);
    background: #007acc;
}

/* Popup stilleri daha kompakt */
.cesme-popup {
    padding: 8px;
    max-width: 200px;
}

.cesme-popup h4 {
    margin: 0 0 8px 0;
    color: #e74c3c;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cesme-popup p {
    margin: 4px 0;
    font-size: 13px;
}

/* Zoom seviyesine göre boyut ayarı */
.leaflet-zoom-animated .custom-fountain-icon {
    transform: scale(0.7);
}

.leaflet-zoom-level-16 .custom-fountain-icon,
.leaflet-zoom-level-17 .custom-fountain-icon,
.leaflet-zoom-level-18 .custom-fountain-icon {
    transform: scale(1);
}

/* Footer mesajı ve logo stilleri */
.footer-message {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #eee;
}

.footer-message p {
    margin: 0 0 10px 0;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Mobil uyumluluk için medya sorguları */
@media screen and (max-width: 768px) {
    /* Kontrol butonları */
    .control-buttons {
        left: 10px;
        top: 10px;
        gap: 10px;
    }

    .control-button {
        padding: 8px 12px;
        min-width: auto;
        font-size: 14px;
    }

    .control-button span {
        display: none; /* Mobilde yazıları gizle, sadece ikonları göster */
    }

    .control-button i {
        font-size: 14px;
        margin: 0;
    }

    /* Yan paneller */
    .search-panel, .side-panel {
        width: 100%;
        left: -100%;
    }

    .search-panel.active, .side-panel.active {
        left: 0;
        width: 100%;
    }

    /* Bilgi paneli */
    .info-panel {
        width: 100%;
        right: -100%;
    }

    .info-panel.active {
        right: 0;
        width: 100%;
    }

    /* Mezar fotoğrafı */
    .grave-photo img {
        max-height: 340px;
    }

    /* Form elemanları */
    .form-group {
        padding: 8px;
    }

    .form-group input {
        font-size: 16px; /* Mobilde input yazı boyutu */
        padding: 8px;
    }

    /* Popup stilleri */
    .mezar-popup {
        max-width: 200px !important;
    }

    /* Katman kontrolü */
    .leaflet-control-layers {
        margin-right: 10px !important;
    }

    .leaflet-control-layers-toggle {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Yatay mod için özel ayarlar */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .control-buttons {
        top: 10px;
        left: 10px;
        flex-direction: row;
        gap: 10px;
    }

    .search-panel, .side-panel, .info-panel {
        width: 50%;
        height: 100vh;
    }

    .search-panel.active, .side-panel.active {
        left: 0;
        width: 50%;
    }

    .info-panel.active {
        width: 50%;
        right: 0;
    }

    .grave-photo img {
        max-height: 220px;
    }

    /* İçerik scrollbar'ı */
    .search-form, .services-content, .sales-content, .info-content {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* Küçük ekranlar için ek optimizasyonlar */
@media screen and (max-width: 380px) {
    .control-button {
        padding: 6px 10px;
    }

    .control-button i {
        font-size: 12px;
    }

    .search-header h3 {
        font-size: 16px;
    }

    .form-group label {
        font-size: 14px;
    }
}

/* Touch cihazlar için özel ayarlar */
@media (hover: none) {
    .control-button:hover {
        transform: none;
        box-shadow: none;
    }

    .form-group:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Güvenli alan ayarları */
@supports (padding: max(0px)) {
    .control-buttons {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .search-panel, .side-panel, .info-panel {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
} 

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.nav-btn:hover {
    color: #007bff;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
}

.nav-btn i {
    margin-right: 4px;
}

.nav-btn span {
    font-size: 14px;
    font-weight: 500;
}

.no-photo {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    color: #666;
    font-style: italic;
}
