/* ==========================================================================
   Google Haritalar 9:16 Dikey Format Tasarım Dili
   TikTok, Reels, Shorts ve Mobil Ekranlara Özel Optimize Edilmiştir
   ========================================================================== */

:root {
  --gmaps-blue: #1a73e8;
  --gmaps-blue-hover: #1765cc;
  --gmaps-surface: #ffffff;
  --gmaps-surface-alt: #f8f9fa;
  --gmaps-text-primary: #202124;
  --gmaps-text-secondary: #5f6368;
  --gmaps-border: #dadce0;
  --gmaps-shadow: 0 3px 8px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12);
  --gmaps-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
  --gmaps-radius: 12px;
  --gmaps-radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #0b0f19;
}

/* ==========================================================================
   DUYARLI (RESPONSIVE) UYGULAMA ÇERÇEVESİ (CONTAINER)
   Hem mobil telefonlar/tabletler hem de masaüstü ekranlar için optimize edilmiştir
   ========================================================================== */
#app-container {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  overflow: hidden;
  background-color: #e5e3df;
  box-shadow: none;
  border-radius: 0;
}

/* Harita Alanı */
#map {
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #e5e3df;
}

/* 1. Google Haritalar Üst Arama Çubuğu */
.gmaps-search-box-wrapper {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  z-index: 1000;
  transition: opacity 0.3s, transform 0.3s;
}

.gmaps-search-box {
  display: flex;
  align-items: center;
  background: var(--gmaps-surface);
  border-radius: var(--gmaps-radius-lg);
  box-shadow: var(--gmaps-shadow);
  height: 46px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.search-icon-btn, .search-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--gmaps-text-secondary);
  transition: background 0.15s;
}

.search-icon-btn:hover, .search-action-btn:hover {
  background: #f1f3f4;
  color: var(--gmaps-text-primary);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gmaps-text-primary);
  padding: 0 8px;
  background: transparent;
  min-width: 0; /* flex overflow önleme */
}

.search-divider {
  width: 1px;
  height: 20px;
  background-color: #dadce0;
  margin: 0 2px;
}

/* Arama Önerileri Dropdown */
.search-suggestions-dropdown {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  background: var(--gmaps-surface);
  border-radius: 14px;
  box-shadow: var(--gmaps-shadow-lg);
  padding: 6px 0;
  display: none;
  flex-direction: column;
  z-index: 1001;
  max-height: 380px;
  overflow: hidden;
}

.search-suggestions-dropdown.show {
  display: flex;
}

.search-cat-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow-x: auto;
  scrollbar-width: none;
}
.search-cat-tabs::-webkit-scrollbar {
  display: none;
}

.search-tab-chip {
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.search-tab-chip:hover {
  background: #f1f5f9;
}

.search-tab-chip.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
}

.suggestions-scroll-container {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.suggestion-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 14px 4px;
  letter-spacing: 0.5px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.suggestion-item:hover {
  background-color: #f0f7ff;
}

.sugg-icon {
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 6px;
  flex-shrink: 0;
}

.sugg-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.sugg-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gmaps-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sugg-sub {
  font-size: 11px;
  color: var(--gmaps-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sugg-weather-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Seçilen Köy / Konum Canlı Hava Durumu Kartı (Floating) */
.village-weather-card {
  position: absolute;
  top: 104px;
  left: 10px;
  right: 10px;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.village-weather-card.hidden {
  transform: translateY(-135%);
  opacity: 0;
  pointer-events: none;
}

.vw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.vw-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vw-icon {
  font-size: 26px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f9ff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.vw-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.vw-sub {
  font-size: 11px;
  color: #64748b;
}

.vw-close-btn {
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

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

.vw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.vw-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.vw-label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

.vw-val {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 1px 0;
}

.vw-hint {
  font-size: 10px;
  color: #0284c7;
  font-weight: 600;
}

.vw-footer {
  display: flex;
  justify-content: flex-end;
}

.vw-action-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.vw-action-btn:hover {
  background: #0369a1;
}

/* 2. Üst Canlı Meteoroloji HUD Çipi (Arama Çubuğunun Altında) */
.gmaps-top-hud {
  position: absolute;
  top: 58px;
  left: 10px;
  right: 10px;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 12px;
  border-radius: 20px;
  color: #ffffff;
  box-shadow: var(--gmaps-shadow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.3s;
}

.gmaps-top-hud:hover {
  transform: translateY(-1px);
}

.hud-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.hud-rain-bold {
  color: #38bdf8;
  font-weight: 800;
  font-size: 13px;
}

.hud-flood-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.hud-open-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* 3. Sağ Dikey Yüzen Aksiyon Çubuğu (FAB Bar) */
.gmaps-right-fabs {
  position: absolute;
  right: 10px;
  top: 104px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s, transform 0.3s;
}

.fab-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gmaps-surface);
  border: none;
  box-shadow: var(--gmaps-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--gmaps-text-primary);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.fab-btn:hover {
  background: #f1f3f4;
  transform: scale(1.08);
}

.fab-btn.active {
  background: var(--gmaps-blue);
  color: #ffffff;
}

#btnFabTraffic.active {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(22, 163, 74, 0.6);
}

/* 4. Sol Açılır Çekmece (Google Maps Yer Detay Paneli) */
.gmaps-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gmaps-surface);
  z-index: 1100;
  overflow-y: auto;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

.gmaps-drawer.open {
  transform: translateY(0);
  opacity: 1;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.drawer-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gmaps-text-primary);
}

.drawer-subtitle {
  font-size: 13px;
  color: var(--gmaps-text-secondary);
}

.drawer-close-btn {
  background: #f1f3f4;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--gmaps-text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-hero-img {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #0f172a);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: #fff;
  margin-bottom: 14px;
}

.drawer-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.drawer-stat-card {
  background: #f8fafc;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.d-stat-label { font-size: 10px; color: #64748b; font-weight: 600; }
.d-stat-val { font-size: 15px; font-weight: 800; color: #1e293b; margin-top: 2px; }

/* 5. Google InfoWindow (Popup) */
.gmaps-popup-custom .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  box-shadow: var(--gmaps-shadow-lg);
  overflow: hidden;
}

.gmaps-popup-custom .leaflet-popup-content {
  margin: 0;
  line-height: 1.4;
}

.gmaps-infowindow {
  padding: 12px 14px;
  font-family: inherit;
  min-width: 210px;
  max-width: 250px;
}

.gmaps-infowindow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.infowindow-badge {
  background: #e8f0fe;
  color: var(--gmaps-blue);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.infowindow-cat {
  font-size: 10px;
  color: var(--gmaps-text-secondary);
}

.gmaps-infowindow-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gmaps-text-primary);
  margin-bottom: 4px;
}

.gmaps-infowindow-desc {
  font-size: 11px;
  color: #4b5563;
  margin-bottom: 8px;
}

.gmaps-infowindow-meta {
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
}

.meta-label { color: #64748b; }
.meta-val { font-weight: 600; }
.meta-val.risk-high { color: #ef4444; }
.meta-val.risk-med { color: #f59e0b; }
.meta-val.risk-low { color: #10b981; }

.gmaps-infowindow-btn {
  width: 100%;
  padding: 7px;
  background: var(--gmaps-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* 6. Google Marker Tasarımı */
.gmaps-custom-marker {
  background: none;
  border: none;
}

.gmaps-pin-container {
  position: relative;
  width: 32px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gmaps-pin-container:hover {
  transform: scale(1.15) translateY(-3px);
}

.gmaps-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: #ea4335;
  position: absolute;
  transform: rotate(-45deg);
  left: 2px;
  top: 2px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.pin-icon-symbol {
  transform: rotate(45deg);
  font-size: 12px;
}

.gmaps-pin-container.landmark .gmaps-pin { background: #1a73e8; }
.gmaps-pin-container.culture .gmaps-pin { background: #9333ea; }
.gmaps-pin-container.center .gmaps-pin { background: #ea4335; }
.gmaps-pin-container.transport .gmaps-pin { background: #0284c7; }
.gmaps-pin-container.nature .gmaps-pin { background: #16a34a; }
.gmaps-pin-container.station .gmaps-pin { background: #0891b2; }

/* 7. Temiz Video / Kayıt Modu (Tüm UI Gizleme) */
body.clean-video-mode .gmaps-search-box-wrapper,
body.clean-video-mode .gmaps-top-hud,
body.clean-video-mode .gmaps-right-fabs:not(.allow-clean),
body.clean-video-mode .sim-bottom-hub,
body.clean-video-mode .radar-legend,
body.clean-video-mode .gmaps-watermark {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Video modunda sadece çıkış butonu kalsın */
.clean-exit-fab {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

body.clean-video-mode .clean-exit-fab {
  display: block;
}

/* Google Filigranı */
.gmaps-watermark {
  position: absolute;
  top: 104px;
  left: 10px;
  z-index: 800;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   8. ANDROID BAŞ ÜSTÜ BİLDİRİM KARTI (ÇARŞAMBA TV & AFAD UYARI SİSTEMİ)
   ========================================================================== */
.android-notification-card {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.android-notification-card.hidden {
  transform: translateY(-135%);
  opacity: 0;
  pointer-events: none;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-app-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid #e2e8f0;
}

.notif-text-group {
  display: flex;
  flex-direction: column;
}

.notif-app-title {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.notif-badge-afad {
  background: #dc2626;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.notif-time-text {
  font-size: 10px;
  color: #64748b;
}

.notif-close-btn {
  background: #f1f5f9;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s;
}

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

.notif-headline {
  font-size: 13px;
  font-weight: 800;
  color: #b91c1c; /* Acil Haber Kırmızı */
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-body-text {
  font-size: 11px;
  color: #334155;
  line-height: 1.4;
  margin: 0;
}

.notif-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.notif-action-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.notif-action-chip:hover {
  background: #e2e8f0;
}

.notif-action-chip.primary {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.notif-action-chip.primary:hover {
  background: #0369a1;
}

.notif-action-chip.dismiss {
  margin-left: auto;
  color: #64748b;
}

/* Bildirim Zili FAB Rozeti */
.notif-bell-btn {
  position: relative;
}

.bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* ==========================================================================
   9. TV HABER BÜLTENİ SON DAKİKA ŞERİDİ (BREAKING NEWS TICKER)
   ========================================================================== */
.tv-breaking-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  height: 28px;
  background: #b91c1c;
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.35);
  font-family: inherit;
}

.ticker-badge {
  background: #7f1d1d;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
}

.ticker-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-ticker 1.1s infinite;
}

@keyframes pulse-ticker {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.ticker-marquee-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: seamless-marquee 36s linear infinite;
}

.ticker-marquee-wrapper:hover .ticker-marquee-track,
.ticker-marquee-wrapper.is-paused .ticker-marquee-track {
  animation-play-state: paused;
}

.ticker-content-clone {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes seamless-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Video modunda ticker ve çekmecelerin gizlenmesi kuralına ekleme */
body.clean-video-mode .android-notification-card,
body.clean-video-mode .tv-breaking-ticker,
body.clean-video-mode .news-drawer {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   10. DUYARLI (RESPONSIVE) MASAÜSTÜ & TABLET DÜZENİ
   ========================================================================== */

/* Tablet & Küçük Dizüstü Ekranlar (>= 768px) */
@media (min-width: 768px) {
  /* Üst Arama Çubuğu: Sol üst köşede sabit Google Maps tarzı */
  .gmaps-search-box-wrapper {
    top: 18px;
    left: 18px;
    right: auto;
    width: 380px;
  }

  .gmaps-search-box {
    height: 48px;
    padding: 0 12px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

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

  /* Arama Önerileri Dropdown */
  .search-suggestions-dropdown {
    top: 54px;
    left: 0;
    width: 100%;
    max-height: 450px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  }

  .suggestions-scroll-container {
    max-height: 380px;
  }

  /* Canlı Meteoroloji HUD: Arama çubuğunun hemen sağında yatay rozet */
  .gmaps-top-hud {
    top: 18px;
    left: 412px;
    right: auto;
    width: auto;
    height: 48px;
    padding: 0 18px;
    gap: 14px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  }

  /* Seçilen Köy Hava Durumu Kartı: Sol üstte, arama çubuğunun altında dock edilir */
  .village-weather-card {
    top: 74px;
    left: 18px;
    right: auto;
    width: 380px;
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  }

  /* Android / AFAD / TV Bildirim Kartı: Sağ üstte, FAB'ların solunda toast kartı */
  .android-notification-card {
    top: 18px;
    right: 76px;
    left: auto;
    width: 420px;
    max-width: calc(100vw - 100px);
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  }

  /* Sağ Dikey FAB Butonları */
  .gmaps-right-fabs {
    top: 18px;
    right: 18px;
    gap: 10px;
  }

  .fab-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }

  /* Sol Açılır Çekmece (Google Maps Yer Detayı): Masaüstünde Sol Sidebar Olarak Kayar */
  .gmaps-drawer {
    width: 390px;
    max-width: 90vw;
    height: 100%;
    transform: translateX(-100%);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.25);
    padding: 24px 20px;
    z-index: 1150;
  }

  .gmaps-drawer.open {
    transform: translateX(0);
    opacity: 1;
  }

  /* Filigran: Sol alt köşede arkaplanda */
  .gmaps-watermark {
    top: auto;
    bottom: 40px;
    left: 18px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
  }

  /* TV Canlı Kayan Yazı Şeridi */
  .tv-breaking-ticker {
    height: 30px;
  }

  .ticker-badge {
    font-size: 10px;
    padding: 0 14px;
  }

  .ticker-marquee-text {
    font-size: 11.5px;
  }

  .clean-exit-fab {
    top: 20px;
    right: 20px;
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* Geniş Ekranlar / Masaüstü Bilgisayarlar (>= 1024px) */
@media (min-width: 1024px) {
  .gmaps-search-box-wrapper {
    top: 20px;
    left: 20px;
    width: 420px;
  }

  .gmaps-top-hud {
    top: 20px;
    left: 456px;
    height: 48px;
    padding: 0 20px;
  }

  .village-weather-card {
    top: 78px;
    left: 20px;
    width: 420px;
  }

  .android-notification-card {
    top: 20px;
    right: 80px;
    width: 440px;
  }

  .gmaps-right-fabs {
    top: 20px;
    right: 20px;
    gap: 12px;
  }

  .gmaps-drawer {
    width: 430px;
  }

  .gmaps-watermark {
    bottom: 42px;
    left: 20px;
  }

  .tv-breaking-ticker {
    height: 32px;
  }

  .ticker-badge {
    font-size: 11px;
    padding: 0 16px;
  }

  .ticker-marquee-text {
    font-size: 12px;
  }
}

/* Masaüstü Şık Kaydırma Çubukları */
@media (min-width: 768px) {
  .suggestions-scroll-container::-webkit-scrollbar,
  .gmaps-drawer::-webkit-scrollbar {
    width: 6px;
  }

  .suggestions-scroll-container::-webkit-scrollbar-track,
  .gmaps-drawer::-webkit-scrollbar-track {
    background: transparent;
  }

  .suggestions-scroll-container::-webkit-scrollbar-thumb,
  .gmaps-drawer::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }

  .suggestions-scroll-container::-webkit-scrollbar-thumb:hover,
  .gmaps-drawer::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

/* ==========================================================================
   11. ÇARŞAMBA TV CANLI HABER AKIŞI & HABER ÇEKMECESİ (NEWS DRAWER)
   ========================================================================== */

.tv-breaking-ticker {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.tv-breaking-ticker:hover {
  background: #991b1b;
}

.tv-breaking-ticker:hover .ticker-marquee-text {
  animation-play-state: paused;
}

.ticker-news-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.ticker-news-tag {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* AFAD & Meteorolojik Uyarı Rozeti ve Efekti */
.ticker-afad-alert {
  background: rgba(220, 38, 38, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(248, 113, 113, 0.6);
  animation: afad-glow 1.5s infinite alternate;
}

@keyframes afad-glow {
  0% { box-shadow: 0 0 4px rgba(239, 68, 68, 0.3); }
  100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); }
}

.ticker-tag-afad {
  background: #fef08a !important;
  color: #991b1b !important;
  font-weight: 900 !important;
  letter-spacing: 0.6px;
  box-shadow: 0 0 8px rgba(254, 240, 138, 0.6);
  animation: afad-blink 1.2s infinite;
}

@keyframes afad-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ticker-item-recent {
  background: #fef08a;
  color: #854d0e;
  box-shadow: 0 0 8px rgba(254, 240, 138, 0.4);
}

.ticker-item-special {
  background: linear-gradient(135deg, #0284c7, #6366f1) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ticker-item-normal {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ticker-news-source {
  opacity: 0.85;
  font-size: 9.5px;
  color: #fca5a5;
}

.ticker-news-title {
  color: #ffffff;
  font-weight: 600;
}

.ticker-news-time {
  opacity: 0.75;
  font-size: 9px;
  margin-left: 2px;
}

.ticker-divider {
  margin: 0 10px;
  opacity: 0.5;
  color: #fca5a5;
}

/* Sağ FAB Butonundaki Haber Rozeti */
.fab-news-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Haber Çekmecesi (News Drawer) */
.news-drawer {
  position: absolute;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 420px;
  height: calc(100% - 28px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.news-drawer.open {
  right: 0;
}

@media (max-width: 600px) {
  .news-drawer {
    max-width: 100%;
    height: 80%;
    top: auto;
    bottom: -100%;
    right: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px 20px 0 0;
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .news-drawer.open {
    bottom: 28px;
  }
}

.news-drawer-header {
  padding: 16px 20px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-drawer-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #f8fafc;
}

.news-count-chip {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

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

.news-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.news-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Filtre Sekmeleri */
.news-filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

.news-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.news-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.news-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Haber Listesi Gövdesi */
.news-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-drawer-body::-webkit-scrollbar {
  width: 6px;
}
.news-drawer-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Haber Kartı */
.news-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.news-card-source {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.3px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-chip-recent {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
}

.news-card-time {
  font-size: 10px;
  color: #94a3b8;
}

.news-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #f1f5f9;
  margin: 0;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.news-card-date {
  font-size: 10.5px;
  color: #64748b;
}

.news-card-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.news-card-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.news-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 12px;
  line-height: 1.5;
}

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

.spin-anim {
  animation: spinAction 0.8s linear infinite;
}



