:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --bg-card-hover: #243044;
  --accent-gold: #f5c518;
  --accent-green: #4ade80;
  --accent-red: #f87171;
  --accent-blue: #60a5fa;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --iv-100: #22c55e;
  --iv-90: #84cc16;
  --iv-80: #eab308;
  --iv-01515: #0f54c5;
  --iv-ditto: #d352bb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: #0c0f14;
  color: var(--text-primary);
  min-height: 100vh;
}

.app-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  gap: 1rem;
}

.app-columns {
  display: flex;
  flex: 1;
  align-items: stretch;
  gap: 1rem;
  min-height: 0;
  width: 100%;
}

.app {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

/* Anasayfa: ilk ekranda harita + yan reklam + alt footer reklamı; accordion ve footer linkleri scroll ile */
body.page-home {
  margin: 0;
  min-height: 100dvh;
  /* Üst (header+padding) + alt yatay reklam kartı (~90px + çerçeve) için haritadan düşülen pay */
  --home-map-vh-offset: 6.4rem;
  --home-footer-ad-reserve: 8rem;
}

body.page-home .app-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.25rem 0 1.25rem;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: visible;
}

body.page-home .site-header {
  flex-shrink: 0;
}

body.page-home .app-columns {
  flex: 0 0 auto;
  align-items: stretch;
}

body.page-home .app {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
}

/* Üst şerit + padding + alt footer reklamı çıkıldıktan sonra kalan ≈ harita bandı */
body.page-home .app-body {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100dvh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
  min-height: calc(100svh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
  overflow: visible;
}

body.page-home .main {
  flex: 1 1 auto;
  min-height: calc(100dvh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
  min-height: calc(100svh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
  overflow: visible;
}

body.page-home .map-container {
  height: 100%;
  min-height: calc(100dvh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
  min-height: calc(100svh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
}

body.page-home .footer {
  flex-shrink: 0;
}

body.page-home .home-seo-accordion {
  scroll-margin-top: 1rem;
}

/* Ad sidebars — haritanın yanında dikey şeritler (masaüstünde her zaman yer tutucu) */
.ad-sidebar {
  flex: 0 0 168px;
  width: 168px;
  min-width: 168px;
  display: none;
  flex-direction: column;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  align-self: flex-start;
}

/* Dikey reklam: sütunla aynı boya uzamaz; tipik skyscraper yüksekliği */
.ad-sidebar .ad-slot {
  flex: 0 0 auto;
  width: 100%;
  min-height: 600px;
  max-height: 600px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

@media (min-width: 1200px) {
  .ad-sidebar {
    display: flex;
    position: sticky;
    top: 1rem;
    z-index: 4;
    max-height: calc(100vh - 2rem);
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media (max-width: 1199px) {
  .ad-sidebar {
    display: none !important;
  }
}

/* Alt reklam alanı — masaüstü + mobilde alan ayrılmış */
.ad-footer-wrap {
  display: block;
  flex-shrink: 0;
}

/* Tek kart: dış .ad-footer-wrap çerçevesi; iç .ad-slot yalın tutulur (çift kutu önlenir) */
.ad-footer-wrap .ad-slot {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 90px;
}

@media (max-width: 1199px) {
  /* Harita dışı sayfalar: sayfa kaydırılabilir olsun */
  .inner-site .app-wrap {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  .inner-site .app-columns {
    overflow: visible;
    flex: 1 1 auto;
  }
  .inner-site .app {
    overflow: visible;
  }

  .header {
    flex-shrink: 0;
    margin-bottom: 0 !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .site-header {
    border-bottom: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .header .logo {
    text-align: left;
  }
  .header .logo h1 {
    font-size: 1.25rem;
  }
  .app-wrap {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }
  .app-columns {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    gap: 0;
  }
  .app {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
  }
  .app-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .map-container {
    height: 100% !important;
    min-height: 150px !important;
    border-radius: 0 !important;
    border: none;
  }
  .footer {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    min-height: 0;
    border-top: none;
  }
  /* Masaüstü ile aynı kart (min-width: 1200px .ad-footer-wrap) */
  .ad-footer-wrap {
    display: block !important;
    flex-shrink: 0;
    visibility: visible !important;
    margin-top: 0.75rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding: 0.5rem;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

/* Mobil/tablet: genel 100dvh+overflow:hidden harita sayfasını keser; anasayfada tam sayfa scroll */
@media (max-width: 1199px) {
  /* Footer + AdSense: dikey kaydırma ve tam genişlik (offsetParent / layout hatalarına karşı) */
  body.page-home {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.page-home #adFooterWrap.ad-footer-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 6;
    opacity: 1;
  }

  body.page-home .footer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 0.5rem;
  }

  body.page-home .app-wrap {
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
    padding: 0;
    gap: 0;
  }
  body.page-home .app-columns {
    flex: 0 0 auto !important;
    overflow: visible !important;
    min-height: 0;
  }
  body.page-home .app {
    height: auto !important;
    overflow: visible !important;
  }
  body.page-home {
    --home-map-vh-offset: 4.75rem;
    --home-footer-ad-reserve: 7rem;
  }
  body.page-home .app-body {
    min-height: calc(100dvh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
    min-height: calc(100svh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
    overflow: visible !important;
  }
  body.page-home .main {
    min-height: calc(100dvh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
    min-height: calc(100svh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve));
    overflow: visible !important;
  }
  body.page-home .map-container {
    min-height: calc(100dvh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve)) !important;
    min-height: calc(100svh - var(--home-map-vh-offset) - var(--home-footer-ad-reserve)) !important;
    height: 100% !important;
  }
}

@media (min-width: 1200px) {
  .ad-footer-wrap {
    margin-top: 0.75rem;
    padding: 0.5rem;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  .ad-footer-wrap .ad-slot {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
    min-height: 90px;
  }
}

/* Mobil: iç slot masaüstü ile aynı — 728px ortalanır; dar ekranda tam genişlik */
@media (max-width: 1199px) {
  .ad-footer-wrap .ad-slot {
    width: 100% !important;
    max-width: 728px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: 90px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .app-body {
    gap: 0;
  }
  .main {
    margin: 0;
  }
  .map-container {
    margin-bottom: 0;
  }
  .map-container .leaflet-control-attribution {
    margin: 0 !important;
    padding: 2px 5px !important;
  }
  .map-container .leaflet-bottom {
    margin-bottom: 0 !important;
  }
  .map-container .leaflet-control-container .leaflet-bottom {
    bottom: 0 !important;
  }
}

.ad-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-height: 100px;
}

/* Header */
.header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  padding-top: 0.75rem;
}

.site-header {
  flex-shrink: 0;
  width: 100%;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 0;
}

.site-header .logo a.logo-home-link {
  text-decoration: none;
  color: inherit;
}

.site-header .logo h1 {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #c8f07e;
  color: #c8f07e;
  text-shadow: 0 0 24px rgba(200, 240, 126, 0.15);
}

/* İç sayfalar: harita dışı orta sütun */
.app-inner .app-body {
  overflow-y: auto;
}

.app-inner .main {
  flex: 1;
  min-height: 0;
}

.inner-site.legal-page .legal-page-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  overflow: visible;
  margin-top: 50px;
}

.inner-site.legal-page .legal-page-body .app-body {
  overflow-y: auto;
}

@media (max-width: 1199px) {
  .inner-site.legal-page .main.page-wrap {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .inner-site.legal-page .footer .footer-links {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.header-nav {
  flex: 1;
  min-width: 0;
}

.header-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.header-nav-item {
  display: flex;
  align-items: center;
}

.header-nav-brand {
  flex-shrink: 0;
  margin-right: auto;
}

.header-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.header-nav-link:hover {
  color: var(--accent-gold);
}

.header-nav-link-donate {
  color: #f87171;
}

.header-nav-link-donate:hover {
  color: #fca5a5;
}

.header-nav-filters {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.25rem 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.header-nav-filters svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.header-nav-filters:hover {
  color: var(--accent-gold);
}

/* Menüde Pokémon araması (Donate yanı) — koyu gri bar, açık gri metin/ikon */
.header-nav-search-item {
  display: flex;
  align-items: center;
}

.header-menu-search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 200px;
  background: #555;
  border-radius: 6px;
  padding: 0 0 0 0.65rem;
  border: none;
  margin: 0;
}

.header-menu-search input[type='search'],
.header-menu-search input[type='text'] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #aaa;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.35rem 0.45rem 0;
  -webkit-appearance: none;
  appearance: none;
}

.header-menu-search input::placeholder {
  color: #aaa;
}

.header-menu-search input:focus {
  outline: none;
}

.header-menu-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #aaa;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  transition: color 0.15s, background 0.15s;
}

.header-menu-search-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.hamburger-nav-search-item {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 0.2rem;
}

.hamburger-nav-search-item .header-menu-search {
  max-width: none;
  width: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px var(--accent-gold));
}

.logo h1 {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.filters {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-group input {
  width: 80px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.filter-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.2);
}

.btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #e5a00d);
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
}

.location-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-patreon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: linear-gradient(135deg, #ff424d, #e63946);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-patreon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 66, 77, 0.4);
  color: #fff;
}

.btn-patreon .patreon-logo {
  flex-shrink: 0;
}

/* Hamburger - mobile only */
.header-mobile {
  display: none;
}

@media (max-width: 1199px) {
  .header {
    position: relative;
    z-index: 1100;
    background: var(--bg-dark);
    overflow: visible;
  }
  .header-nav-hide-mobile {
    display: none !important;
  }
  .header-mobile {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
  }
  .hamburger-btn {
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hamburger-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
  }
  .hamburger-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0.65rem;
    min-width: min(100vw - 1.25rem, 560px);
    max-width: min(calc(100vw - 1rem), 640px);
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  }
  .hamburger-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .hamburger-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.75rem;
  }
  .hamburger-nav-list > li {
    display: flex;
    align-items: center;
  }
  .hamburger-nav-link {
    display: inline-block;
    padding: 0.4rem 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
  }
  .hamburger-nav-link:hover {
    color: var(--accent-gold);
    background: rgba(245, 197, 24, 0.08);
  }
  .hamburger-nav-link-donate {
    color: #f87171;
  }
  .hamburger-nav-link-donate:hover {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.12);
  }
  .hamburger-nav-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.4rem 0.5rem;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
  }
  .hamburger-nav-filters:hover {
    color: var(--accent-gold);
    background: rgba(245, 197, 24, 0.08);
  }
}

@media (min-width: 1200px) {
  .header-mobile {
    display: none !important;
  }
}

/* Settings panel - slides from right */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.settings-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 1999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

.settings-panel.open {
  transform: translateX(0);
}

.settings-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.settings-panel-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.settings-close:hover {
  background: var(--border);
}

.settings-panel-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.settings-row label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.settings-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-input-row input {
  width: 80px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.settings-input-row input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.settings-level-slider-wrap {
  width: 100%;
}

.settings-level-slider {
  width: 100%;
  height: 24px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
}

.settings-level-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-dark);
  margin: 8px 0;
}

.settings-level-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  border: 2px solid var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-top: -6px;
}

.settings-level-slider::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-dark);
}

.settings-level-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  border: 2px solid var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-top: -6px;
}

#settingsMinLevelValue {
  color: var(--accent-gold);
  font-weight: 600;
  margin-left: 0.25rem;
}

.settings-iv-checkboxes,
.settings-size-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.settings-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.settings-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-gold);
}

.settings-row-buttons {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.settings-search-input {
  padding: 0.5rem 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.settings-search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.settings-row select {
  padding: 0.5rem 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
}

.settings-row select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.settings-pokemon-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-height: 0;
}

.settings-pokemon-list-wrap > label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.settings-pokemon-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0;
}

.settings-pokemon-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.settings-pokemon-item:hover {
  background: var(--bg-card-hover);
}

.settings-pokemon-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-gold);
  flex-shrink: 0;
}

.settings-pokemon-item.hidden {
  display: none;
}

.settings-pokemon-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.settings-pokemon-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.settings-pokemon-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

/* Main - Layout */
.main {
  flex: 1;
  min-width: 0;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-container {
  position: relative;
  border-radius: 14px;
  overflow: visible;
  border: 1px solid var(--border);
  flex: 1;
  min-height: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  position: relative;
  z-index: 1;
  border-radius: 13px;
  overflow: hidden;
}

.search-bar-wrap {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 1.5rem));
  z-index: 10050;
  pointer-events: auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  border-color: rgba(245, 197, 24, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.2), 0 6px 28px rgba(0, 0, 0, 0.5);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar input:focus {
  outline: none;
}

.search-clear {
  width: 28px;
  height: 28px;
  margin-right: 0.25rem;
  border: none;
  border-radius: 50%;
  background: var(--bg-card-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.search-clear:hover {
  background: var(--border);
}

.search-clear::before {
  content: '×';
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
}

.search-clear.hidden {
  display: none;
}

.search-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.search-btn {
  width: 40px;
  height: 40px;
  margin: 6px;
  border: none;
  border-radius: 8px;
  background: var(--accent-blue);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.2s, opacity 0.2s;
}

.search-btn:hover {
  filter: brightness(1.1);
}

.search-btn svg {
  stroke: currentColor;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

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

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-result-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.search-result-coords {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.search-result-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Notification toasts - bottom right */
.notification-container {
  position: absolute;
  bottom: 3.5rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 320px;
  pointer-events: none;
}

.notification-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: notification-in 0.3s ease-out;
}

.notification-toast.notification-fade-out {
  animation: notification-out 0.5s ease-in forwards;
}

@keyframes notification-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notification-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.notification-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.notification-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.notification-body strong {
  font-size: 1rem;
}

.notification-coords {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.notification-toast.iv-100 { border-left: 4px solid var(--iv-100); }
.notification-toast.iv-90 { border-left: 4px solid var(--iv-90); }
.notification-toast.iv-80 { border-left: 4px solid var(--iv-80); }
.notification-toast.iv-01515 { border-left: 4px solid var(--iv-01515); }
.notification-toast.iv-ditto { border-left: 4px solid var(--iv-ditto); }
.notification-toast.iv-other { border-left: 4px solid var(--border); }

.popup-coords {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.popup-coords .coord-text {
  background: #2c3e50;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  user-select: all;
}

.coord-text:active {
  cursor: copy;
}

.btn-copy {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.btn-copy:hover {
  background: #e5a00d;
}

.hidden {
  display: none !important;
}

/* Footer */
.footer {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-sep {
  color: var(--border);
  user-select: none;
}

/* Anasayfa — footer reklamının altındaki accordion */
.home-seo-accordion {
  margin: 30px auto;
  padding: 0.25rem 1rem 0.5rem;
  text-align: left;
}

.home-accordion-item {
  border-bottom: 1px solid var(--border);
}

.home-accordion-item:first-of-type {
  border-top: 1px solid var(--border);
}

.home-accordion-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .home-accordion-heading {
    font-size: 1.05rem;
  }
}

.home-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0.25rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}

.home-accordion-trigger::after {
  content: '';
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin-top: -0.2rem;
  transition: transform 0.2s ease;
}

.home-accordion-trigger:hover,
.home-accordion-trigger:focus-visible {
  color: var(--accent-gold);
  outline: none;
}

.home-accordion-trigger[aria-expanded='true']::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.home-accordion-panel {
  padding: 0 0.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.home-accordion-panel[hidden] {
  display: none !important;
}

.home-accordion-panel p {
  margin: 0 0 0.85rem;
}

.home-accordion-panel p:last-child {
  margin-bottom: 0;
}

.home-accordion-list {
  margin: 0 0 0.85rem 1.15rem;
  padding: 0;
}

.home-accordion-list li {
  margin-bottom: 0.35rem;
}

.home-accordion-panel strong {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .header {
    flex-direction: row;
    align-items: center;
  }
  .header .logo h1 {
    font-size: 1rem;
  }
}

/* Leaflet zoom control - bottom right, map style */
.map-container .leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
}

.map-container .leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 20px !important;
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  margin: 4px !important;
  transition: background 0.2s, color 0.2s;
}

.map-container .leaflet-control-zoom a:hover {
  background: var(--bg-card-hover) !important;
  color: var(--accent-gold) !important;
}

.map-container .leaflet-control-zoom-in {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-bottom: 2px !important;
}

.map-container .leaflet-control-zoom-out {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  margin-top: 0 !important;
}

/* Map style control - bottom right, map style */
.map-container .leaflet-control-map-style {
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0.5rem !important;
}

.map-container .map-style-select {
  width: auto;
  min-width: 100px;
  height: 36px;
  padding: 0 0.5rem;
  margin-right: 5px;
  margin-top: -10px;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  cursor: pointer;
  font-weight: 500;
}

.map-container .map-style-select:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--accent-gold) !important;
}

.map-container .map-style-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Leaflet dark theme override */
.leaflet-popup-content-wrapper {
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
  min-width: 280px;
}

.leaflet-popup-tip {
  background: var(--bg-card);
}

/* Map popup card */
.map-popup-card {
  font-size: 0.9rem;
}

.map-popup-body {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.map-popup-img-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.map-popup-img-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.map-popup-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.map-popup-size {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 0.25rem;
}

.map-popup-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.map-popup-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.map-popup-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.map-popup-gender {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-popup-countdown {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.map-popup-iv,
.map-popup-moveset,
.map-popup-cp {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-popup-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}

.map-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-dark);
  color: #fff !important;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.map-popup-btn:hover,
.map-popup-btn:visited,
.map-popup-btn:focus {
  color: #fff !important;
  background: var(--border);
}

.map-popup-btn-half,
.map-popup-btn-third {
  flex: 1;
  min-width: 0;
}

.map-popup-btn-info {
  text-decoration: none;
  text-align: center;
  justify-content: center;
}

.map-popup-btn-caught {
  background: linear-gradient(135deg, var(--accent-green), #22a55a) !important;
  border-color: var(--accent-green) !important;
  color: var(--bg-dark) !important;
  font-weight: 600;
}

.map-popup-btn-caught:hover {
  background: linear-gradient(135deg, #4ade80, #16a34a) !important;
  border-color: var(--accent-green) !important;
}

.map-popup-icon {
  font-size: 1rem;
}

.map-popup-btn-coords {
  flex: 1;
}

.copy-icon {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Pokemon markers - circular */
.pokemon-marker {
  background: none !important;
  border: none !important;
}

.marker-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.3);
  overflow: hidden;
  padding: 2px;
  box-sizing: border-box;
}

.marker-circle .marker-id {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  color: inherit;
}

.marker-circle .marker-name {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: lowercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

.marker-circle.iv-100 { background: var(--iv-100); color: #0f172a; }
.marker-circle.iv-90 { background: var(--iv-90); color: #0f172a; }
.marker-circle.iv-80 { background: var(--iv-80); color: #0f172a; }
.marker-circle.iv-01515 { background: var(--iv-01515); color: #fff; }
.marker-circle.iv-ditto { background: var(--iv-ditto); color: #fff; }
.marker-circle.iv-other { background: var(--border); color: var(--text-primary); }

/* .env HIGHLIGHT_POKEMON_IDS — IV renginden bağımsız kırmızı vurgu */
.marker-circle.marker-highlight-user {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.45);
}

/* Mobile - map edge-to-edge, smaller search */
@media (max-width: 767px) {
  .app-wrap {
    padding: 0;
  }
  .app {
    padding: 0;
    min-height: auto;
  }
  .map-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .search-bar-wrap {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1.5rem);
    max-width: 320px;
    top: 0.5rem;
  }
  .search-bar {
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  }
  .search-bar input {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  .search-clear {
    width: 24px;
    height: 24px;
    margin-right: 0.15rem;
  }
  .search-clear::before {
    font-size: 1rem;
  }
  .search-divider {
    height: 20px;
  }
  .search-btn {
    width: 36px;
    height: 36px;
    margin: 4px;
    border-radius: 6px;
  }
  .search-btn svg {
    width: 16px;
    height: 16px;
  }
  .search-results {
    border-radius: 8px;
    max-height: 220px;
    font-size: 0.9rem;
  }
  .search-result-item {
    padding: 0.6rem 0.75rem;
  }
  .header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}

