/* ============================================================
   CSS DEĞİŞKENLERİ VE TEMEL STİLLER
   ============================================================ */
:root {
  --navy: #333333;
  --navy-2: #2a2a2a;
  --paper: #f8f8f8;
  --card: #ffffff;
  --card-hover: #f5f5f5;
  --gold: #c9a44c;
  --gold-soft: #e9d9ab;
  --green: #2e7d5b;
  --green-soft: #e3f1ea;
  --orange: #d9862f;
  --orange-soft: #faead9;
  --blue: #2563eb;           /* أزرق رئيسي غامق */
  --blue-dark: #1d4ed8;      /* أزرق غامق */
  --blue-light: #3b82f6;     /* أزرق فاتح */
  --blue-soft: #dbeafe;      /* أزرق فاتح جداً (للخلفيات) */
  --blue-lightest: #eff6ff;  /* أزرق فاتح جداً */  
  --red: #c1443a;
  --red-soft: #f8e3e1;
  --purple: #aa25ff;
  --purple-soft: #f3e6ff;
  --ink: #1c2530;
  --ink-soft: #6b7a8a;
  --line: #e8e8e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --border-light: #eeeeee;
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: #f5f5f5;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

h1, h2, h3, .brand, .stamp-label {
  font-family: 'Almarai', sans-serif;
}
a { color: inherit; text-decoration: none; }

/* ============================================================
   HEADER - Koyu renk (değişmedi)
   ============================================================ */
header {
  background: #333333;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .logo {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #333333;
  font-family: 'Almarai', sans-serif;
  flex-shrink: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: #ffffff;
}

.brand-sub {
  font-size: 11px;
  color: #b0b0b0;
  font-weight: 300;
  margin: 0;
}

.header-stats {
  display: flex;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  flex-wrap: wrap;
}

.header-stats div {
  text-align: center;
}

.header-stats .num {
  font-family: 'Almarai', sans-serif;
  font-weight: 800;
  font-size: 17px;
  display: block;
  line-height: 1.2;
}

.header-stats .lbl {
  font-size: 9px;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-verified .num { color: #7fd2a8; }
.stat-review .num { color: #f0b877; }
.stat-untrusted .num { color: #f0938c; }
.stat-mixed .num { color: #c98bf5; }
.stat-total .num { color: #a0c4e8; }

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
  display: flex;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 64px);
}

#map {
  flex: 1;
  height: 100%;
  background: #e8e4dc;
  min-height: 200px;
}

/* ============================================================
   SIDEBAR - Açık renk (beyaz/çok açık gri)
   ============================================================ */
aside {
  width: 400px;
  max-width: 44vw;
  background: #fcfcfc;
  border-right: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
  z-index: 20;
  box-shadow: 2px 0 20px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

/* ============================================================
   FILTERS - Açık renk
   ============================================================ */
.filters {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #eeeeee;
  background: #f8f8f8;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  margin-bottom: 10px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 2px solid #eeeeee;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  background: #ffffff;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  color: #333333;
}

.search-box input::placeholder {
  color: #a0a0a0;
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,164,76,0.08);
  background: #ffffff;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #a0a0a0;
}

/* ============================================================
   SEARCH RESULT MESSAGE
   ============================================================ */
#searchResultMsg {
  text-align: center;
  padding: 8px 12px;
  background: var(--gold-soft);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--navy);
  font-weight: 600;
  display: none;
}

#searchResultMsg.show {
  display: block;
}

#searchResultMsg .clear-search {
  background: none;
  border: none;
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
  font-size: 14px;
}

#searchResultMsg .clear-search:hover {
  color: #8c2f27;
}

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

.chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 2px solid #eeeeee;
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  color: #555555;
}

.chip:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  background: #f8f8f8;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chip.active {
  background: #333333;
  color: #ffffff;
  border-color: #333333;
}

.chip.active:hover {
  background: #444444;
}

.chip[data-status="verified"] .dot { background: var(--green); }
.chip[data-status="review"] .dot { background: var(--blue); }
.chip[data-status="untrusted"] .dot { background: var(--red); }
.chip[data-status="mixed"] .dot { background: var(--purple); }

/* ============================================================
   LIST CONTAINER - Açık renk
   ============================================================ */
.list-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px 16px;
  -webkit-overflow-scrolling: touch;
  background: #fcfcfc;
}

.list-container::-webkit-scrollbar {
  width: 5px;
}
.list-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
.list-container::-webkit-scrollbar-thumb {
  background: #d5d5d5;
  border-radius: 10px;
}
.list-container::-webkit-scrollbar-thumb:hover {
  background: #c0c0c0;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px 10px;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.list-header h2 {
  font-size: 12px;
  font-weight: 700;
  color: #6b7a8a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.list-header .count {
  font-size: 11px;
  color: #6b7a8a;
  background: #f0f0f0;
  padding: 2px 12px;
  border-radius: 12px;
  font-weight: 600;
}

/* ============================================================
   MALL CARD - Açık renk
   ============================================================ */
.mall-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.mall-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border-color: #e0e0e0;
}

.mall-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #fff;
  transition: var(--transition);
  gap: 8px;
  flex-wrap: wrap;
}

.mall-header:hover {
  filter: brightness(0.95);
}

.mall-header .mall-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.mall-header .mall-badge {
  font-size: 10px;
  background: rgba(255,255,255,0.2);
  padding: 2px 12px;
  border-radius: 12px;
  white-space: nowrap;
  font-weight: 500;
}

.mall-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mall-status-badge.verified { background: var(--green-soft); color: var(--green); }
.mall-status-badge.review { background: var(--blue-soft); color: var(--blue); }
.mall-status-badge.untrusted { background: var(--red-soft); color: var(--red); }
.mall-status-badge.mixed { background: var(--purple-soft); color: var(--purple); }

.mall-body {
  padding: 8px 12px 12px;
  background: #fafafa;
}

/* ============================================================
   STORE ITEM - Açık renk
   ============================================================ */
.store-item {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.store-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,164,76,0.08);
  background: #fafafa;
}

.store-item.selected {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,164,76,0.12);
  background: #fcf9f2;
}

.store-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.store-top h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1c2530;
}

.store-addr {
  font-size: 12px;
  color: #6b7a8a;
  margin-top: 3px;
  word-break: break-word;
  line-height: 1.4;
}

.store-cert {
  font-size: 11px;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 500;
}

.store-cert b {
  color: #333333;
  font-weight: 700;
}

.store-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.store-status-badge.verified { background: var(--green-soft); color: var(--green); }
.store-status-badge.review { background: var(--blue-soft); color: var(--blue); }
.store-status-badge.untrusted { background: var(--red-soft); color: var(--red); }
.store-status-badge.mixed { background: var(--purple-soft); color: var(--purple); }

/* ============================================================
   BRAND CHIPS
   ============================================================ */
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 10px 2px 6px;
  border-radius: 12px;
  font-weight: 600;
  border: 1.5px solid #eeeeee;
  background: #f8f8f8;
  color: #444444;
  transition: var(--transition);
}

.brand-chip:hover {
  border-color: #d5d5d5;
  background: #f0f0f0;
}

.brand-chip .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.brand-chip .status-dot.verified { background: var(--green); }
.brand-chip .status-dot.review { background: var(--blue); }
.brand-chip .status-dot.untrusted { background: var(--red); }
.brand-chip .status-dot.mixed { background: var(--purple); }

/* ============================================================
   STATES
   ============================================================ */
.empty-state {
  text-align: center;
  color: #6b7a8a;
  font-size: 13px;
  padding: 40px 20px;
}

.empty-state span {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.loading-state {
  text-align: center;
  color: #6b7a8a;
  font-size: 13px;
  padding: 40px 20px;
}

.loading-state .spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid #eeeeee;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   SEARCH INDICATOR (Overlay)
   ============================================================ */
#searchIndicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

#searchIndicator.show {
  display: flex;
}

#searchIndicator .content {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

#searchIndicator .content .spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #eeeeee;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

#searchIndicator .content p {
  font-size: 14px;
  color: #333333;
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.load-more-container {
  text-align: center;
  padding: 12px 0 8px;
}

.load-more-btn {
  padding: 10px 28px;
  background: var(--gold);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Tajawal', sans-serif;
}

.load-more-btn:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(201,164,76,0.25);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.load-more-btn .loader-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ============================================================
   SCROLL SENTINEL
   ============================================================ */
#scroll-sentinel {
  height: 4px;
  width: 100%;
  visibility: hidden;
}

/* ============================================================
   POPUP (Leaflet)
   ============================================================ */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.leaflet-popup-content {
  margin: 0;
  width: min(300px, 78vw) !important;
}

.popup-inner {
  font-family: 'Tajawal', sans-serif;
}

.popup-head {
  padding: 12px 16px 8px;
  color: #fff;
}

.popup-head.verified { background: linear-gradient(135deg, var(--green), #1f5b40); }
.popup-head.review { background: linear-gradient(135deg, var(--blue), #a8621f); }
.popup-head.untrusted { background: linear-gradient(135deg, var(--red), #8c2f27); }
.popup-head.mixed { background: linear-gradient(135deg, var(--purple), #7a1fa8); }

.popup-head h3 {
  margin: 0 0 2px;
  font-size: 14px;
}

.popup-head .p-status {
  font-size: 11px;
  opacity: 0.92;
  font-weight: 700;
}

.popup-body {
  padding: 10px 14px 14px;
  background: #ffffff;
}

.popup-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #333333;
}

.popup-row svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  fill: #6b7a8a;
}

.popup-cert {
  background: #f8f8f8;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.popup-cert b {
  color: #333333;
  font-family: 'Almarai', sans-serif;
  font-size: 12px;
}

.popup-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

/* ============================================================
   MARKER (Leaflet)
   ============================================================ */
.marker-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 2px solid #fff;
}

.marker-pin .inner {
  transform: rotate(45deg);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}

.marker-pin.verified { background: var(--green); }
.marker-pin.review { background: var(--blue); }
.marker-pin.untrusted { background: var(--red); }
.marker-pin.mixed { background: var(--purple); }

/* ============================================================
   FLOATING REFRESH BUTTON
   ============================================================ */
#refreshBtn {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 1000;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,164,76,0.3);
  transition: var(--transition);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#refreshBtn:hover:not(:disabled) {
  transform: scale(1.1) rotate(30deg);
  box-shadow: 0 6px 30px rgba(201,164,76,0.4);
}

#refreshBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: rotate(360deg);
}

/* ============================================================
   NOTIFICATION
   ============================================================ */
.notification {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #333333;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 2000;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--gold);
  max-width: 350px;
  font-family: 'Tajawal', sans-serif;
}

.notification.success { border-left-color: var(--green); }
.notification.error { border-left-color: var(--red); }
.notification.info { border-left-color: var(--gold); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   ARAMA UYARI MESAJI
   ============================================================ */
#searchResultMsg.warning {
  background: #fff3cd !important;
  color: #856404 !important;
  border: 1px solid #ffc107;
}

#searchResultMsg.warning .clear-search {
  color: #856404;
}

#searchResultMsg.warning .clear-search:hover {
  color: #6c5200;
}

/* ============================================================
   BAĞIMSIZ MAĞAZALAR BAŞLIĞI - Açık renk
   ============================================================ */
.independent-stores-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid #eeeeee;
}

.independent-stores-header .independent-icon {
  font-size: 18px;
}

.independent-stores-header .independent-title {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  font-family: 'Almarai', sans-serif;
}

.independent-stores-header .independent-count {
  font-size: 11px;
  color: #6b7a8a;
  background: #f0f0f0;
  padding: 2px 12px;
  border-radius: 12px;
  font-weight: 600;
  margin-left: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  header {
    padding: 8px 14px;
    min-height: 56px;
  }
  .brand-title {
    font-size: 14px;
  }
  .brand .logo {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
  .header-stats {
    gap: 10px;
    padding: 4px 10px;
  }
  .header-stats .num {
    font-size: 15px;
  }
  .header-stats .lbl {
    font-size: 8px;
  }
  aside {
    width: 340px;
    max-width: 48vw;
  }
  .mall-header .mall-name {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  body {
    overflow: hidden;
  }
  header {
    padding: 6px 12px;
    min-height: 48px;
    gap: 6px;
  }
  .brand .logo {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }
  .brand-title {
    font-size: 12px;
  }
  .brand-sub {
    font-size: 9px;
  }
  .header-stats {
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
  }
  .header-stats .num {
    font-size: 12px;
  }
  .header-stats .lbl {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
  .header-stats .stat-total,
  .header-stats .stat-mixed {
    display: none;
  }
  .layout {
    flex-direction: column-reverse;
    height: calc(100vh - 48px);
  }
  #map {
    height: 45vh;
    min-height: 200px;
    flex: none;
  }
  aside {
    width: 100%;
    max-width: 100%;
    height: 55vh;
    border-right: none;
    border-top: 1px solid #eeeeee;
    flex-shrink: 0;
  }
  .filters {
    padding: 8px 12px 8px;
  }
  .search-box input {
    padding: 8px 10px 8px 34px;
    font-size: 12px;
    border-radius: 8px;
  }
  .search-box svg {
    width: 15px;
    height: 15px;
    left: 10px;
  }
  .chip {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 14px;
  }
  .chip .dot {
    width: 6px;
    height: 6px;
  }
  .list-container {
    padding: 6px 10px 12px;
  }
  .list-header h2 {
    font-size: 10px;
  }
  .list-header .count {
    font-size: 10px;
    padding: 1px 10px;
  }
  .mall-header {
    padding: 8px 12px;
  }
  .mall-header .mall-name {
    font-size: 12px;
  }
  .mall-header .mall-badge {
    font-size: 9px;
    padding: 1px 10px;
  }
  .mall-status-badge {
    font-size: 9px;
    padding: 1px 10px;
  }
  .mall-body {
    padding: 6px 8px 10px;
  }
  .store-item {
    padding: 8px 12px;
    border-radius: 8px;
  }
  .store-top h4 {
    font-size: 12px;
  }
  .store-addr {
    font-size: 10px;
  }
  .store-status-badge {
    font-size: 9px;
    padding: 2px 8px;
  }
  .brand-chip {
    font-size: 9px;
    padding: 1px 8px 1px 4px;
  }
  .brand-chip .status-dot {
    width: 6px;
    height: 6px;
  }
  #refreshBtn {
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .notification {
    bottom: 70px;
    right: 14px;
    font-size: 12px;
    padding: 8px 14px;
    max-width: 280px;
  }
  .leaflet-popup-content {
    width: min(260px, 85vw) !important;
  }
}

@media (max-width: 480px) {
  header {
    padding: 4px 8px;
    min-height: 40px;
  }
  .brand .logo {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }
  .brand-title {
    font-size: 10px;
  }
  .brand-sub {
    font-size: 8px;
    display: none;
  }
  .header-stats .stat-review,
  .header-stats .stat-untrusted {
    display: none;
  }
  .header-stats {
    gap: 4px;
    padding: 2px 6px;
  }
  .header-stats .num {
    font-size: 11px;
  }
  .header-stats .lbl {
    font-size: 6px;
  }
  .layout {
    height: calc(100vh - 40px);
  }
  #map {
    height: 35vh;
    min-height: 150px;
  }
  aside {
    height: 65vh;
  }
  .filters {
    padding: 6px 8px 6px;
  }
  .search-box input {
    padding: 6px 8px 6px 30px;
    font-size: 11px;
  }
  .search-box svg {
    width: 13px;
    height: 13px;
    left: 8px;
  }
  .chip-row {
    gap: 4px;
  }
  .chip {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 12px;
    border-width: 1.5px;
  }
  .chip .dot {
    width: 5px;
    height: 5px;
  }
  .list-container {
    padding: 4px 6px 10px;
  }
  .mall-header {
    padding: 6px 10px;
  }
  .mall-header .mall-name {
    font-size: 11px;
  }
  .mall-body {
    padding: 4px 6px 8px;
  }
  .store-item {
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 6px;
  }
  .store-top h4 {
    font-size: 11px;
  }
  .store-addr {
    font-size: 9px;
  }
  .store-status-badge {
    font-size: 8px;
    padding: 1px 6px;
  }
  .brand-chip {
    font-size: 8px;
    padding: 1px 6px 1px 3px;
  }
  .brand-chip .status-dot {
    width: 5px;
    height: 5px;
  }
  #refreshBtn {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .notification {
    bottom: 60px;
    right: 10px;
    font-size: 11px;
    padding: 6px 12px;
    max-width: 220px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  header {
    min-height: 40px;
    padding: 4px 12px;
  }
  .brand .logo {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }
  .brand-title {
    font-size: 12px;
  }
  .brand-sub {
    display: none;
  }
  .header-stats {
    gap: 6px;
    padding: 3px 8px;
  }
  .header-stats .num {
    font-size: 12px;
  }
  .header-stats .lbl {
    font-size: 7px;
  }
  .layout {
    height: calc(100vh - 40px);
    flex-direction: row;
  }
  #map {
    height: 100%;
    flex: 2;
  }
  aside {
    width: 35vw;
    max-width: 35vw;
    height: 100%;
    border-right: 1px solid #eeeeee;
    border-top: none;
  }
  .filters {
    padding: 6px 10px;
  }
  .search-box input {
    padding: 5px 8px 5px 30px;
    font-size: 11px;
  }
  .chip {
    font-size: 9px;
    padding: 3px 8px;
  }
  .mall-header {
    padding: 6px 10px;
  }
  .mall-header .mall-name {
    font-size: 11px;
  }
  .store-item {
    padding: 6px 10px;
  }
  .store-top h4 {
    font-size: 11px;
  }
  #refreshBtn {
    top: 60px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

@media print {
  header, aside, #refreshBtn, .notification {
    display: none !important;
  }
  #map {
    height: 100vh !important;
    width: 100% !important;
  }
  .layout {
    height: 100vh !important;
  }
}

/* ============================================================
   DARK MODE - Açık renkler dark modda da korunuyor
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1a1a;
    --card: #2a2a2a;
    --ink: #e8e8e8;
    --ink-soft: #a0a0a0;
    --line: #3a3a3a;
    --bg-light: #1a1a1a;
    --bg-white: #2a2a2a;
    --border-light: #3a3a3a;
  }
  
  body {
    background: #1a1a1a;
  }
  
  /* Header - koyu kalıyor */
  header {
    background: #333333 !important;
  }
  
  /* Sidebar - koyu modda da açık ton */
  aside {
    background: #2a2a2a !important;
    border-right-color: #3a3a3a;
  }
  
  .filters {
    background: #222222;
    border-bottom-color: #3a3a3a;
  }
  
  .search-box input {
    background: #2a2a2a;
    color: #e8e8e8;
    border-color: #3a3a3a;
  }
  
  .search-box input:focus {
    border-color: var(--gold);
    background: #2a2a2a;
  }
  
  .search-box input::placeholder {
    color: #6b7a8a;
  }
  
  .search-box svg {
    fill: #6b7a8a;
  }
  
  .chip {
    background: #2a2a2a;
    color: #c0c0c0;
    border-color: #3a3a3a;
  }
  
  .chip:hover {
    background: #333333;
    border-color: var(--gold);
  }
  
  .chip.active {
    background: var(--gold);
    color: #1a1a1a;
    border-color: var(--gold);
  }
  
  .chip.active:hover {
    background: #d4b05a;
  }
  
  .list-container {
    background: #2a2a2a;
  }
  
  .list-container::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  .list-container::-webkit-scrollbar-thumb {
    background: #3a3a3a;
  }
  
  .list-header {
    border-bottom-color: #3a3a3a;
  }
  
  .list-header h2 {
    color: #a0a0a0;
  }
  
  .list-header .count {
    background: #1a1a1a;
    color: #a0a0a0;
  }
  
  .mall-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
  }
  
  .mall-card:hover {
    border-color: #4a4a4a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  
  .mall-body {
    background: #222222;
  }
  
  .store-item {
    background: #2a2a2a;
    border-color: #3a3a3a;
  }
  
  .store-item:hover {
    background: #333333;
    border-color: var(--gold);
  }
  
  .store-item.selected {
    background: #2a2a2a;
    border-color: var(--gold);
  }
  
  .store-top h4 {
    color: #e8e8e8;
  }
  
  .store-addr {
    color: #a0a0a0;
  }
  
  .store-cert b {
    color: #e8e8e8;
  }
  
  .brand-chip {
    background: #222222;
    border-color: #3a3a3a;
    color: #c0c0c0;
  }
  
  .brand-chip:hover {
    background: #2a2a2a;
    border-color: #4a4a4a;
  }
  
  .popup-body {
    background: #2a2a2a !important;
    color: #e8e8e8;
  }
  
  .popup-cert {
    background: #222222;
    border-color: #3a3a3a;
  }
  
  .popup-cert b {
    color: #e8e8e8;
  }
  
  .popup-row {
    color: #e8e8e8;
  }
  
  .popup-row svg {
    fill: #a0a0a0;
  }
  
  .loading-state {
    color: #a0a0a0;
  }
  
  .empty-state {
    color: #a0a0a0;
  }
  
  .notification {
    background: #333333;
  }
  
  #searchIndicator .content {
    background: #2a2a2a;
  }
  
  #searchIndicator .content p {
    color: #e8e8e8;
  }
  
  #searchResultMsg {
    background: #3a2a1a;
    color: #e8e8e8;
  }
  
  /* Bağımsız mağazalar başlığı - dark mod */
  .independent-stores-header {
    border-bottom-color: #3a3a3a;
  }
  
  .independent-stores-header .independent-title {
    color: #e8e8e8;
  }
  
  .independent-stores-header .independent-count {
    background: #1a1a1a;
    color: #a0a0a0;
  }
}


/* ============================================================
   تأثير التمييز عند النقر
   ============================================================ */
.store-item.highlight {
  background-color: var(--gold-soft) !important;
  border-color: var(--gold) !important;
  transition: all 0.3s ease;
}

.store-item.highlight-pulse {
  animation: pulse 0.6s ease 3;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}