/* Malatya Kent 3D Harita Rehberi - Ä°BB Åehir HaritasÄ± 1:1 Geometrik ve Hassas TasarÄ±m */

/* ============================================================ */
/* MARKPRO FONT TANIMLARI (Ä°BB ÅEHÄ°R HARÄ°TASI Ä°LE BÄ°REBÄ°R AYNI) */
/* ============================================================ */
@font-face {
  font-family: 'MarkPro';
  font-weight: 300;
  src: url('../fonts/MarkPro-Light.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'MarkPro';
  font-weight: 400;
  src: url('../fonts/MarkPro.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'MarkPro';
  font-weight: 500;
  src: url('../fonts/MarkPro-Medium.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'MarkPro';
  font-weight: 700;
  src: url('../fonts/MarkPro-Bold.otf') format('opentype');
  font-display: swap;
}

:root {
  --primary-teal: #2fa89e;
  --primary-teal-dark: #24887f;
  --primary-teal-light: #e6f6f5;
  --duty-red: #dc2626;
  --sidebar-w: 390px;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --border-color: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "MarkPro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #f1f5f9;
  color: var(--text-main);
  font-family: "MarkPro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* Erişilebilirlik Yardımcısı */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HARİTA TUVALİ */
#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #f1f5f9;
}

/* HARİTA İLK AÇILIŞ YÜKLEME KATMANI (BEYAZ EKRANI ÖNLER) */
.map-loader-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease-out, visibility 0.35s ease-out;
  pointer-events: none;
}

.map-loader-backdrop.loaded {
  opacity: 0;
  visibility: hidden;
}

.map-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.map-loader-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid #e2e8f0;
  border-top-color: #0d9488;
  border-radius: 50%;
  animation: mk-spin 0.75s linear infinite;
}

.map-loader-text {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.2px;
}

@keyframes mk-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================ */
/* KOMPAKT ÃœST-SOL YÃœZEN ARAMA Ã‡UBUÄU (HARÄ°TA Ä°LK AÃ‡ILIÅ - PHOTO 1) */
/* ============================================================ */
.floating-top-search {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 370px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 15;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.floating-top-search.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================ */
/* HARİTA SAĞ ALT LOGO ROZETİ (KOORDİNAT ŞERİDİNİN ÜSTÜNDE) */
/* ============================================================ */
.floating-brand-badge {
  position: absolute;
  bottom: 34px;
  right: 12px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s;
  pointer-events: auto;
  user-select: none;
}

.floating-brand-badge:hover {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.floating-brand-badge.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================ */
/* HARİTA PORTAL GERİ DÖNÜŞ BUTONU (MOBİL VE WEB AKILLI GEÇİŞ) */
/* ============================================================ */
.floating-portal-return {
  position: absolute;
  top: 14px;
  left: 394px;
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  z-index: 15;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.floating-portal-return:hover {
  background: #f8fafc;
  color: #ea580c;
  border-color: #ea580c;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.18);
  transform: translateY(-1px);
}

.floating-portal-return .portal-return-arrow {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.floating-portal-return:hover .portal-return-arrow {
  transform: translateX(-3px);
  color: #ea580c;
}

.floating-portal-return .portal-return-icon {
  font-size: 14px;
  color: #ea580c;
}

.floating-portal-return.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Sidebar portal geçiş butonları */
.sidebar-portal-nav {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-portal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  transition: all 0.15s ease;
}

.sidebar-portal-btn:hover {
  background: #fff;
  border-color: #ea580c;
  color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15);
}

.sidebar-portal-btn i {
  font-size: 13px;
  color: #ea580c;
}

.brand-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-badge-logo {
  height: 34px;
  width: auto;
  max-width: 156px;
  object-fit: contain;
  display: block;
}

.top-hamburger-btn {
  width: 44px;
  height: 44px;
  background: var(--primary-teal);
  border: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.top-hamburger-btn:hover {
  background: var(--primary-teal-dark);
}

.top-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

.top-search-input::placeholder {
  color: var(--text-light);
}

.top-search-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
}

.top-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.top-action-btn:hover {
  background: #f1f5f9;
  color: var(--primary-teal);
}

.top-action-btn#btn-top-clear-search {
  color: #ef4444;
  font-weight: 700;
}

.top-action-btn#btn-top-clear-search:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* ============================================================ */
/* SOL BAR - DÄ°REKT SOLDAN BÃœTÃœN GELEN PANEL (PHOTO 2, 3, 4) */
/* ============================================================ */
.left-docked-sidebar {
  position: absolute;
  top: 0;
  left: -420px; /* KapalÄ±yken gizli */
  width: var(--sidebar-w);
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.15);
  z-index: 25;
  display: flex;
  flex-direction: column;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.left-docked-sidebar.open {
  left: 0; /* AÃ§Ä±lÄ±nca direkt soldan bÃ¼tÃ¼n olarak ekrana yapÄ±ÅŸÄ±r */
}

/* Sidebar Üst Sabit Arama Başlığı */
.sidebar-search-header {
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  flex-shrink: 0;
}

.sidebar-search-row {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  height: 44px;
}

.sidebar-search-row:focus-within {
  border-color: var(--primary-teal);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(47, 168, 158, 0.15);
}

.sidebar-menu-btn {
  width: 44px;
  height: 44px;
  background: var(--primary-teal);
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

.sidebar-search-clear {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 8px;
  display: none;
}

.sidebar-search-clear:hover {
  color: var(--text-main);
}

/* 3 ADET DURUM KARTI (TRAFÄ°K, HAVA, HAVA KALÄ°TESÄ°) */
.status-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.status-mini-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.status-mini-card i {
  color: var(--primary-teal);
  font-size: 13px;
}

/* ============================================================ */
/* GÃ–RÃœNÃœM 1: MENÃœYÃœ Ä°LK AÃ‡INCA DÄ°REKT GELEN 24 KATEGORÄ° (PHOTO 3) */
/* ============================================================ */
.sidebar-view-container {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

#view-categories {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.categories-top-controls {
  padding: 10px 14px 6px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.segmented-toggle-row {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.segmented-item {
  flex: 1;
  padding: 6px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.segmented-item.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.segmented-item#tab-btn-categories.active {
  color: #0f766e;
}
.segmented-item#tab-btn-categories.active i {
  color: #0f766e;
}

.segmented-item#tab-btn-services.active {
  color: #ea580c;
}
.segmented-item#tab-btn-services.active i {
  color: #ea580c;
}



.district-dropdown-box {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
}

/* 24 KATEGORİ VE KENT SERVİSLERİ IZGARASI */
.categories-24-grid {
  flex: 1;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  padding: 10px 14px 20px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: start;
}

.categories-24-grid::-webkit-scrollbar {
  width: 4px;
}

.categories-24-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

/* 24 KATEGORİ VE KENT SERVİSLERİ KARTLARI (BİREBİR AYNI KARE BOYUT VE DÜZEN) */
.cat-box-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px 8px 6px;
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  box-sizing: border-box;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, filter 0.16s ease-out;
  text-align: center;
  text-decoration: none;
}

.cat-box-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
  filter: brightness(0.97);
}

.cat-box-card .cat-icon-wrap {
  width: 44px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.cat-box-card .cat-icon-wrap i {
  font-size: 26px; /* Yuvarlak alanı kaplayacak kadar büyük ve şık */
  transition: transform 0.18s ease-out;
}

.cat-box-card:hover .cat-icon-wrap i {
  transform: scale(1.14);
}

.cat-box-card .cat-title-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 3px;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: break-word;
  overflow: hidden;
}

.cat-box-card .cat-count-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
  flex-shrink: 0;
}

/* ============================================================ */
/* GÃ–RÃœNÃœM 2: SEÃ‡Ä°LEN KATEGORÄ°NÄ°N / ARAMANIN FÄ°RMA LÄ°STESÄ° */
/* ============================================================ */
#view-places-list {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.places-list-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.places-list-close-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.places-list-close-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* ============================================================ */
/* 2'LÄ° GRID ALT KATEGORÄ° SEÃ‡Ä°M ALANI (SOLA YASLI KURUMSAL MÄ°MARÄ°) */
/* ============================================================ */
.subcategories-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  max-height: 240px;
  overflow-y: auto;
  flex-shrink: 0;
}

.subcategories-grid-container::-webkit-scrollbar {
  width: 3px;
}
.subcategories-grid-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.subcat-grid-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  min-height: 48px;
  transition: all 0.16s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.subcat-grid-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.subcat-grid-name {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subcat-grid-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* AKTÄ°F / SEÃ‡Ä°LÄ° ALT KATEGORÄ° (TAM EÅÄ°T DÃ–RT KENAR BORDER, Ã‡Ä°ZGÄ°SÄ°Z & TEMÄ°Z) */
.subcat-grid-card.active {
  background: #f0fdfa !important;
  border: 1.5px solid #0f766e !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12) !important;
}

.subcat-grid-card.active .subcat-grid-name {
  color: #0f766e !important;
}

.subcat-grid-card.active .subcat-grid-badge {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* PASÄ°F / FÄ°RMASI OLMAYAN ALT KATEGORÄ° (KULLANICI Ä°STEÄÄ°: SOLUK VE TIKLANMAZ) */
.subcat-grid-card.disabled {
  opacity: 0.35 !important;
  filter: grayscale(1) !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.subcat-grid-card.disabled .subcat-grid-name {
  color: #94a3b8 !important;
}

.subcat-grid-card.disabled .subcat-grid-badge {
  color: #94a3b8 !important;
  background: #e2e8f0 !important;
  box-shadow: none !important;
}

.btn-back-to-categories {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--primary-teal);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.btn-back-to-categories:hover {
  background: #f0fdfa;
  border-color: #0f766e;
  color: #0f766e;
}

.places-active-cat-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}

.places-scrollable-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.places-scrollable-list::-webkit-scrollbar {
  width: 4px;
}

.places-scrollable-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.place-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px !important;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.place-item-card:hover {
  border-color: #1f9e91;
  box-shadow: 0 4px 14px rgba(31, 158, 145, 0.14);
  transform: translateY(-1px);
}

.place-item-thumb,
.place-item-thumb-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid #f1f5f9;
}

.place-item-thumb {
  object-fit: cover;
  display: block;
  background: #f8fafc;
}

.place-item-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.15s ease;
}

.place-item-card:hover .place-item-thumb-placeholder {
  transform: scale(1.06);
}

.place-item-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.item-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  text-align: left;
}

.item-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  text-align: left;
}

.item-card-cat {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 4px;
  text-align: left;
}

.item-card-address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  text-align: left;
}

.item-card-address i {
  color: #94a3b8 !important; /* Harita Ä°stanbul aÃ§Ä±k gri zarif pin ikonu */
  font-size: 11px;
  flex-shrink: 0;
}

.item-card-address span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-card-address {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.35;
}

.item-card-address i {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 11px;
}

/* ============================================================ */
/* GÃ–RÃœNÃœM 3: SEÃ‡Ä°LEN YER DETAY Ã‡EKMECESÄ° (PHOTO 4 & 5) */
/* ============================================================ */
#view-place-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 40;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

#view-place-detail.active {
  display: flex;
}

.detail-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-nav-btn {
  background: none;
  border: none;
  color: var(--primary-teal);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

.detail-body-container {
  padding: 14px;
}

.detail-place-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 4px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.detail-place-meta {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.45;
}

.detail-buttons-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-route-action {
  flex: 1;
  background: #1f9e91;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-route-action:hover {
  background: #0d9488;
  transform: translateY(-1px);
}

.btn-share-action {
  flex: 1;
  background: #ffffff;
  color: #1f9e91;
  border: 1.5px solid #1f9e91;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-share-action:hover {
  background: #f0fdfa;
  transform: translateY(-1px);
}

/* FÄ°RMA VÄ°TRÄ°N RESMÄ° & LOGO ALANI */
.detail-showcase-wrapper {
  position: relative;
  width: 100%;
  height: 155px;
  background: #f1f5f9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.detail-cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-logo-box {
  position: absolute;
  bottom: 8px;
  left: 14px;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.detail-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* SOKAK GÃ–RÃœNÃœMÃœ 360 KART KUTUSU (HARÄ°TA Ä°STANBUL 1:1) */
.street-view-section-wrap {
  margin-bottom: 14px;
}

.section-block-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: capitalize;
}

.preview-street-box {
  height: 85px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s, box-shadow 0.18s;
}

.preview-street-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 168, 158, 0.2);
  border-color: #1f9e91;
}

.street-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.street-overlay-badge-minimal {
  position: absolute;
  bottom: 6px;
  right: 8px;
}

.tag-360-minimal {
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* HARÄ°TA Ä°STANBUL 1:1 BEYAZ KART ÅABLONU (ADRES VE DÄ°NAMÄ°K KARTLAR) */
.istanbul-white-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.address-card-box .address-text-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 10px;
}

.address-pin-icon {
  color: #64748b;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-address-feedback {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.15s;
}

.btn-address-feedback:hover {
  color: #1f9e91;
}

.feedback-shield-icon {
  color: #0284c7;
  margin-right: 6px;
  font-size: 13px;
}

.feedback-arrow {
  margin-left: auto;
  font-size: 10px;
  color: #94a3b8;
}

/* AKILLI DÄ°NAMÄ°K KARTLAR (HARÄ°TA Ä°STANBUL 1:1 DURAKLAR / NÃ–BETÃ‡Ä°LER / SAATLER) */
.detail-dynamic-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dynamic-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s;
}

.dynamic-info-card:hover {
  border-color: #cbd5e1;
}

.dynamic-card-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
}

.dynamic-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.dynamic-card-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.icon-box-bus { background: #e0f2fe; color: #0284c7; }
.icon-box-pharmacy { background: #fee2e2; color: #ef4444; }
.icon-box-clock { background: #fef3c7; color: #d97706; }
.icon-box-phone { background: #ecfdf5; color: #059669; }
.icon-box-parking { background: #e0e7ff; color: #4338ca; }

.dynamic-chevron {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.dynamic-info-card.collapsed .dynamic-chevron {
  transform: rotate(-90deg);
}

.dynamic-card-content {
  padding: 0 14px 10px 14px;
  border-top: 1px solid #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dynamic-info-card.collapsed .dynamic-card-content {
  display: none;
}

.dynamic-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #334155;
  padding: 5px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.dynamic-sub-item:last-child {
  border-bottom: none;
}

.dynamic-sub-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-bus-line { background: #f1f5f9; color: #475569; }
.tag-duty-green { background: #dcfce7; color: #15803d; }

.dynamic-card-footnote {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  padding: 0 4px;
}

.preview-street-box:hover .street-preview-img {
  transform: scale(1.04);
}

.street-overlay-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.1) 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 10px;
  box-sizing: border-box;
}

.street-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-360 {
  font-size: 11px;
  font-weight: 800;
  background: var(--primary-teal);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.section-info-block {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-bottom: 10px;
}

.section-block-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.address-text-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
}

.address-text-row i {
  color: var(--primary-teal);
  margin-top: 2px;
}

.accordion-transport-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  overflow: hidden;
}

.accordion-title-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.accordion-details-text {
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-muted);
  background: #ffffff;
  display: none;
  line-height: 1.5;
}

.accordion-transport-box.open .accordion-details-text {
  display: block;
}

/* ============================================================ */
/* Ä°BB 1:1 ROZET MARKERLARI (ZEMÄ°NE SABÄ°TLENEN KUSURSUZ MÄ°MARÄ°) */
/* ============================================================ */
.mk-pin-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 26px;
  height: 32px;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  will-change: transform;
  z-index: 5;
  /* ASLA wrapper Ã¼zerine transform veya transition koyulmaz! MapLibre bunu anlÄ±k 60fps koordinatla yÃ¶netir */
}

.mk-pin-inner {
  width: 26px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform-origin: bottom center;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* UZAKLAÅINCA OTOMATÄ°K KAYBOLMA (Ä°STANBUL Ã‡Ã–ZÃœMÃœ) */
.mk-pin-wrapper.zoom-hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mk-pin-wrapper.zoom-hidden * {
  display: none !important;
}

.mk-pin-wrapper.zoom-hidden .mk-pin-inner {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.1) !important;
  visibility: hidden !important;
}

.mk-pin-inner:hover .mk-pin-body {
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* PÄ°N ÃœST GÃ–VDESÄ° (26px x 26px - Ä°BB 1:1 Geometrik Rozet) */
.mk-pin-body {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22), 0 0 0 1.5px #ffffff;
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out;
  flex-shrink: 0;
}

/* PÄ°N ALT ÃœÃ‡GEN Ä°ÄNE UCU - TAM TABAN ORTASINA KÄ°LÄ°TLÄ° */
.mk-pin-tip {
  width: 0;
  height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 6px solid #ef4444;
  margin-top: -1px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
  flex-shrink: 0;
}

/* 1. SABÄ°T KIRMIZI ECZANE (BEYAZ E) */
.pin-type-pharmacy .mk-pin-body {
  background: #f05454;
}
.pin-type-pharmacy .mk-pin-tip {
  border-top-color: #f05454;
}

/* 2. NÃ–BETÃ‡Ä° ECZANE: SAKÄ°N VE YAVAÅ NEFES ALAN Ä°Ã‡ PARILTI (GÃ–ZÃœ YORMAYAN GENTLE PULSE) */
.pin-type-pharmacy.is-duty .mk-pin-body {
  animation: dutyGentlePulse 2.4s infinite ease-in-out !important;
  color: #ffffff !important;
}

.pin-type-pharmacy.is-duty .mk-pin-tip {
  animation: dutyTipPulse 2.4s infinite ease-in-out !important;
}

@keyframes dutyGentlePulse {
  0%, 100% {
    background-color: #f05454;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    transform: scale(1);
  }
  50% {
    background-color: #b91c1c; /* Patlamayan, tatlÄ± ve derin yakut kÄ±rmÄ±zÄ±sÄ± */
    box-shadow: 0 2px 10px rgba(185, 28, 28, 0.45);
    transform: scale(1.06);
  }
}

@keyframes dutyTipPulse {
  0%, 100% {
    border-top-color: #f05454;
  }
  50% {
    border-top-color: #b91c1c;
  }
}

/* 3. HASTANELER: Ã–ZEL VE NET HASTANE BÄ°NASI Ä°KONU */
.pin-type-hospital .mk-pin-body {
  background: #e11d48;
  font-size: 11.5px;
}
.pin-type-hospital .mk-pin-body i {
  color: #ffffff;
  transform: translateY(-0.5px);
}
.pin-type-hospital .mk-pin-tip {
  border-top-color: #e11d48;
}

/* 4. KAMU & RESMÄ° KURUMLAR (BELEDÄ°YELER, MÃœDÃœRLÃœKLER, VALÄ°LÄ°K) */
.pin-type-public .mk-pin-body {
  background: #1e3a8a;
  font-size: 11px;
}
.pin-type-public .mk-pin-body i {
  color: #ffffff;
  transform: translateY(-0.5px);
}
.pin-type-public .mk-pin-tip {
  border-top-color: #1e3a8a;
}

/* 5. DÄ°ÄER KATEGORÄ°LER Ä°Ã‡Ä°N DÄ°NAMÄ°K RENKLÄ° ROZETLER */
.pin-type-custom .mk-pin-body {
  font-size: 11px;
}

/* SEÃ‡Ä°LEN YER Ä°Ã‡Ä°N AÃ‡ILIR MÄ°NÄ° ETÄ°KET */
.mk-pin-tooltip {
  position: absolute;
  bottom: 28px;
  background: #1e293b;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 100;
}

.mk-pin-wrapper.active .mk-pin-tooltip {
  display: block;
}

/* ============================================================ */
/* SAĞ ÜST YÜZEN ARAÇ ÇUBUĞU (Pegman / Cetvel / Grid) */
/* ============================================================ */
.map-top-floating-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  z-index: 15;
}

/* ============================================================ */
/* SAĞ ÜST DİKEY EYLEM KARELERİ (Trafik & Canlı Şehir Kameraları) */
/* ============================================================ */
.map-right-action-cards {
  position: absolute;
  top: 64px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 15;
}

.map-square-card-btn {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1f9e91;
  font-size: 18px;
  transition: all 0.18s ease;
}

.map-square-card-btn:hover {
  background: #f0fdfa;
  color: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.map-square-card-btn.traffic-active {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.4) !important;
  transform: scale(1.04);
}

.map-square-card-btn.map-camera-hub-btn {
  color: #1e293b;
}

.map-square-card-btn.map-camera-hub-btn:hover,
.map-square-card-btn.map-camera-hub-btn.active {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
}

/* ============================================================ */
/* SAĞ NAVİGASYON KONTROLLERİ: PUSULA + ZOOM + KONUM (SAYFA DİKEY ORTASI) */
/* ============================================================ */
.map-right-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 14px;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 15;
  pointer-events: none;
}

.map-right-controls > * {
  pointer-events: auto;
  flex-shrink: 0;
}


/* 1. Ãœst HÄ±zlÄ± AraÃ§lar KapsÃ¼lÃ¼ (Pegman, Cetvel, Uygulamalar Grid) */
.map-top-tools-pill {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.map-pill-btn {
  width: 36px;
  height: 34px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #1f9e91;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.map-pill-btn:hover {
  background: #f0fdfa;
  color: #0d9488;
  transform: translateY(-1px);
}

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

.map-pill-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 2px;
}

/* 2. Canlı Trafik Butonu (Bütünlüğü Koruyan Sade Kurumsal Tasarım) */
.map-traffic-card {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1f9e91;
  font-size: 18px;
  transition: all 0.18s ease;
}

.map-traffic-card:hover {
  background: #f0fdfa;
  color: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.map-traffic-card.traffic-active {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.4) !important;
  transform: scale(1.04);
}

/* 3. Katmanlar Puzzle Butonu */
.map-puzzle-btn {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 19px;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 35%, #10b981 100%);
  color: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.map-puzzle-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

/* 4. Dairesel 3B Pusula KadranÄ± (Harita Ä°stanbul 1:1) */
.compass-3d-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

/* DÃ¶nen dÄ±ÅŸ pusula halkasÄ± */
.compass-dial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  transition: transform 0.12s cubic-bezier(0.1, 0.9, 0.2, 1);
  pointer-events: auto;
}

/* Kuzey KÄ±rmÄ±zÄ± ÃœÃ§gen Ok Ucu */
.compass-needle-n {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid #ef4444; /* CanlÄ± kÄ±rmÄ±zÄ± */
}

/* DoÄŸu, GÃ¼ney, BatÄ± Harfleri */
.compass-label-e, .compass-label-s, .compass-label-w {
  position: absolute;
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
}

.compass-label-e {
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-label-s {
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-label-w {
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

/* PusulanÄ±n ortasÄ±ndaki 3B Butonu (Harita Ä°stanbul 1:1) */
.compass-center-btn {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1f9e91;
  font-size: 13px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.5px;
  transition: all 0.18s ease;
}

.compass-center-btn:hover {
  transform: scale(1.08);
  color: #0d9488;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.compass-center-btn.active-3d {
  background: #ffffff;
  color: #1f9e91;
}

/* 5. Dikey Zoom KapsÃ¼lÃ¼ (+ / âˆ’) (SABÄ°T 8PX & ORTALANMIÅ) */
.zoom-capsule-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 44px;
  margin: 0 auto;
}

.zoom-capsule-action {
  width: 44px;
  height: 38px;
  background: #ffffff;
  border: none;
  color: #1f9e91;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.zoom-capsule-action:hover {
  background: #f0fdfa;
  color: #0d9488;
}

.zoom-capsule-line {
  width: 28px;
  height: 1px;
  background: #f1f5f9;
}

/* 6. BaÄŸÄ±msÄ±z Konum KartÄ± (Harita Ä°stanbul 1:1, SABÄ°T 8PX & ORTALANMIÅ) */
.location-radar-card {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1f9e91;
  font-size: 16px;
  transition: all 0.18s ease;
  margin: 0 auto;
}

.location-radar-card:hover {
  background: #f0fdfa;
  color: #0d9488;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* SOL ALT UYDU BUTONU */
.satellite-preview-card {
  position: absolute;
  bottom: 24px;
  left: 20px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  z-index: 10;
  cursor: pointer;
  background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=120&q=80') center/cover;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

/* Sol menü açılınca uydu butonu barla birlikte kayar */
.left-docked-sidebar.open ~ .satellite-preview-card {
  left: calc(var(--sidebar-w) + 16px);
}

.left-docked-sidebar.open.collapsed ~ .satellite-preview-card {
  left: 20px;
}

@media (max-width: 640px) {
  .left-docked-sidebar.open ~ .satellite-preview-card {
    display: none;
  }
}

.satellite-preview-card:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.satellite-preview-card.active {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px #0f766e, 0 6px 18px rgba(15, 118, 110, 0.35);
  background: url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&w=120&q=80') center/cover;
}

.satellite-preview-card span {
  width: 100%;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(2px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  letter-spacing: 0.3px;
}

/* SAÄ ALT BÄ°LGÄ° ÅERÄ°DÄ° */
.footer-coords-strip {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  padding: 5px 14px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 10;
  border-top-left-radius: var(--radius-sm);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  min-width: 380px; /* Sabit genişlik: mouse hareketinde div asla titremez veya genişleyip küçülmez */
  box-sizing: border-box;
  user-select: none;
}

#footer-coords-label {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  display: inline-block;
  min-width: 155px;
  text-align: right;
  letter-spacing: -0.2px;
}

/* TOAST / BÄ°LDÄ°RÄ°M KAPSÃœLÃœ (SABÄ°T 8PX KURUMSAL BORDER-RADIUS) */
#app-toast {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #ffffff;
  color: #1e293b;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  letter-spacing: -0.2px;
}

#app-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#app-toast span {
  color: #1e293b;
  line-height: 1.2;
}

#app-toast i {
  color: #1f9e91;
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================================ */
/* CANLI KULLANICI KONUMU & YÃœRÃœYEN Ä°NSAN Ä°KONU (GOOGLE TARZI GPS AVATAR) */
/* ============================================================ */
.live-walking-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.live-walking-avatar-pulse {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.22);
  animation: avatarPulse 2s infinite ease-out;
}

@keyframes avatarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.live-walking-avatar-core {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0f766e;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  font-size: 15px;
  transition: transform 0.2s ease;
  z-index: 2;
}

/* ============================================================ */
/* SAÄ KÃ–ÅEDEN AÃ‡ILAN Ã‡ERÃ‡EVESÄ°Z SOKAK GÃ–RÃœNÃœMÃœ KARTI (360 STREET VIEW) */
/* ============================================================ */
.right-streetview-panel {
  position: absolute;
  top: 0;
  right: -750px;
  width: 680px;
  height: 100vh;
  max-height: 100vh;
  background: #000000;
  border: none;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.5);
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow: visible; /* Kapatma butonunun sol kenardan taÅŸabilmesi iÃ§in */
  transition: right 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.right-streetview-panel.open {
  right: 0;
}

/* ============================================================ */
/* PANEL KAPATMA / GERÄ° Ä°Ã‡ERÄ° ALMA BUTONLARI (2. VE 3. RESÄ°MDEKÄ° KIRMIZI KUTULAR) */
/* SADECE PANEL AÃ‡IKKEN GÃ–RÃœNÃœR, GERÄ° Ä°Ã‡ERÄ° ALMAK Ä°Ã‡Ä°N TERS YÃ–NE BAKAR */
/* ============================================================ */
.panel-collapse-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 44px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: none; /* Sadece panel aÃ§Ä±kken gÃ¶rÃ¼nÃ¼r */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1e293b;
  font-size: 13px;
  z-index: 100;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

/* Panel aÃ§Ä±kken butonu gÃ¶ster */
.left-docked-sidebar.open .collapse-left-btn,
.right-streetview-panel.open .collapse-right-btn {
  display: flex;
}

.panel-collapse-btn:hover {
  background: #f8fafc;
  color: var(--primary-teal);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

/* Sol panelin sağ kenarına tam ortalanan kapatma butonu (Sola doğru içeri alır: <<) */
.collapse-left-btn {
  right: -14px;
}

/* ============================================================ */
/* SOL BAR: YANA ALMA (COLLAPSE / EXPAND) DÜZENLEMESİ */
/* ============================================================ */
.left-docked-sidebar.collapsed {
  left: -400px !important;
  box-shadow: none !important;
}

/* Panel yana katlandığında bile ok butonu ekran kenarında tutamaç olarak asılı kalır */
.left-docked-sidebar.open.collapsed .collapse-left-btn {
  display: flex !important;
  right: -24px !important;
  background: #ffffff;
  border-left: none;
  border-radius: 0 6px 6px 0;
  box-shadow: 4px 2px 12px rgba(0, 0, 0, 0.18);
  color: var(--primary-teal);
  cursor: pointer;
  z-index: 120;
}

/* SaÄŸ panelin sol kenarÄ±na tam ortalanan kapatma butonu (SaÄŸa doÄŸru iÃ§eri alÄ±r: >>) */
.collapse-right-btn {
  left: -14px;
}

.sv-frameless-iframe {
  width: 100%;
  height: 100%;
  flex: 1;
  border: none;
  display: block;
  background: #000000;
}

/* SOKAK GÃ–RÃœNÃœMÃœ PASÄ°F / YOK DURUMU */
.preview-street-box.disabled {
  opacity: 0.45;
  filter: grayscale(1);
  cursor: not-allowed !important;
  pointer-events: none;
}

@media (max-width: 900px) {
  .right-streetview-panel {
    width: 100vw;
    right: -100vw;
    top: 0;
    height: 100vh;
  }
  .right-streetview-panel.open {
    right: 0;
  }
}

/* ============================================================ */
/* CANLI ŞEHİR KAMERALARI: HARİTAYA TAM SABİTLENEN Malatya.net.tr PİNİ VE 90° DÖNEN FOV */
/* ============================================================ */
.pin-type-camera {
  cursor: pointer;
  z-index: 10;
}

.pin-type-camera .mk-pin-body {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.55);
  font-size: 13px;
  position: relative;
  z-index: 5;
}

.pin-type-camera .mk-pin-tip {
  border-top-color: #0284c7 !important;
  z-index: 5;
}

/* 1. FOV Görüş Konisi (Pin Merkezinden Yayılır: left 13px, bottom 20px) */
.pin-type-camera .camera-fov-rotator {
  position: absolute;
  left: 13px;
  bottom: 20px;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.4s ease-out;
}

/* 2. Salınan / Dönen Görüş Konisi (Dinamik PTZ ve Radar Salınımı) */
.pin-type-camera .camera-fov-sweep {
  position: absolute;
  top: -70px;
  left: -70px;
  width: 140px;
  height: 140px;
  transform-origin: 70px 70px;
  animation: cctvDynamicSweep var(--sweep-duration, 3.4s) ease-in-out infinite alternate;
}

@keyframes cctvDynamicSweep {
  0% {
    transform: rotate(calc(-1 * var(--sweep-half, 9deg)));
  }
  100% {
    transform: rotate(var(--sweep-half, 9deg));
  }
}

.pin-type-camera .camera-fov-svg {
  width: 140px;
  height: 140px;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.4));
}

.pin-type-camera .fov-sector-wedge {
  transition: fill 0.2s, stroke 0.2s;
}

.pin-type-camera:hover .fov-sector-wedge {
  stroke: rgba(56, 189, 248, 1);
  stroke-width: 1.8;
}

/* Radar Tarama Dalga Efekti */
.pin-type-camera .fov-radar-sweep-beam {
  animation: radarBeamPulse 2s ease-in-out infinite alternate;
  transform-origin: 0 0;
}

@keyframes radarBeamPulse {
  0% {
    opacity: 0.2;
    transform: rotate(-25deg);
  }
  100% {
    opacity: 0.85;
    transform: rotate(25deg);
  }
}

.pin-type-camera .camera-pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background-color: #ef4444;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
  animation: camera-pulse 1.3s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.pin-type-camera .mk-pin-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 100;
  pointer-events: none;
}

.pin-type-camera:hover .mk-pin-tooltip,
.pin-type-camera.active .mk-pin-tooltip {
  display: block;
}

@keyframes camera-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

/* ============================================================ */
/* SAĞ ÜST CANLI KAMERALAR HUB BUTONU & AÇILIR LİSTE (RESİM 3)  */
/* ============================================================ */
.camera-hub-container {
  position: relative;
  display: inline-flex;
}

.map-camera-hub-btn {
  position: relative;
  background: #ffffff !important;
  color: #1e293b !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.map-camera-hub-btn:hover,
.map-camera-hub-btn.active {
  background: #0f766e !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.hub-camera-pulse {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  animation: live-dot-anim 1.2s infinite ease-in-out;
}

/* RESİMDEKİ AÇILIR KAMERA LİSTESİ PANELİ (Kamera Butonunun Yanında Yatay Açılır) */
.camera-dropdown-panel {
  position: absolute;
  top: 0;
  right: 54px;
  width: 290px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8px) scale(0.96);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.camera-dropdown-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.camera-dropdown-panel::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #e2e8f0;
  transform: rotate(45deg);
  border-top: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  pointer-events: none;
}

/* Panel Başlığı (Resim 3: Gri bant zemin & Koyu Kamera İkonu) */
.camera-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #cbd5e1;
}

.camera-dropdown-header i {
  font-size: 15px;
  color: #1e293b;
}

/* Liste Gövdesi */
.camera-dropdown-list {
  display: flex;
  flex-direction: column;
  max-height: none;
  overflow: visible;
}

.camera-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.15s ease;
}

.camera-dropdown-item:last-child {
  border-bottom: none;
}

.camera-dropdown-item:hover {
  background: #f8fafc;
}

.camera-dropdown-item.active {
  background: #f0fdfa;
  border-left: 3px solid #0f766e;
}

/* Resim 3 Sol Baştaki Küçük Kamera Önizlemesi */
.camera-dropdown-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.camera-dropdown-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Büyük Harfli Kalın Başlık (BEYLERDERESI, MALIYE vb.) */
.camera-dropdown-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* Alt Metin (Malatya) */
.camera-dropdown-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
}

/* ============================================================ */
/* HARİTA ÜZERİNDE YÜZEN BEYAZ CANLI KAMERA WİDGETI (İSTANBUL STİLİ) */
/* ============================================================ */
.camera-floating-widget {
  position: fixed;
  bottom: 24px;
  right: 84px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.camera-floating-widget.active {
  display: flex;
}

/* 1. Minimized Pill (Hap Görünümü - Harita İstanbul Beyaz Kapsül) */
.camera-widget-pill {
  display: none;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b;
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 600;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.2s ease;
}

.camera-widget-pill:hover {
  background: #f8fafc;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.camera-floating-widget.minimized .camera-widget-pill {
  display: inline-flex;
}

.camera-floating-widget.minimized .camera-widget-card {
  display: none;
}

.pill-expand-btn,
.pill-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 12px;
}
.pill-expand-btn:hover { color: #0f766e; }
.pill-close-btn:hover { color: #dc2626; }

/* 2. Expanded Card (Yatay İnce Dikdörtgen & Üst Barsız Modern Tasarım - 16:9 Widescreen) */
.camera-widget-card.camera-card-widescreen {
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #090d16;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  animation: widgetSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes widgetSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.camera-video-container.camera-video-widescreen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* %100 YATAY İNCE DİKDÖRTGEN FORMAT */
  background: #000000;
  overflow: hidden;
}

.camera-video-container.camera-video-widescreen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video Üstü Şeffaf Bar (Sol: CANLI + İsim, Sağ: Tam Ekran & Kapatma) */
.cam-top-overlay-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 12px 16px 12px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.cam-top-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  min-width: 0;
}

.cam-top-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.2px;
}

.cam-top-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
  flex-shrink: 0;
}

.cam-glass-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cam-glass-circle-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.cam-glass-circle-btn.close:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

/* Video Üzeri Sağ/Sol Kamera Değiştirici Oklar (Modern Hover) */
.cam-overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  z-index: 6;
  opacity: 0;
  transition: all 0.2s ease;
}

.camera-video-container:hover .cam-overlay-nav {
  opacity: 0.85;
}

.cam-overlay-nav:hover {
  opacity: 1 !important;
  background: #0f766e;
  border-color: #0f766e;
  transform: translateY(-50%) scale(1.08);
}

.cam-overlay-nav.prev { left: 8px; }
.cam-overlay-nav.next { right: 8px; }

/* Video Altı Şeffaf Bar (Sadece Ses İkonu + İzleyici + Haritada Göster) */
.cam-bottom-overlay-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 10px 8px 10px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.cam-bottom-left {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.cam-glass-circle-btn.audio {
  width: 28px;
  height: 28px;
}

.cam-glass-tag {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cam-glass-focus-btn {
  pointer-events: auto;
  background: rgba(15, 118, 110, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 5px 11px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cam-glass-focus-btn:hover {
  background: #0f766e;
  transform: scale(1.03);
}

/* Canlı Yükleniyor Göstergesi */
.camera-video-loading {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  z-index: 7;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.camera-video-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.camera-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: cam-spin 0.8s linear infinite;
}

.camera-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.camera-dot-btn.active {
  background: #0f766e;
  transform: scale(1.35);
  box-shadow: 0 0 6px rgba(15, 118, 110, 0.45);
}

@media (max-width: 640px) {
  .camera-floating-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
  .camera-widget-card {
    width: 100%;
  }
}

.camera-live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: live-dot-anim 1.2s infinite ease-in-out;
}

@keyframes live-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.camera-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.camera-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.camera-modal-district {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.camera-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.camera-action-btn,
.camera-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.camera-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.camera-close-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

/* Kare Video Alanı */
.camera-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* %100 KARE TASARIM */
  background: #000000;
  overflow: hidden;
}

.camera-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000000;
}

/* Canlı Yükleniyor Göstergesi */
.camera-video-loading {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  z-index: 5;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.camera-video-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.camera-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: cam-spin 0.8s linear infinite;
}

@keyframes cam-spin {
  to { transform: rotate(360deg); }
}

/* Video İçi Hızlı Kontroller */
.camera-video-overlay-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}

.camera-overlay-btn,
.camera-overlay-viewers {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.camera-overlay-btn {
  cursor: pointer;
  transition: all 0.15s ease;
}

.camera-overlay-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}

/* Modal Alt Açıklama */
.camera-modal-footer {
  padding: 10px 16px;
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.camera-modal-desc {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================ */
/* ÜST BUTONLAR AKTİF DURUMLARI (Pegman, Ölçüm, Kare Menü) */
/* ============================================================ */
.map-pill-btn.active {
  background: #0f766e !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}

.location-radar-card.active {
  background: #0f766e !important;
  color: #ffffff !important;
  animation: radarPulseSpin 1.8s infinite linear;
}

@keyframes radarPulseSpin {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(15, 118, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

/* ============================================================ */
/* GOOGLE SOKAK GÖRÜNÜMÜ GELİŞMİŞ PANELİ */
/* ============================================================ */
.sv-panel-header {
  height: 48px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sv-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
}

.sv-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-header-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.sv-header-btn:hover {
  background: #0f766e;
  color: #ffffff;
}

.sv-iframe-container {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100vh - 48px);
  background: #000000;
}

.sv-direct-card {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.sv-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f59e0b;
  letter-spacing: 0.5px;
}

.sv-direct-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.sv-direct-card p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  font-family: monospace;
}

.sv-btn-google-direct {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0284c7 0%, #0f766e 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: all 0.18s ease;
}

.sv-btn-google-direct:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.55);
  background: linear-gradient(135deg, #0369a1 0%, #0d9488 100%);
}

/* ============================================================ */
/* KARE MENÜ: HARİTA UYGULAMALARI PANELİ (9-Dots Apps Grid) */
/* ============================================================ */
.apps-dropdown-panel {
  position: absolute;
  top: 62px;
  right: 14px;
  width: 320px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.apps-dropdown-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.apps-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.apps-dropdown-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.apps-dropdown-close {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.apps-dropdown-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  max-height: none;
  overflow: visible;
}

.app-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.app-card-item:hover {
  background: #f0fdfa;
  border-color: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.app-icon-box {
  width: 44px;
  height: 44px;
  background: transparent !important;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 6px;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-icon-box i {
  font-size: 28px;
  line-height: 1;
}

.app-card-item:hover .app-icon-box {
  transform: scale(1.15);
}

.app-name {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  line-height: 1.2;
}

.app-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 4px;
}

/* ============================================================ */
/* MESAFE & ALAN ÖLÇÜM YÜZEN PANELİ */
/* ============================================================ */
.measure-floating-widget {
  position: absolute;
  top: 62px;
  right: 14px;
  width: 290px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.measure-floating-widget.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.measure-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.measure-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.measure-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.measure-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.measure-mode-tabs {
  display: flex;
  padding: 8px;
  gap: 6px;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.measure-tab-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.measure-tab-btn.active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.measure-results-box {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.measure-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.stat-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
  font-family: monospace;
}

.measure-tip {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  padding: 4px 0;
}

.measure-actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.measure-btn-clear, .measure-btn-done {
  flex: 1;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  border: none;
}

.measure-btn-clear {
  background: #fee2e2;
  color: #b91c1c;
}

.measure-btn-clear:hover {
  background: #fecaca;
}

.measure-btn-done {
  background: #0f766e;
  color: #ffffff;
}

.measure-btn-done:hover {
  background: #0d9488;
}

/* Harita Ölçüm Noktası & Etiketi */
.measure-node-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0f766e;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.measure-node-marker.first {
  background: #10b981;
}

.measure-label-marker {
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: monospace;
}

/* ============================================================ */
/* SOL BAR: KENT SERVİSLERİ MENÜSÜ (30 CANLI SERVİS & DIŞ BAĞLANTI) */
/* ============================================================ */
.city-services-container {
  display: none;
}

.portal-service-card {
  text-decoration: none;
}

/* ============================================================ */
/* SEÇİLİ FİRMA PARILTI / GLOW AURA EFEKTİ (SEÇİLİ OLANI GÖRMEK İÇİN) */
/* ============================================================ */
.selected-firm-halo-wrap {
  width: 68px;
  height: 68px;
  position: relative;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selected-firm-halo-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(15, 169, 153, 0.85);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28) 0%, rgba(20, 184, 166, 0.06) 60%, transparent 100%);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.45);
  animation: firmAuraPulse 2.3s infinite ease-out;
}

.selected-firm-halo-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px dashed rgba(13, 148, 136, 0.75);
  animation: firmHaloSpin 8s linear infinite;
}

.selected-firm-glow-core {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.85);
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.9);
}

@keyframes firmAuraPulse {
  0% {
    transform: scale(0.65);
    opacity: 0.95;
    border-width: 2.5px;
  }
  60% {
    transform: scale(1.35);
    opacity: 0.35;
    border-width: 1.5px;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    border-width: 1px;
  }
}

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

/* ============================================================ */
/* HARİTA KATMANLARI AÇILIR PANELİ (ARAMA ÇUBUĞU) */
/* ============================================================ */
.layers-dropdown-panel {
  position: fixed;
  top: 66px;
  left: 20px;
  width: 290px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  z-index: 1050;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: layersFadeDown 0.18s ease-out;
}

.layers-dropdown-panel.open {
  display: flex;
}

@keyframes layersFadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.layers-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.layers-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.layers-close-btn {
  background: #f8fafc;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.layers-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.layers-panel-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layers-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #94a3b8;
  text-transform: uppercase;
}

.layers-base-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.layers-base-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.layers-base-card:hover {
  border-color: #0d9488;
  color: #0d9488;
}

.layers-base-card.active {
  background: #f0fdfa;
  border-color: #0d9488;
  color: #0f766e;
  font-weight: 700;
}

.layers-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layer-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.layer-toggle-item:hover {
  background: #f8fafc;
}

.layer-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.layer-toggle-left i {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

/* Switch Slider */
.layer-toggle-item input[type="checkbox"] {
  display: none;
}

.layer-switch-slider {
  position: relative;
  width: 34px;
  height: 18px;
  background-color: #cbd5e1;
  border-radius: 20px;
  transition: background 0.2s ease;
  display: inline-block;
}

.layer-switch-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.layer-toggle-item input:checked + .layer-switch-slider {
  background-color: #0d9488;
}

.layer-toggle-item input:checked + .layer-switch-slider::before {
  transform: translateX(16px);
}

/* ============================================================ */
/* CANLI YOL TARİFİ BİLGİ BARI (HARİTA ÜZERİNDE YÜZEN) */
/* ============================================================ */
.route-info-panel {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 14px 8px 16px;
  z-index: 1060;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: routeSlideDown 0.25s ease-out;
}

@keyframes routeSlideDown {
  from { opacity: 0; transform: translate(-50%, -14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.route-info-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.route-text-meta {
  display: flex;
  flex-direction: column;
}

.route-destination-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-stats {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
}

.route-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-btn-action {
  border: none;
  cursor: pointer;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.route-btn-action.btn-nav-google {
  background: #0284c7;
  color: #ffffff;
}

.route-btn-action.btn-nav-google:hover {
  background: #0369a1;
}

.route-btn-action.btn-route-clear {
  background: #f1f5f9;
  color: #64748b;
  width: 28px;
  height: 28px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.route-btn-action.btn-route-clear:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* ============================================================ */
/* %100 MOBİL UYUMLULUK - SİTE TASARIM BÜTÜNLÜĞÜ VE GEOMETRİSİ KORUNARAK */
/* (@media (max-width: 768px)) */
/* Yuvarlak/balon radiuslar YOK; masaüstündeki 8px-12px mimari kimlik korunur */
/* ============================================================ */
@media (max-width: 768px) {
  html, body, #app-container {
    height: 100dvh !important;
    height: 100vh;
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  #map {
    width: 100vw !important;
    height: 100dvh !important;
    height: 100vh !important;
  }

  /* 1. ÜST ARAMA ÇUBUĞU (Masaüstüyle birebir aynı 8px köşeler ve bütünlük) */
  .floating-top-search {
    top: max(10px, env(safe-area-inset-top)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    height: 44px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    z-index: 20 !important;
    background: #ffffff !important;
    padding: 0 !important;
  }

  /* 1B. MOBİL MARKA LOGOSU */
  .floating-brand-badge {
    display: none !important;
  }

  /* 1C. MOBİL PORTAL GERİ DÖNÜŞ BUTONU */
  .floating-portal-return {
    top: calc(max(10px, env(safe-area-inset-top)) + 52px) !important;
    left: 10px !important;
    height: 36px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
    z-index: 20 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(6px) !important;
  }

  .top-hamburger-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
    font-size: 16px !important;
    margin: 0 !important;
  }

  .top-search-input {
    font-size: 14px !important;
    padding: 0 8px !important;
  }

  .top-search-actions {
    padding-right: 4px !important;
  }

  .top-action-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
    border-radius: var(--radius-sm) !important;
  }

  /* 2. SAĞ ÜST YÜZEN ARAÇLAR & AKSİYON KARELERİ */
  .map-top-floating-tools {
    top: calc(max(10px, env(safe-area-inset-top)) + 52px) !important;
    right: 10px !important;
    z-index: 15 !important;
  }

  .map-right-action-cards {
    top: calc(max(10px, env(safe-area-inset-top)) + 98px) !important;
    right: 10px !important;
    gap: 8px !important;
    z-index: 15 !important;
  }

  .map-square-card-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--radius-md) !important;
    font-size: 16px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14) !important;
  }

  /* 3. SAĞ ALT NAVİGASYON KONTROLLERİ (Pusula + Zoom + Konum - 8px Geometrik Bütünlük) */
  .map-right-controls {
    top: auto !important;
    transform: none !important;
    bottom: max(24px, env(safe-area-inset-bottom) + 12px) !important;
    right: 10px !important;
    gap: 8px !important;
    z-index: 15 !important;
  }

  .compass-3d-wrapper {
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--radius-md) !important;
  }

  .zoom-capsule-container {
    width: 44px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14) !important;
  }

  .zoom-capsule-action {
    width: 44px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  .zoom-capsule-action:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  }

  .zoom-capsule-action:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  }

  .location-radar-card {
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--radius-md) !important;
    font-size: 18px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16) !important;
  }

  /* 4. SOL ALT UYDU KARTI */
  .satellite-preview-card {
    bottom: max(24px, env(safe-area-inset-bottom) + 12px) !important;
    left: 10px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: var(--radius-sm) !important;
    z-index: 15 !important;
  }

  .left-docked-sidebar.open ~ .satellite-preview-card {
    display: none !important;
  }

  /* 5. KOORDİNAT ŞERİDİ */
  .footer-coords-strip {
    display: none !important;
  }

  /* 6. SOL PANEL / MENÜ ÇEKMECESİ (%100 Mobil Ekran) */
  .left-docked-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    left: -100vw !important;
    box-shadow: none !important;
    z-index: 100 !important;
    transition: left 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .left-docked-sidebar.open {
    left: 0 !important;
    width: 100vw !important;
  }

  .left-docked-sidebar.collapsed {
    left: -100vw !important;
  }

  .collapse-left-btn,
  .collapse-right-btn {
    display: none !important;
  }

  /* Menü Üst Arama Başlığı */
  .sidebar-search-header {
    padding: max(10px, env(safe-area-inset-top)) 10px 8px 10px !important;
  }

  .sidebar-search-row {
    height: 44px !important;
  }

  .sidebar-menu-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    border-radius: var(--radius-sm) !important;
  }

  .sidebar-search-input {
    font-size: 14px !important;
  }

  .status-cards-row {
    gap: 6px !important;
    padding: 0 4px !important;
    margin-top: 8px !important;
  }

  .status-mini-card {
    padding: 6px 4px !important;
    font-size: 11px !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Kategori Üst Kontrolleri */
  .categories-top-controls {
    padding: 8px 10px 6px 10px !important;
  }

  .segmented-toggle-row {
    height: 38px !important;
    border-radius: var(--radius-sm) !important;
  }

  .segmented-item {
    font-size: 12px !important;
    border-radius: var(--radius-sm) !important;
  }

  .district-dropdown-box {
    height: 40px !important;
    font-size: 13px !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Kategori ve Servis Izgarası (Masaüstüyle Birebir Aynı 12px Köşeler) */
  .categories-24-grid {
    padding: 8px 10px max(50px, env(safe-area-inset-bottom) + 20px) 10px !important;
    gap: 8px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
  }

  .cat-box-card {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    padding: 8px 4px 6px 4px !important;
    border-radius: 12px !important;
  }

  .cat-box-card .cat-icon-wrap {
    width: 38px !important;
    height: 34px !important;
    margin-bottom: 4px !important;
  }

  .cat-box-card .cat-icon-wrap i {
    font-size: 24px !important;
  }

  .cat-box-card .cat-title-text {
    font-size: 10.5px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    margin-bottom: 2px !important;
  }

  .cat-box-card .cat-count-sub {
    font-size: 9.5px !important;
  }

  /* 7. FİRMA LİSTESİ GÖRÜNÜMÜ */
  .places-list-top-nav {
    height: 50px !important;
    padding: 0 10px !important;
  }

  .btn-back-to-categories,
  .places-list-close-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
    border-radius: var(--radius-sm) !important;
  }

  .places-active-cat-name {
    font-size: 15px !important;
  }

  .subcategories-grid-container {
    padding: 8px 10px !important;
    gap: 6px !important;
    max-height: 160px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
  }

  .subcat-grid-card {
    padding: 8px 10px !important;
    font-size: 12px !important;
    border-radius: var(--radius-sm) !important;
  }

  .places-scrollable-list {
    padding: 8px 10px max(50px, env(safe-area-inset-bottom) + 20px) 10px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
  }

  .place-item-card {
    padding: 12px !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 8px !important;
  }

  /* 8. FİRMA DETAY GÖRÜNÜMÜ */
  #view-place-detail {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
    z-index: 120 !important;
  }

  .detail-header-nav {
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    z-index: 10 !important;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px 10px !important;
  }

  .detail-nav-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    border-radius: var(--radius-sm) !important;
  }

  .detail-showcase-wrapper {
    max-height: 220px !important;
  }

  .detail-cover-photo {
    height: 200px !important;
    object-fit: cover !important;
  }

  .detail-body-container {
    padding: 14px 12px max(60px, env(safe-area-inset-bottom) + 30px) 12px !important;
  }

  .detail-place-name {
    font-size: 19px !important;
  }

  .detail-buttons-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .btn-route-action,
  .btn-phone-action,
  .btn-website-action {
    height: 44px !important;
    font-size: 13px !important;
    border-radius: var(--radius-sm) !important;
    justify-content: center !important;
  }

  /* 9. AÇILIR PANELLER (Masaüstüyle uyumlu 12px üst köşe) */
  #layers-dropdown-panel,
  #camera-dropdown-panel,
  #apps-dropdown-panel {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: 80vh !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.24) !important;
    z-index: 200 !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 10. CANLI YOL TARİFİ BARI */
  .route-info-panel {
    top: max(10px, env(safe-area-inset-top)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    z-index: 40 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16) !important;
  }

  /* 11. SOKAK GÖRÜNÜMÜ */
  .right-streetview-panel {
    width: 100vw !important;
    height: 100dvh !important;
    height: 100vh !important;
    right: auto !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 210 !important;
    transform: translateY(100vh);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .right-streetview-panel.open {
    transform: translateY(0) !important;
  }
}





