/*
 * VoltNear enhancements for the Framer pages. Only adds what the static export
 * cannot do (search controls, data-driven results, owner CTAs). Every value
 * comes from the Framer design tokens: Inter, #162d25 ink, #087a50 green,
 * #66736c muted, #dde4db borders, 4px radii.
 */

/* Framer's free-plan badge is platform branding, not part of the VoltNear design. */
#__framer-badge-container {
  display: none !important;
}

/* Swap the static demo cards for the data-driven grid once it has rendered. */
html.vn-results-ready .framer-h0qnie > .framer-1v5nmes:not([data-vn-results]),
html.vn-home-results .framer-stzfj0:not([data-vn-results]) {
  display: none !important;
}

.vn-x-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.vn-x-control {
  height: 44px;
  min-width: 0;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #dde4db;
  border-radius: 4px;
  color: #162d25;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-feature-settings: "blwf" on, "cv03" on, "cv04" on, "cv09" on, "cv11" on;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4em;
  cursor: pointer;
}
select.vn-x-control {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23162d25' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
button.vn-x-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vn-x-control:hover {
  border-color: #162d25;
}
.vn-x-control:focus-visible {
  outline: 2px solid #087a50;
  outline-offset: 2px;
}
.vn-x-control[aria-pressed="true"] {
  border-color: #087a50;
  box-shadow: 0 0 0 1px #087a50;
  color: #087a50;
}
.vn-x-control[disabled] {
  opacity: 0.5;
  cursor: progress;
}

/* Touch devices: 16px stops iOS zooming into the sort/filter selects. */
@media (max-width: 1199.98px), (pointer: coarse) {
  select.vn-x-control {
    font-size: 16px;
  }
}

/* Hit areas for the Framer menu: at least 44px tall without moving anything.
   Padding on the inline links grows only the clickable box, and the toggle's
   ::after extends past its 8px padding (the button is already position:relative). */
nav.framer-v-1udcdiq .framer-iq39vj p > a.framer-text {
  padding-block: 14px;
}
nav.framer-v-1udcdiq button.framer-twvxc2::after,
nav.framer-v-15xouuv button.framer-twvxc2::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.vn-x-status {
  width: 100%;
  margin: 0;
  min-height: 1.4em;
}

.vn-x-map {
  width: 100%;
  height: 360px;
  border-radius: 4px;
  overflow: hidden;
  background: #e8eee6;
}
@media (max-width: 809.98px) {
  .vn-x-controls > select.vn-x-control {
    flex: 1 1 calc(50% - 6px);
  }
  .vn-x-controls > button.vn-x-control {
    flex: 1 1 auto;
    justify-content: center;
  }
  .vn-x-map {
    height: 280px;
  }
}

.vn-x-empty {
  grid-column: 1 / -1;
  width: 100%;
}

/* Cards without a photo keep the photo slot's size. */
.vn-x-nophoto {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #e8eee6;
  color: #66736c;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

/* Owners page: CTA row and listing steps */
.vn-x-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.vn-x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 22px;
  border-radius: 4px;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4em;
  text-decoration: none;
  white-space: nowrap;
}
.vn-x-btn-dark {
  background: #162d25;
  color: #fff;
}
.vn-x-btn-outline {
  background: #fff;
  color: #162d25;
  box-shadow: inset 0 0 0 1px #dde4db;
}
.vn-x-btn:focus-visible {
  outline: 2px solid #087a50;
  outline-offset: 2px;
}
.vn-x-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  width: 100%;
}
@media (max-width: 809.98px) {
  .vn-x-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
.vn-x-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #dde4db;
  padding-top: 20px;
}
.vn-x-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-top: 40px;
}

/* Framer adds paragraph spacing to text that is not a first child; Framer's own
   markup avoids it by wrapping every text block, so neutralise it here. */
.vn-x-section > .framer-text,
.vn-x-step > .framer-text,
p.framer-text.vn-x-status,
p.framer-text.vn-x-empty {
  margin: 0 !important;
}
