/* ==========================================================================
   MAPS - MAIN STYLESHEET
   ========================================================================== */
/* This file acts as a manifest, importing all the component-specific styles
   for the map page.
*/

/* Import Component Styles */
@import url("components/map.css");
@import url("components/legend.css");
@import url("components/search.css");
@import url("components/route-planner-modal.css");

/* Import Mobile Overrides - loaded last to ensure specificity */
@import url("components/mobile.css");

/* ==========================================================================
   SHARED & MISCELLANEOUS STYLES
   ========================================================================== */
/* These styles are shared across multiple map components or are general
   utility classes used on the map page.
*/

.pro-only {
  cursor: not-allowed;
  opacity: 0.6;
  color: #999;
}

.pro-only:hover {
  /* optional: show a different cursor or tooltip on hover */
}

.my-location-button {
  background-color: #fff;
  border: none;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  margin: 10px;
  padding: 8px;
  text-align: center;
  z-index: 1000;
  position: relative;
}

.my-location-button:focus {
  outline: none;
}

.my-location-button-icon {
  width: 18px;
  height: 18px;
  color: #000; /* Ensures the SVG icon is visible */
}



/* Make headings & body copy consistent */
.info-window,
.retailer-info {
  font-family: 'Roboto', sans-serif;
  background-color: #fff;
  padding: 0 10px 10px;
  border-radius: 8px;
  max-width: 400px;
  margin: auto;
  font-size: 16px;
  line-height: 1.2;
}

.info-window h4,
.retailer-info h3 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: #171a20;
}

/* Combine link styles for both windows */
.info-window a,
.retailer-info a {
  color: #007bff;                   /* link blue */
  text-decoration: none;            /* no default underline */
  border-bottom: 1px dotted #007bff;/* subtle affordance */
  cursor: pointer;
}

.info-window a:hover,
.retailer-info a:hover {
  border-bottom-style: solid;       /* solid on hover */
}

.info-window a:focus-visible,
.retailer-info a:focus-visible {
  outline: none;
  border-bottom: 1px solid #0056b3; /* stronger underline on keyboard focus */
}

.btn-small {
    font-size: 0.6rem;
    --bs-btn-padding-x: 4px;
    --bs-btn-padding-y: 1px;
}

/* Flexbox layout for map page */
.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* Modern browsers - dynamic viewport height */
}

.map-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

#map {
  flex: 1 1 auto;
  min-height: 0;
}

/* Remove conflicting mobile and tablet rules - let base.css handle layout */

/* Ensure footer doesn't create gaps */
#footer {
  flex-shrink: 0;
  margin-top: 0 !important;
}