/* CanadaMap SDK Styles */

.canada-map-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Optional wrapper for a full-page map */
.canada-map-fullpage {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

/* Loading state */
.canada-map-container::before {
  content: "";
  display: none;
}

.canada-map-container.loading::before {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 35, 0.9);
  color: #e0e0e0;
  font-family: sans-serif;
  font-size: 1rem;
  z-index: 10;
  content: "Loading map\2026";
}

/* -------------------------------------------------- */
/* Mobile province list (shown below the map on small  */
/* screens for easier tap targets)                     */
/* -------------------------------------------------- */

.canada-map-province-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.canada-map-province-list li {
  display: block;
}

.canada-map-province-list a,
.canada-map-province-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 2px;
  border: none;
  border-radius: 6px;
  background: rgba(35, 0, 62, 0.45);
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.canada-map-province-list a:hover,
.canada-map-province-list a:focus,
.canada-map-province-list button:hover,
.canada-map-province-list button:focus {
  background: rgba(173, 115, 205, 0.4);
  outline: none;
}

.canada-map-province-list .cm-code {
  font-weight: bold;
  opacity: 0.6;
  font-size: 0.85rem;
  color: #F7A403;
}

.canada-map-province-list .cm-arrow {
  opacity: 0.4;
  font-size: 1.1rem;
  color: #AD73CD;
}

/* -------------------------------------------------- */
/* Responsive breakpoints                             */
/* -------------------------------------------------- */

@media (max-width: 768px) {
  .canada-map-container {
    min-height: 280px;
    border-radius: 6px;
  }

  .canada-map-province-list {
    display: block;
  }
}

@media (max-width: 480px) {
  .canada-map-container {
    min-height: 220px;
    border-radius: 4px;
  }
}

/* Landscape phones: give map more height */
@media (max-height: 500px) and (orientation: landscape) {
  .canada-map-container {
    min-height: 90vh;
  }
}
