.crystal-store-locator,
.crystal-store-locator * {
  box-sizing: border-box;
}

.crystal-store-locator {
  --csm-accent: #18bdd0;
  --csm-accent-dark: #08a9ba;
  --csm-text: #5f5f5f;
  width: 100%;
  max-width: 100%;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--csm-text);
  background: #ffffff;
}

/* ── DESKTOP / TABLET REGION TABS ── */
.csm-region-tabs {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 14px);
  padding: 16px 12px 11px;
  margin: 0;
  background: #ffffff;
  border: 0;
}

.csm-region-tabs button {
  position: relative;
  appearance: none;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #606060 !important;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1;
  margin: 10px 0 !important;
  padding: 3px 15px 10px !important;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.csm-region-tabs button:hover,
.csm-region-tabs button:focus,
.csm-region-tabs button.is-active {
  color: var(--csm-accent) !important;
}

.csm-region-tabs button.is-active {
  font-weight: 700;
}

.csm-region-tabs button::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  width: auto;
  height: 3px;
  background: transparent;
  transform: none;
  transition: background-color 0.2s ease;
}

.csm-region-tabs button.is-active::after {
  background: var(--csm-accent);
}

/* ── MOBILE FILTER TRIGGER (hidden on desktop) ── */
.csm-mobile-filter-trigger {
  display: none;
}

/* Beat Elementor's *reset.css [type=button] rule globally */
button.csm-mobile-filter-trigger[type=button],
button.csm-mobile-filter-trigger[type=button]:hover,
button.csm-mobile-filter-trigger[type=button]:focus,
button.csm-mobile-filter-trigger[type=button]:active,
.crystal-store-locator button.csm-mobile-filter-trigger,
.crystal-store-locator button.csm-mobile-filter-trigger:hover,
.crystal-store-locator button.csm-mobile-filter-trigger:focus,
.crystal-store-locator button.csm-mobile-filter-trigger:active {
  background-color: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #333333 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.crystal-store-locator button.csm-mobile-filter-trigger:hover,
button.csm-mobile-filter-trigger[type=button]:hover {
  background-color: rgba(76, 188, 203, 0.08) !important;
}

/* ── MOBILE FILTER POPUP OVERLAY ── */
.csm-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-end;
  justify-content: center;
}

.csm-filter-overlay.is-open {
  display: flex;
}

.csm-filter-sheet {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  animation: csmSlideUp 0.28s ease;
}

@keyframes csmSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.csm-filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.csm-filter-sheet-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #333333;
}

.csm-filter-sheet-close {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  color: #999999 !important;
  font-size: 26px !important;
  line-height: 1;
  padding: 0 !important;
  margin: 0 !important;
}

.csm-filter-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.csm-filter-option {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555555 !important;
  padding: 14px 0 !important;
  margin: 0 !important;
  text-align: left;
  border-bottom: 1px solid #f0f0f0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.18s ease;
}

.csm-filter-option:last-child {
  border-bottom: 0 !important;
}

.csm-filter-option.is-active {
  color: var(--csm-accent) !important;
  font-weight: 700 !important;
}

.csm-filter-option .csm-filter-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--csm-accent);
  display: none;
  align-items: center;
  justify-content: center;
}

.csm-filter-option.is-active .csm-filter-check {
  display: flex;
}

.csm-filter-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── MAP ── */
.csm-map-wrap {
  width: 100%;
  height: var(--csm-map-height, 620px);
  position: relative;
  overflow: hidden;
  border: 0;
  background: #d6dde0;
}

.csm-map {
  width: 100%;
  height: 100%;
  min-height: 360px;
  font-family: 'Montserrat', Arial, sans-serif;
  /* Allow pinch-zoom gestures on mobile */
  touch-action: pan-x pan-y;
}

.csm-map .leaflet-container,
.csm-map.leaflet-container {
  touch-action: pan-x pan-y;
}

.csm-map .leaflet-container,
.csm-map.leaflet-container {
  background: #d6dde0;
  font-family: 'Montserrat', Arial, sans-serif;
}

.csm-map .leaflet-control-zoom a {
  color: #111111;
  font-weight: 500;
}

.csm-map .leaflet-control-attribution {
  font-size: 10px;
}

/* ── SCROLL HINT ── */
.csm-scroll-hint {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.csm-scroll-hint.is-visible {
  opacity: 1;
}

/* ── MARKERS ── */
.csm-pin-icon {
  width: 30px !important;
  height: 40px !important;
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.csm-pin-icon .csm-marker-img,
.crystal-store-locator .leaflet-marker-pane img.csm-marker-img {
  display: block;
  width: 30px !important;
  height: 40px !important;
  max-width: 30px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  border: 0 !important;
  outline: none !important;
  transform-origin: center bottom;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.csm-pin-icon:hover .csm-marker-img,
.crystal-store-locator .leaflet-marker-pane img.csm-marker-img:hover {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.18));
}

.csm-cluster-icon {
  background: transparent !important;
  border: 0 !important;
}

.csm-cluster-icon div {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 176, 192, 0.88);
  box-shadow: 0 0 0 5px rgba(10, 176, 192, 0.14);
  color: #ffffff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

/* ── POPUP ── */
.csm-store-popup .leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.20) !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.csm-store-popup .leaflet-popup-content {
  margin: 0 !important;
  width: 251px !important;
  max-width: calc(100vw - 34px) !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.csm-store-popup .leaflet-popup-tip-container,
.csm-store-popup .leaflet-popup-tip {
  display: none !important;
}

.csm-popup-card,
.csm-store-popup .oum_location_text {
  width: 251px !important;
  max-width: calc(100vw - 34px) !important;
  padding: 20px !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  border-radius: 10px !important;
}

.csm-popup-kicker,
.csm-store-popup .oum_location_text .oum_location_address {
  display: block !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #77c5ea !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  opacity: 0.8 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
}

.csm-popup-kicker:hover,
.csm-store-popup .oum_location_text .oum_location_address:hover {
  color: #43c0e5 !important;
}

.csm-popup-card h3,
.csm-store-popup .oum_location_text .oum_location_title,
.csm-store-popup .oum_location_text .oum_location_title .oum_location_name {
  display: block !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: #000000 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.csm-popup-row,
.csm-store-popup .oum_location_text .oum_location_description {
  margin: 0 0 4px !important;
  padding: 0 !important;
  color: #333333 !important;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.csm-popup-row strong,
.csm-store-popup .oum_location_text strong {
  color: #333333 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.csm-popup-row a,
.csm-store-popup .oum_location_text a {
  color: #77c5ea !important;
  text-decoration: none !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.csm-popup-row a:hover,
.csm-store-popup .oum_location_text a:hover {
  color: #43c0e5 !important;
}

.csm-store-popup .leaflet-popup-close-button {
  top: 11px !important;
  right: 13px !important;
  width: 24px !important;
  height: 24px !important;
  color: #7b7b7b !important;
  font-size: 30px !important;
  font-weight: 300 !important;
  line-height: 22px !important;
  text-decoration: none !important;
}

/* ── ACTIONS ── */
.csm-actions {
  width: 100%;
  text-align: center;
  padding: 44px 16px 62px;
  background: #ffffff;
}

.csm-near-me {
  appearance: none;
  min-width: min(448px, 92vw);
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--csm-accent) !important;
  color: #ffffff !important;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  padding: 18px 32px !important;
  text-transform: uppercase !important;
  box-shadow: 0 7px 18px rgba(23, 190, 208, 0.18) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.csm-near-me:hover,
.csm-near-me:focus {
  background: var(--csm-accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(23, 190, 208, 0.28) !important;
}

.csm-near-me:active {
  transform: translateY(0);
  box-shadow: 0 7px 18px rgba(23, 190, 208, 0.18) !important;
}

.csm-status {
  min-height: 20px;
  margin: 15px 0 0;
  color: #5d5d5d;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.csm-status.is-error {
  color: #b00020;
}

/* ── TABLET: single row, no wrap ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .csm-region-tabs {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
  }

  .csm-region-tabs button {
    flex: 0 0 auto;
    font-size: 12px !important;
    padding: 3px 10px 10px !important;
  }

  .csm-map-wrap {
    height: 560px;
  }
}

/* ── MOBILE: hide desktop tabs, show trigger button ── */
@media (max-width: 767px) {
  /* Hide the desktop tab nav */
  .csm-region-tabs {
    display: none !important;
  }

  /* Show the mobile filter trigger */
  .csm-mobile-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    margin: 0 !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .csm-mobile-filter-trigger:hover,
  .csm-mobile-filter-trigger:focus,
  .csm-mobile-filter-trigger:active {
    outline: none !important;
    box-shadow: none !important;
    background: rgba(76, 188, 203, 0.06) !important;
    color: inherit !important;
  }

  .csm-mobile-filter-label {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #333333;
  }

  .csm-mobile-filter-icon {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .csm-mobile-filter-region {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--csm-accent);
    text-transform: uppercase;
  }

  .csm-mobile-filter-icon svg {
    width: 15px;
    height: 14px;
    color: #aaaaaa;
    flex-shrink: 0;
  }

  /* Kill Elementor's red/colored button hover override */
  .crystal-store-locator .csm-mobile-filter-trigger,
  .crystal-store-locator .csm-mobile-filter-trigger:hover,
  .crystal-store-locator .csm-mobile-filter-trigger:focus,
  .crystal-store-locator .csm-mobile-filter-trigger:active,
  .crystal-store-locator .csm-mobile-filter-trigger:visited {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: inherit !important;
    border-color: transparent !important;
    text-decoration: none !important;
  }

  .crystal-store-locator .csm-mobile-filter-trigger:hover {
    background-color: rgba(76, 188, 203, 0.06) !important;
  }

  .csm-map-wrap {
    height: 500px;
  }

  .csm-popup-card {
    width: min(330px, calc(100vw - 42px));
    padding: 23px 24px 22px;
  }

  .csm-popup-card h3 {
    font-size: 19px !important;
    line-height: 1.35 !important;
  }

  .csm-popup-row {
    font-size: 16px;
  }

  .csm-actions {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .csm-near-me {
    min-width: min(360px, 92vw);
    font-size: 16px !important;
    padding: 18px 28px !important;
  }

  /* Mobile scroll hint: use 2 fingers */
  .csm-scroll-hint {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .csm-store-popup .leaflet-popup-content {
    min-width: 280px;
    max-width: 340px;
  }

  .csm-popup-card {
    width: min(340px, calc(100vw - 32px));
    padding: 20px 24px 22px;
  }

  .csm-popup-card h3 {
    font-size: 19px !important;
  }
}

.csm-store-popup .leaflet-popup-content,
.csm-store-popup .leaflet-popup-content * {
  font-family: 'Montserrat', Arial, sans-serif !important;
}

@media (max-width: 480px) {
  .csm-store-popup .leaflet-popup-content,
  .csm-popup-card,
  .csm-store-popup .oum_location_text {
    width: min(251px, calc(100vw - 30px)) !important;
    max-width: calc(100vw - 30px) !important;
  }

  .csm-popup-card,
  .csm-store-popup .oum_location_text {
    padding: 18px !important;
  }

  .csm-popup-card h3,
  .csm-store-popup .oum_location_text .oum_location_title,
  .csm-store-popup .oum_location_text .oum_location_title .oum_location_name {
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin-bottom: 16px !important;
  }
}
