/* Visuproof control contract v1 — loaded after frontend.css.
 * Layouts may change the public --cvr-control-* tokens. Component geometry and
 * field/icon semantics belong to the plugin, not Elementor's global buttons.
 * !important is limited to the geometry/typography boundary, never a global reset.
 */
:root {
  --cvr-control-action-size: 13px;
  --cvr-control-field-size: 12px;
  --cvr-control-icon-size: 22px;
  --cvr-control-target: 48px;
}

/* Explicit action class works on links and native buttons. No site-wide selector. */
.cvr-button.cvr-button {
  box-sizing: border-box;
  font-size: var(--cvr-control-action-size) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: .06em !important;
  min-height: var(--cvr-control-target);
  padding: .8rem 1.25rem !important;
  text-transform: uppercase !important;
}
.cvr-button.cvr-button--primary { background: var(--cvr-accent, #a16207); color: #fff; }
.cvr-button.cvr-button--primary:is(:hover, :focus-visible) { background: var(--cvr-accent-hover, #825106); color: #fff; }
.cvr-button.cvr-button--secondary { background: transparent; color: var(--cvr-navy, #173b56); }
.cvr-button.cvr-button--secondary:is(:hover, :focus-visible) { background: var(--cvr-navy, #173b56); color: #fff; }
.cvr-button.cvr-button:focus-visible { outline: 3px solid var(--cvr-accent, #a16207); outline-offset: 3px; }
.cvr-button.cvr-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }

/* These are fields, even though native buttons open their options. */
.cvr-search .cvr-field button.cvr-multiselect__trigger,
.cvr-search .cvr-field button.cvr-multiselect__trigger:is(:hover, :focus, :active) {
  background: #fff;
  border: 1px solid #d3dade;
  box-shadow: none;
  color: #17242d;
  margin: 0;
  font-family: var(--cvr-body, Montserrat, Arial, sans-serif);
  font-size: var(--cvr-control-field-size) !important;
  font-weight: 300;
  line-height: 1.6 !important;
  padding: 0 .9rem !important;
  text-transform: none;
  letter-spacing: normal;
}

/* The filter launcher is navigation, with a stable label and visible icons. */
.cvr-search .cvr-feature-launch-row button.cvr-feature-launch {
  background: var(--cvr-navy-deep, #102c40);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: none;
  color: #fff;
  font-size: var(--cvr-control-field-size) !important;
  font-weight: 600;
  line-height: 1.4 !important;
  letter-spacing: .03em;
  min-height: var(--cvr-control-target);
  padding: .9rem 1.25rem !important;
  text-transform: uppercase;
}
.cvr-search .cvr-feature-launch-row button.cvr-feature-launch:is(:hover, :focus-visible) {
  background: var(--cvr-navy, #173b56);
  color: #fff;
}
.cvr-search .cvr-feature-launch-row button.cvr-feature-launch:focus-visible,
.cvr-feature-dialog .cvr-feature-sheet__footer button.cvr-feature-reset:focus-visible {
  outline: 3px solid var(--cvr-accent, #a16207);
  outline-offset: 3px;
}

/* Icon-only and media controls must never inherit large CTA padding/type. */
.cvr-card button:is(.cvr-card__favorite, .cvr-card__gallery-button),
.cvr-feature-dialog .cvr-feature-sheet__header button.cvr-icon-button,
.cvr-detail button:is(.cvr-lightbox__nav, .cvr-lightbox__close, .cvr-property-tools__close),
.cvr-area-comparison .cvr-area-comparison__selector button.cvr-area-comparison__swap,
.cvr-detail .cvr-gallery__thumbs button {
  box-sizing: border-box;
  padding: 0 !important;
  font-size: var(--cvr-control-icon-size) !important;
  line-height: 1 !important;
  text-transform: none;
  letter-spacing: normal;
  flex-shrink: 0;
}
.cvr-card button:is(.cvr-card__favorite, .cvr-card__gallery-button) svg,
.cvr-feature-dialog .cvr-feature-sheet__header button.cvr-icon-button svg,
.cvr-detail button:is(.cvr-lightbox__nav, .cvr-property-tools__close) svg {
  display: block;
  flex: 0 0 var(--cvr-control-icon-size);
  height: var(--cvr-control-icon-size);
  width: var(--cvr-control-icon-size);
  max-width: none;
}
.cvr-detail button.cvr-lightbox__close { font-size: 28px !important; }
.cvr-longform-guide button.cvr-longform-guide__print {
  font-size: var(--cvr-control-action-size) !important;
  line-height: 1.4 !important;
  padding: .75rem 1rem !important;
  min-height: var(--cvr-control-target);
}
.cvr-feature-dialog .cvr-feature-sheet__footer button.cvr-feature-reset {
  font-size: var(--cvr-control-action-size) !important;
  line-height: 1.4 !important;
  min-height: var(--cvr-control-target);
  padding: .75rem 1.25rem !important;
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cvr-detail button.cvr-gallery__launch,
.cvr-detail button.cvr-property-tools__button {
  font-size: var(--cvr-control-field-size) !important;
  line-height: 1.4 !important;
  padding: .65rem !important;
  text-transform: none;
  letter-spacing: normal;
}
@media (prefers-reduced-motion: reduce) {
  .cvr-button.cvr-button { transition: none; }
  .cvr-button.cvr-button:hover { transform: none; }
}

.cvr-area-comparison .cvr-area-comparison__selector select,
.cvr-area-comparison .cvr-area-comparison__selector button {
  background: #fff;
  border: 1px solid rgba(21, 58, 85, .3);
  border-radius: 0;
  color: #173b56;
  cursor: pointer;
  font-family: var(--cvr-body, Montserrat, "Helvetica Neue", Arial, sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.5;
  min-height: 48px;
  min-width: 0;
  margin: 0;
  width: 100%;
}

.cvr-area-comparison .cvr-area-comparison__selector select { padding: .65rem 2.25rem .65rem .8rem; }
.cvr-area-comparison .cvr-area-comparison__selector button {
  align-items: center;
  appearance: none;
  box-shadow: none;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  text-decoration: none;
  text-shadow: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.cvr-area-comparison .cvr-area-comparison__selector .cvr-area-comparison__apply {
  background: var(--cvr-navy-deep);
  border-color: var(--cvr-navy-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  padding: .65rem 1.25rem;
  text-transform: uppercase;
}
.cvr-area-comparison .cvr-area-comparison__selector .cvr-area-comparison__apply:is(:hover, :active) {
  background: var(--cvr-comparison-accent, var(--cvr-guide-gold));
  border-color: var(--cvr-comparison-accent, var(--cvr-guide-gold));
  color: #fff;
}
.cvr-area-comparison .cvr-area-comparison__selector .cvr-area-comparison__swap {
  border-color: var(--cvr-comparison-accent, var(--cvr-guide-gold));
  color: var(--cvr-navy);
  padding: 0;
}
.cvr-area-comparison .cvr-area-comparison__selector .cvr-area-comparison__swap:is(:hover, :active) {
  background: var(--cvr-navy-deep);
  border-color: var(--cvr-navy-deep);
  color: #fff;
}
.cvr-area-comparison .cvr-area-comparison__swap svg {
  display: block;
  flex: 0 0 20px;
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  width: 20px;
}
.cvr-area-comparison .cvr-area-comparison__selector button[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .cvr-area-comparison .cvr-area-comparison__selector button { transition: none; }
}
.cvr-area-comparison .cvr-area-comparison__selector :is(select, button):focus-visible { outline: 3px solid var(--cvr-comparison-accent, var(--cvr-guide-gold)); outline-offset: 2px; }

.cvr-search .cvr-field .cvr-multiselect__trigger:focus-visible,
.cvr-search .cvr-control :is(input, select):focus-visible {
  outline: 2px solid var(--cvr-accent);
  outline-offset: 2px;
}
.cvr-feature-dialog .cvr-feature-sheet__header .cvr-icon-button {
  background: #fff;
  border: 1px solid var(--cvr-border);
  border-radius: 2px;
  box-shadow: none;
  color: var(--cvr-navy);
  height: 48px;
  min-width: 48px;
  padding: 0;
  width: 48px;
}
.cvr-feature-dialog .cvr-feature-sheet__header .cvr-icon-button:is(:hover, :focus-visible) {
  background: var(--cvr-navy);
  color: #fff;
}
.cvr-feature-dialog .cvr-feature-sheet__header .cvr-icon-button svg {
  flex: 0 0 var(--cvr-control-icon-size);
  height: var(--cvr-control-icon-size);
  width: var(--cvr-control-icon-size);
  stroke: currentColor;
  stroke-width: 2;
}

/* Keep compact field/icon controls independent of global Elementor CTA styles. */
.cvr-feature-dialog .cvr-feature-reset,
.cvr-feature-dialog .cvr-feature-reset:disabled {
  background: var(--cvr-accent);
  color: #fff;
}
.cvr-feature-dialog .cvr-feature-reset:not(:disabled):is(:hover, :focus-visible) {
  background: var(--cvr-navy);
  color: #fff;
}
.cvr-feature-dialog .cvr-feature-search {
  gap: .65rem;
  padding: 0 .9rem;
}
.cvr-feature-dialog .cvr-feature-search > svg {
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
}
.cvr-feature-dialog .cvr-feature-search input[type="search"] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  flex: 1 1 0%;
  margin: 0;
  min-width: 0;
  outline: none !important;
  padding: .75rem 0;
  width: 100%;
}
.cvr-card button:is(.cvr-card__favorite, .cvr-card__gallery-button) {
  background: rgba(10, 37, 53, .78);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  box-shadow: none;
  color: #fff;
  height: 46px;
  min-width: 46px;
  padding: 0;
  width: 46px;
}
.cvr-card button:is(.cvr-card__favorite, .cvr-card__gallery-button):is(:hover, :focus, :active) {
  background: var(--cvr-navy);
  color: #fff;
}
.cvr-card button:is(.cvr-card__favorite, .cvr-card__gallery-button):focus-visible {
  outline: 2px solid var(--cvr-accent);
  outline-offset: 2px;
}
.cvr-card button.cvr-card__favorite.is-active {
  background: var(--cvr-accent);
  border-color: var(--cvr-accent);
}
.cvr-card button:is(.cvr-card__favorite, .cvr-card__gallery-button) svg {
  flex: 0 0 var(--cvr-control-icon-size);
  height: var(--cvr-control-icon-size);
  width: var(--cvr-control-icon-size);
}
@media (max-width: 767px) {
  .cvr-card button:is(.cvr-card__favorite, .cvr-card__gallery-button) {
    height: 48px;
    min-width: 48px;
    width: 48px;
  }
}

/* Shared compact controls: separate media/navigation from global CTA buttons. */
.cvr-detail > .cvr-detail-hero > .cvr-gallery > .cvr-gallery__stage {
  height: var(--cvr-gallery-height, 90dvh);
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}
.cvr-detail .cvr-gallery__open { cursor: default; }
.cvr-detail .cvr-gallery__launch {
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 2px;
  box-shadow: none;
  min-height: 44px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
.cvr-detail .cvr-gallery__launch:is(:hover, :focus) { background: var(--cvr-navy); color: #fff; }
.cvr-detail .cvr-gallery__launch svg { flex: 0 0 var(--cvr-control-icon-size); width: var(--cvr-control-icon-size); height: var(--cvr-control-icon-size); }
.cvr-detail .cvr-gallery__thumbs button {
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.cvr-detail :is(.cvr-lightbox__nav, .cvr-lightbox__close, .cvr-property-tools__close) {
  background: #fff;
  border: 1px solid var(--cvr-border);
  box-shadow: none;
  color: var(--cvr-navy-deep);
  padding: 0;
  min-width: 44px;
  line-height: 1;
}
.cvr-detail :is(.cvr-lightbox__nav, .cvr-lightbox__close) { border-radius: 50%; }
.cvr-detail .cvr-lightbox__close { font-size: 28px; width: 44px; height: 44px; }
.cvr-detail :is(.cvr-lightbox__nav, .cvr-lightbox__close, .cvr-property-tools__close):is(:hover, :focus) {
  background: var(--cvr-accent); color: #fff;
}
.cvr-detail :is(.cvr-lightbox__nav, .cvr-property-tools__close) svg {
  flex: 0 0 var(--cvr-control-icon-size); width: var(--cvr-control-icon-size); height: var(--cvr-control-icon-size);
}
.cvr-detail .cvr-property-tools__button {
  background: var(--cvr-surface);
  color: var(--cvr-navy);
  padding: .65rem;
  font-size: 12px;
  line-height: 1.4;
}
.cvr-detail .cvr-property-tools__button:is(:hover, :focus, [aria-expanded="true"]) {
  background: var(--cvr-navy); color: #fff;
}
.cvr-detail .cvr-property-tools__button svg { flex: 0 0 20px; width: 20px; height: 20px; }
.cvr-detail :is(.cvr-gallery__launch, .cvr-lightbox__nav, .cvr-lightbox__close, .cvr-property-tools__button, .cvr-property-tools__close):focus-visible {
  outline: 3px solid var(--cvr-accent); outline-offset: 2px;
}
.cvr-area-map .cvr-area-map__view-switch :where(button, a):is(:hover, :focus),
.cvr-guide-map .cvr-guide-map__view-switch button:is(:hover, :focus) {
  background: var(--cvr-canvas, #f5f3ee); color: #102c40;
}
.cvr-area-map .cvr-area-map__view-switch :where(button, a)[aria-pressed="true"],
.cvr-guide-map .cvr-guide-map__view-switch button[aria-pressed="true"] {
  background: var(--cvr-navy-deep, #082433); color: #fff;
}

.cvr-longform-guide :is(.cvr-longform-guide__print, .cvr-purchase-calculator__reset):focus-visible {
  background: var(--cvr-longform-navy); color: #fff;
}
.cvr-area-guide-single .cvr-area-guide-single__media-hero-control svg { flex: 0 0 24px; }
