/* ═══════════════════════════════════════════════════════════════
   NewHal — main.css
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #00ff87; /* Neon green primary */
  --secondary:    #00f2fe; /* Electric cyan secondary */
  --accent:       #fbbf24; /* Amber yellow accent */
  
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-400: #00ff87;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-900: #064e3b;

  --bg:        #080c16; /* Deep glowing sapphire/dark space background */
  --bg-card:   #0e1626; /* Sleek rich navy card background */
  --bg-glass:  rgba(14, 22, 38, 0.75);
  --border:    rgba(255, 255, 255, 0.08);
  --border-g:  rgba(0, 255, 135, 0.25);
  --text-1:    #f8fafc; /* Super crisp light slate text */
  --text-2:    #00f2fe; /* Neon cyan text highlights */
  --text-3:    #94a3b8; /* Cool light-gray slate text */
  --shadow-g:  0 0 50px rgba(0, 255, 135, 0.15);

  --font-body: 'Inter', sans-serif;
  --font-head: 'Outfit', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --trans:     all 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-700); border-radius: 3px; }

/* ── Typography ───────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
.gradient-text {
  background: linear-gradient(135deg, #22c55e 0%, #86efac 50%, #4ade80 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────────── */
button, a { cursor: pointer; text-decoration: none; border: none; background: none; font-family: var(--font-body); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 50px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
  transition: var(--trans);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34,197,94,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 50px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: var(--trans);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--border); color: var(--text-1); }
.btn-ghost.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn-outline {
  display: inline-flex; align-items: center;
  padding: 10px 22px; border-radius: 50px;
  color: var(--green-400); font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-g); transition: var(--trans);
}
.btn-outline:hover { background: rgba(34,197,94,0.08); }

/* ── Header ───────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,15,13,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}
.header.scrolled { background: rgba(10,15,13,0.97); }

.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 38px; height: 38px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--text-1); line-height: 1; }
.logo-sub { font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 8px; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--trans); }

.mobile-menu {
  display: none; flex-direction: column;
  padding: 16px 24px; gap: 8px;
  border-top: 1px solid var(--border);
  background: rgba(10,15,13,0.97);
}
.mobile-menu button, .mobile-menu a {
  display: block; padding: 10px 16px;
  color: var(--text-2); font-size: 15px; font-weight: 500;
  border-radius: var(--radius); text-align: left;
  transition: var(--trans);
}
.mobile-menu button:hover, .mobile-menu a:hover { background: rgba(255,255,255,0.05); color: var(--text-1); }
.mobile-menu .btn-primary { justify-content: center; margin-top: 8px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(10, 15, 13, 0.7) 0%, rgba(7, 16, 9, 0.95) 100%), url("../img/banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 760px;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(34,197,94,0.1); border: 1px solid var(--border-g);
  font-size: 13px; font-weight: 500; color: var(--green-400);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 8px var(--green-500);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.6; transform:scale(1.3); }
}

.hero-title { font-size: clamp(42px, 7vw, 76px); color: var(--text-1); margin-bottom: 20px; }

.hero-desc {
  font-size: clamp(15px, 2vw, 18px); color: var(--text-3);
  line-height: 1.8; margin-bottom: 36px;
}

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
  padding: 24px 36px; border-radius: var(--radius-lg);
  background: var(--bg-glass); backdrop-filter: blur(16px);
  border: 1px solid var(--border); box-shadow: var(--shadow-g);
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--green-400); }
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.online-dot {
  display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: middle;
  border-radius: 50%; background: var(--green-400);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: online-pulse 2s infinite;
}
@keyframes online-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@media (prefers-reduced-motion: reduce) { .online-dot { animation: none; } }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  cursor: pointer; animation: bounce 2s infinite;
}
.scroll-arrow {
  width: 28px; height: 28px; border-right: 2px solid var(--green-500);
  border-bottom: 2px solid var(--green-500);
  transform: rotate(45deg); margin: 0 auto;
}
@keyframes bounce { 0%,100%{ transform:translateX(-50%) translateY(0);} 50%{ transform:translateX(-50%) translateY(8px);} }

/* ── Split Workspace Section ─────────────────────────────────── */
.workspace-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.workspace-container {
  display: flex;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), var(--shadow-g);
  height: 700px;
  overflow: hidden;
  position: relative;
}

/* Left Panel: Map */
.map-panel {
  flex: 1.3;
  position: relative;
  isolation: isolate; /* harita katmanları üst çubuk ve alt menünün üstüne çıkmasın */
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

.map-tip {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(10, 15, 13, 0.9);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
}

/* Right Panel: Info & Listings */
.info-panel {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
}

.info-panel::-webkit-scrollbar {
  width: 5px;
}
.info-panel::-webkit-scrollbar-track {
  background: transparent;
}
.info-panel::-webkit-scrollbar-thumb {
  background: var(--border-g);
  border-radius: 3px;
}

.panel-header {
  margin-bottom: 20px;
}
.panel-header h2 {
  font-size: 24px;
  color: var(--text-1);
  margin-bottom: 6px;
}
.panel-header p {
  color: var(--text-3);
  font-size: 13px;
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  border: 1px solid var(--border);
  transition: var(--trans);
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green-400);
  border-color: var(--border-g);
}

.pins-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 20px;
}

.pin-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: var(--trans); cursor: pointer;
  position: relative; overflow: hidden;
}
.pin-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.04) 0%, transparent 60%);
  opacity: 0; transition: var(--trans);
}
.pin-card:hover { border-color: var(--border-g); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3), var(--shadow-g); }
.pin-card:hover::before { opacity: 1; }

.pin-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.pin-card-icon { font-size: 28px; flex-shrink: 0; }
.pin-card-cat { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 50px; background: rgba(34,197,94,0.1); color: var(--green-400); border: 1px solid var(--border-g); }
.pin-card-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.pin-card-addr { font-size: 13px; color: var(--text-3); }

.pin-card-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; gap: 12px; flex-wrap: wrap; }
.pin-contact { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.pin-contact a { color: var(--green-400); text-decoration: none; transition: var(--trans); }
.pin-contact a:hover { color: var(--text-1); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.empty-icon { font-size: 56px; }
.empty-state h3 { font-size: 22px; color: var(--text-1); }
.empty-state p { color: var(--text-3); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #050a07 100%);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 40px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; flex-direction: column; gap: 4px; }
.footer-tagline { font-size: 12px; color: var(--text-3); }
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  backdrop-filter: blur(4px);
  user-select: none;
}
.footer-links a { font-size: 14px; color: var(--text-3); transition: var(--trans); }
.footer-links a:hover { color: var(--green-400); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ── Modal (Right Drawer) ─────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  display: none; align-items: stretch; justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.open { display: flex; }

@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal {
  background: #0d1611;
  border-left: 1px solid var(--border);
  width: 100%; max-width: 460px;
  height: 100vh;
  box-shadow: -10px 0 40px rgba(0,0,0,0.6), var(--shadow-g);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-sm { max-width: 440px; }

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  flex-shrink: 0;
}
.modal-title-wrap { display: flex; align-items: center; gap: 14px; }
.modal-icon { font-size: 28px; flex-shrink: 0; }
.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--text-1); margin-bottom: 2px; }
.modal-header p { font-size: 12px; color: var(--text-3); }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: var(--text-3);
  font-size: 14px; flex-shrink: 0; transition: var(--trans);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text-1); }

.modal-form {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-group.full { flex: 1 1 100%; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.required { color: #f87171; }
.form-group input, .form-group select {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  color: var(--text-1); font-size: 14px; font-family: var(--font-body);
  transition: var(--trans); outline: none; width: 100%;
}
.form-group input:focus, .form-group select:focus { border-color: var(--border-g); background: rgba(34,197,94,0.04); box-shadow: 0 0 0 3px rgba(34,197,94,0.08); }
.form-group input::placeholder { color: var(--text-3); }
.form-group select option { background: #111; }

.location-group { margin-bottom: 20px; }
.location-display {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}
.location-display.selected { color: var(--green-400); border-color: var(--border-g); background: rgba(34,197,94,0.06); }

.modal-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 4px; }

/* ── Detail Drawer ────────────────────────────────────────────── */
.detail-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-3); }
.detail-item a { color: var(--green-400); text-decoration: none; transition: var(--trans); }
.detail-item a:hover { color: var(--text-1); }
.detail-item svg { flex-shrink: 0; color: var(--green-600); }

/* ── Toast ────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius);
  background: #111812; border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  font-size: 14px; color: var(--text-1);
  animation: toastIn 0.3s ease;
  max-width: 340px;
}
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* ── Leaflet overrides ────────────────────────────────────────── */
.leaflet-container { background: #0a0f0d; }
.leaflet-popup-content-wrapper {
  background: #0d1611 !important; border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important; box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  color: var(--text-1) !important;
}
.leaflet-popup-tip { background: #0d1611 !important; }
.leaflet-popup-close-button { color: var(--text-3) !important; }
.leaflet-control-zoom a {
  background: #111812 !important; color: var(--green-400) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover { background: rgba(34,197,94,0.1) !important; }
.leaflet-attribution-flag { display: none !important; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 992px) {
  .workspace-container {
    flex-direction: column;
    height: auto;
    overflow: visible;
    padding: 16px;
    gap: 24px;
  }
  .map-panel {
    height: 450px;
    flex: none;
    width: 100%;
  }
  .info-panel {
    height: auto;
    overflow: visible;
    flex: none;
    width: 100%;
    padding-right: 0;
  }
  .pins-grid {
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  .form-row { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Map Layer Selector (Floating Overlay) ───────────────────── */
.map-layer-selector {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.layer-btn {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  transition: var(--trans);
  border: 1px solid transparent;
}

.layer-btn:hover {
  color: var(--text-1);
}

.layer-btn.active {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* ── Options Toggle Bar ───────────────────────────────────────── */
.options-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.option-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
  user-select: none;
}

.option-toggle input {
  display: none;
}

.option-toggle .toggle-slider {
  position: relative;
  width: 32px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transition: var(--trans);
  border: 1px solid var(--border);
}

.option-toggle .toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #6b7280;
  border-radius: 50%;
  transition: var(--trans);
}

.option-toggle input:checked + .toggle-slider {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--border-g);
}

.option-toggle input:checked + .toggle-slider::before {
  left: 16px;
  background: var(--green-400);
  box-shadow: 0 0 8px var(--green-500);
}

.option-toggle .toggle-label {
  font-weight: 500;
}

/* ── Floating Chat Widget (Bottom Left - White WhatsApp Theme) ──── */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  height: 380px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(37, 211, 102, 0.08);
  z-index: 150;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget.collapsed {
  height: 48px;
  border-radius: var(--radius-lg);
  transform: translateY(0);
}

.chat-header {
  height: 48px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.chat-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  font-family: var(--font-head);
}

.chat-toggle-icon {
  font-size: 10px;
  color: #64748b;
  transition: transform 0.3s ease;
}

.chat-widget:not(.collapsed) .chat-toggle-icon {
  transform: rotate(180deg);
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #efeae2; /* WhatsApp iconic bubble backdrop pattern/color */
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

/* Chat message bubbles */
.chat-msg-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #64748b;
}

.chat-msg-nick {
  font-weight: 700;
  color: #075e54; /* WhatsApp dark green for name */
}

.chat-msg-ip {
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #64748b;
}

.chat-msg-text {
  font-size: 12px;
  background: #ffffff; /* Pristine white bubble */
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 8px 12px;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  color: #1e293b; /* Crisp dark text */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  word-break: break-word;
}

.chat-footer {
  padding: 12px;
  background: #f0f2f5;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.chat-footer input[type="text"] {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: #1e293b;
  outline: none;
  font-family: var(--font-body);
}

.chat-footer input[type="text"]::placeholder {
  color: #94a3b8;
}

.chat-footer input[type="text"]:focus {
  border-color: #25d366; /* WhatsApp active border green */
}

.chat-input-wrap {
  display: flex;
  gap: 6px;
}

.chat-input-wrap input {
  flex: 1;
}

.chat-input-wrap button {
  background: #075e54; /* WhatsApp send button */
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}

.chat-input-wrap button:hover {
  background: #128c7e;
  transform: scale(1.05);
}

@media (max-width: 576px) {
  .chat-widget {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: 340px;
  }
}

/* ── Floating Emoji Picker (User) ─────────────────────────────────── */
.emoji-picker-popup {
  background: rgba(14, 22, 18, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  padding: 12px;
  width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(12px);
  animation: slideUp 0.15s ease;
}
.emoji-picker-header {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}
.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.emoji-picker-grid::-webkit-scrollbar { width: 4px; }
.emoji-picker-grid::-webkit-scrollbar-track { background: transparent; }
.emoji-picker-grid::-webkit-scrollbar-thumb { background: rgba(34, 197, 94, 0.3); border-radius: 4px; }
.emoji-picker-item {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
}
.emoji-picker-item:hover {
  background: rgba(34, 197, 94, 0.15);
  transform: scale(1.15);
}

/* ── Welcome Popup Overlay & Box ────────────────────────────────────── */
.welcome-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.welcome-popup-overlay.open {
  opacity: 1;
  visibility: visible;
}
.welcome-popup-box {
  background: rgba(14, 22, 18, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(34, 197, 94, 0.1);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.welcome-popup-overlay.open .welcome-popup-box {
  transform: translateY(0);
}
.welcome-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.welcome-popup-close:hover {
  background: rgba(239, 68, 68, 0.9);
  border-color: rgba(239, 68, 68, 0.9);
  transform: scale(1.1);
}
.welcome-popup-image-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}
.welcome-popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 12s linear;
}
.welcome-popup-overlay.open .welcome-popup-image {
  transform: scale(1.15);
}
.welcome-popup-content {
  padding: 28px;
  text-align: center;
}
.welcome-popup-content h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 10px;
}
.welcome-popup-content p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-3);
  margin-bottom: 24px;
}

/* ── Canlı Aktivite Log Akışı (Sol Alt) ────────────────────────────────── */
.activity-logger-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 320px;
  max-height: 260px;
  overflow: hidden;
  z-index: 150;
  display: flex;
  flex-direction: column-reverse; /* En yeni en altta biriksin */
  gap: 8px;
  pointer-events: none;
}
.activity-log-item {
  background: rgba(14, 22, 18, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 10px rgba(34, 197, 94, 0.05);
  animation: logSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards, logFadeOut 0.4s ease 7.6s forwards;
  pointer-events: auto;
  flex-shrink: 0;
}
.activity-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 8px var(--green-500);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
.activity-log-text {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.4;
  font-family: var(--font);
}
.activity-log-time {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-3);
  font-family: monospace;
  flex-shrink: 0;
}

@keyframes logSlideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes logFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); visibility: hidden; }
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 768px) {
  .activity-logger-container {
    bottom: 80px;
    left: 12px;
    width: calc(100% - 24px);
    max-width: 320px;
  }
}




/* ── Ürünler & Fotoğraflar ─────────────────────────────────── */
.field-hint { font-weight: 400; color: var(--text-3); font-size: 11px; }
.photo-editor { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-thumb, .photo-add {
  position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: rgba(0,0,0,0.25);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb.loading { display: flex; align-items: center; justify-content: center; color: var(--green-400); font-size: 20px; animation: spin 1s linear infinite; }
.photo-remove {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; cursor: pointer; line-height: 20px; padding: 0;
}
.photo-remove:hover { background: #dc2626; }
.photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; border-style: dashed; border-color: var(--border-g); color: var(--green-400); transition: var(--trans);
}
.photo-add:hover { background: rgba(0,255,135,0.06); }
.photo-add span { font-size: 22px; line-height: 1; }
.photo-add small { font-size: 10px; color: var(--text-3); }

.detail-gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.detail-gallery a { flex-shrink: 0; }
.detail-gallery img {
  width: 120px; height: 90px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); display: block; transition: var(--trans);
}
.detail-gallery img:hover { border-color: var(--border-g); transform: translateY(-2px); }
.detail-products { display: flex; flex-direction: column; gap: 6px; }
.detail-products-title { font-size: 12px; font-weight: 600; color: var(--text-2); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,255,135,0.08); border: 1px solid var(--border-g); color: var(--green-100);
}
#detailSeeksRow .chip { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.3); color: #fde68a; }
.catalog-edit-btn { align-self: flex-start; font-size: 12px; padding: 6px 12px; border-radius: var(--radius); gap: 6px; align-items: center; cursor: pointer; }
.catalog-editor {
  flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius);
  border: 1px dashed var(--border-g); background: rgba(0,255,135,0.02);
}
.catalog-editor label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.catalog-editor input[type="text"] {
  width: 100%; font-size: 13px; padding: 8px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--border); color: #fff; outline: none; font-family: var(--font-body);
}
.catalog-editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.catalog-editor-actions button { font-size: 12px; padding: 6px 14px; cursor: pointer; }

.popup-photo { width: 100%; max-width: 220px; height: 110px; object-fit: cover; border-radius: 8px; margin: 6px 0 2px; display: block; }
.popup-products { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; max-width: 240px; }
.popup-products-label { font-size: 11px; color: #9ca3af; margin-right: 2px; }
.popup-chip { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0,255,135,0.1); color: #bbf7d0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .photo-thumb.loading { animation: none; } }

/* ── Uygulamayı yükle bandı ─────────────────────────────────── */
.install-banner {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 3000; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: rgba(10, 18, 14, 0.96); border: 1px solid var(--border-g); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5); backdrop-filter: blur(12px);
  animation: slideUp 0.25s ease;
}
.install-banner[hidden] { display: none; }
.install-banner-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.install-banner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.install-banner-text strong { font-size: 14px; color: var(--text-1); }
.install-banner-text span { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.install-banner-btn { padding: 8px 16px; font-size: 13px; border-radius: 999px; flex-shrink: 0; }
.install-banner-btn[hidden] { display: none; }
.install-banner-close {
  background: none; border: none; color: var(--text-3); font-size: 14px; cursor: pointer;
  padding: 4px; flex-shrink: 0; line-height: 1;
}

/* Uygulama olarak açıldığında çentik/durum çubuğu boşluğu */
@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top); }
}
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .install-banner { animation: none; } }

/* ── İşletme kartı: fotoğraf ve ürün özeti ─────────────────── */
.pin-card-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; display: block; }
.pin-card-products {
  font-size: 12px; color: var(--green-100); margin-top: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pin-card-products.seeks { color: #fde68a; margin-top: 4px; }

/* Alt menü sadece telefonda görünür */
.bottom-nav { display: none; }

/* ══ TELEFON TASARIMI ═════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px); }

  body { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }

  /* iPhone, 16px'ten küçük yazı kutusuna dokununca sayfayı yakınlaştırır */
  input, select, textarea { font-size: 16px !important; }

  /* Üst çubuk */
  .header-inner { height: 60px; padding: 0 16px; }
  .logo-icon { width: 34px; height: 34px; }
  .logo-main { font-size: 18px; }
  .hamburger { width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; }
  .mobile-menu { padding: 12px 16px 16px; }
  .mobile-menu button, .mobile-menu a { min-height: 46px; display: flex; align-items: center; }

  /* Giriş alanı */
  .hero { min-height: auto; padding: 92px 16px 36px; }
  .hero-badge { margin-bottom: 16px; }
  .hero-title { font-size: 34px; line-height: 1.15; margin-bottom: 14px; }
  .hero-desc { font-size: 15px; margin-bottom: 24px; }
  .hero-desc br { display: none; }
  .hero-actions { gap: 10px; margin-bottom: 28px; }
  .hero-actions > * { min-height: 46px; }
  .hero-scroll { display: none; }
  .hero-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px;
    flex-direction: initial; padding: 16px; width: 100%;
  }
  .stat-divider { display: none; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 11px; }

  /* Harita ve liste */
  #hero, #mapSection, #listSection { scroll-margin-top: 64px; }
  .workspace-section { padding: 20px 12px 28px; }
  .workspace-container {
    padding: 0; gap: 20px; background: transparent;
    border: none; box-shadow: none; border-radius: 0;
  }
  .map-panel { height: 62vh; min-height: 340px; max-height: 560px; border-radius: 16px; }
  #map { border-radius: 16px; }
  .map-layer-selector { top: 10px; right: 10px; padding: 4px; }
  .layer-btn { padding: 8px 12px; font-size: 12px; min-height: 36px; }
  .leaflet-touch .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; font-size: 20px; }
  .map-tip { bottom: 12px; font-size: 11px; padding: 7px 12px; }

  .panel-header { margin-bottom: 14px; }
  .panel-header h2 { font-size: 20px; }

  /* Kategoriler: tek satır, yana kaydırılır */
  .map-filters {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 16px; padding: 2px 12px 6px;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .map-filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; padding: 9px 14px; font-size: 13px; min-height: 38px; scroll-snap-align: start; white-space: nowrap; }

  .options-bar { padding: 10px 12px; margin-bottom: 16px; }

  /* Kısa kart: solda ikon, ortada bilgi, sağda fotoğraf */
  .pins-grid { grid-template-columns: 1fr; gap: 10px; }
  .pin-card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 12px;
    padding: 14px; border-radius: 16px; align-items: start;
  }
  .pin-card:hover { transform: none; }
  .pin-card > * { grid-column: 2; }
  .pin-card-header { display: contents; }
  .pin-card-icon {
    grid-column: 1; grid-row: 1 / span 5;
    width: 44px; height: 44px; border-radius: 12px; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,135,0.06); border: 1px solid var(--border);
  }
  .pin-card-cat {
    grid-column: 2; padding: 0; border: none; background: none;
    font-size: 11px; justify-self: start; margin-bottom: 2px;
  }
  .pin-card-title { font-size: 16px; margin-bottom: 2px; }
  .pin-card-addr { font-size: 12px; }
  .pin-card-photo { grid-column: 3; grid-row: 1 / span 5; width: 64px; height: 64px; margin: 0; border-radius: 12px; }
  .pin-card-products { margin-top: 6px; }
  .pin-card-footer { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; }

  /* Pencereler tam ekran, alttan açılır */
  .modal, .modal-sm { max-width: 100%; height: 100vh; height: 100dvh; border-left: none; animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
  .modal-header { padding: 14px 16px; }
  .modal-close { width: 40px; height: 40px; flex-shrink: 0; }
  .modal-form { padding-bottom: calc(16px + var(--safe-b)); }
  .modal-actions {
    position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 12px 16px calc(12px + var(--safe-b));
    background: linear-gradient(180deg, rgba(13,22,17,0) 0%, #0d1611 30%);
  }
  .modal-actions button { flex: 1; min-height: 46px; justify-content: center; }
  .photo-thumb, .photo-add { width: 76px; height: 76px; }
  .photo-remove { width: 26px; height: 26px; line-height: 26px; font-size: 12px; }

  /* Sohbet: alt menüden açılan sayfa */
  .chat-widget {
    left: 0 !important; right: 0 !important; top: auto !important;
    bottom: calc(var(--nav-h) + var(--safe-b)) !important;
    width: 100% !important; max-width: none !important;
    height: min(72vh, 560px); border-radius: 18px 18px 0 0; transform: none !important;
    box-shadow: 0 -12px 40px rgba(0,0,0,0.45);
  }
  .chat-widget.collapsed { display: none; }

  /* Bildirimler ve yükle bandı alt menünün üstünde */
  .toast-container { left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }
  .install-banner { bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }
  .activity-logger-container { bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }

  .footer { padding-bottom: 24px; }

  /* Alt menü */
  .bottom-nav {
    display: flex; align-items: center; justify-content: space-around;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
    height: calc(var(--nav-h) + var(--safe-b)); padding: 0 6px var(--safe-b);
    background: rgba(10,15,13,0.97); backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
  }
  .bottom-nav-item {
    flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: none; color: var(--text-3); font-size: 10.5px; font-weight: 600; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: color 0.15s ease;
  }
  .bottom-nav-item svg { width: 22px; height: 22px; }
  .bottom-nav-item.active { color: var(--green-400); }
  .bottom-nav-add {
    width: 54px; height: 54px; flex-shrink: 0; margin: -26px 6px 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: linear-gradient(135deg, var(--green-500), var(--green-600)); color: #fff;
    border: 4px solid var(--bg); box-shadow: 0 8px 22px rgba(16,185,129,0.45);
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-add svg { width: 24px; height: 24px; }
  .bottom-nav-add:active { transform: scale(0.94); }
}

@keyframes slideUpSheet { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal, .modal-sm { animation: none !important; }
}
@media (max-width: 768px) {
  /* Giriş penceresi: alttan açılan kısa kart */
  #authModal { align-items: flex-end; }
  #authModalBox {
    height: auto; max-height: 90dvh; border-radius: 22px 22px 0 0;
    border-top: 1px solid var(--border-g); padding-bottom: calc(12px + var(--safe-b));
  }
  #authModalBox .modal-header { padding-top: 28px; position: relative; }
  #authModalBox .modal-header::before {
    content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.18);
  }
  #authModalBox a.btn-outline { min-height: 50px; font-size: 15px; }
}

/* ── Telefonda haritadan konum seçme ───────────────────────── */
.location-pick-btn, .location-pick-hint { display: none; }
@media (max-width: 768px) {
  .location-pick-btn { display: inline-flex; justify-content: center; margin-top: 8px; min-height: 44px; width: 100%; }
  .modal-overlay.picking { display: none !important; }
  .location-picking .location-pick-hint {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: fixed; left: 12px; right: 12px; top: 70px; z-index: 170;
    padding: 10px 10px 10px 14px; border-radius: 14px;
    background: rgba(10,18,14,0.96); border: 1px solid var(--border-g); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-size: 14px; color: var(--text-1);
  }
  .location-pick-hint button {
    flex-shrink: 0; min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    background: rgba(255,255,255,0.08); border: 1px solid var(--border); color: var(--text-2); font-size: 13px;
  }
  .location-picking .bottom-nav { display: none; }
  .modal-actions .btn-primary { flex: 2; white-space: nowrap; }
}

/* ── Harita iğne grupları ──────────────────────────────────── */
.pin-cluster-wrap { background: none; border: none; }
.pin-cluster {
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 14px; color: #052e16;
  background: radial-gradient(circle at 35% 30%, #6ee7b7, var(--green-500));
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 0 6px rgba(16,185,129,0.25), 0 6px 16px rgba(0,0,0,0.35);
}

/* ── Harita tam ekran ──────────────────────────────────────── */
.map-fs-btn {
  position: absolute; right: 16px; bottom: 36px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: rgba(10, 15, 13, 0.88); backdrop-filter: blur(10px);
  border: 1px solid var(--border-g); color: var(--green-400);
  font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: var(--trans);
}
.map-fs-btn:hover { background: rgba(16,185,129,0.18); color: #fff; }
.map-fs-btn .fs-exit { display: none; }
.map-fullscreen .map-fs-btn .fs-enter { display: none; }
.map-fullscreen .map-fs-btn .fs-exit { display: inline; }

.map-panel.map-fullscreen {
  position: fixed; inset: 0; z-index: 190;
  width: 100vw; height: 100vh; height: 100dvh; max-height: none; min-height: 0;
  border-radius: 0; border: none;
}
.map-panel.map-fullscreen #map { border-radius: 0; }
.map-panel.map-fullscreen .map-layer-selector { top: calc(16px + env(safe-area-inset-top)); }
.map-panel.map-fullscreen .map-fs-btn { bottom: calc(36px + env(safe-area-inset-bottom)); }
body.map-fs-open { overflow: hidden; }

@media (max-width: 768px) {
  .map-fs-btn { right: 10px; bottom: 30px; min-height: 40px; padding: 0 12px; }
  .map-tip { display: none; }
  .map-panel.map-fullscreen { max-height: none; min-height: 0; }
}

/* ── Harita üstünde işletme arama ──────────────────────────── */
.map-search {
  position: absolute; top: 14px; left: 58px; right: 16px; z-index: 1001; max-width: 460px;
}
.map-search input {
  width: 100%; height: 46px; padding: 0 44px 0 42px; border-radius: 999px;
  background: rgba(10, 15, 13, 0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border-g); color: #fff; font-size: 15px; font-family: var(--font-body);
  outline: none; box-shadow: 0 8px 28px rgba(0,0,0,0.45); -webkit-appearance: none; appearance: none;
}
.map-search input::placeholder { color: var(--text-3); }
.map-search input:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(0,255,135,0.15), 0 8px 28px rgba(0,0,0,0.45); }
.map-search input::-webkit-search-cancel-button { display: none; }
.map-search-glass { position: absolute; left: 15px; top: 14px; color: var(--green-400); pointer-events: none; }
.map-search-clear {
  position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.08); color: var(--text-2); font-size: 13px; cursor: pointer;
}
.map-search-clear[hidden] { display: none; }
.map-search-clear:hover { background: rgba(255,255,255,0.16); color: #fff; }
.map-search-results {
  margin-top: 8px; max-height: min(60vh, 420px); overflow-y: auto; padding: 6px;
  background: rgba(10, 15, 13, 0.97); backdrop-filter: blur(14px);
  border: 1px solid var(--border-g); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}
.map-search-results[hidden] { display: none; }
.map-search-count { font-size: 11px; color: var(--text-3); padding: 6px 10px 4px; }
.map-search-item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; min-height: 52px;
  border: none; border-radius: 12px; background: none; color: var(--text-1); cursor: pointer; text-align: left;
}
.map-search-item:hover, .map-search-item:focus-visible { background: rgba(0,255,135,0.08); outline: none; }
.map-search-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; font-size: 18px;
  display: flex; align-items: center; justify-content: center; background: rgba(0,255,135,0.06); border: 1px solid var(--border);
}
.map-search-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.map-search-text strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-search-text small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.map-panel.map-fullscreen .map-search { top: calc(14px + env(safe-area-inset-top)); }

@media (max-width: 768px) {
  .map-search { top: 10px; left: 54px; right: 10px; max-width: none; }
  .map-search input { height: 44px; }
  .map-search-glass { top: 13px; }
  .map-search-clear { top: 5px; }
  .map-panel.map-fullscreen .map-search { top: calc(10px + env(safe-area-inset-top)); }
}


/* ── İlanlar alanı ─────────────────────────────────────────── */
.ads-section { max-width: 1320px; margin: 0 auto; padding: 0 24px 80px; scroll-margin-top: 80px; }
.ads-section[hidden] { display: none; }
.ads-head { margin-bottom: 20px; }
.ads-head h2 { font-size: 26px; color: var(--text-1); margin-bottom: 4px; }
.ads-head p { color: var(--text-3); font-size: 14px; }
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.ad-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.ad-card.text-only { border-left: 3px solid var(--green-500); }
.ad-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border: 0; }
img.ad-media { object-fit: cover; }
video.ad-media { object-fit: contain; }
.ad-youtube {
  position: relative; cursor: pointer; padding: 0;
  background-size: cover; background-position: center;
}
.ad-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(220, 38, 38, 0.92); color: #fff; font-size: 24px; padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45); transition: transform 0.15s ease;
}
.ad-youtube:hover .ad-play { transform: translate(-50%, -50%) scale(1.08); }
.ad-thumbs { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; }
.ad-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.ad-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.ad-body h3 { font-size: 17px; color: var(--text-1); line-height: 1.3; }
.ad-body p { font-size: 14px; color: var(--text-2); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.ad-body time { font-size: 12px; color: var(--text-3); }

@media (max-width: 768px) {
  .ads-section { padding: 4px 12px 28px; scroll-margin-top: 64px; }
  .ads-head h2 { font-size: 21px; }
  .ads-grid { grid-template-columns: 1fr; gap: 14px; }
}
/* İlan resmi kırpılmasın: dikey/kare resim tamamıyla, en fazla 520 px yükseklikte */
img.ad-media {
  aspect-ratio: auto; height: auto; max-height: 520px; object-fit: contain;
  background: radial-gradient(circle at 50% 40%, rgba(16,185,129,0.12), #070b09 70%);
}


/* ── İlan kartı: dokununca büyür ───────────────────────────── */
.ad-card { cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.ad-card:hover { border-color: var(--border-g); transform: translateY(-2px); box-shadow: 0 20px 44px rgba(0,0,0,0.35), var(--shadow-g); }
.ad-card:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }
.ad-card .ad-body p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* ── İlan büyütme penceresi ────────────────────────────────── */
.ad-viewer {
  position: fixed; inset: 0; z-index: 280; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(2, 6, 4, 0.88); backdrop-filter: blur(6px); animation: fadeIn 0.18s ease;
}
.ad-viewer[hidden] { display: none; }
body.ad-viewer-open { overflow: hidden; }
.ad-viewer-box {
  position: relative; width: min(1000px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #0b120e; border: 1px solid var(--border-g); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.ad-viewer-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 16px; color: #fff; background: rgba(0,0,0,0.6);
}
.ad-viewer-close:hover { background: rgba(0,0,0,0.85); }
.ad-viewer-stage { position: relative; flex: 0 1 auto; min-height: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.ad-viewer.no-media .ad-viewer-stage { display: none; }
.ad-viewer-media { width: 100%; display: flex; align-items: center; justify-content: center; }
.ad-viewer-media img, .ad-viewer-media video {
  display: block; max-width: 100%; max-height: 70vh; max-height: 70dvh; object-fit: contain;
}
.ad-viewer-media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 70vh; border: 0; }
.ad-viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 30px; line-height: 1; color: #fff; background: rgba(0,0,0,0.55);
}
.ad-viewer-nav[hidden] { display: none; }
.ad-viewer-nav.prev { left: 12px; }
.ad-viewer-nav.next { right: 12px; }
.ad-viewer-nav:hover { background: rgba(16,185,129,0.6); }
.ad-viewer-count {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: #fff; background: rgba(0,0,0,0.55); padding: 3px 10px; border-radius: 999px;
}
.ad-viewer-count:empty { display: none; }
.ad-viewer-info { padding: 18px 22px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ad-viewer.no-media .ad-viewer-info { padding-top: 26px; padding-right: 64px; }
.ad-viewer-info h3 { font-size: 22px; color: var(--text-1); line-height: 1.3; }
.ad-viewer-info p { font-size: 15px; color: var(--text-2); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.ad-viewer-info time { font-size: 12px; color: var(--text-3); }

@media (max-width: 768px) {
  .ad-viewer { padding: 0; align-items: stretch; }
  .ad-viewer-box { width: 100%; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; border: none; }
  .ad-viewer-stage { flex: 0 0 auto; }
  .ad-viewer-media img, .ad-viewer-media video { max-height: 62vh; max-height: 62dvh; }
  .ad-viewer-info { flex: 1; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
  .ad-viewer-info h3 { font-size: 19px; }
  .ad-viewer-close { top: calc(10px + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) { .ad-viewer { animation: none; } .ad-card { transition: none; } }

/* İlan metnindeki aranabilir numara */
.ad-phone {
  display: inline-flex; align-items: center; gap: 4px; margin: 2px 0; padding: 2px 10px;
  border-radius: 999px; white-space: nowrap; font-weight: 600; text-decoration: none;
  color: #052e16; background: var(--green-400);
}
.ad-phone:hover { filter: brightness(1.1); }
.ad-viewer-info .ad-phone { font-size: 16px; padding: 6px 14px; }

/* ── İlanlarda arama ───────────────────────────────────────── */
.ads-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ads-search { position: relative; flex: 0 1 380px; min-width: 240px; }
.ads-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--green-400); pointer-events: none; }
.ads-search input {
  width: 100%; height: 44px; padding: 0 42px 0 40px; border-radius: 999px; outline: none;
  background: var(--bg-card); border: 1px solid var(--border-g); color: var(--text-1);
  font-size: 15px; font-family: var(--font-body); -webkit-appearance: none; appearance: none;
}
.ads-search input::placeholder { color: var(--text-3); }
.ads-search input:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(0,255,135,0.12); }
.ads-search input::-webkit-search-cancel-button { display: none; }
.ads-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px;
  border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,0.08); color: var(--text-2);
}
.ads-search button[hidden] { display: none; }
.ads-search-info { margin: -6px 0 14px; font-size: 13px; color: var(--text-3); }
.ads-search-info[hidden] { display: none; }
@media (max-width: 768px) {
  .ads-search { flex: 1 1 100%; min-width: 0; }
}


/* ── Vitrin (öne çıkan ilanlar) ────────────────────────────── */
.vitrin {
  position: relative; margin: 0 0 26px; padding: 14px; border-radius: 26px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(251,191,36,0.16), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(16,185,129,0.14), transparent 55%),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(251,191,36,0.28);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}
.vitrin[hidden] { display: none; }
.vitrin-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 12px; }
.vitrin-title {
  font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  background: linear-gradient(90deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vitrin-controls { display: flex; gap: 8px; }
.vitrin.single .vitrin-controls, .vitrin.single .vitrin-dots { display: none; }
.vitrin-arrow {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1;
  color: #fde68a; background: rgba(0,0,0,0.35); border: 1px solid rgba(251,191,36,0.35); transition: var(--trans);
}
.vitrin-arrow:hover { background: rgba(251,191,36,0.18); color: #fff; }

.vitrin-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 18px; scrollbar-width: none;
}
.vitrin-track::-webkit-scrollbar { display: none; }
.vitrin-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; cursor: pointer;
  height: clamp(300px, 46vw, 460px); border-radius: 18px; background: #050806;
}
.vitrin-slide:focus-visible { outline: 3px solid #fbbf24; outline-offset: -3px; }
.vitrin-bg {
  position: absolute; inset: -20px; background-size: cover; background-position: center;
  filter: blur(22px) brightness(0.55) saturate(1.2); transform: scale(1.1);
}
.vitrin-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: transform 6s ease;
}
.vitrin-slide:hover .vitrin-img { transform: scale(1.03); }
.vitrin-slide.text-only {
  background:
    radial-gradient(90% 120% at 10% 10%, rgba(251,191,36,0.35), transparent 60%),
    radial-gradient(90% 120% at 90% 90%, rgba(16,185,129,0.35), transparent 60%),
    #07110c;
}
.vitrin-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center; padding-left: 5px; border-radius: 50%;
  font-size: 26px; color: #fff; background: rgba(0,0,0,0.55); border: 2px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
}
.vitrin-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 70px 26px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(3,7,5,0.72) 45%, rgba(3,7,5,0.94) 100%);
}
.vitrin-slide.text-only .vitrin-overlay { top: 0; justify-content: center; background: none; padding: 32px; }
.vitrin-overlay h3 {
  font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6); max-width: 900px;
}
.vitrin-overlay p {
  font-size: 15px; color: #e5e7eb; line-height: 1.5; max-width: 820px; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vitrin-slide.text-only .vitrin-overlay p { -webkit-line-clamp: 6; font-size: 17px; }
.vitrin-more {
  margin-top: 4px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #1c1003; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 8px 22px rgba(245,158,11,0.35);
}
.vitrin-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em; color: #1c1003;
  background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}
.vitrin-dots { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
.vitrin-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.25); transition: width 0.25s ease, background 0.25s ease;
}
.vitrin-dot.active { width: 26px; background: #fbbf24; }

/* Arama sonuçlarında vitrin ilanı kartı */
.ad-card.is-featured { position: relative; border-color: rgba(251,191,36,0.55); box-shadow: 0 16px 40px rgba(245,158,11,0.15); }
.ad-card.is-featured > .vitrin-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }

@media (max-width: 768px) {
  .vitrin { padding: 10px; border-radius: 20px; margin-bottom: 20px; }
  .vitrin-head { padding: 2px 4px 10px; }
  .vitrin-slide { height: 62vw; min-height: 260px; max-height: 420px; border-radius: 14px; }
  .vitrin-overlay { padding: 56px 16px 16px; gap: 6px; }
  .vitrin-overlay p { font-size: 13px; }
  .vitrin-more { padding: 7px 14px; font-size: 12px; }
  .vitrin-play { width: 56px; height: 56px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .vitrin-track { scroll-behavior: auto; }
  .vitrin-img, .vitrin-dot { transition: none; }
}

/* ── Resimsiz ilan: NewHal logosu ──────────────────────────── */
/* Arka plan logonun kendi zeminiyle aynı renk: kare çerçeve görünmez */
img.ad-media.ad-logo-media {
  aspect-ratio: 16 / 9; height: auto; max-height: none; object-fit: contain; padding: 0;
  background: #080b10;
}
.ad-viewer.logo-media .ad-viewer-stage { background: #080b10; }
.ad-viewer.logo-media .ad-viewer-media img { max-height: 50vh; }
.vitrin-slide.logo-slide .vitrin-bg { filter: blur(30px) brightness(0.45) saturate(1.4); }
.vitrin-slide.logo-slide .vitrin-img { padding: 26px 26px 120px; }
@media (max-width: 768px) {
  .vitrin-slide.logo-slide .vitrin-img { padding: 14px 14px 110px; }
}


/* ── Kullanıcı ilanı ───────────────────────────────────────── */
.ads-head-actions { display: flex; align-items: center; gap: 12px; flex: 0 1 560px; justify-content: flex-end; flex-wrap: wrap; }
.ads-post-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; white-space: nowrap; }
.ads-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 36px 16px; margin-bottom: 18px; border-radius: 18px; border: 1px dashed var(--border-g); color: var(--text-3);
}
.ads-empty[hidden] { display: none; }
.ads-empty-icon { font-size: 34px; }
.ads-empty strong { color: var(--text-1); font-size: 16px; }
#userAdForm textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius); resize: vertical; font-family: var(--font-body); font-size: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-1); outline: none;
}
#userAdForm textarea:focus { border-color: var(--border-g); }
.my-ads { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--border); }
.my-ads[hidden] { display: none; }
.my-ads h4 { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.my-ad { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 8px; }
.my-ad img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #080b10; }
.my-ad-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.my-ad-info strong { font-size: 13px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-ad-status { font-size: 12px; color: var(--text-3); }
.my-ad-status.pending { color: #fcd34d; }
.my-ad-status.live { color: var(--green-400); }
.my-ad-delete {
  flex-shrink: 0; min-height: 34px; padding: 0 12px; border-radius: 8px; cursor: pointer; font-size: 12px;
  background: none; border: 1px solid rgba(248,113,113,0.35); color: #f87171;
}
@media (max-width: 768px) {
  .ads-head-actions { flex: 1 1 100%; justify-content: stretch; }
  .ads-post-btn { flex: 1 1 100%; justify-content: center; }
}


/* ── İlan numarası ve paylaş düğmeleri ─────────────────────── */
.ad-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.ad-no {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: 0.02em;
  color: var(--green-400); background: rgba(0,255,135,0.08); border: 1px solid var(--border-g);
  font-variant-numeric: tabular-nums;
}
.ad-no-light { color: #fff; background: rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.35); }
.vitrin-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.ad-share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--border); }
.ad-share-label { font-size: 12px; color: var(--text-3); margin-right: 2px; }
.ad-share-btn {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-2); cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ad-share-btn svg { width: 17px; height: 17px; }
.ad-share-btn:hover { transform: translateY(-2px); color: #fff; }
.ad-share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.ad-share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.ad-share-btn.x:hover { background: #000; border-color: #444; }
.ad-share-btn.telegram:hover { background: #229ed9; border-color: #229ed9; }
.ad-share-btn.copy:hover, .ad-share-btn.more:hover { background: var(--green-600); border-color: var(--green-600); }
.ad-share.large .ad-share-btn { width: 42px; height: 42px; }
.ad-share.large .ad-share-btn svg { width: 20px; height: 20px; }
@media (hover: none) {
  .ad-share-btn.whatsapp { color: #25d366; } .ad-share-btn.facebook { color: #4b9bff; }
  .ad-share-btn.telegram { color: #229ed9; } .ad-share-btn.x { color: #e5e7eb; }
}
@media (max-width: 768px) { .ad-share-btn { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .ad-share-btn { transition: none; } }

.install-nav-link[hidden] { display: none !important; }

/* Üst menüde yazılar tek satırda kalsın */
.nav > * { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav { gap: 4px; }
  .nav .btn-ghost { padding-left: 10px; padding-right: 10px; }
}


/* ── WhatsApp grubu daveti ─────────────────────────────────── */
.wa-group-cta {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 16px; border-radius: 18px;
  text-decoration: none; color: inherit;
  background: linear-gradient(135deg, rgba(37,211,102,0.18), rgba(18,140,126,0.12));
  border: 1px solid rgba(37,211,102,0.45); box-shadow: 0 12px 30px rgba(18,140,126,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-group-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(18,140,126,0.28); }
.wa-group-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(37,211,102,0.45);
}
.wa-group-icon svg { width: 26px; height: 26px; }
.wa-group-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.wa-group-text strong { font-size: 16px; color: #fff; }
.wa-group-text span { font-size: 13px; color: #bbf7d0; }
.wa-group-btn {
  flex-shrink: 0; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap;
  color: #052e16; background: #25d366;
}
.wa-group-menu { color: #4ade80 !important; font-weight: 600; }
.wa-group-footer { color: #4ade80 !important; font-weight: 600; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 768px) {
  .wa-group-cta { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .wa-group-btn { flex: 1 1 100%; text-align: center; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .wa-group-cta { transition: none; } }

.vitrin-timer {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: #fde68a; background: rgba(0,0,0,0.55); border: 1px solid rgba(251,191,36,0.45);
  font-variant-numeric: tabular-nums;
}

/* ── Onaylı dükkan & sahiplenme ───────────────────────────── */
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; margin-left: 6px; vertical-align: 2px;
  border-radius: 50%; background: #1d9bf0; color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(29,155,240,0.25);
}
.owner-box:empty { display: none; }
.owner-box { display: flex; flex-direction: column; gap: 8px; }
.owner-note { font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: var(--radius); }
.owner-note.ok   { background: rgba(29,155,240,0.08); border: 1px solid rgba(29,155,240,0.3); color: #bae6fd; }
.owner-note.wait { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.3); color: #fde68a; }
.owner-note.no   { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); color: #fecaca; }
.claim-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
  background: rgba(29,155,240,0.12); border: 1px solid rgba(29,155,240,0.45); color: #7dd3fc;
  font-family: var(--font-body); transition: var(--trans);
}
.claim-btn:hover { background: rgba(29,155,240,0.22); color: #fff; }
.claim-intro { font-size: 12px; line-height: 1.5; color: var(--text-3); }
.catalog-editor select {
  width: 100%; font-size: 13px; padding: 8px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--border); color: #fff; outline: none; font-family: var(--font-body);
}
.catalog-editor select option { background: #0e1626; }
@media (max-width: 640px) {
  .catalog-editor input[type="text"], .catalog-editor select { font-size: 16px; }
}

/* ── Dükkan hikayeleri ────────────────────────────────────── */
.story-marker {
  width: 52px; height: 52px; border-radius: 50%; padding: 3px; cursor: pointer;
  background: conic-gradient(from 210deg, #f59e0b, #ef4444, #d946ef, #8b5cf6, #f59e0b);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.story-marker.new { animation: storyPulse 2.2s ease-in-out infinite; }
.story-marker.seen { background: #64748b; }
.story-marker-inner {
  width: 100%; height: 100%; border-radius: 50%; border: 3px solid #0b1220;
  background: #0e1626; display: flex; align-items: center; justify-content: center; font-size: 21px;
}
@keyframes storyPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 0 0 rgba(217,70,239,0.55); }
  50% { box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 0 9px rgba(217,70,239,0); }
}
.popup-story-btn {
  background: linear-gradient(135deg, #f59e0b, #d946ef); color: #fff; border: none;
  padding: 5px 12px; border-radius: 20px; font-size: 12px; cursor: pointer; font-weight: 700;
}

/* Haritanın üstündeki hikaye şeridi */
.story-bar {
  position: absolute; top: 70px; left: 58px; right: 16px; z-index: 1000; max-width: 460px;
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none;
}
.story-bar::-webkit-scrollbar { display: none; }
.story-bar[hidden] { display: none; }
.story-chip {
  flex: 0 0 auto; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font-body);
}
.story-ring {
  width: 58px; height: 58px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #f59e0b, #ef4444, #d946ef, #8b5cf6, #f59e0b);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.story-chip.seen .story-ring { background: #64748b; }
.story-ring-inner {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid #0b1220;
  background: #0e1626; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.story-ring-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-chip-name {
  max-width: 66px; font-size: 11px; font-weight: 600; color: #fff; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.7);
}
.story-chip:hover .story-ring { transform: scale(1.05); }
.story-ring { transition: transform 0.2s ease; }

/* Tam ekran görüntüleyici */
body.story-open { overflow: hidden; }
.story-viewer {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center; animation: storyIn 0.22s ease-out;
}
.story-viewer[hidden] { display: none; }
@keyframes storyIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.story-frame {
  position: relative; width: min(100vw, calc(92vh * 9 / 16)); height: min(92vh, calc(100vw * 16 / 9));
  max-width: 460px; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6); user-select: none; -webkit-user-select: none;
}
.story-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.story-stage img, .story-stage video { position: relative; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.story-stage iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.story-blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(24px) brightness(0.55); }
.story-stage.text-card { background: radial-gradient(circle at 20% 15%, #7c3aed 0%, transparent 55%), radial-gradient(circle at 85% 90%, #db2777 0%, transparent 55%), linear-gradient(160deg, #1e1b4b, #0f172a); }
.story-shade { position: absolute; left: 0; right: 0; pointer-events: none; }
.story-shade.top { top: 0; height: 120px; background: linear-gradient(rgba(0,0,0,0.65), transparent); }
.story-shade.bottom { bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.story-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.story-bar-track { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.35); overflow: hidden; }
.story-bar-fill { display: block; height: 100%; background: #fff; border-radius: 3px; }
.story-head { position: absolute; top: 22px; left: 10px; right: 6px; display: flex; align-items: center; gap: 8px; z-index: 4; }
.story-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 4px; cursor: pointer; text-align: left; color: #fff; font-family: var(--font-body); }
.story-avatar {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; overflow: hidden; border: 2px solid #fff;
  background: #0e1626; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-who-text { display: flex; flex-direction: column; min-width: 0; }
.story-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.story-name .verified-badge { width: 15px; height: 15px; font-size: 10px; }
.story-time { font-size: 12px; color: rgba(255,255,255,0.75); }
.story-close { width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,0.35); color: #fff; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.story-tap { position: absolute; top: 80px; bottom: 120px; width: 50%; z-index: 2; background: none; border: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.story-tap.prev { left: 0; width: 35%; }
.story-tap.next { right: 0; width: 65%; }
.story-caption { position: absolute; left: 16px; right: 16px; bottom: 76px; z-index: 3; color: #fff; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.story-caption strong { display: block; font-family: var(--font-head); font-size: 19px; line-height: 1.25; margin-bottom: 4px; }
.story-caption p { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-line; color: rgba(255,255,255,0.92); }
.story-caption.big { top: 90px; bottom: 90px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.story-caption.big strong { font-size: 26px; margin-bottom: 12px; }
.story-caption.big p { font-size: 17px; }
.story-actions { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 4; display: flex; gap: 8px; }
.story-action {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 10px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.35); backdrop-filter: blur(8px);
  color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: var(--font-body);
}
.story-action.primary { background: #fff; color: #0f172a; border-color: #fff; }
@media (max-width: 768px) {
  .story-bar { top: 66px; left: 10px; right: 10px; max-width: none; }
  .story-frame { width: 100vw; height: 100%; max-width: none; border-radius: 0; }
  .story-viewer { background: #000; }
  .story-bars { top: calc(10px + env(safe-area-inset-top)); }
  .story-head { top: calc(22px + env(safe-area-inset-top)); }
  .story-actions { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .story-caption { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .story-marker.new, .story-viewer { animation: none; } }
@media (max-width: 768px) { .story-bar { left: 54px; } }

.address-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--green-400); }
.address-hint[hidden] { display: none; }

/* ── Harita: kategori şeridi ─────────────────────────────── */
.map-cat-bar {
  position: absolute; top: 68px; left: 58px; right: 16px; z-index: 1000; max-width: 560px;
  display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none;
}
.map-cat-bar::-webkit-scrollbar { display: none; }
.map-cat-bar:empty { display: none; }
.map-cat-chip {
  flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: rgba(10, 15, 13, 0.88); backdrop-filter: blur(10px); border: 1px solid var(--border);
  color: var(--text-1); font-size: 12.5px; font-weight: 600; font-family: var(--font-body); white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35); transition: var(--trans);
}
.map-cat-chip:hover { border-color: var(--border-g); }
.map-cat-chip.active { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.map-panel.map-fullscreen .map-cat-bar { top: calc(68px + env(safe-area-inset-top)); }

/* Hikaye şeridi kategori şeridinin altında */
.story-bar { top: 108px; }
.map-panel.map-fullscreen .story-bar { top: calc(108px + env(safe-area-inset-top)); }

/* ── Harita: uydu / açık renk seçici sol altta, küçük ─────── */
.map-layer-selector,
.map-panel.map-fullscreen .map-layer-selector {
  top: auto; right: auto; left: 10px; bottom: 24px; gap: 2px; padding: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.map-panel.map-fullscreen .map-layer-selector { bottom: calc(24px + env(safe-area-inset-bottom)); }
.layer-btn { padding: 4px 9px; font-size: 10.5px; min-height: 0; line-height: 1.4; }

@media (max-width: 768px) {
  .map-cat-bar { top: 62px; left: 54px; right: 10px; max-width: none; }
  .map-panel.map-fullscreen .map-cat-bar { top: calc(62px + env(safe-area-inset-top)); }
  .map-cat-chip { height: 34px; font-size: 13px; }
  .story-bar { top: 102px; }
  .map-panel.map-fullscreen .story-bar { top: calc(102px + env(safe-area-inset-top)); }
  .map-layer-selector,
  .map-panel.map-fullscreen .map-layer-selector { top: auto; right: auto; left: 10px; bottom: 30px; padding: 3px; }
  .map-panel.map-fullscreen .map-layer-selector { bottom: calc(36px + env(safe-area-inset-bottom)); }
  .layer-btn { padding: 5px 9px; font-size: 11px; min-height: 0; }
}

/* Gizli işaretli form satırı görünmesin */
.form-row[hidden] { display: none; }

/* İlanlar sayfanın en üstünde: sabit üst menünün altından başlar */
.ads-section.ads-top { padding-top: 104px; }
.ads-top ~ .hero { min-height: 0; padding-top: 64px; }
@media (max-width: 768px) {
  .ads-section.ads-top { padding-top: 76px; }
  .ads-top ~ .hero { padding-top: 40px; padding-bottom: 48px; }
}

/* Sohbet küçülünce yuvarlak WhatsApp simgesi gibi görünür */
.chat-widget { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.4s ease; }
.chat-widget.collapsed {
  width: 58px; height: 58px; border-radius: 50%; border: none; background: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.chat-widget.collapsed .chat-header { height: 58px; padding: 0; justify-content: center; background: #25D366; border: none; }
.chat-widget.collapsed .chat-header:hover { background: #20bd5a; }
.chat-widget.collapsed .chat-title-text,
.chat-widget.collapsed .chat-toggle-icon { display: none; }
.chat-widget.collapsed .chat-header-title svg { color: #fff !important; width: 30px; height: 30px; }
@media (max-width: 576px) { .chat-widget.collapsed { width: 58px; } }

/* Telefonda tam ekran harita alt menünün üstünde biter, alt menü hep kullanılabilir */
@media (max-width: 768px) {
  .map-panel.map-fullscreen { bottom: calc(var(--nav-h) + var(--safe-b)); height: auto; }
  body.map-fs-open .bottom-nav { z-index: 195; }
  .map-panel.map-fullscreen .map-layer-selector { bottom: 30px; }
  .map-panel.map-fullscreen .map-fs-btn { bottom: 30px; }
}

/* Üstteki logo: tıklanınca sayfa baştan yüklenir */
a.logo { text-decoration: none; color: inherit; cursor: pointer; }
img.logo-icon { border-radius: 11px; object-fit: cover; box-shadow: 0 0 14px rgba(0,255,135,0.35); transition: transform 0.2s ease; }
a.logo:hover img.logo-icon { transform: scale(1.06); }

/* WhatsApp grubu: İlan Ver'in solunda küçük tuş */
.ads-btn-row { display: flex; align-items: center; gap: 8px; }
.ads-wa-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: #25D366; color: #053b1d; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3); transition: var(--trans);
}
.ads-wa-btn:hover { background: #20bd5a; transform: translateY(-1px); }
.ads-wa-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 768px) {
  .ads-btn-row { flex: 1 1 100%; }
  .ads-btn-row .ads-post-btn { flex: 1 1 auto; }
}
