/* =========================================
   map-dynamic.blade.php — Sayfa Özel Stilleri
   ========================================= */

body {
    overflow: hidden;
}

#mapContainer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#searchMap {
    width: 100%;
    height: 100%;
}

.map-status-legend {
    position: absolute;
    top: 94px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px 11px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(8px);
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    transition: right 0.3s ease;
}

body.map-sidebar-open .map-status-legend {
    right: 444px;
}

.map-status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.map-status-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
}

.map-status-dot--open { background: #dc2626; color: #ffffff; }
.map-status-dot--closed { background: #94a3b8; color: #ffffff; }
.map-status-dot--unknown { background: #ffffff; color: #64748b; border: 2px solid #64748b; }

/* =========================================
   Leaflet Kontrolleri
   ========================================= */
#mapContainer .leaflet-control-container {
    font-family: inherit;
}

#mapContainer .leaflet-bottom.leaflet-left {
    left: 16px;
    bottom: 12px;
}

#mapContainer .leaflet-bottom.leaflet-right {
    right: 16px;
    bottom: 16px;
}

body.map-sidebar-open #mapContainer .leaflet-bottom.leaflet-right {
    right: 436px;
}

#mapContainer .leaflet-control-zoom,
#mapContainer .leaflet-control-locate {
    margin: 0;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.96);
}

#mapContainer .leaflet-bottom.leaflet-right .leaflet-control {
    margin-top: 12px;
}

#mapContainer .leaflet-bottom.leaflet-right .leaflet-control:first-child {
    margin-top: 0;
}

#mapContainer .leaflet-control-zoom a,
#mapContainer .leaflet-control-locate-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #0f172a;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#mapContainer .leaflet-control-zoom a {
    line-height: 1;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

#mapContainer .leaflet-control-zoom a:last-child {
    border-bottom: none;
}

#mapContainer .leaflet-control-locate-btn {
    cursor: pointer;
    font-size: 16px;
}

#mapContainer .leaflet-control-zoom a:hover,
#mapContainer .leaflet-control-locate-btn:hover {
    background: #f8fafc;
    color: #1d4ed8;
}

#mapContainer .leaflet-control-locate-btn.is-loading {
    cursor: wait;
    color: #64748b;
}

#mapContainer .leaflet-touch .leaflet-bar a {
    width: 48px;
    height: 48px;
    line-height: 1;
}

#mapContainer .leaflet-control-attribution {
    margin: 0 !important;
    padding: 6px 10px !important;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

#mapContainer .leaflet-control-attribution a {
    color: #1d4ed8;
}

#mapContainer .service-area-mask {
    pointer-events: none;
}

#mapContainer .map-tiles-base {
    filter: saturate(0.84) brightness(1.02) contrast(0.96);
}

#mapContainer .map-tiles-detail {
    filter: saturate(0.68) brightness(1.05) contrast(0.9);
}

@media (max-width: 768px) {
    #mapContainer .service-area-country-label--primary span {
        font-size: 13px;
        padding: 5px 12px;
    }

    #mapContainer .service-area-country-label--secondary span {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* =========================================
   Sidebar Panel
   ========================================= */
#sidebarPanel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

#sidebarPanel.collapsed {
    transform: translateX(420px);
}

#sidebarToggle.shifted {
    right: 440px;
    transition: right 0.3s ease;
}

/* =========================================
   Sidebar Toggle Button
   ========================================= */
#sidebarToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sidebarToggle .sidebar-toggle-label {
    display: none;
}

#sidebarToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

#sidebarPanel.collapsed + #sidebarToggle {
    right: 20px;
}

/* =========================================
   Panel Header
   ========================================= */
.panel-header {
    padding: 20px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f08361 0%, #d35255 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* =========================================
   Filtre Toggle
   ========================================= */
#filterToggleBtn {
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: white;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
    white-space: nowrap;
}

#filterToggleBtn:hover {
    background: rgba(255,255,255,0.3);
}

#filterToggleBtn .toggle-icon {
    transition: transform 0.3s ease;
}

#filterToggleBtn.collapsed .toggle-icon {
    transform: rotate(-180deg);
}

#mobileSidebarCloseBtn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.38);
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

#mobileSidebarCloseBtn:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-1px);
}

/* =========================================
   Filtre Paneli Animasyon
   ========================================= */
#filterPanel {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 960px;
    opacity: 1;
}

#filterPanel.collapsed {
    max-height: 0;
    opacity: 0;
}

/* =========================================
   Panel Body
   ========================================= */
.panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#mainView {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

#detailView {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* =========================================
   Detail Görünüm
   ========================================= */
.detail-header {
    padding: 12px 16px;
    border-bottom: 2px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.price-filter-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 2px solid #f59e0b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #92400e;
    flex-shrink: 0;
}

.detail-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.detail-footer {
    padding: 12px 16px;
    border-top: 2px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}

/* =========================================
   Menü Kategori Kart
   ========================================= */
.menu-category-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.menu-category-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.menu-items-wrapper {
    padding: 4px 14px;
}

.menu-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 8px;
}

.menu-item-row:last-child {
    border-bottom: none;
}

.menu-item-info {
    flex: 1;
    overflow: hidden;
}

.item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-desc {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-badge {
    background: #dcfce7;
    color: #16a34a;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-icon {
    font-size: 16px;
    line-height: 1;
}

/* =========================================
   Arama Formu
   ========================================= */
.search-controls {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-controls .alert-info {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    padding: 12px;
}

/* Form etiketleri */
.form-label-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.map-search-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.menu-filter-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.menu-filter-fieldset.is-disabled,
.menu-filter-fieldset:disabled {
    opacity: 0.48;
}

.menu-filter-fieldset:disabled input {
    cursor: not-allowed;
}

.open-status-filter {
    min-width: 0;
    margin-inline: 0;
    padding: 0;
    border: 0;
}

.open-status-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.open-status-option {
    min-width: 0;
    cursor: pointer;
}

.open-status-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.open-status-option span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 5px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.open-status-option:hover span {
    border-color: #f0a4a9;
    background: #fff7f7;
}

.open-status-option input:focus-visible + span {
    outline: 3px solid rgba(59, 130, 246, 0.25);
    outline-offset: 2px;
}

.open-status-option input:checked + span {
    border-color: #cf4a53;
    background: #fce8ea;
    color: #9f313b;
    box-shadow: 0 0 0 2px rgba(207, 74, 83, 0.08);
}

/* Yarıçap slider */
.radius-slider {
    width: 100%;
    accent-color: #CF4A53;
    cursor: pointer;
}

/* Fiyat giriş alanları */
.price-input {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.2s ease;
    outline: none;
    background: white;
}

.price-input:focus,
.price-input:focus-visible {
    border-color: #CF4A53;
    box-shadow: 0 0 0 3px rgba(207, 74, 83, 0.08);
    outline: none;
}

/* Firefox'un min/max constraint'li number input'lara uyguladığı kırmızı geçersiz stilini sıfırla */
.price-input:invalid,
.price-input:-moz-ui-invalid {
    box-shadow: none !important;
    border-color: #e5e7eb !important;
}

/* Metin arama input wrapper */
.query-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.query-input-icon {
    position: absolute;
    left: 12px;
    color: #CF4A53;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.query-input {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 9px 12px 9px 34px;
    font-size: 14px;
    color: #374151;
    background: white;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.query-input::placeholder {
    color: #9ca3af;
}

.query-input:focus,
.query-input:focus-visible {
    border-color: #CF4A53 !important;
    box-shadow: 0 0 0 3px rgba(246, 128, 59, 0.08);
    outline: none;
}

.query-input:focus + .query-input-icon,
.query-input-wrapper:focus-within .query-input-icon {
    color: #CF4A53 !important;
}

.query-hint-text {
    margin-top: 5px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* Arama Butonu */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: #d35255;
    color: white;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #eb8525;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 100, 37, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

/* Temizle Butonu */
.clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 9px 20px;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #374151;
}

/* =========================================
   Sonuçlar
   ========================================= */
#resultsContainer {
    display: none;
}

#resultsContainer.active {
    display: block;
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.results-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.search-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #9f313b;
    background: #fce8ea;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.search-mode-badge[hidden] {
    display: none;
}

.search-mode-badge--status {
    color: #334155;
    background: #e2e8f0;
}

.result-open-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.result-open-status--open { color: #166534; background: #dcfce7; }
.result-open-status--closed { color: #475569; background: #e2e8f0; }
.result-open-status--unknown { color: #64748b; background: #f8fafc; border: 1px solid #cbd5e1; }

.custom-restaurant-marker,
.custom-restaurant-cluster {
    background: transparent;
    border: 0;
}

.restaurant-pin {
    position: relative;
    width: 38px;
    height: 46px;
    filter: drop-shadow(0 4px 6px rgba(15, 23, 42, 0.24));
}

.restaurant-pin__pointer {
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 18px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 3px;
    background: var(--pin-color);
}

.restaurant-pin__face {
    position: absolute;
    left: 1px;
    top: 1px;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: var(--pin-color);
    color: #ffffff;
    font-size: 13px;
}

.restaurant-pin--open { --pin-color: #dc2626; }
.restaurant-pin--closed { --pin-color: #94a3b8; }
.restaurant-pin--unknown { --pin-color: #64748b; }

.restaurant-pin--unknown .restaurant-pin__face {
    border-color: #64748b;
    background: #ffffff;
    color: #64748b;
}

.restaurant-cluster {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #334155;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.3);
    font-size: 14px;
    font-weight: 800;
}

.restaurant-spider-leg {
    stroke: #64748b;
    stroke-width: 1.5;
    stroke-opacity: 0.7;
    stroke-dasharray: 3 3;
    pointer-events: none;
}

.map-search-toast-region {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.map-search-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    font-size: 13px;
    line-height: 1.45;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-search-toast--success { border-left-color: #16a34a; }
.map-search-toast--error { border-left-color: #dc2626; }
.map-search-toast--warning { border-left-color: #f97316; }
.map-search-toast--info { border-left-color: #2563eb; }

.map-search-toast.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.map-search-toast-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.map-search-toast-title {
    margin-bottom: 2px;
    font-weight: 700;
}

.map-search-toast-message {
    overflow-wrap: anywhere;
}

.map-search-toast-close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 18px;
    line-height: 22px;
    cursor: pointer;
}

/* Sıralama Butonu */
.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    background: transparent;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: #eff6ff;
}

/* Sonuç Kart */
.result-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.result-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.result-card-content {
    min-width: 0;
    flex: 1;
}

.result-card:hover {
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    border-color: #3b82f6;
    background: #f0f9ff;
}

.result-card.selected {
    border-color: #2563eb;
    background: #dbeafe;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.result-card h6 {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.result-card-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.result-card-address i {
    width: 14px;
    flex-shrink: 0;
    color: #ef4444;
}

.result-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .result-card-logo {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
}

.distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.distance-badge i {
    font-size: 11px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef9c3;
    color: #854d0e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.filter-badge i {
    font-size: 11px;
}

/* =========================================
   Yükleniyor
   ========================================= */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    display: none;
}

.loading-overlay.active {
    display: flex;
}

/* Dönen Yükleme Göstergesi */
.map-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: mapSpin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes mapSpin {
    to { transform: rotate(360deg); }
}

/* =========================================
   Responsive — Mobil
   ========================================= */
@media (max-width: 768px) {
    .map-status-legend,
    body.map-sidebar-open .map-status-legend {
        top: 88px;
        right: 10px;
        gap: 4px;
        padding: 7px 8px;
        font-size: 10px;
    }

    .map-status-dot {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    #mapContainer .leaflet-bottom.leaflet-left {
        left: 10px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    }

    #mapContainer .leaflet-control-attribution {
        padding: 4px 8px !important;
        border-radius: 14px;
        font-size: 10px;
        line-height: 1.2;
    }

    /* Sidebar tamamen alttan açılır, tam genişlik */
    #sidebarPanel {
        width: 100%;
        height: 78vh;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -6px 32px rgba(0,0,0,0.18);
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    }

    /* Açık durum */
    #sidebarPanel:not(.collapsed) {
        transform: translateY(0);
    }

    /* Kapalı durum */
    #sidebarPanel.collapsed {
        transform: translateY(100%);
    }

    /* Toggle butonu — kapalı durumda alt orta pill olarak görünür */
    #sidebarToggle {
        top: auto !important;
        left: 50% !important;
        right: auto !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
        width: auto !important;
        min-width: 148px;
        height: 52px !important;
        padding: 0 18px !important;
        gap: 10px;
        background-color: rgb(207 74 83 / var(--tw-bg-opacity, 1)) !important;
        /* background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important; 
        box-shadow: 0 10px 28px rgba(37,99,235,0.34) !important;*/
        box-shadow: 0 10px 28px rgba(235, 110, 37, 0.34) !important;
        border-radius: 999px !important;
        z-index: 1002;
        transform: translateX(-50%);
    }

    #sidebarToggle:hover {
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 0 14px 34px rgba(37,99,235,0.4) !important;
    }

    #sidebarToggle i {
        color: white !important;
        font-size: 15px !important;
    }

    #sidebarToggle .sidebar-toggle-label {
        display: inline-flex;
        align-items: center;
        color: white;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }

    /* Panel açıkken yüzen buton gizlenir, kapatma header üzerinden yapılır */
    #sidebarToggle.shifted {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(12px);
    }

    #mobileSidebarCloseBtn {
        display: inline-flex;
    }

    /* Mobilde arama kontrolleri daha kompakt */
    .search-controls {
        padding: 12px;
        margin-bottom: 10px;
    }

    .panel-header {
        padding: 10px 14px;
        border-radius: 18px 18px 0 0;
    }

    #mainView {
        padding: 10px 14px;
    }

    /* Mobilde filtre toggle gizle */
    #filterToggleBtn {
        display: none;
    }

    /* Filtre paneli mobilde her zaman açık */
    #filterPanel {
        max-height: none !important;
        opacity: 1 !important;
    }
}

/* =========================================
   Scrollbar
   ========================================= */
#mainView::-webkit-scrollbar,
.detail-menu-list::-webkit-scrollbar {
    width: 8px;
}

#mainView::-webkit-scrollbar-track,
.detail-menu-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#mainView::-webkit-scrollbar-thumb,
.detail-menu-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

#mainView::-webkit-scrollbar-thumb:hover,
.detail-menu-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================
   Leaflet Popup — İşletme Kartı
   ========================================= */
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 320px !important;
}

.leaflet-popup-tip-container {
    margin-top: -1px;
}

.restaurant-popup {
    width: 320px;
    font-family: inherit;
}

.popup-company-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    background: white;
    transition: background 0.15s;
}

.popup-company-header:hover {
    background: #f0f9ff;
    text-decoration: none;
}

.popup-company-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #f3f4f6;
}

.popup-company-logo-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid #bae6fd;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0369a1;
    font-size: 18px;
}

.popup-company-info {
    flex: 1;
    overflow: hidden;
}

.popup-company-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.popup-company-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 11px;
    color: #6b7280;
}

.popup-visit-icon {
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
}

.popup-price-banner {
    background: #fef9c3;
    border-bottom: 1px solid #fde047;
    padding: 6px 14px;
    font-size: 11px;
    color: #713f12;
    display: flex;
    align-items: center;
    gap: 5px;
}

.popup-slider-section {
    padding: 12px 0 12px 14px;
    background: #fafafa;
}

.popup-slider-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.popup-menu-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-right: 14px;
    padding-bottom: 10px;
    scrollbar-width: auto;
    scrollbar-color: #94a3b8 #e2e8f0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.popup-menu-slider::-webkit-scrollbar {
    height: 8px;
}

.popup-menu-slider::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.popup-menu-slider::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 4px;
}

.popup-menu-slider::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.popup-item-card {
    flex-shrink: 0;
    width: 112px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: white;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.15s;
    margin-top: 5px;
    margin-bottom: 5px;
}

.popup-item-card:hover {
    box-shadow: 0 4px 14px rgba(59,130,246,0.18);
    transform: translateY(-2px);
    border-color: #3b82f6;
    text-decoration: none;
}

.popup-item-img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

.popup-item-img-placeholder {
    width: 100%;
    height: 68px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 22px;
}

.popup-item-body {
    padding: 6px 7px 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.popup-item-title {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
}

.popup-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #ff5b2d;
    margin-top: auto;
}

.popup-item-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    /* background: #f0fdf4; */
    color: #166534;
    padding: 1px 0px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    /* margin-bottom: 3px; */
}

.popup-item-update-badge i {
    font-size: 8px;
}

.popup-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 14px;
    color: #9ca3af;
    font-size: 12px;
    background: #fafafa;
}

.popup-no-items {
    text-align: center;
    padding: 18px 14px;
    background: #fafafa;
    color: #9ca3af;
    font-size: 12px;
}

.popup-footer {
    padding: 10px 14px;
    border-top: 1px solid #f3f4f6;
    background: white;
}

.popup-action-btn {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.popup-company-header.popup-action-btn {
    border-radius: 0;
}

.popup-item-card.popup-action-btn {
    padding: 0;
    width: 112px;      /* Slider kart genişliğini geri yükle */
    flex-shrink: 0;    /* Flex sıkıştırmayı önle */
    border: 1px solid #dbe3ee;
    background: #ffffff;
}

.popup-see-more-card {
    min-height: 168px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    border-color: #f3b7a7 !important;
    background: linear-gradient(135deg, #fff7ed, #fff1f2) !important;
    color: #d45255;
}

.popup-see-more-card:hover {
    border-color: #d45255 !important;
    box-shadow: 0 6px 16px rgba(212, 82, 85, 0.2);
}

.popup-see-more-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #d45255;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 9px;
}

.popup-see-more-title {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.popup-see-more-count {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #9f343c;
}

/* =========================================
   Detail Sheet (Map In-Page)
   ========================================= */
#detailSheetBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1300;
}

#detailSheet {
    position: fixed;
    top: 0;
    right: 0;
    width: min(540px, 100vw);
    height: 100vh;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1301;
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.2);
}

body.sheet-open #detailSheetBackdrop {
    opacity: 1;
    pointer-events: auto;
}

body.sheet-open #detailSheet {
    transform: translateX(0);
}

.detail-sheet-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(120deg, #ffffff 0%, #f8fafc 100%);
}

.detail-sheet-title {
    display: none;
}

.detail-sheet-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.detail-sheet-body {
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
    padding: 14px;
}

.detail-sheet-loading {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    gap: 10px;
}

.sheet-company-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.sheet-company-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sheet-company-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sheet-company-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sheet-company-meta {
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
}

.sheet-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
}

.sheet-open-badge.open {
    background: #dcfce7;
    color: #166534;
}

.sheet-open-badge.closed {
    background: #fee2e2;
    color: #991b1b;
}

.sheet-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

/* Üst kartta tek buton varsa tam genişlik */
.sheet-actions--top .sheet-action-btn:only-child {
    grid-column: 1 / -1;
}

/* =========================================
   Sheet Tabs
   ========================================= */
.sheet-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.sheet-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sheet-tab-btn:first-child {
    border-right: 1px solid #e2e8f0;
}

.sheet-tab-btn--active {
    background: #ffffff;
    color: #ff5b2d;
}

.sheet-tab-btn:hover:not(.sheet-tab-btn--active) {
    background: #f1f5f9;
    color: #334155;
}

.sheet-tab-panel {
    padding-bottom: 8px;
}

/* =========================================
   Hakkında tab içerikleri
   ========================================= */
.sheet-about-block {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: #ffffff;
}

.sheet-about-block-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sheet-about-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
}

.sheet-about-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sheet-about-row--column {
    align-items: flex-start;
    flex-direction: column;
}

.sheet-about-row-label {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sheet-about-row-value {
    font-size: 12px;
    color: #1e293b;
    font-weight: 600;
    text-align: right;
}

.sheet-about-row--column .sheet-about-row-value {
    text-align: left;
    margin-top: 3px;
    white-space: normal;
    word-break: break-word;
}

.sheet-about-row-value--closed {
    color: #ef4444;
}

.sheet-about-row-value--link {
    color: #ff5b2d;
    text-decoration: none;
}

.sheet-about-row-value--link:hover {
    text-decoration: underline;
}

.sheet-about-empty {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.sheet-about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sheet-about-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.sheet-about-feature-tag i {
    font-size: 10px;
}

.sheet-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.sheet-share-section {
    border: 1px solid #fed7aa;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff7ed;
}

.sheet-report-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.sheet-report-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px dashed #94a3b8;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sheet-report-toggle:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.sheet-report-collapse {
    margin-top: 10px;
}

.sheet-report-form {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
}

.sheet-report-field {
    margin-bottom: 10px;
}

.sheet-report-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.sheet-report-select,
.sheet-report-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #1e293b;
    background: white;
}

.sheet-report-select:focus,
.sheet-report-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.sheet-report-textarea {
    resize: vertical;
    min-height: 70px;
}

.sheet-report-actions {
    display: flex;
    justify-content: flex-end;
}

.sheet-report-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sheet-report-submit:hover {
    background: #dc2626;
}

.sheet-report-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sheet-report-message {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sheet-report-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sheet-report-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.sheet-report-login-prompt {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
}

.sheet-report-login-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.sheet-report-login-link:hover {
    text-decoration: underline;
}

/* İşletme yorumları */
.sheet-reviews-block {
    scroll-margin-top: 16px;
}

.sheet-review-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.sheet-review-heading > div:first-child > span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.sheet-review-summary {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px 5px;
    min-width: 88px;
    padding: 9px 12px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff7ed;
    text-align: right;
}

.sheet-review-summary strong {
    color: #9a3412;
    font-size: 20px;
    line-height: 1;
}

.sheet-review-summary i {
    color: #f59e0b;
    font-size: 14px;
}

.sheet-review-summary small {
    grid-column: 1 / -1;
    color: #78716c;
    font-size: 10px;
}

.sheet-review-login,
.sheet-review-notice,
.sheet-review-loading,
.sheet-review-error,
.sheet-review-empty {
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.sheet-review-login {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sheet-review-login a {
    color: #cf4a53;
    font-weight: 700;
}

.sheet-review-notice {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.sheet-review-error {
    background: #fef2f2;
    color: #b91c1c;
}

.sheet-my-review-status {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
}

.sheet-my-review-status--pending {
    background: #fffbeb;
    color: #92400e;
}

.sheet-my-review-status--approved {
    background: #f0fdf4;
    color: #166534;
}

.sheet-my-review-status--rejected {
    background: #fef2f2;
    color: #991b1b;
}

.sheet-review-feedback {
    margin-top: 5px;
}

.sheet-review-form {
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.sheet-review-label {
    display: block;
    margin: 0 0 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.sheet-review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}

.sheet-review-stars button {
    padding: 2px;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 22px;
    transition: color .15s ease, transform .15s ease;
}

.sheet-review-stars button:hover,
.sheet-review-stars button.is-selected {
    color: #f59e0b;
    transform: translateY(-1px);
}

.sheet-review-textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}

.sheet-review-textarea:focus {
    border-color: #cf4a53;
    outline: 2px solid rgba(207, 74, 83, .12);
}

.sheet-review-help {
    margin-top: 5px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.4;
}

.sheet-review-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.sheet-review-submit,
.sheet-review-report-submit,
.sheet-reviews-more {
    border: 0;
    border-radius: 9px;
    background: #cf4a53;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.sheet-review-submit {
    padding: 9px 14px;
}

.sheet-review-submit:disabled,
.sheet-review-delete:disabled,
.sheet-reviews-more:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.sheet-review-delete {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.sheet-review-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sheet-review-item {
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.sheet-review-user {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.sheet-review-user img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.sheet-review-user strong {
    display: block;
    overflow: hidden;
    color: #1e293b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-review-user time {
    color: #94a3b8;
    font-size: 10px;
}

.sheet-review-item-stars {
    display: flex;
    gap: 2px;
    margin-top: 3px;
    color: #e2e8f0;
    font-size: 9px;
}

.sheet-review-item-stars .is-filled {
    color: #f59e0b;
}

.sheet-review-item > p {
    margin: 10px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.sheet-review-item-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.sheet-review-report-toggle,
.sheet-review-reported {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 10px;
    text-decoration: none;
}

.sheet-review-report-toggle:hover {
    color: #cf4a53;
}

.sheet-review-reported {
    color: #16a34a;
    cursor: default;
}

.sheet-review-report-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.sheet-review-report-submit {
    justify-self: end;
    padding: 8px 11px;
}

.sheet-reviews-more {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #cf4a53;
    color: #cf4a53;
}

.sheet-reviews-more:hover {
    background: #fff5f5;
}

.sheet-share-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 0;
    background: linear-gradient(135deg, #ff7a3d, #ff5b2d);
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.sheet-share-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sheet-share-toggle-arrow {
    transition: transform 0.2s ease;
}

.sheet-share-section--open .sheet-share-toggle-arrow {
    transform: rotate(180deg);
}

.sheet-share-body {
    display: none;
    padding: 12px;
}

.sheet-share-section--open .sheet-share-body {
    display: block;
}

.sheet-share-summary {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #fdba74;
    border-radius: 12px;
    background: #ffffff;
}

.sheet-share-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.sheet-share-address {
    margin: 6px 0 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.sheet-share-note {
    margin: 8px 0 0;
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}

.sheet-share-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sheet-share-action-btn {
    width: 100%;
    justify-content: center;
    background: #ffffff;
}

.sheet-share-action-btn--google {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.sheet-share-action-btn--yandex {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.sheet-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 12px;
}

.sheet-section-title {
    margin: 0;
    padding: 12px 12px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.sheet-menu-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px 10px;
}

.sheet-menu-tab {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.sheet-menu-tab.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.sheet-items-list {
    padding: 0 12px 12px;
}

.sheet-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px dashed #e2e8f0;
    padding: 10px 0;
}

.sheet-item-row:first-child {
    border-top: none;
}

.sheet-item-btn {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.sheet-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.sheet-item-desc {
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
}

.sheet-item-price {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #mapContainer .leaflet-bottom.leaflet-left {
        left: 10px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    }

    #mapContainer .leaflet-bottom.leaflet-right,
    body.map-sidebar-open #mapContainer .leaflet-bottom.leaflet-right {
        right: 12px;
        bottom: 12px;
    }

    #mapContainer .leaflet-control-zoom a,
    #mapContainer .leaflet-control-locate-btn,
    #mapContainer .leaflet-touch .leaflet-bar a {
        width: 44px;
        height: 44px;
    }

    #mapContainer .leaflet-control-attribution {
        max-width: 116px;
        padding: 4px 8px !important;
        border-radius: 14px;
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
    }
}

.sheet-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
}

.sheet-featured-card {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.sheet-featured-img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    background: #e2e8f0;
}

.sheet-featured-body {
    padding: 8px;
}

.sheet-featured-name {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.sheet-featured-price {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
}

.sheet-item-detail {
    padding: 8px 0;
}

.sheet-item-detail-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #e2e8f0;
}

.sheet-item-detail h4 {
    margin: 12px 0 6px;
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
}

.sheet-item-detail p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.sheet-item-detail .sheet-item-price {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dcfce7;
}

/* İçerik içi geri + menü adı başlık satırı */
.sheet-item-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 12px;
}

.sheet-item-back-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.sheet-item-back-inline:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.sheet-item-breadcrumb-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-item-breadcrumb-text {
    min-width: 0;
}

.sheet-item-breadcrumb-desc {
    margin: 3px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

/* Belirgin fiyat rozeti */
.sheet-item-price-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5b2d 0%, #ff8c42 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(255, 91, 45, 0.30);
}

.sheet-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sheet-detail-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #166534;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.sheet-detail-update-badge i {
    font-size: 11px;
}

.sheet-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

.sheet-detail-section {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.sheet-detail-section-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.sheet-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sheet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
}

.sheet-detail-section--allergen {
    border-color: #fecaca;
    background: #fff7f7;
}

.sheet-detail-section--allergen .sheet-detail-section-title {
    color: #b91c1c;
}

.sheet-chip--allergen {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
    font-weight: 700;
}

.sheet-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
}

.sheet-feature-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
}

.sheet-feature-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.sheet-feature-value {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

/* =========================================
   Sheet Menü Accordion
   ========================================= */
.sheet-menu-accordion {
    padding: 0;
}

.sheet-menu-cat {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.sheet-menu-cat-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #d35255;
    transition: background 0.15s;
}

.sheet-menu-cat--open > .sheet-menu-cat-header {
    background: #eff6ff;
    color: #d35255;
}

.sheet-menu-cat-header:hover {
    background: #e0f2fe;
}

.sheet-menu-cat-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    flex-shrink: 0;
}

.menu-cat-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    color: #166534;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
}

.sheet-menu-cat--open > .sheet-menu-cat-header .sheet-menu-cat-count {
    color: #d35255;
}

.sheet-menu-cat-arrow {
    font-size: 10px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sheet-menu-cat--open > .sheet-menu-cat-header .sheet-menu-cat-arrow {
    transform: rotate(180deg);
    color: #d35255;
}

.sheet-menu-cat-body {
    display: none;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.sheet-menu-cat--open > .sheet-menu-cat-body {
    display: block;
}

.sheet-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px dashed #e2e8f0;
    cursor: pointer;
    width: 100%;
    border-left: none;
    border-right: none;
    border-top: none;
    background: transparent;
    text-align: left;
}

.sheet-cat-item:last-child {
    border-bottom: none;
}

.sheet-cat-item:hover {
    background: #f8fafc;
}

.sheet-cat-item-img {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px;
}

.sheet-cat-item-info {
    flex: 1;
    min-width: 0;
}

.sheet-cat-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-cat-item-desc {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-cat-item-price {
    font-size: 22px;
    font-weight: 700;
    color: #ff5b2d;
    flex-shrink: 0;
    white-space: nowrap;
}

.sheet-item-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    /* background: #f0fdf4; */
    color: #166534;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    /* margin-top: 4px; */
}

.sheet-item-update-badge i {
    font-size: 8px;
}

@media (max-width: 768px) {
    #detailSheet {
        width: 100%;
        top: auto;
        bottom: 0;
        height: 84vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
    }

    body.sheet-open #detailSheet {
        transform: translateY(0);
    }
}

/* =========================================
   Mobil — Menü Kategori Items Düzeni
   ========================================= */
@media (max-width: 768px) {
    .sheet-cat-item {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .sheet-cat-item-img {
        width: 92px;
        height: 92px;
    }

    .sheet-cat-item-info {
        flex: 1;
        /* min-width: calc(100% - 80px); */
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .sheet-cat-item-name {
        font-size: 14px;
    }

    .sheet-cat-item-desc {
        font-size: 10px;
        color: #64748b;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .sheet-cat-item-price {
        font-size: 16px;
        margin-top: 4px;
        align-self: flex-start;
    }

    .sheet-item-update-badge {
        margin-top: 4px; 
    }
}
