/* ============================================================
   LOCATION / MAP SECTION — AQIQAH INVITATION
   Leaflet + OpenStreetMap, mobile-first
   ============================================================ */

/* ---------- hero name: two-line treatment ---------- */
.hero-name-sub {
  display: inline-block;
  font-size: 0.62em;
  letter-spacing: -0.01em;
  color: #1d4ed8;
}

/* ---------- map wrapper ---------- */
.map-wrap {
  width: 100%;
  margin-inline: auto;
}

.map-card {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}

.map-canvas {
  width: 100%;
  height: 340px;
  background: #eef2ff;
  position: relative;
  z-index: 1;
}

/* Leaflet internal polish */
.map-canvas .leaflet-container {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
}

.map-canvas .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}

.map-canvas .leaflet-popup-content {
  margin: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #0f172a;
}

.map-canvas .leaflet-popup-tip {
  box-shadow: none;
}

/* controls: bigger touch targets on mobile */
.map-canvas .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 34px;
  font-size: 20px;
  font-weight: 600;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}

.map-canvas .leaflet-control-attribution {
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.88);
  padding: 2px 6px;
  border-radius: 6px 0 0 0;
}

.map-canvas .leaflet-control-attribution a {
  color: #1d4ed8;
}

/* ---------- overlay bar under map ---------- */
.map-overlay-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.map-pin-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.map-pin-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.map-pin-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.map-pin-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.map-pin-text span {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

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

.map-actions .btn {
  flex: 1 1 auto;
  min-height: 44px;
  min-width: 140px;
  justify-content: center;
  text-align: center;
}

/* ---------- info cards ---------- */
.map-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.map-info-card {
  padding: 18px 18px 20px;
  border-radius: 16px;
}

.map-info-text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}

.map-coord-text {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: #1d4ed8;
  font-weight: 600;
}

/* ---------- tablet and up ---------- */
@media (min-width: 640px) {
  .map-canvas { height: 400px; }

  .map-overlay-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
  }

  .map-actions { flex: 0 0 auto; flex-wrap: nowrap; }
  .map-actions .btn { flex: 0 0 auto; min-width: 0; }

  .map-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  /* coordinate card spans neatly under the pair */
  .map-info-grid .map-info-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .map-canvas { height: 440px; }

  .map-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-info-grid .map-info-card:last-child {
    grid-column: auto;
  }
}

/* ---------- small phones ---------- */
@media (max-width: 360px) {
  .map-canvas { height: 280px; }
  .map-pin-text strong { font-size: 13px; }
  .map-pin-text span { font-size: 11.5px; }
  .map-actions .btn { min-width: 0; flex: 1 1 100%; }
}

/* ---------- landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .map-canvas { height: 260px; }
}

/* ---------- print ---------- */
@media print {
  .map-canvas { height: 300px; }
  .map-actions { display: none; }
}