/* Gaziantep İnanç Atlası — modern yüzey teması */
:root {
  --atlas-950: #1a0f0a;
  --atlas-900: #2b1a12;
  --atlas-800: #3d2618;
  --atlas-700: #4c3224;
  --atlas-600: #6a4430;
  --atlas-500: #8b5c40;
  --atlas-accent: #c9a227;
  --atlas-accent-dim: #a88420;
  --atlas-cream: #faf6ef;
  --atlas-sand: #f0e8db;
  --atlas-surface: #fffcf7;
  --atlas-elevated: #ffffff;
  --atlas-muted: #6b5346;
  --atlas-line: rgba(43, 26, 18, 0.09);
  --atlas-line-strong: rgba(43, 26, 18, 0.14);
  --atlas-text: #2b1a12;
  --atlas-shadow: 0 4px 24px rgba(27, 16, 10, 0.08);
  --atlas-shadow-hover: 0 18px 40px rgba(27, 16, 10, 0.12);
  --atlas-radius: 18px;
  --atlas-radius-sm: 12px;
  --atlas-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --atlas-display: "Fraunces", "Georgia", serif;
}

html,
body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.atlas-body {
  background-color: var(--atlas-cream);
  color: var(--atlas-text);
  font-family: var(--atlas-font);
  font-size: 0.96875rem;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

h1, h2, h3, h4, .atlas-display {
  font-family: var(--atlas-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: var(--atlas-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--atlas-500);
}

.atlas-container {
  max-width: 1140px;
}

/* ——— Üst menü ——— */
.atlas-navbar {
  background: rgba(45, 28, 18, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

.atlas-navbar .navbar-brand,
.atlas-navbar .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
}

.atlas-navbar .nav-link {
  border-radius: 999px;
  padding: 0.45rem 1rem !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.atlas-navbar .nav-link:hover,
.atlas-navbar .nav-link:focus {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.atlas-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.atlas-brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}

.atlas-brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  background: var(--atlas-accent);
  color: var(--atlas-950);
  font-weight: 800;
  font-size: 0.72rem;
  font-family: var(--atlas-font);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.atlas-brand-text {
  font-family: var(--atlas-display);
  font-weight: 600;
  font-size: 1.15rem;
}

/* ——— Butonlar ——— */
.btn-dark,
.btn-outline-dark {
  border-color: var(--atlas-700) !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.45rem 1.1rem;
}

.btn-dark {
  background: var(--atlas-800) !important;
  border-color: var(--atlas-800) !important;
}

.btn-dark:hover {
  background: var(--atlas-700) !important;
  border-color: var(--atlas-700) !important;
}

.btn-outline-dark:hover {
  background: var(--atlas-800) !important;
  border-color: var(--atlas-800) !important;
  color: #fff !important;
}

.btn-atlas {
  background: var(--atlas-accent) !important;
  border: none !important;
  color: var(--atlas-950) !important;
  font-weight: 700;
}

.btn-atlas:hover {
  background: var(--atlas-accent-dim) !important;
  color: var(--atlas-950) !important;
}

.text-bg-dark {
  background: var(--atlas-800) !important;
}

/* ——— Kartlar ——— */
.card-soft,
.atlas-card {
  background: var(--atlas-elevated);
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius);
  box-shadow: var(--atlas-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.atlas-card:hover {
  border-color: var(--atlas-line-strong);
  box-shadow: var(--atlas-shadow-hover);
}

.atlas-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--atlas-line);
  font-family: var(--atlas-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.atlas-card-body {
  padding: 1.25rem;
}

.atlas-filter-panel {
  background: var(--atlas-surface);
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius);
  box-shadow: var(--atlas-shadow);
  padding: 1.25rem 1.35rem;
}

.atlas-filter-panel .form-label {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--atlas-muted);
  margin-bottom: 0.35rem;
}

.atlas-filter-panel .form-select,
.atlas-filter-panel .form-control {
  border-radius: 10px;
  border-color: var(--atlas-line-strong);
  background: #fff;
}

.atlas-filter-panel .form-select:focus,
.atlas-filter-panel .form-control:focus {
  border-color: var(--atlas-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 64, 0.15);
}

/* ——— Sayfa başlıkları ——— */
.atlas-page-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--atlas-accent-dim);
  margin-bottom: 0.35rem;
}

.atlas-page-title {
  font-family: var(--atlas-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
  margin: 0;
  color: var(--atlas-900);
}

/* ——— Harita ——— */
.map-tight-top {
  margin-top: 0;
}

.atlas-hero-map-wrap {
  position: relative;
}

/* Tam sayfa harita (harita.php) */
.atlas-map-frame {
  border-radius: 0;
  min-height: 480px;
  height: 52vh;
  max-height: 640px;
}

/* Ana sayfa kahraman haritası — biraz daha yüksek */
#hero-map.atlas-hero-map {
  border-radius: 0;
  min-height: 560px;
  height: 60vh;
  max-height: 760px;
}

@media (min-width: 992px) {
  .atlas-map-frame {
    min-height: 520px;
    border-radius: 0 0 var(--atlas-radius) var(--atlas-radius);
  }

  #hero-map.atlas-hero-map {
    min-height: 620px;
    height: 62vh;
    max-height: 820px;
    border-radius: 0 0 var(--atlas-radius) var(--atlas-radius);
  }
}

/* Keşfet — kategori sayfası üst haritası */
#kesfet-category-map.atlas-kesfet-category-map {
  border-radius: 0;
  min-height: 320px;
  height: 42vh;
  max-height: 520px;
}

@media (min-width: 992px) {
  #kesfet-category-map.atlas-kesfet-category-map {
    min-height: 380px;
    height: 46vh;
    max-height: 560px;
    border-radius: 0 0 var(--atlas-radius) var(--atlas-radius);
  }
}

/* Eser detay — tam genişlik kahraman harita (ana sayfa ile aynı his) */
#detail-hero-map.atlas-detail-hero-map {
  border-radius: 0;
  min-height: 360px;
  height: 48vh;
  max-height: 560px;
}

@media (min-width: 992px) {
  #detail-hero-map.atlas-detail-hero-map {
    min-height: 440px;
    height: 52vh;
    max-height: 680px;
    border-radius: 0 0 var(--atlas-radius) var(--atlas-radius);
  }
}

.atlas-detail-map-overlay {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 650;
  padding: 14px;
  pointer-events: none;
}

.atlas-detail-map-overlay .btn {
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.atlas-detail-marker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.atlas-detail-marker-label {
  max-width: 240px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(28, 18, 12, 0.92);
  color: #fff;
  font-family: var(--atlas-font);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Harita: kategori PNG işaretçisi (divIcon + img; cluster ile uyumlu) */
.atlas-map-marker-cat {
  background: transparent !important;
  border: none !important;
}

.atlas-map-marker-cat__inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(255, 252, 247, 0.98),
    0 0 0 4px rgba(28, 18, 12, 0.82),
    0 5px 16px rgba(18, 12, 8, 0.42);
  border: 2px solid #fff;
  box-sizing: border-box;
  cursor: pointer;
  transform: translateY(-1px);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.atlas-map-marker-cat__inner--existing {
  outline: 2px solid rgba(22, 101, 52, 0.96);
  outline-offset: 1px;
}

.atlas-map-marker-cat__inner--missing {
  outline: 2px solid rgba(194, 65, 12, 0.96);
  outline-offset: 1px;
}

.atlas-map-marker-cat:hover .atlas-map-marker-cat__inner,
.atlas-map-marker-cat:focus-visible .atlas-map-marker-cat__inner {
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 0 0 2px rgba(255, 252, 247, 1),
    0 0 0 5px rgba(28, 18, 12, 0.88),
    0 8px 20px rgba(18, 12, 8, 0.48);
}

.atlas-map-marker-cat__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Marker kümeleri: OSM arka planında pastel renklerle kaybolmasın. */
.leaflet-container .marker-cluster {
  background: rgba(28, 18, 12, 0.9) !important;
  border: 2px solid rgba(255, 252, 247, 0.98);
  box-shadow:
    0 0 0 2px rgba(28, 18, 12, 0.78),
    0 6px 16px rgba(18, 12, 8, 0.34);
  color: var(--atlas-950);
}

.leaflet-container .marker-cluster div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  margin: 4px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  background: var(--atlas-accent) !important;
  color: var(--atlas-950) !important;
  font-family: var(--atlas-font);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.leaflet-container .marker-cluster span {
  line-height: 1;
}

.leaflet-container .marker-cluster:hover {
  filter: saturate(1.08);
  transform: translateY(-1px);
}

.leaflet-container {
  border-radius: var(--atlas-radius);
  overflow: hidden;
  z-index: 1;
}

/* OSM'nin hazır raster görünümünü site paletine yaklaştırıp marker'lara nefes alanı bırakır. */
.leaflet-container .leaflet-tile-pane {
  opacity: 0.86;
  filter: saturate(0.62) contrast(0.9) brightness(1.06);
}

.leaflet-container .leaflet-control-zoom {
  margin: 16px !important;
  border: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(28, 18, 12, 0.2);
}

.leaflet-container .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 34px;
  border: 0 !important;
  border-bottom: 1px solid var(--atlas-line) !important;
  color: var(--atlas-800) !important;
  background: rgba(255, 252, 247, 0.96) !important;
  font-weight: 700;
}

.leaflet-container .leaflet-control-zoom a:last-child {
  border-bottom: 0 !important;
}

.leaflet-container .leaflet-control-zoom a:hover,
.leaflet-container .leaflet-control-zoom a:focus-visible {
  color: var(--atlas-950) !important;
  background: var(--atlas-accent) !important;
}

.atlas-map-page .leaflet-container {
  border-radius: var(--atlas-radius);
}

.atlas-map-page .atlas-filter-panel {
  background: rgba(28, 18, 12, 0.94);
  border-color: rgba(255, 252, 247, 0.1);
  box-shadow: 0 14px 36px rgba(28, 18, 12, 0.18);
}

.atlas-map-page .atlas-filter-panel .form-label {
  color: rgba(255, 252, 247, 0.62);
}

.atlas-map-page .atlas-filter-panel .form-select,
.atlas-map-page .atlas-filter-panel .form-control {
  border-color: rgba(255, 252, 247, 0.16);
  background: rgba(255, 252, 247, 0.96);
}

.atlas-map-page .atlas-filter-panel .btn-dark {
  background: var(--atlas-accent) !important;
  border-color: var(--atlas-accent) !important;
  color: var(--atlas-950) !important;
  font-weight: 800;
}

.atlas-map-legend {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 650;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 32px);
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 252, 247, 0.2);
  border-radius: 12px;
  background: rgba(28, 18, 12, 0.88);
  box-shadow: 0 8px 22px rgba(28, 18, 12, 0.24);
  color: rgba(255, 252, 247, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.atlas-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.atlas-map-legend-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(28, 18, 12, 0.65);
}

.atlas-map-legend-dot--existing {
  background: #168347;
}

.atlas-map-legend-dot--missing {
  background: #c2410c;
}

@media (max-width: 575.98px) {
  .atlas-map-legend {
    right: 10px;
    bottom: 10px;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.65rem;
  }
}

.map-overlay-filter,
.atlas-map-filter {
  position: absolute;
  top: 14px;
  left: 50%;
  width: min(920px, calc(100% - 28px));
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(28, 18, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--atlas-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.map-overlay-filter .form-label,
.atlas-map-filter .form-label {
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.map-overlay-filter .form-select,
.map-overlay-filter .form-control,
.atlas-map-filter .form-select,
.atlas-map-filter .form-control {
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.map-overlay-filter .btn-dark,
.atlas-map-filter .btn-dark {
  background: var(--atlas-accent) !important;
  border: none !important;
  color: var(--atlas-950) !important;
  font-weight: 700;
}

/* Harita kabuğu (çerçeve, kontrol katmanları) */
.atlas-map-shell {
  position: relative;
  background: var(--atlas-line);
}

.atlas-map-shell--page {
  border-radius: var(--atlas-radius);
  overflow: hidden;
  border: 1px solid var(--atlas-line-strong);
  box-shadow: var(--atlas-shadow);
}

.atlas-map-shell--hero {
  border: none;
  box-shadow: none;
  background: transparent;
}

.atlas-map-shell--detail {
  overflow: hidden;
  border-radius: 0 0 calc(var(--atlas-radius) - 1px) calc(var(--atlas-radius) - 1px);
  background: var(--atlas-sand);
}

/* Koordinat mini harita (sadece admin / eski kullanım) */
.atlas-mini-map {
  height: 280px;
  min-height: 220px;
}

.atlas-map-shell .leaflet-control-container {
  z-index: 700;
}

.atlas-map-shell--hero .map-overlay-filter,
.atlas-map-shell--hero .atlas-map-filter {
  /* Leaflet .leaflet-control-container (700) üstünde: mobilde filtre görünür ve tıklanabilir olsun */
  z-index: 1200;
}

/* Ana sayfa harita filtresi: mobilde varsayılan kapalı; düğme haritanın sağ altında (navbar ile çakışmasın) */
@media (max-width: 767.98px) {
  .atlas-hero-filter-toggle {
    position: absolute;
    bottom: 52px;
    right: 12px;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1250;
    white-space: nowrap;
    background: rgba(28, 18, 12, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  }

  .atlas-hero-filter-toggle:hover,
  .atlas-hero-filter-toggle:focus {
    background: rgba(28, 18, 12, 0.98) !important;
    color: #fff !important;
  }

  .atlas-hero-map-filter-panel:not(.is-open) .map-overlay-filter {
    display: none !important;
  }

  .atlas-hero-map-filter-panel.is-open .map-overlay-filter {
    top: 14px;
  }
}

@media (min-width: 768px) {
  .atlas-hero-filter-toggle {
    display: none !important;
  }

  .atlas-hero-map-filter-panel .map-overlay-filter {
    display: block !important;
  }
}

.leaflet-container .leaflet-control-attribution {
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid var(--atlas-line);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.65rem;
  color: var(--atlas-muted);
  margin: 10px;
}

.leaflet-container .leaflet-control-zoom a {
  border: 0 !important;
  border-bottom: 1px solid var(--atlas-line) !important;
  color: var(--atlas-800) !important;
  background: rgba(255, 252, 247, 0.95) !important;
}

.leaflet-container .leaflet-control-zoom a:last-child {
  border-bottom: 0 !important;
}

.leaflet-container .leaflet-control-zoom a:hover,
.leaflet-container .leaflet-control-zoom a:focus-visible {
  color: var(--atlas-950) !important;
  background: var(--atlas-accent) !important;
}

/* Leaflet popup (modern kart) */
.atlas-leaflet-popup .leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid var(--atlas-line-strong) !important;
  box-shadow: 0 22px 50px rgba(27, 16, 10, 0.18) !important;
}

.atlas-leaflet-popup .leaflet-popup-content {
  margin: 0 !important;
  min-width: 260px;
  max-width: 320px;
}

.atlas-leaflet-popup--compact .leaflet-popup-content {
  min-width: 0;
  max-width: 240px;
}

.atlas-leaflet-popup--compact .leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(27, 16, 10, 0.14) !important;
}

.atlas-leaflet-popup .leaflet-popup-tip {
  box-shadow: 0 4px 14px rgba(27, 16, 10, 0.12) !important;
  border: 1px solid var(--atlas-line);
}

.atlas-popup-v2 {
  font-family: var(--atlas-font);
  color: var(--atlas-text);
}

.atlas-popup-media {
  height: 118px;
  overflow: hidden;
  background: var(--atlas-sand);
}

.atlas-popup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.atlas-popup-media--pattern {
  height: 76px;
  background-color: var(--atlas-sand);
  background-image: repeating-linear-gradient(
    -42deg,
    transparent,
    transparent 10px,
    rgba(43, 26, 18, 0.045) 10px,
    rgba(43, 26, 18, 0.045) 11px
  );
}

.atlas-popup-v2-body {
  padding: 14px 16px 16px;
  background: var(--atlas-elevated);
}

.atlas-popup-v2-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.atlas-popup-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--atlas-600);
  background: rgba(139, 92, 64, 0.1);
  padding: 5px 11px;
  border-radius: 999px;
}

.atlas-popup-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.atlas-popup-badge--ok {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.atlas-popup-badge--warn {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.atlas-popup-v2-title {
  font-family: var(--atlas-display);
  font-size: 1.09rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.28;
  color: var(--atlas-900);
}

.atlas-popup-v2-loc {
  font-size: 0.78rem;
  color: var(--atlas-muted);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.atlas-popup-pin {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--atlas-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28);
}

.atlas-popup-v2-desc {
  font-size: 0.8rem;
  color: #4a3f38;
  line-height: 1.5;
  margin: 0 0 14px;
}

.atlas-popup-v2-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.atlas-popup-btn {
  flex: 1;
  min-width: 116px;
  text-align: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.atlas-popup-btn:hover {
  transform: translateY(-1px);
}

.atlas-popup-btn--primary {
  background: var(--atlas-800);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(43, 26, 18, 0.2);
}

.atlas-popup-btn--primary:hover {
  color: #fff !important;
}

.atlas-popup-btn--ghost {
  background: var(--atlas-cream);
  color: var(--atlas-800) !important;
  border: 1px solid var(--atlas-line-strong);
}

/* Mobil harita: küçük tooltip benzeri popup */
.atlas-popup-v2--compact .atlas-popup-media--compact {
  height: 56px;
}

.atlas-popup-v2--compact .atlas-popup-media--compact.atlas-popup-media--pattern {
  height: 40px;
}

.atlas-popup-v2--compact .atlas-popup-v2-body {
  padding: 8px 10px 10px;
}

.atlas-popup-v2--compact .atlas-popup-v2-row--compact {
  margin-bottom: 6px;
  gap: 6px;
}

.atlas-popup-v2--compact .atlas-popup-chip--compact {
  font-size: 0.58rem;
  padding: 3px 8px;
}

.atlas-popup-v2--compact .atlas-popup-badge--compact {
  font-size: 0.58rem;
  padding: 3px 7px;
}

.atlas-popup-v2--compact .atlas-popup-v2-title--compact {
  font-size: 0.88rem;
  margin: 0 0 4px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atlas-popup-v2--compact .atlas-popup-v2-loc--compact {
  font-size: 0.72rem;
  margin: 0 0 8px;
  gap: 5px;
}

.atlas-popup-v2--compact .atlas-popup-pin--compact {
  width: 6px;
  height: 6px;
}

.atlas-popup-v2--compact .atlas-popup-v2-actions--compact {
  flex-direction: column;
  gap: 6px;
}

.atlas-popup-v2--compact .atlas-popup-btn--compact-row {
  flex: none;
  min-width: 0;
  width: 100%;
  padding: 6px 10px;
  font-size: 0.72rem;
  border-radius: 8px;
}

/* ——— Kategori ikonları ——— */
.category-icon {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(27, 16, 10, 0.12);
}

/* Logo yedek */
.atlas-logo {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--atlas-900);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* ——— Carousel ——— */
.atlas-home-feed {
  position: relative;
}

.atlas-feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.atlas-feed-title {
  font-family: var(--atlas-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0;
  color: var(--atlas-900);
}

.atlas-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--atlas-surface);
  border: 1px solid var(--atlas-line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--atlas-muted);
}

.atlas-category-block {
  background: var(--atlas-surface);
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius);
  box-shadow: var(--atlas-shadow);
  padding: 1.25rem 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  /* overflow:hidden satır negatif margin + 3 sütun grid'i kesiyordu (yalnızca 2 kart görünmesi) */
  overflow: visible;
}

.atlas-category-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--atlas-accent);
  border-radius: 4px 0 0 4px;
  opacity: 0.85;
}

/* Ana sayfa kategori slider: oklar .carousel içinde (Bootstrap hedeflemesi); kontroller altta ortada */
.atlas-category-carousel-root {
  display: flex;
  flex-direction: column;
}

.atlas-category-carousel-root .carousel-inner {
  flex: 1 1 auto;
  width: 100%;
}

.atlas-category-carousel-nav {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.atlas-category-carousel-btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  border-color: var(--atlas-line);
  background: var(--atlas-elevated);
  color: var(--atlas-800);
}

.atlas-category-carousel-btn:hover,
.atlas-category-carousel-btn:focus {
  background: var(--atlas-accent);
  border-color: var(--atlas-accent);
  color: var(--atlas-950);
}

.atlas-carousel-chevron {
  font-size: 1.75rem;
  line-height: 1;
  margin-top: -0.12rem;
}

/* ——— Eser kartları ——— */
.place-card-modern {
  background: var(--atlas-elevated);
  border: 1px solid var(--atlas-line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
}

.place-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--atlas-shadow-hover);
  border-color: rgba(201, 162, 39, 0.35);
}

.place-card-modern a {
  color: inherit;
}

.place-card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--atlas-sand);
}

.place-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.place-card-modern:hover .place-card-media {
  transform: scale(1.04);
}

.place-card-modern.place-card-horizontal .place-card-media-wrap {
  aspect-ratio: 16 / 10;
}

@media (min-width: 576px) {
  .place-card-modern.place-card-horizontal .place-card-media-wrap {
    width: 200px;
    max-width: 42%;
    aspect-ratio: 1;
  }
}

.place-card-media-fallback {
  background: var(--atlas-sand);
}

.place-card-body {
  padding: 14px 16px 16px;
}

.place-card-title {
  font-family: var(--atlas-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  min-height: 2.55rem;
  color: var(--atlas-900);
}

.place-card-meta {
  font-size: 0.82rem;
  color: var(--atlas-muted);
  font-weight: 500;
  margin-top: 6px;
}

.badge-atlas-existing,
.badge-atlas-missing {
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.4em 0.65rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.badge-atlas-existing {
  background: #ecfdf3 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0;
}

.badge-atlas-missing {
  background: #fff7e6 !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa;
}

.atlas-link-all {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--atlas-600);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(139, 92, 64, 0.08);
}

.atlas-link-all:hover {
  background: rgba(139, 92, 64, 0.15);
  color: var(--atlas-800);
}

/* ——— Eser detay ——— */
.atlas-detail-header {
  margin-bottom: 1.5rem;
}

.atlas-detail-title {
  font-family: var(--atlas-display);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 600;
  color: var(--atlas-900);
  margin-bottom: 0.75rem;
}

.atlas-detail-address {
  font-family: var(--atlas-font);
  font-size: 0.925rem;
  line-height: 1.5;
  max-width: 42rem;
}

.atlas-detail-cover {
  border-radius: var(--atlas-radius);
  overflow: hidden;
  border: 1px solid var(--atlas-line);
  box-shadow: var(--atlas-shadow);
  margin-bottom: 1.5rem;
}

.atlas-detail-cover img {
  width: 100%;
  display: block;
  vertical-align: middle;
}

/* Galeri: tek en-boy, crop; lightbox’ta tam görüntü */
.atlas-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .atlas-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.atlas-gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--atlas-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--atlas-line);
  background: var(--atlas-sand);
  padding: 0;
}

.atlas-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.22s ease;
}

.atlas-gallery-thumb:hover img,
.atlas-gallery-thumb:focus-visible img {
  transform: scale(1.04);
}

.atlas-gallery-thumb:focus {
  outline: 2px solid var(--atlas-500);
  outline-offset: 2px;
}

#galleryLightbox .modal-content {
  background: rgba(20, 14, 10, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#galleryLightboxImg {
  max-height: min(85vh, 900px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.atlas-leaflet-pin {
  background: transparent !important;
  border: none !important;
}

.atlas-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--atlas-sand);
  border: 1px solid var(--atlas-line);
  color: var(--atlas-700);
}

.atlas-chip-dark {
  background: var(--atlas-800);
  color: #fff;
  border-color: var(--atlas-800);
}

.atlas-prose {
  font-size: 0.975rem;
  line-height: 1.65;
  color: #3d342e;
}

.atlas-prose p {
  margin-bottom: 0.75em;
}

.atlas-similar-card {
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius-sm);
  padding: 0.85rem 1rem;
  background: var(--atlas-surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.atlas-similar-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: #fff;
}

/* ——— Sayfalama ——— */
.pagination .page-link {
  border-radius: 10px !important;
  margin: 0 4px;
  border-color: var(--atlas-line-strong);
  color: var(--atlas-700);
  font-weight: 600;
}

.pagination .page-item.active .page-link {
  background: var(--atlas-800);
  border-color: var(--atlas-800);
  color: #fff;
}

/* ——— Accordion ——— */
.accordion-item {
  border-color: var(--atlas-line);
  border-radius: var(--atlas-radius-sm) !important;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.accordion-button {
  font-family: var(--atlas-font);
  font-weight: 600;
  background: var(--atlas-surface);
  color: var(--atlas-900);
}

.accordion-button:not(.collapsed) {
  background: var(--atlas-sand);
  color: var(--atlas-900);
  box-shadow: none;
}

/* ——— Boş durum ——— */
.atlas-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--atlas-radius);
  border: 1px dashed var(--atlas-line-strong);
  background: var(--atlas-surface);
}

.atlas-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--atlas-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--atlas-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--atlas-600);
}

/* ——— Footer ——— */
.atlas-footer {
  background: var(--atlas-900);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.atlas-footer strong {
  color: #fff;
  font-weight: 600;
}

.atlas-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.atlas-footer a:hover {
  color: var(--atlas-accent);
}

/* ——— Admin editör ——— */
.mini-toolbar {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.mini-editor {
  background: #fff;
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius-sm);
  padding: 10px;
  overflow: auto;
}

.mini-editor:focus {
  outline: 2px solid rgba(106, 64, 38, 0.25);
  outline-offset: 0;
}

.admin-sidebar a.admin-link {
  color: var(--atlas-900);
  text-decoration: none;
}

.admin-sidebar a.admin-link.active,
.admin-sidebar a.admin-link:hover {
  background: rgba(106, 64, 38, 0.14);
}

/* Yönetim paneli: aynı tipografi, açık arka plan korunur */
.admin-app-font {
  font-family: var(--atlas-font);
}

@media (min-width: 992px) {
  #filtersCollapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
}
