/* VI Peel Practice Finder widget styles.
   All rules are scoped under .vl-shell so the widget can be dropped into a
   Shopify theme app extension or mobile webview without leaking styles. */

@font-face {
  font-family: "Ethic New";
  src: url("/locator/assets/fonts/EthicNew-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src:
    url("/locator/assets/fonts/Gotham-Book.woff2") format("woff2"),
    url("/locator/assets/fonts/Gotham-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("/locator/assets/fonts/Gotham-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("/locator/assets/fonts/Gotham-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

.vl-shell {
  /* Brand palette */
  --vl-teal: #1c4951;
  --vl-teal-deep: #0e3239;
  --vl-teal-ink: #12333a;
  --vl-teal-soft: #e7eeed;
  --vl-teal-tint: #f1f5f4;
  --vl-ivory: #faf8f4;
  --vl-cream: #f4f0e8;
  --vl-sand: #e4ddd0;
  --vl-line: #e3e0d8;
  --vl-blush: #ffe0c9;
  --vl-blush-text: #b96f62;
  --vl-ink: #22302f;
  --vl-muted: #66726f;
  --vl-faint: #8d9794;
  --vl-white: #ffffff;
  --vl-gold: #a8853c;
  --vl-gold-deep: #8a6b2b;
  --vl-gold-tint: #faf4e6;
  --vl-gold-line: #e3cf9d;
  --vl-platinum: #7e8b93;
  --vl-platinum-deep: #5c6970;
  --vl-platinum-tint: #f1f4f6;
  --vl-platinum-line: #ccd6dc;
  --vl-error: #9a3412;
  --vl-error-tint: #fdf1ea;

  /* Type */
  --vl-font-heading: "Ethic New", Georgia, "Times New Roman", serif;
  --vl-font-body: "Gotham", "Helvetica Neue", Arial, sans-serif;

  /* Surfaces */
  --vl-radius: 14px;
  --vl-radius-sm: 10px;
  --vl-shadow-soft: 0 1px 2px rgba(28, 73, 81, 0.05), 0 6px 18px rgba(28, 73, 81, 0.06);
  --vl-shadow-lift: 0 2px 6px rgba(28, 73, 81, 0.1), 0 14px 32px rgba(28, 73, 81, 0.12);

  /* Default: fill the viewport minus an optional host header offset.
     Hosts can pin an exact height via config.height (--vl-shell-height). */
  height: var(--vl-shell-height, calc(100vh - var(--vl-page-offset, 0px)));
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: var(--vl-ivory);
  color: var(--vl-ink);
  font-family: var(--vl-font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.vl-shell strong,
.vl-shell b {
  font-weight: 500;
}

.vl-shell button,
.vl-shell input,
.vl-shell select {
  font: inherit;
}

/* ---------- Panel Intro ---------- */

.vl-panel-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 24px 26px 18px;
  background: var(--vl-white);
  border-bottom: 1px solid var(--vl-line);
}

.vl-title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.vl-title {
  margin: 0;
  font-family: var(--vl-font-heading);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--vl-teal);
  white-space: nowrap;
}

.vl-subtitle {
  margin: 2px 0 0;
  color: var(--vl-blush-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.vl-count {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--vl-line);
  border-radius: 999px;
  background: var(--vl-ivory);
  color: var(--vl-muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  white-space: nowrap;
}

.vl-count::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--vl-teal);
  opacity: 0.75;
}

/* ---------- Layout ---------- */

.vl-layout {
  display: grid;
  grid-template-columns: minmax(400px, 470px) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

.vl-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  background: var(--vl-white);
  border-right: 1px solid var(--vl-line);
}

/* ---------- Controls ---------- */

.vl-controls {
  display: grid;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--vl-line);
  background: var(--vl-white);
}

.vl-control-group {
  display: grid;
  gap: 9px;
}

.vl-filter-title {
  color: var(--vl-teal);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vl-search-row {
  display: flex;
  gap: 10px;
}

.vl-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.vl-input-wrap::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: var(--vl-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
    center / contain no-repeat;
  pointer-events: none;
}

.vl-input,
.vl-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--vl-sand);
  border-radius: var(--vl-radius-sm);
  background: var(--vl-white);
  color: var(--vl-ink);
  padding: 10px 14px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.vl-input {
  padding-left: 38px;
}

.vl-input::placeholder {
  color: var(--vl-faint);
}

.vl-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.vl-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366726f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.vl-input:hover,
.vl-select:hover {
  border-color: #cfc6b4;
}

.vl-input:focus,
.vl-select:focus {
  outline: none;
  border-color: var(--vl-teal);
  box-shadow: 0 0 0 3px rgba(28, 73, 81, 0.14);
}

.vl-button:focus-visible,
.vl-card:focus-visible,
.vl-more-button:focus-visible,
.vl-filter-option:focus-within {
  outline: 2px solid var(--vl-teal);
  outline-offset: 2px;
}

.vl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--vl-teal);
  border-radius: var(--vl-radius-sm);
  background: var(--vl-teal);
  color: var(--vl-white);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.vl-button:hover:not(:disabled) {
  background: var(--vl-teal-deep);
  border-color: var(--vl-teal-deep);
  box-shadow: var(--vl-shadow-soft);
}

.vl-button.secondary {
  border-color: var(--vl-sand);
  background: var(--vl-white);
  color: var(--vl-teal);
}

.vl-button.secondary:hover:not(:disabled) {
  background: var(--vl-teal-tint);
  border-color: var(--vl-teal);
  box-shadow: none;
}

.vl-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.vl-button-icon {
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--vl-icon) center / contain no-repeat;
  mask: var(--vl-icon) center / contain no-repeat;
}

.vl-icon-locate {
  --vl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E");
}

.vl-radius-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vl-radius-row .vl-select {
  flex: 1;
}

/* ---------- Filter chips ---------- */

.vl-filter-group {
  display: grid;
  gap: 9px;
  margin: 0;
  border: 0;
  padding: 0;
}

/* Multi-select treatment dropdown */
.vl-filter-dropdown {
  position: relative;
}

.vl-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--vl-sand);
  border-radius: var(--vl-radius-sm);
  background: var(--vl-white);
  color: var(--vl-ink);
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.vl-filter-toggle:hover {
  border-color: #cfc6b4;
}

.vl-filter-dropdown.open .vl-filter-toggle,
.vl-filter-toggle:focus-visible {
  outline: none;
  border-color: var(--vl-teal);
  box-shadow: 0 0 0 3px rgba(28, 73, 81, 0.14);
}

.vl-filter-toggle.has-selection .vl-filter-toggle-label {
  color: var(--vl-teal);
  font-weight: 500;
}

.vl-filter-toggle-caret {
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--vl-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 160ms ease;
}

.vl-filter-dropdown.open .vl-filter-toggle-caret {
  transform: rotate(180deg);
}

.vl-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  border: 1px solid var(--vl-line);
  border-radius: var(--vl-radius-sm);
  background: var(--vl-white);
  padding: 6px;
  box-shadow: var(--vl-shadow-lift);
}

.vl-filter-menu[hidden] {
  display: none;
}

.vl-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 140ms ease;
}

.vl-filter-option:hover {
  background: var(--vl-teal-tint);
}

.vl-filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.vl-filter-option::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--vl-sand);
  background: var(--vl-white);
  transition:
    background-color 140ms ease,
    border-color 140ms ease;
}

.vl-filter-option.checked::before {
  border-color: var(--vl-teal);
  background: var(--vl-teal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.vl-filter-option-text {
  font-size: 14px;
}

.vl-filter-option.checked .vl-filter-option-text {
  color: var(--vl-teal);
  font-weight: 500;
}

/* ---------- Status banner ---------- */

.vl-status {
  display: none;
  border: 1px solid var(--vl-teal-soft);
  border-radius: var(--vl-radius-sm);
  background: var(--vl-teal-tint);
  color: var(--vl-teal);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
}

.vl-status.visible {
  display: block;
}

.vl-status.error {
  border-color: #f0d4c4;
  background: var(--vl-error-tint);
  color: var(--vl-error);
}

/* ---------- Results ---------- */

.vl-results-intro {
  margin: 0;
  padding: 18px 26px 0;
  background: var(--vl-ivory);
  color: var(--vl-blush-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.vl-results {
  display: grid;
  grid-auto-rows: max-content;
  gap: 14px;
  align-content: start;
  overflow: auto;
  padding: 20px 26px 30px;
  background: var(--vl-ivory);
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--vl-sand) transparent;
}

.vl-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0 26px 24px;
  border: 1px solid var(--vl-sand);
  border-radius: var(--vl-radius-sm);
  background: var(--vl-white);
  color: var(--vl-teal);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.vl-more-button:hover:not(:disabled) {
  background: var(--vl-teal-tint);
  border-color: var(--vl-teal);
}

.vl-more-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.vl-card {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--vl-line);
  border-radius: var(--vl-radius);
  background: var(--vl-white);
  color: var(--vl-ink);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--vl-shadow-soft);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.vl-card:hover {
  border-color: var(--vl-teal);
  transform: translateY(-1px);
  box-shadow: var(--vl-shadow-lift);
}

.vl-card.active {
  border-color: var(--vl-teal);
  box-shadow:
    0 0 0 1px var(--vl-teal),
    var(--vl-shadow-lift);
}

/* Tier accents */

.vl-card.tier-gold,
.vl-card.tier-platinum {
  padding-top: 21px;
}

.vl-card.tier-gold::before,
.vl-card.tier-platinum::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.vl-card.tier-gold::before {
  background: linear-gradient(90deg, #c9a558, var(--vl-gold) 45%, #e0c382);
}

.vl-card.tier-platinum::before {
  background: linear-gradient(90deg, #aebbc2, var(--vl-platinum) 45%, #c6d2d8);
}

.vl-card.tier-gold {
  background: linear-gradient(180deg, var(--vl-gold-tint), var(--vl-white) 120px);
  border-color: var(--vl-gold-line);
}

.vl-card.tier-platinum {
  background: linear-gradient(180deg, var(--vl-platinum-tint), var(--vl-white) 120px);
  border-color: var(--vl-platinum-line);
}

.vl-card.tier-gold:hover,
.vl-card.tier-gold.active {
  border-color: var(--vl-gold);
}

.vl-card.tier-gold.active {
  box-shadow:
    0 0 0 1px var(--vl-gold),
    var(--vl-shadow-lift);
}

.vl-card.tier-platinum:hover,
.vl-card.tier-platinum.active {
  border-color: var(--vl-platinum);
}

.vl-card.tier-platinum.active {
  box-shadow:
    0 0 0 1px var(--vl-platinum),
    var(--vl-shadow-lift);
}

.vl-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.vl-card-title {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-family: var(--vl-font-heading);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--vl-teal);
  overflow-wrap: break-word;
}

.vl-badge-art {
  flex: none;
  align-self: flex-start;
  height: 34px;
  width: auto;
  margin-top: 1px;
  border-radius: 4px;
}

.vl-address {
  color: var(--vl-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.vl-distance {
  color: var(--vl-teal);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.vl-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.vl-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vl-teal);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms ease;
}

.vl-card-link:hover {
  border-bottom-color: var(--vl-teal);
}

.vl-card-link::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--vl-icon) center / contain no-repeat;
  mask: var(--vl-icon) center / contain no-repeat;
}

.vl-link-phone {
  --vl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.vl-link-website {
  --vl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

.vl-link-directions {
  --vl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.31 9.31 4.6 20.28a1 1 0 0 0 1.3 1.3l10.97-4.71a1 1 0 0 0 0-1.84L5.9 9.31a1 1 0 0 0-1.3 1.3z' transform='rotate(90 12 12)'/%3E%3Cpolygon points='3 11 22 2 13 21 11 13 3 11'/%3E%3C/svg%3E");
}

.vl-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vl-service {
  border: 1px solid var(--vl-teal-soft);
  border-radius: 999px;
  background: var(--vl-teal-tint);
  color: var(--vl-teal);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ---------- Skeleton / empty / error states ---------- */

.vl-skeleton-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--vl-line);
  border-radius: var(--vl-radius);
  background: var(--vl-white);
  padding: 18px;
}

.vl-skeleton-line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--vl-cream) 25%, #ece6da 45%, var(--vl-cream) 65%);
  background-size: 240% 100%;
  animation: vl-shimmer 1.3s ease-in-out infinite;
}

.vl-skeleton-line.w60 {
  width: 60%;
  height: 17px;
}

.vl-skeleton-line.w80 {
  width: 80%;
}

.vl-skeleton-line.w40 {
  width: 40%;
}

@keyframes vl-shimmer {
  0% {
    background-position: 110% 0;
  }
  100% {
    background-position: -110% 0;
  }
}

.vl-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px dashed var(--vl-sand);
  border-radius: var(--vl-radius);
  background: var(--vl-white);
  padding: 44px 28px;
  text-align: center;
}

.vl-empty-icon {
  width: 44px;
  height: auto;
  margin-bottom: 10px;
  opacity: 0.85;
}

.vl-empty-title {
  margin: 0;
  font-family: var(--vl-font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--vl-teal);
}

.vl-empty-text {
  margin: 0;
  max-width: 300px;
  color: var(--vl-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.vl-empty.error .vl-empty-title {
  color: var(--vl-error);
}

/* ---------- Map ---------- */

.vl-map-wrap {
  position: relative;
  min-height: 540px;
  background: var(--vl-cream);
}

.vl-map {
  position: absolute;
  inset: 0;
}

.vl-map .mapboxgl-ctrl-group {
  border-radius: var(--vl-radius-sm);
  box-shadow: var(--vl-shadow-soft);
  overflow: hidden;
}

.vl-map .mapboxgl-popup {
  z-index: 30;
}

.vl-map-chip {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--vl-line);
  border-radius: 999px;
  background: var(--vl-white);
  color: var(--vl-teal);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  padding: 9px 20px;
  cursor: pointer;
  box-shadow: var(--vl-shadow-lift);
  transition:
    background-color 140ms ease,
    transform 140ms ease;
}

.vl-map-chip:hover {
  background: var(--vl-teal-tint);
}

.vl-map-chip:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.vl-map-chip[hidden] {
  display: none;
}

.vl-map-empty {
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  z-index: 2;
  max-width: min(360px, calc(100% - 32px));
  border: 1px solid var(--vl-line);
  border-radius: var(--vl-radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--vl-muted);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  padding: 14px 20px;
  box-shadow: var(--vl-shadow-soft);
}

/* ---------- Markers ---------- */

/* The Mapbox Marker element itself must never get transforms or transitions:
   Mapbox positions it with an inline transform. Visuals live on the inner dot. */
.vl-marker-wrap {
  width: 34px;
  height: 34px;
  z-index: 1;
}

/* Badged providers stack above standard markers when pins overlap at low zoom,
   and render 40% larger than standard markers (34px -> 48px). */
.vl-marker-wrap.tier-gold {
  width: 48px;
  height: 48px;
  z-index: 3;
}

.vl-marker-wrap.tier-platinum {
  width: 48px;
  height: 48px;
  z-index: 4;
}

.vl-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 2px solid var(--vl-white);
  border-radius: 999px;
  background: var(--vl-teal);
  box-shadow: 0 3px 10px rgba(18, 51, 58, 0.35);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.vl-marker:hover {
  transform: scale(1.12);
}

.vl-marker::after {
  content: "";
  width: 17px;
  height: 11px;
  background: var(--vl-white);
  -webkit-mask: url("/locator/assets/icons/VI%20Icon_Green.svg") center / contain no-repeat;
  mask: url("/locator/assets/icons/VI%20Icon_Green.svg") center / contain no-repeat;
}

.vl-marker.gold {
  border-color: var(--vl-blush);
  background: linear-gradient(160deg, #c2a05a, var(--vl-gold-deep));
}

.vl-marker.platinum {
  border-color: var(--vl-blush);
  background: linear-gradient(160deg, #9fadb5, var(--vl-platinum-deep));
}

/* Tier markers swap the VI glyph for the Ascend trophy/diamond, kept as a
   white silhouette on the tier-colored disc, scaled up for the larger pin. */
.vl-marker.gold::after,
.vl-marker.platinum::after {
  width: 26px;
  height: 26px;
}

.vl-marker.gold::after {
  -webkit-mask-image: url("/locator/assets/icons/ascend-icon-gold.png");
  mask-image: url("/locator/assets/icons/ascend-icon-gold.png");
}

.vl-marker.platinum::after {
  -webkit-mask-image: url("/locator/assets/icons/ascend-icon-platinum.png");
  mask-image: url("/locator/assets/icons/ascend-icon-platinum.png");
}

.vl-marker-wrap.is-active {
  z-index: 6;
}

.vl-marker.active {
  transform: scale(1.22);
  box-shadow: 0 4px 14px rgba(18, 51, 58, 0.45);
}

.vl-marker.active::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 2px solid currentColor;
  color: var(--vl-teal);
  opacity: 0;
  animation: vl-pulse 1.8s ease-out infinite;
}

.vl-marker.gold.active::before {
  color: var(--vl-blush);
}

.vl-marker.platinum.active::before {
  color: var(--vl-blush);
}

.vl-user-marker-wrap {
  width: 24px;
  height: 24px;
  z-index: 5;
  pointer-events: none;
}

.vl-user-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 224, 201, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 2px 8px rgba(18, 51, 58, 0.22),
    0 0 0 5px rgba(255, 224, 201, 0.32);
}

.vl-user-marker::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--vl-teal);
}

.vl-user-marker::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(0, 85, 92, 0.2);
  border-radius: 999px;
}

@keyframes vl-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- Clusters ---------- */

.vl-cluster-wrap {
  z-index: 1;
}

.vl-cluster {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border: 2px solid var(--vl-white);
  border-radius: 999px;
  background: var(--vl-teal);
  color: var(--vl-white);
  font-family: var(--vl-font-body);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 5px rgba(28, 73, 81, 0.14),
    0 3px 10px rgba(18, 51, 58, 0.3);
  cursor: pointer;
  transition: box-shadow 160ms ease;
}

.vl-cluster:hover {
  box-shadow:
    0 0 0 7px rgba(28, 73, 81, 0.2),
    0 4px 12px rgba(18, 51, 58, 0.36);
}

.vl-cluster.md {
  min-width: 50px;
  height: 50px;
  font-size: 14.5px;
}

.vl-cluster.lg {
  min-width: 58px;
  height: 58px;
  font-size: 15.5px;
}

/* ---------- Popup ---------- */

.vl-popup .mapboxgl-popup-content {
  border-radius: var(--vl-radius-sm, 10px);
  box-shadow: 0 2px 6px rgba(28, 73, 81, 0.1), 0 14px 32px rgba(28, 73, 81, 0.16);
  padding: 14px 16px;
  font-family: "Gotham", "Helvetica Neue", Arial, sans-serif;
  min-width: 200px;
}

.vl-popup .mapboxgl-popup-close-button {
  font-size: 18px;
  color: #8d9794;
  right: 4px;
  top: 2px;
}

.vl-popup-name {
  margin: 0 8px 4px 0;
  font-family: "Gotham", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: #1c4951;
}

.vl-popup-address {
  margin: 0;
  color: #66726f;
  font-size: 12.5px;
  line-height: 1.45;
}

.vl-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 10px;
}

.vl-popup-badge {
  display: block;
  height: 30px;
  width: auto;
  margin-top: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .vl-layout {
    grid-template-columns: minmax(360px, 410px) minmax(0, 1fr);
  }

  .vl-panel-intro {
    padding: 20px;
  }

  .vl-controls {
    padding: 20px;
  }

  .vl-results {
    padding: 16px 20px 26px;
  }
}

@media (max-width: 860px) {
  .vl-shell {
    height: auto;
    min-height: auto;
  }

  .vl-title {
    font-size: 21px;
  }

  .vl-subtitle {
    font-size: 12px;
  }

  .vl-layout {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .vl-panel {
    max-height: none;
    border-right: 0;
  }

  .vl-map-wrap {
    order: -1;
    min-height: 42vh;
  }

  .vl-controls {
    gap: 14px;
    padding: 16px;
  }

  .vl-search-row {
    flex-direction: column;
    gap: 8px;
  }

  .vl-radius-row {
    flex-wrap: wrap;
  }

  .vl-radius-row .vl-select {
    flex: 1 1 130px;
  }

  .vl-card {
    padding: 16px;
  }

  .vl-results {
    padding: 14px 16px 24px;
  }
}
