/* Map icon container (stack below the weather launcher on the center-right) */
.map-icon-container {
  position: fixed;
  right: 24px;
  top: calc(50% + 100px); /* below weather icon */
  transform: translateY(-50%);
  z-index: 20000;
  display: flex;
  flex-direction: row-reverse; /* icon on right, bubble left */
  align-items: center;
  gap: 12px;
}
.map-icon-button {
  position: static;
  width: 64px; height: 64px; min-width: 64px; min-height: 64px;
  border: none; border-radius: 12px;
  font-size: 2rem;
  background: linear-gradient(180deg,#ffffff,#f0f6ff);
  color: #203147;
  box-shadow: 0 6px 16px rgba(32,49,71,0.15);
  cursor: pointer; line-height: 1;
  transition: transform .3s ease, box-shadow .3s ease;
}
.map-icon-button:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(32,49,71,0.22); }

/* Map bubble text: rounded rectangle */
.map-cta {
  position: relative; margin: 0; max-width: 200px;
  background: #203147; color: #fff;
  padding: 8px 12px; border-radius: 12px;
  box-shadow: 0 8px 20px rgba(32,49,71,0.26);
  font-size: 0.9rem; line-height: 1.2; opacity: 0.96;
  transform: translateY(-20px); white-space: nowrap;
}
.map-cta::after { display: none; }
.map-cta.hidden { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }

/* Off-canvas dashboards share size */
.dashboard {
  position: fixed;
  right: -100%;
  top: 0;
  width: 70%;        /* increased width */
  max-width: 720px;  /* wider cap */
  height: 100%;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  background: #ffffff;
  border: 2px solid #203147; /* requested border color */
  border-radius: 12px;        /* optional: keeps style consistent */
  box-shadow: -10px 0 24px rgba(32,49,71,0.15); /* soft side shadow */
  overflow: hidden;                         /* clip inner shimmer to radius */
  transition: right 0.5s ease;
  overflow-y: auto;
  z-index: 9998;

}
.dashboard.active { right: 0; }

.map-embed {
  position: relative;
  width: 100%;
  height: 560px;     /* fixed height as requested */
  padding-top: 0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: -24px; /* lifted up slightly */
}

/* Make the whole map area clickable via overlay */
.map-embed .map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  cursor: pointer;
}

/* Ensure iframe sits under the overlay */
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

/* Center the button under the iframe */
.map-actions {
  display: flex;
  justify-content: center;
  margin: 14px 0 4px;
}
.map-actions .btn {
  min-width: 180px;
  font-weight: 600;
}

/* Lift the "Location Map" header closer to top */
#mapDashboard .dashboard-content {
  margin-top: 80px; /* was 100px (from shared dashboard-content) */
}

#mapDashboard .section-header {
  margin-top: -6px; /* slight upward nudge */
}

/* Desktop: tighten space above the map */
@media (min-width: 1025px) {
  #mapDashboard .dashboard-content {
    padding-top: 10px !important;   /* reduce overall top padding */
  }
  #mapDashboard .section-header {
    margin-bottom: 6px !important; /* shrink header gap */
  }
  #mapDashboard .section-header .mb-5,
  #mapDashboard .date-label.mb-5 {
    margin-bottom: 6px !important; /* override Bootstrap mb-5 */
  }
  #mapDashboard .map-embed {
    margin-top: 0 !important;      /* no extra gap before iframe */ 
  }
}

@media (max-width: 480px) {
  .map-icon-container { right: 16px; top: calc(50% + 90px); gap: 8px; }
  .map-icon-button { width: 56px; height: 56px; font-size: 1.6rem; }
  .map-cta { max-width: 160px; font-size: 0.85rem; padding: 6px 10px; transform: translateY(-14px); }

  .dashboard { right: -90vw; max-width: 90vw; }
}

/* Pull the map dashboard content upward (all screen sizes) */
#mapDashboard {
  padding-top: 8px !important;              /* was 20px from .dashboard */
}
#mapDashboard .dashboard-content {
  margin-top: 12px !important;              /* was 80px */
}
#mapDashboard .map-embed {
  margin-top: 0 !important;                 /* ensure no extra offset */
}