/* ============================================================================
   HİSARÖNÜ NOKTALARI (yer.hisaronu.site)
   hisaronu.site ile birebir Çift Tema Sistemi:
   - Varsayılan Aydınlık Mod: #f4f6f9 zemin + Ege Mavisi/Turkuaz başlık + #ffffff kartlar
   - Karanlık Mod (body.dark-theme): #0d0f14 / #161920 / #222630 koyu gece teması
   ============================================================================ */

:root {
  --bg-page: #f4f6f9;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-input: #ffffff;
  --border-subtle: #cbd5e1;
  --border-soft: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-blue: #0284c7;
  --accent-blue-dark: #0369a1;
  --accent-teal: #0d9488;
  --accent-emerald: #059669;
  --accent-gold: #f59e0b;
  --accent-gold-bright: #fde047;
  --accent-danger: #dc2626;
  --shadow-card: 0 3px 10px rgba(15, 23, 42, 0.06);
  --shadow-header: 0 5px 16px rgba(2, 132, 199, 0.22);
  --radius-card: 14px;
  --radius-btn: 10px;
}

html.dark-theme,
body.dark-theme {
  --bg-page: #0d0f14;
  --bg-card: #161920;
  --bg-elevated: #222630;
  --bg-input: #0f131b;
  --border-subtle: rgba(255, 255, 255, 0.13);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --accent-blue: #38bdf8;
  --accent-blue-dark: #0284c7;
  --accent-teal: #2dd4bf;
  --accent-emerald: #10b981;
  --accent-gold: #fbbf24;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-header: 0 6px 20px rgba(0, 0, 0, 0.45);
}

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

html {
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.012em;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

svg {
  display: block;
  flex-shrink: 0;
}

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  max-width: 1240px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 8px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-shell {
  max-width: 740px;
}

.admin-shell {
  max-width: 860px;
}

/* ============================================================================
   ÜST BAŞLIK (hisaronu.site .welcome-header ile birebir Ege Mavisi degrade)
   ============================================================================ */
.welcome-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 55%, #0d9488 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-card);
  padding: 9px 11px 10px;
  box-shadow: var(--shadow-header);
  color: #ffffff;
}

body.dark-theme .welcome-header {
  background: linear-gradient(135deg, #0f172a 0%, #111827 55%, #0b2538 100%);
  border-color: rgba(56, 189, 248, 0.25);
}

.welcome-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.welcome-center-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.welcome-emblem-wrap {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.45));
}

.welcome-center-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.welcome-title {
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 900;
  letter-spacing: 0.35px;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.welcome-title .gold-tint {
  color: #fde047;
}

.welcome-sub {
  font-size: clamp(9.5px, 2.5vw, 11px);
  font-weight: 700;
  color: #e0f2fe;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 6px #fde047;
  flex-shrink: 0;
}

.header-right-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-portal-pill,
.header-logout-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.header-portal-pill:active,
.header-logout-pill:active {
  transform: scale(0.96);
}

.header-logout-pill {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(252, 165, 165, 0.45);
  color: #fee2e2;
}

.header-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  background: #10b981;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.header-wa-cta:hover {
  filter: brightness(1.06);
}

.header-wa-cta:active {
  transform: scale(0.96);
}

/* Akıllı arama kutusu (hisaronu.site .welcome-smart-search-box) */
.welcome-smart-search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  height: 38px;
  padding: 0 10px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.welcome-smart-search-box:focus-within {
  border-color: #fde047;
  box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.35), 0 4px 12px rgba(15, 23, 42, 0.15);
}

body.dark-theme .welcome-smart-search-box {
  background: #0d121d;
  border-color: rgba(148, 163, 184, 0.25);
}

.welcome-smart-search-icon {
  color: #0284c7;
  display: flex;
  align-items: center;
}

body.dark-theme .welcome-smart-search-icon {
  color: #38bdf8;
}

.welcome-smart-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
}

body.dark-theme .welcome-smart-search-input {
  color: #f8fafc;
}

.welcome-smart-search-input::placeholder {
  color: #64748b;
  font-weight: 600;
}

body.dark-theme .welcome-smart-search-input::placeholder {
  color: #94a3b8;
}

.welcome-smart-search-clear {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.dark-theme .welcome-smart-search-clear {
  background: #1e293b;
  color: #cbd5e1;
}

/* ============================================================================
   KATEGORİ FİLTRE ÇİPLERİ
   ============================================================================ */
.filter-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.cat-chip:hover {
  border-color: var(--accent-blue);
}

.cat-chip.active {
  background: #0284c7;
  border-color: #0369a1;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

body.dark-theme .cat-chip.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.chip-count {
  font-size: 10.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.cat-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

body.dark-theme .chip-count {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   ANA SAYFA HARİTA + KART LİSTESİ DÜZENİ
   ============================================================================ */
.home-main-grid {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.map-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-stage {
  position: relative;
  width: 100%;
  height: 330px;
}

.leaflet-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-floating-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  display: flex;
  gap: 6px;
}

.map-pill-btn,
.map-pill-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}

.map-pill-btn-sm {
  height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.map-pill-btn.is-satellite,
.map-pill-btn-sm.is-satellite {
  background: #0284c7;
  border-color: #0369a1;
  color: #ffffff;
}

body.dark-theme .map-pill-btn,
body.dark-theme .map-pill-btn-sm {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f8fafc;
}

body.dark-theme .map-pill-btn.is-satellite,
body.dark-theme .map-pill-btn-sm.is-satellite {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.map-counter-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 500;
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  pointer-events: none;
}

/* Özel Leaflet Pin */
.yer-pin-marker {
  background: transparent;
  border: none;
}

.yer-pin-dot {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin-color, #0284c7);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yer-pin-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 0 !important;
  overflow: hidden;
}

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

.map-popup-box {
  padding: 10px 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
}

.map-popup-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.map-popup-title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.map-popup-desc {
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-popup-actions {
  display: flex;
  gap: 6px;
}

.map-popup-btn {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  background: #0284c7;
  color: #ffffff !important;
}

.map-popup-btn.secondary {
  background: #059669;
}

/* Liste paneli */
.list-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.list-panel-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-primary);
}

.list-panel-count {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2px 9px;
  border-radius: 999px;
}

.places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.place-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.place-card:hover {
  border-color: var(--accent-blue);
}

.place-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 190px;
  overflow: hidden;
  background: var(--bg-elevated);
  text-decoration: none;
}

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

.place-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.14), rgba(13, 148, 136, 0.18));
  color: var(--cat-color, #0284c7);
}

.place-cat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--badge-bg, #e0f2fe);
  color: var(--badge-color, #0284c7);
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.place-card-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.place-card-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
}

.place-card-title a {
  text-decoration: none;
}

.place-card-title a:hover {
  color: var(--accent-blue);
}

.place-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
}

.mini-tag-ok {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.mini-tag-warn {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

body.dark-theme .mini-tag-ok {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

body.dark-theme .mini-tag-warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.place-card-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  margin-top: 2px;
}

.btn-card-detail,
.btn-card-focus,
.btn-card-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-card-detail {
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #0369a1;
}

body.dark-theme .btn-card-detail {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

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

.btn-card-nav {
  background: #059669;
  border: 1px solid #047857;
  color: #ffffff;
}

/* Boş durum & WhatsApp Dönüşüm Bandı */
.empty-state {
  background: var(--bg-card);
  border: 1.5px dashed var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 22px 16px;
  text-align: center;
}

.empty-state-title {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.empty-state-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.wa-conversion-band,
.detail-wa-strip {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
  border: 1.5px solid #6ee7b7;
  border-radius: var(--radius-card);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  box-shadow: var(--shadow-card);
}

body.dark-theme .wa-conversion-band,
body.dark-theme .detail-wa-strip {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.35) 0%, rgba(12, 74, 110, 0.32) 100%);
  border-color: rgba(52, 211, 153, 0.38);
}

.wa-conversion-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-conversion-copy strong {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text-primary);
}

.wa-conversion-copy span,
.detail-wa-strip-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-wa-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  background: #059669;
  border: 1px solid #047857;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-wa-primary:hover {
  filter: brightness(1.06);
}

.btn-wa-primary:active {
  transform: scale(0.98);
}

.btn-wa-compact {
  height: 38px;
  font-size: 13px;
}

/* ============================================================================
   DETAY SAYFASI (/[slug]) — MOBİL ÖNCELİKLİ İLK EKRAN YERLEŞİMİ
   ============================================================================ */
.detail-top-header {
  padding: 8px 10px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.detail-brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.detail-brand-mini .gold-tint {
  color: #fde047;
}

.detail-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-hero-card,
.detail-info-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.detail-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 270px;
  background: #0f172a;
  overflow: hidden;
}

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

.detail-hero-fallback {
  position: relative;
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: #ffffff;
}

.detail-hero-fallback-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero-cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--badge-bg, #e0f2fe);
  color: var(--badge-color, #0284c7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 11.5px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.detail-private-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #fde047;
  border: 1px solid rgba(253, 224, 71, 0.5);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.detail-hero-content {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.detail-h1 {
  font-size: clamp(21px, 5.5vw, 27px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--text-primary);
}

.detail-location-sub {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Büyük birincil Google Haritalar CTA */
.btn-google-maps-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 55%, #0d9488 100%);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.34);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-google-maps-hero:hover {
  filter: brightness(1.06);
}

.btn-google-maps-hero:active {
  transform: scale(0.985);
}

.detail-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.detail-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 41px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.detail-act-btn:hover {
  border-color: var(--accent-blue);
}

.detail-act-btn:active {
  transform: scale(0.97);
}

.detail-act-wa {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

body.dark-theme .detail-act-wa {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.detail-info-card {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-heading {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.detail-desc-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-line;
}

.field-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.field-badge {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-badge.is-ok {
  background: #f0fdf4;
  border-color: #86efac;
}

.field-badge.is-warn {
  background: #fffbeb;
  border-color: #fcd34d;
}

body.dark-theme .field-badge.is-ok {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}

body.dark-theme .field-badge.is-warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}

.field-badge-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.field-badge-val {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text-primary);
}

.detail-mini-map {
  width: 100%;
  height: 220px;
  border-radius: 11px;
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
}

.coord-meta-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.coord-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.coord-lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}

.coord-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
}

.coord-copy-btn code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
}

.copy-hint {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-blue);
}

/* ============================================================================
   ADMİN PANELİ (/admin) — 20 SANİYELİK MOBİL AKIŞ
   ============================================================================ */
.admin-login-wrap,
.notfound-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.admin-login-card,
.notfound-card {
  width: 100%;
  max-width: 440px;
}

.admin-login-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.admin-login-head h1 {
  font-size: 20px;
  font-weight: 900;
}

.admin-login-head p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.admin-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-card-head h2 {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
}

.post-save-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
  border: 2px solid #10b981;
  border-radius: var(--radius-card);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

body.dark-theme .post-save-banner {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.5) 0%, rgba(12, 74, 110, 0.4) 100%);
}

.post-save-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-save-info strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-primary);
}

.post-save-info a {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent-blue);
  word-break: break-all;
}

.post-save-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.resolver-box {
  background: #f0f9ff;
  border: 1.5px solid #7dd3fc;
  border-radius: 12px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

body.dark-theme .resolver-box {
  background: rgba(2, 132, 199, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
}

.resolver-label {
  font-size: 12px;
  font-weight: 900;
  color: #0369a1;
}

body.dark-theme .resolver-label {
  color: #7dd3fc;
}

.resolver-row {
  display: flex;
  gap: 6px;
}

.resolver-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
}

.btn-resolve {
  height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  border: none;
  background: #0284c7;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.btn-resolve:disabled {
  opacity: 0.6;
  cursor: wait;
}

.resolver-status {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  min-height: 16px;
}

.resolver-status.is-ok {
  color: #059669;
}

.resolver-status.is-err {
  color: #dc2626;
}

.admin-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-leaflet-map {
  width: 100%;
  height: 230px;
  border-radius: 11px;
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field > span {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea,
.admin-list-search {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.form-field textarea {
  min-height: 82px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.admin-list-search:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.16);
}

.slug-preview {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  word-break: break-all;
}

.photo-upload-box {
  background: var(--bg-elevated);
  border: 1.5px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.photo-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
}

.photo-upload-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  background: #0284c7;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.photo-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.photo-preview-wrap {
  width: 100%;
  max-height: 210px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0f172a;
}

.photo-preview-wrap img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  display: block;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 11px;
  border-radius: 9px;
}

body.dark-theme .form-error {
  background: rgba(220, 38, 38, 0.16);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 60%, #0d9488 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary-lg:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-ghost-sm {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.btn-danger-xs {
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.admin-list-search {
  max-width: 240px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
}

.admin-places-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.admin-place-row {
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 11px;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-row-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-row-thumb {
  width: 54px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(2, 132, 199, 0.14);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  overflow: hidden;
}

.admin-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-row-meta {
  flex: 1;
  min-width: 0;
}

.admin-row-title {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-row-title a {
  text-decoration: none;
}

.admin-row-title a:hover {
  color: var(--accent-blue);
}

.admin-row-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-all;
}

.vis-pill {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
}

.vis-pill.public {
  background: #dcfce7;
  color: #166534;
}

.vis-pill.private {
  background: #fef3c7;
  color: #92400e;
}

body.dark-theme .vis-pill.public {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

body.dark-theme .vis-pill.private {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.admin-row-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.btn-quick-copy,
.btn-quick-wa,
.btn-quick-edit,
.btn-quick-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-quick-copy {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

.btn-quick-wa {
  background: #059669;
  border-color: #047857;
  color: #ffffff;
}

.btn-quick-edit {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-quick-del {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

body.dark-theme .btn-quick-copy {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

body.dark-theme .btn-quick-del {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

/* 404 Kartı */
.notfound-card {
  text-align: center;
  align-items: center;
}

.notfound-code {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-blue);
}

.notfound-card h1 {
  font-size: 20px;
  font-weight: 900;
}

.notfound-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.notfound-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================================
   RENS YAZILIM ALT BAR + TEMA DEĞİŞTİRİCİ (hisaronu.site ile birebir)
   ============================================================================ */
.brand-footer-bar {
  margin-top: auto;
  background: #ffffff;
  border-top: 1.5px solid #cbd5e1;
  border-radius: 12px 12px 0 0;
  padding: 7px 11px;
  padding-bottom: max(9px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.05);
}

body.dark-theme .brand-footer-bar {
  background: #05080f;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: none;
}

.brand-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 10.5px;
  min-width: 0;
}

.brand-logo {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0f172a;
}

body.dark-theme .brand-name {
  color: #ffffff;
}

.brand-sep {
  color: #64748b;
  font-weight: 800;
}

.brand-author {
  color: #0284c7;
  font-weight: 800;
}

body.dark-theme .brand-author {
  color: #c084fc;
}

.footer-right-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.footer-portal-link {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent-blue);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.welcome-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.welcome-theme-toggle-icon {
  display: inline-flex;
  color: #0284c7;
}

body.dark-theme .welcome-theme-toggle-btn {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fef08a;
}

body.dark-theme .welcome-theme-toggle-icon {
  color: #fde047;
}

/* Toast Bildirim */
.toast-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* ============================================================================
   RESPONSIVE (TABLET & MASAÜSTÜ)
   ============================================================================ */
@media (max-width: 440px) {
  .header-portal-pill span {
    display: none;
  }
  .header-wa-cta {
    padding: 0 8px;
    font-size: 11px;
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding: 12px 16px 0;
    gap: 10px;
  }
  .places-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-row-actions {
    grid-template-columns: repeat(4, 1fr);
  }
  .wa-conversion-band,
  .detail-wa-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .post-save-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .home-main-grid {
    grid-template-columns: minmax(420px, 1.15fr) minmax(360px, 1fr);
    gap: 14px;
  }
  .map-panel {
    position: sticky;
    top: 12px;
  }
  .map-stage {
    height: calc(100vh - 180px);
    min-height: 480px;
    max-height: 760px;
  }
  .places-grid {
    grid-template-columns: 1fr;
  }
}
