body {
            margin: 0;
            padding: 0;
            font-family: popm;
            overflow: hidden; /* جلوگیری از اسکرول صفحه اصلی */
            background-color: #e4e8e5;
            height: 100vh;
            width: 100vw;
            position: relative;
        }

/* نقشه position:absolute داره، پس page-wrapper باید همیشه (نه فقط دسکتاپ)
   مرجع موقعیت‌دهی باشه تا نقشه هم مثل بقیه‌ی صفحات توی قاب ۴۸۰px اپ بمونه */
.page-wrapper{
  position: relative;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  background-color: #ffffff;
}

@media (min-width: 560px){
  .page-wrapper{
    box-shadow: 0 0 60px rgba(10, 30, 20, 0.12);
  }
}

        /* --- 1. Background Map --- */
        .map-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%; /* منهای ارتفاع فوتر خودت */
            z-index: 1;
        }

        iframe {
            width: 100%;
            height: 100%;
            border: none;
            filter: saturate(0.8); /* کمی رنگ‌ها را ملایم‌تر کردم شبیه عکس */
        }

/* دکمه‌ی برگشت شناور بالای نقشه (این صفحه هدر مشترک نداره) */
.map-back-btn{
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  left: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(10, 30, 20, 0.18);
  text-decoration: none;
}

.map-back-btn img{
  width: 18px;
  height: 18px;
}

.custom-marker{
  position: absolute;
  top: 50%;
  left: 50%;
  /* تهِ تیزِ پین (نوکش) دقیقاً روی نقطه‌ی لوکیشن بشینه، نه وسط آیکون */
  transform: translate(-50%, -100%);
  z-index: 5;
  cursor: pointer;
  width: 42px;
  line-height: 0;
}

.pin-shape{
  display: block;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

/* حلقه‌ی پالس دقیقاً زیر نوک پین، روی نقطه‌ی واقعی لوکیشن */
.custom-marker::after{
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 100, 60, 0.35);
  animation: pulse 2s infinite;
}

/* افکت خاص */
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(0,100,60,.4)}
  70%{box-shadow:0 0 0 14px rgba(0,100,60,0)}
  100%{box-shadow:0 0 0 0 rgba(0,100,60,0)}
}

/* --- 2. Overlay (پشت بات‌شیت، برای بستن با کلیک بیرون) --- */
.overlay{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px; /* هم‌راستا با قاب اپ، وگرنه روی دسکتاپ کل viewport تیره می‌شد */
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1500; /* بالاتر از نوار پایین (z-index:1000) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.show{
  opacity: 1;
  pointer-events: auto;
}

/* --- 3. Bottom sheet (اطلاعات فروشگاه) --- */
.bottom-sheet{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000; /* بالاتر از نوار پایین (z-index:1000) که وگرنه دکمه‌ها قابل کلیک نبودن */
  background: #ffffff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.28s ease;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
}

.bottom-sheet.open{
  transform: translateY(0);
}

.sheet-handle{
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #e0e0e0;
  margin: 6px auto 14px auto;
}

.sheet-close{
  position: absolute;
  top: 10px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #f2f2f0;
  color: #555;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.store-row{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.store-icon{
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #eef6f0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-icon svg{
  width: 24px;
  height: 24px;
}

.store-text{
  min-width: 0;
}

.store-name{
  margin: 0 0 4px 0;
  font-family: pops;
  font-size: 17px;
  color: #16281f;
}

.store-address{
  margin: 0;
  font-family: popr;
  font-size: 12.5px;
  color: #8a938c;
  line-height: 1.5;
}

.sheet-actions{
  display: flex;
  gap: 10px;
}

.sheet-btn{
  flex: 1;
  border-radius: 999px;
  padding: 13px 10px;
  font-family: pops;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #eef6f0;
  color: #00643c;
}

.sheet-btn.primary{
  background: #00643c;
  color: #ffffff;
  box-shadow: 0 4px 10px -4px rgba(0, 100, 60, 0.45);
}

/* --- 4. Toast (پیام کوتاه پایین صفحه) --- */
.toast{
  position: fixed;
  left: 16px;
  right: 16px;
  top: calc(24px + env(safe-area-inset-top));
  margin: 0 auto;
  width: fit-content;
  max-width: 400px; /* مرکز صفحه = مرکز قاب اپ، چون قاب خودش هم وسط‌چین شده */
  z-index: 2100; /* بالاتر از بات‌شیت تا وقتی هر دو باز هستن پیام دیده بشه */
  background: #222;
  color: #fff;
  font-family: popr;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show{
  opacity: 1;
  transform: translateY(0);
}

