/* =========================
   KONUM SAYFASI – MACKBEAR ORMAN TEMA
   ========================= */

/* Header'da ufak fark */
.location-header .menu-title {
  font-size: clamp(24px, 2.8vw, 30px);
}

/* Üst bardaki KONUMLAR aktif rozet */
.location-link-active {
  background: var(--accent);
  color: #15181B;
  cursor: default;
  border-color: var(--accent) !important;
}

/* =========================
   ANA LAYOUT
   ========================= */

.location-main {
  padding: 18px 16px 40px;
  background: radial-gradient(circle at top, #1E2A2F 0, #06090C 55%);
}

@media (min-width: 960px) {
  .location-main {
    padding: 24px 64px 60px;
  }
}

.location-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 1.3fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .location-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================
   HARİTA
   ========================= */

.location-map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(197, 167, 109, 0.45);
  background: #11171C;
}

.location-map {
  width: 100%;
  height: calc(100vh - 260px);
  min-height: 360px;
}

@media (max-width: 640px) {
  .location-map {
    height: 360px;
  }
}

/* =========================
   ŞUBE LİSTESİ PANELİ
   ========================= */

.location-list-wrapper {
  background:
    radial-gradient(circle at top left, rgba(174, 187, 194, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(110, 126, 135, 0.18), transparent 60%),
    #11171C;
  border-radius: 20px;
  padding: 14px 14px 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(197, 167, 109, 0.55);
}

.location-list-title {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* Liste scroll davranışı */
.location-list {
  max-height: calc(100vh - 330px);
  overflow-y: auto;
  padding-right: 4px;
}

.location-list::-webkit-scrollbar {
  width: 6px;
}
.location-list::-webkit-scrollbar-thumb {
  background: #4B5563;
  border-radius: 999px;
}

/* =========================
   ŞUBE KARTI
   ========================= */

.location-item {
  padding: 10px 10px 9px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.9);
  margin-bottom: 8px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  transition:
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.location-item:last-child {
  margin-bottom: 0;
}

.location-item:hover {
  background: rgba(24, 32, 38, 0.98);
  border-color: rgba(197, 167, 109, 0.8);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}

.location-item.active {
  background:
    radial-gradient(circle at top left, rgba(174, 187, 194, 0.28), transparent 55%),
    rgba(18, 24, 28, 0.96);
  border-color: var(--accent);
}

/* Küçük logo */
.location-item-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: #0B0B0F;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 2px #0B0B0F,
    0 0 0 4px rgba(197, 167, 109, 0.9);
}

.location-item-logo img {
  width: 115%;
  height: auto;
}

/* Metinler */
.location-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #F9FAFB;
}

.location-item-address {
  font-size: 11px;
  color: var(--text-muted);
}

.location-item-meta {
  font-size: 11px;
  color: var(--text-main);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.location-item-meta span {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.9);
}

/* Açık/Kapalı etiketi */
.location-status-open {
  color: #BBF7D0;
  background: rgba(22, 163, 74, 0.22);
  border-color: rgba(22, 163, 74, 0.7);
}

.location-status-closed {
  color: #FECACA;
  background: rgba(185, 28, 28, 0.35);
  border-color: rgba(248, 113, 113, 0.85);
}

/* Kart içindeki "Hizmetler & Olanaklar" butonu */

.location-item-services-trigger {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(197, 167, 109, 0.7);
  background: transparent;
  color: var(--accent);
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    color 0.18s ease-out,
    transform 0.18s ease-out;
}

.location-item-services-trigger::before {
  content: "ⓘ";
  font-size: 11px;
}

.location-item-services-trigger:hover {
  background: rgba(197, 167, 109, 0.14);
  border-color: rgba(197, 167, 109, 0.98);
  color: var(--text-dark);
  transform: translateY(-0.5px);
}

/* =========================
   HİZMET & OLANAK ROZETLERİ
   (modal içindeki badges)
   ========================= */

.location-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(75, 85, 99, 0.9);
  font-size: 10px;
  color: #E5E7EB;
  white-space: nowrap;
}

/* Hizmet ikonları – hepsi aynı temel stili kullanıyor, içerik sınıfa göre değişiyor */

.service-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(197, 167, 109, 0.9);
  color: var(--accent);
}

/* Her hizmet için farklı emoji / simge (istersen sonra SVG ile değiştirirsin) */

.service-temassiz_teslimat::before { content: "🤝"; }
.service-adrese_servis::before    { content: "🛵"; }
.service-paket_servis::before     { content: "📦"; }
.service-iceride_servis::before   { content: "🍽️"; }
.service-helal::before            { content: "☪️"; }
.service-vegan::before            { content: "🌱"; }
.service-vejetaryen::before       { content: "🥦"; }
.service-wifi::before             { content: "📶"; }
.service-tuvalet::before          { content: "🚻"; }
.service-kredi_karti::before      { content: "💳"; }
.service-banka_karti::before      { content: "🏦"; }
.service-nfc_odeme::before        { content: "📲"; }

/* =========================
   HİZMETLER MODAL
   ========================= */

.services-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.services-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.services-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.32), transparent 55%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.services-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  max-height: 80vh;
  background:
    radial-gradient(circle at top left, rgba(174, 187, 194, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(110, 126, 135, 0.18), transparent 60%),
    #11171C;
  border-radius: 20px;
  border: 1px solid rgba(197, 167, 109, 0.7);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  padding: 16px 16px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.services-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #E5E7EB;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.services-modal-close:hover {
  background: var(--accent-red);
  border-color: rgba(248, 250, 252, 0.9);
  color: #F9FAFB;
}

.services-modal-title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.services-modal-subtitle {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.services-modal-branch-name {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #F9FAFB;
}

.services-modal-content {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
  overflow-y: auto;
  max-height: 52vh;
}

/* Modal içindeki grid */

.services-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-top: 4px;
}

@media (max-width: 420px) {
  .services-modal-grid {
    grid-template-columns: 1fr;
  }
}

.services-modal-empty {
  font-size: 11px;
  color: #E5E7EB;
}

/* =========================
   MOBİL DOKUNUŞLAR
   ========================= */

@media (max-width: 640px) {
  .location-main {
    padding-inline: 14px;
  }

  .location-map {
    height: 360px;
  }

  .location-list {
    max-height: none;
  }
}
