.flash-properties-page {
  background: #fff;
}

.flash-properties-hero {
  padding: 180px 0 46px;
  background:
    linear-gradient(rgba(5, 38, 61, 0.72), rgba(5, 38, 61, 0.72)),
    var(--flash-properties-hero-image) center / cover no-repeat;
  color: #fff;
}

.flash-properties-hero .container,
.flash-properties-results .container {
  max-width: 1400px;
}

.flash-properties-hero h1 {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.05;
  text-align: center;
}

.flash-properties-search {
  width: min(720px, 100%);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--flash-color-darkblue);
}

.flash-properties-search input {
  width: 100%;
  height: 58px;
  border: 0 !important;
  outline: 0;
  background: transparent;
}

.flash-properties-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.flash-properties-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto auto auto;
  gap: 12px;
  align-items: center;
}

.flash-properties-filter-row select,
.flash-filter-popover > button,
.flash-properties-submit {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0 42px 0 16px;
  background: #fff;
  color: var(--flash-color-darkblue);
  font-weight: 600;
}

.flash-properties-filter-row select {
  width: 100%;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--flash-color-darkblue) 50%),
    linear-gradient(135deg, var(--flash-color-darkblue) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 15px) 21px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.flash-filter-select-shell {
  position: relative;
  min-width: 0;
}

.flash-filter-select-shell select {
  color: transparent;
}

.flash-filter-select-shell select option {
  color: var(--flash-color-darkblue);
  padding-left: 20px;
}

.flash-filter-select-display {
  position: absolute;
  inset: 0 42px 0 16px;
  display: flex;
  align-items: center;
  color: var(--flash-color-darkblue);
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flash-filter-popover {
  position: relative;
}

.flash-filter-popover > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-right: 14px;
}

.flash-filter-chevron {
  margin-left: auto;
  font-size: 22px;
}

.flash-filter-popover > button[aria-expanded="true"] .flash-filter-chevron {
  transform: rotate(180deg);
}

.flash-filter-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: 360px;
  padding: 28px 22px 22px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(5, 38, 61, 0.2);
  color: var(--flash-color-darkblue);
}

.flash-size-panel {
  width: 430px;
}

.flash-filter-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--flash-color-darkblue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.flash-filter-panel-close:hover,
.flash-filter-panel-close:focus-visible {
  background: var(--flash-color-gray);
}

.flash-dual-slider + .flash-dual-slider {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e5e8ea;
}

.flash-dual-slider h3 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.flash-slider-values {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 10px;
}

.flash-range-wrap {
  position: relative;
  height: 30px;
  background: linear-gradient(
      to right,
      var(--flash-color-lightblue) 0,
      var(--flash-color-lightblue) var(--flash-range-start, 0%),
      var(--flash-color-blue) var(--flash-range-start, 0%),
      var(--flash-color-blue) var(--flash-range-end, 100%),
      var(--flash-color-lightblue) var(--flash-range-end, 100%),
      var(--flash-color-lightblue) 100%
    )
    center / 100% 6px no-repeat;
  border-radius: 999px;
}

.flash-range-wrap input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: transparent;
}

.flash-range-wrap input::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.flash-range-wrap input::-moz-range-track {
  height: 6px;
  background: transparent;
}

.flash-range-wrap input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  background: var(--flash-color-darkblue);
  box-shadow: 0 1px 4px rgba(5, 38, 61, 0.25);
  cursor: grab;
  pointer-events: auto;
  appearance: none;
}

.flash-range-wrap input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--flash-color-darkblue);
  box-shadow: 0 1px 4px rgba(5, 38, 61, 0.25);
  cursor: grab;
  pointer-events: auto;
}

.flash-properties-submit {
  padding: 0 20px;
  background: var(--flash-color-lightblue);
  color: var(--flash-color-darkblue);
  border-color: var(--flash-color-lightblue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.flash-properties-submit .material-symbols-outlined {
  color: var(--flash-color-darkblue);
}

.flash-properties-mobile-filter-toggle {
  display: none;
}

.flash-properties-results {
  padding: 68px 0 90px;
}

.flash-properties-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  font-weight: 700;
}

.flash-properties-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.flash-properties-toolbar button,
.flash-properties-toolbar select {
  border: 1px solid #d9e0e4;
  border-radius: 999px;
  background: #fff;
  padding: 11px 16px;
  color: var(--flash-color-darkblue);
}

.flash-properties-toolbar button {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.flash-properties-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flash-properties-empty {
  text-align: center;
  padding: 60px 20px;
}

.flash-properties-loader {
  width: 38px;
  height: 38px;
  border: 4px solid #e4edf2;
  border-top-color: var(--flash-color-blue);
  border-radius: 50%;
  margin: 40px auto;
  animation: flashPropertiesSpin 0.8s linear infinite;
}

@keyframes flashPropertiesSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1199px) {
  .flash-properties-filter-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .flash-filter-popover > button,
  .flash-properties-submit {
    width: 100%;
  }

  .flash-properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .flash-properties-hero {
    padding: 118px 0 36px;
  }

  .flash-properties-hero h1 {
    margin: 0 auto 2rem auto;
    text-align: center;
  }

  .flash-properties-mobile-filter-toggle {
    width: 100%;
    min-height: 50px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: #fff;
    color: var(--flash-color-darkblue);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .flash-mobile-filter-chevron {
    justify-self: end;
    transition: transform 0.2s ease;
  }

  .flash-properties-mobile-filter-toggle[aria-expanded="true"]
    .flash-mobile-filter-chevron {
    transform: rotate(180deg);
  }

  .flash-properties-filter-row {
    display: none;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .flash-properties-filter-row.is-mobile-open {
    display: grid;
  }

  .flash-filter-panel,
  .flash-size-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    width: auto;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .flash-properties-toolbar {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .flash-properties-toolbar-actions {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
  }

  .flash-properties-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .flash-properties-hero h1 {
    margin: 0 auto 4rem auto;
  }
}

.flash-properties-filter-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto auto auto;
  gap: 12px;
  align-items: center;
}

@media (min-width: 768px) {
  .flash-properties-filter-row {
    display: contents;
  }
}

.flash-filter-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--flash-color-darkblue);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.flash-filter-popover > button[aria-expanded="true"] .flash-filter-caret,
.flash-properties-mobile-filter-toggle[aria-expanded="true"]
  .flash-filter-caret {
  transform: rotate(180deg);
}

.flash-properties-submit {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.flash-properties-submit:hover,
.flash-properties-submit:focus-visible {
  background: color-mix(in srgb, var(--flash-color-lightblue) 78%, white);
  border-color: color-mix(in srgb, var(--flash-color-lightblue) 78%, white);
  color: var(--flash-color-darkblue);
  transform: none;
  box-shadow: none;
}

.flash-range-wrap {
  background: linear-gradient(
      to right,
      var(--flash-color-gray) 0,
      var(--flash-color-gray) var(--flash-range-start, 0%),
      var(--flash-color-blue) var(--flash-range-start, 0%),
      var(--flash-color-blue) var(--flash-range-end, 100%),
      var(--flash-color-gray) var(--flash-range-end, 100%),
      var(--flash-color-gray) 100%
    )
    center / 100% 6px no-repeat;
}

.flash-range-wrap input {
  top: 50%;
  bottom: auto;
  height: 20px;
  transform: translateY(-50%);
}

.flash-range-wrap input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 3px solid var(--flash-color-darkblue);
  background: #fff;
}

.flash-range-wrap input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--flash-color-darkblue);
  background: #fff;
  box-sizing: border-box;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .flash-properties-filter-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flash-properties-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .flash-properties-filter-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
  }

  .flash-properties-filter-row {
    width: 100%;
    margin-top: 0;
  }

  .flash-properties-submit {
    display: flex;
    width: 100%;
    order: 2;
  }

  .flash-properties-mobile-filter-toggle {
    background: #fff;
  }

  .flash-properties-mobile-filter-toggle.is-expanded,
  .flash-properties-mobile-filter-toggle[aria-expanded="true"] {
    background: var(--flash-color-gray);
  }
}

@media (min-width: 768px) {
  .flash-properties-hero h1 {
    margin: 0 auto 4rem auto;
  }
}

.flash-properties-filter-row {
  grid-template-columns:
    minmax(180px, 1fr) minmax(210px, 1.15fr)
    158px 158px minmax(138px, auto) minmax(150px, auto);
}

.flash-filter-control,
.flash-properties-sort-control {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.flash-filter-control select,
.flash-properties-sort-control select {
  width: 100%;
  appearance: none;
  background-image: none !important;
  cursor: pointer;
}

.flash-filter-control select {
  padding-left: 46px;
  padding-right: 34px;
}

.flash-filter-control-icon {
  flex: 0 0 auto;
  font-size: 21px;
  color: var(--flash-color-darkblue);
}

.flash-filter-control > .flash-filter-control-icon {
  position: absolute;
  left: 16px;
  z-index: 2;
  pointer-events: none;
}

.flash-filter-popover > button .flash-filter-control-icon {
  position: static;
}

.flash-filter-select-display {
  inset: 0 34px 0 46px;
}

.flash-filter-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--flash-color-darkblue);
  transition: transform 0.2s ease;
  transform-origin: center;
  pointer-events: none;
}

.flash-filter-control > .flash-filter-caret,
.flash-properties-sort-control > .flash-filter-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -3px;
}

.flash-filter-control.is-open > .flash-filter-caret,
.flash-properties-sort-control.is-open > .flash-filter-caret,
.flash-filter-popover > button[aria-expanded="true"] .flash-filter-caret,
.flash-properties-mobile-filter-toggle[aria-expanded="true"]
  .flash-filter-caret {
  transform: rotate(180deg);
}

.flash-filter-popover > button {
  justify-content: flex-start;
}
.flash-filter-popover > button .flash-filter-caret {
  margin-left: auto;
}

.flash-properties-mobile-filter-toggle {
  grid-template-columns: auto 1fr auto auto;
}

.flash-properties-filter-count {
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--flash-color-lightblue);
  color: var(--flash-color-darkblue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}
.flash-properties-filter-count[hidden] {
  display: none !important;
}

.flash-properties-toolbar-actions {
  margin-left: auto;
}

.flash-properties-sort-control select {
  border: 1px solid #d9e0e4;
  border-radius: 999px;
  background: #fff;
  padding: 11px 42px 11px 16px;
  color: var(--flash-color-darkblue);
}

.flash-range-wrap {
  background: linear-gradient(
      to right,
      var(--flash-color-gray) 0,
      var(--flash-color-gray) var(--flash-range-start, 0%),
      var(--flash-color-blue) var(--flash-range-start, 0%),
      var(--flash-color-blue) var(--flash-range-end, 100%),
      var(--flash-color-gray) var(--flash-range-end, 100%),
      var(--flash-color-gray) 100%
    )
    center / 100% 6px no-repeat;
}

@media (max-width: 1199px) {
  .flash-properties-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .flash-properties-filter-row {
    grid-template-columns: 1fr;
  }
  .flash-properties-toolbar {
    align-items: flex-start;
  }
  .flash-properties-toolbar-actions {
    margin-left: auto;
  }

  .flash-properties-search {
    margin: 0 auto 14px;
  }

  .flash-properties-results {
    padding: 28px 0 44px;
  }
}

/* ==================================================
   PROPERTIES PAGE v0.4.0 - predictive search + chips
================================================== */
.flash-properties-predictive {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto 14px;
  z-index: 30;
}

.flash-properties-predictive .flash-properties-search {
  width: 100%;
  margin: 0;
}

.flash-properties-predictive-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(520px, 65vh);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgba(5, 38, 61, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(5, 38, 61, 0.18);
  color: var(--flash-color-darkblue);
  text-align: left;
}

.flash-properties-predictive-panel[hidden] {
  display: none !important;
}

.flash-properties-predictive-panel section + section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(5, 38, 61, 0.09);
}

.flash-properties-predictive-panel h3 {
  margin: 0 0 7px;
  padding: 0 8px;
  color: var(--flash-color-darkblue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.flash-predictive-choice,
.flash-predictive-address {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  color: var(--flash-color-darkblue);
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.flash-predictive-choice:hover,
.flash-predictive-address:hover,
.flash-predictive-address:focus-visible {
  background: var(--flash-color-gray);
  color: var(--flash-color-darkblue);
}

.flash-predictive-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--flash-color-blue);
}

.flash-properties-predictive-loading,
.flash-properties-predictive-empty {
  padding: 18px 10px;
  color: var(--flash-color-darkgray);
  text-align: center;
}

.flash-properties-filter-layout {
  grid-template-columns:
    minmax(150px, 0.9fr) minmax(225px, 1.35fr)
    150px 150px minmax(130px, auto) minmax(145px, auto) auto;
}

.flash-filter-control-type {
  min-width: 225px;
}

.flash-filter-control select option,
.flash-properties-sort-control select option {
  padding-left: 4px;
  text-indent: 0;
}

.flash-properties-active-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 28px;
}

.flash-properties-active-filters[hidden] {
  display: none !important;
}

.flash-properties-filter-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--flash-color-gray);
  color: var(--flash-color-darkblue);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.flash-properties-filter-chip .material-symbols-outlined {
  font-size: 18px;
}

.flash-properties-filter-chip:hover,
.flash-properties-filter-chip:focus-visible {
  background: color-mix(
    in srgb,
    var(--flash-color-gray) 80%,
    var(--flash-color-lightblue)
  );
  color: var(--flash-color-darkblue);
  transform: none;
  box-shadow: none;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .flash-properties-filter-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flash-filter-control-type {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .flash-properties-predictive {
    width: 100%;
  }

  .flash-properties-predictive-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 150px;
    max-height: calc(100vh - 180px);
  }

  .flash-filter-control-type {
    min-width: 0;
  }

  .flash-properties-active-filters {
    margin-bottom: 20px;
  }
}

/* ==================================================
   PROPERTIES PAGE v0.4.1 - automatic filters + URL state
================================================== */
.flash-properties-filter-layout {
  grid-template-columns:
    minmax(120px, 0.6fr) minmax(190px, 1fr) minmax(160px, 0.8fr)
    minmax(205px, 1fr) minmax(130px, auto) minmax(145px, auto);
}

.flash-filter-type-popover {
  min-width: 190px;
}

.flash-filter-type-popover > button {
  width: 100%;
}

.flash-filter-control-compact:nth-of-type(3) {
  min-width: 160px;
}

.flash-filter-control-compact:nth-of-type(4) {
  min-width: 205px;
}

.flash-property-types-panel {
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, 70vh);
  overflow-y: auto;
}

.flash-property-types-panel h3 {
  margin: 0 38px 12px 0;
  color: var(--flash-color-darkblue);
  font-size: 1rem;
}

.flash-property-types-list {
  display: grid;
  gap: 3px;
}

.flash-property-type-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--flash-color-darkblue);
  cursor: pointer;
}

.flash-property-type-choice:hover {
  background: var(--flash-color-gray);
}

.flash-property-type-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--flash-color-blue);
}

.flash-filter-control select option,
.flash-properties-sort-control select option {
  margin: 0;
  padding: 4px 8px !important;
  text-indent: 0 !important;
}

.flash-properties-results {
  padding: 24px 0 90px;
}

.flash-properties-submit {
  display: none !important;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .flash-properties-filter-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flash-filter-control-mode,
  .flash-filter-type-popover,
  .flash-filter-control-compact:nth-of-type(3),
  .flash-filter-control-compact:nth-of-type(4) {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .flash-filter-control-mode,
  .flash-filter-type-popover,
  .flash-filter-control-compact:nth-of-type(3),
  .flash-filter-control-compact:nth-of-type(4) {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .flash-property-types-panel {
    width: 100%;
  }

  .flash-properties-results {
    padding: 24px 0 56px;
  }
}

/* ==================================================
   PROPERTIES PAGE v0.4.2 refinements
================================================== */
.flash-properties-filter-layout {
  grid-template-columns:
    170px minmax(190px, 1fr) 170px 170px minmax(130px, auto)
    minmax(145px, auto);
}

.flash-filter-control-mode,
.flash-filter-control-compact:nth-of-type(3),
.flash-filter-control-compact:nth-of-type(4) {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
}

.flash-properties-predictive-panel {
  padding-top: 50px;
}

.flash-properties-predictive-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--flash-color-darkblue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.flash-properties-predictive-close:hover,
.flash-properties-predictive-close:focus-visible {
  background: var(--flash-color-gray);
}

@media (max-width: 1199px) and (min-width: 768px) {
  .flash-filter-control-mode,
  .flash-filter-control-compact:nth-of-type(3),
  .flash-filter-control-compact:nth-of-type(4) {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .flash-filter-type-popover {
    position: relative;
  }

  .flash-filter-type-popover .flash-property-types-panel {
    left: 0;
    right: auto;
    width: 100%;
    max-width: 100%;
  }
}

/* ==================================================
   PROPERTIES PAGE v0.4.3 refinements
================================================== */
/* Keep the four primary filter controls identical in desktop width. */
.flash-properties-filter-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(130px, auto) minmax(
      145px,
      auto
    );
}

.flash-filter-control-mode,
.flash-filter-type-popover,
.flash-filter-control-compact:nth-of-type(3),
.flash-filter-control-compact:nth-of-type(4) {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.flash-filter-type-popover .flash-property-types-panel {
  left: 0;
  right: auto;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Tablet: two deliberate rows of three controls. */
@media (max-width: 1199px) and (min-width: 768px) {
  .flash-properties-filter-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flash-filter-control-mode,
  .flash-filter-type-popover,
  .flash-filter-control-compact:nth-of-type(3),
  .flash-filter-control-compact:nth-of-type(4),
  .flash-filter-popover {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* Mobile: every filter fills the row and the property-type panel has equal side margins. */
@media (max-width: 767px) {
  .flash-filter-control-mode,
  .flash-filter-type-popover,
  .flash-filter-control-compact:nth-of-type(3),
  .flash-filter-control-compact:nth-of-type(4),
  .flash-filter-popover {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .flash-filter-type-popover .flash-property-types-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    width: auto;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }
}

/* v0.4.4 mobile filter modal and predictive refinements */
.flash-properties-filter-modal {
  display: contents;
}
.flash-properties-filter-modal-backdrop,
.flash-properties-filter-modal-header,
.flash-properties-filter-modal-footer {
  display: none;
}
.flash-properties-filter-modal-dialog,
.flash-properties-filter-modal-body {
  display: contents;
}
.flash-filter-type-popover {
  flex: 1.18 1 0;
}
.flash-filter-control-mode,
.flash-filter-control-compact:nth-of-type(3),
.flash-filter-control-compact:nth-of-type(4) {
  flex: 1 1 0;
}
.flash-filter-control,
.flash-filter-popover > button {
  gap: 12px;
}

@media (max-width: 767px) {
  body.flash-properties-modal-open {
    overflow: hidden;
  }
  .flash-properties-filter-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
  }
  .flash-properties-filter-modal.is-open {
    display: block;
  }
  .flash-properties-filter-modal-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(5, 38, 61, 0.58);
  }
  .flash-properties-filter-modal-dialog {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 12px;
    inset-block-start: 72px;
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(5, 38, 61, 0.28);
  }
  .flash-properties-filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--flash-color-gray, #e0e8eb);
  }
  .flash-properties-filter-modal-header h2 {
    margin: 0;
    color: var(--flash-color-darkblue);
    font-size: 1.25rem;
  }
  .flash-properties-filter-modal-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--flash-color-gray, #e0e8eb);
    color: var(--flash-color-darkblue);
    cursor: pointer;
  }
  .flash-properties-filter-modal-body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 18px 22px;
  }
  .flash-properties-filter-modal-footer {
    display: block;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--flash-color-gray, #e0e8eb);
    background: #fff;
  }
  .flash-properties-mobile-apply {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    background: var(--flash-color-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
  }
  .flash-properties-mobile-apply .material-symbols-outlined {
    color: #fff;
  }
  .flash-properties-filter-row,
  .flash-properties-filter-row.is-mobile-open {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin: 0;
  }
  .flash-properties-filter-layout {
    display: block;
  }
  .flash-filter-control,
  .flash-filter-popover,
  .flash-filter-popover > button,
  .flash-filter-type-popover,
  .flash-filter-control-mode,
  .flash-filter-control-compact:nth-of-type(3),
  .flash-filter-control-compact:nth-of-type(4) {
    width: 100% !important;
    max-width: none !important;
  }
  .flash-filter-control,
  .flash-filter-popover > button {
    gap: 12px !important;
    padding-left: 16px !important;
  }
  .flash-filter-control-icon {
    flex: 0 0 24px;
    width: 24px;
    text-align: center;
  }
  .flash-filter-panel,
  .flash-size-panel,
  .flash-filter-type-popover .flash-property-types-panel {
    position: fixed;
    left: 28px !important;
    right: 28px !important;
    top: 88px !important;
    bottom: 88px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow-y: auto;
    z-index: 100002;
  }
  .flash-filter-type-popover > button {
    min-height: 52px;
  }
}

/* Make the property-type control slightly wider than the three compact selects. */
@media (min-width: 1200px) {
  .flash-properties-filter-layout {
    grid-template-columns:
      minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr)
      minmax(0, 1fr) minmax(130px, auto) minmax(145px, auto);
  }
}

/* v0.4.5 mobile modal refinements */
@media (max-width: 767px) {
  /* Keep icon/text spacing identical for native selects and panel buttons. */
  .flash-filter-control > .flash-filter-control-icon {
    left: 16px;
    width: 24px;
    flex-basis: 24px;
  }

  .flash-filter-control select {
    padding-left: 52px !important;
    padding-right: 38px !important;
  }

  .flash-filter-select-display {
    inset: 0 38px 0 52px !important;
  }

  .flash-filter-popover > button {
    gap: 12px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Give every mobile control a clearly defined, consistent surface. */
  .flash-filter-control select,
  .flash-filter-popover > button {
    min-height: 52px;
    border: 1px solid var(--flash-color-gray, #e0e8eb) !important;
    border-radius: 12px;
    background: #fff;
  }

  .flash-filter-control,
  .flash-filter-popover > button {
    color: var(--flash-color-darkblue, #05263d);
  }

  /* Property type, price and size open inline as accordions in the modal. */
  .flash-filter-popover {
    display: block;
  }

  .flash-filter-panel,
  .flash-size-panel,
  .flash-filter-type-popover .flash-property-types-panel {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 8px 0 2px !important;
    padding: 26px 16px 18px;
    overflow: visible;
    border: 1px solid var(--flash-color-gray, #e0e8eb);
    border-radius: 14px;
    box-shadow: none;
    background: #fff;
    z-index: auto;
  }

  .flash-filter-panel[hidden],
  .flash-size-panel[hidden],
  .flash-property-types-panel[hidden] {
    display: none !important;
  }

  .flash-filter-panel-close {
    top: 10px;
    right: 10px;
  }

  /* Ensure the modal action remains legible over the blue background. */
  .flash-properties-mobile-apply,
  .flash-properties-mobile-apply span,
  .flash-properties-mobile-apply .material-symbols-outlined {
    color: #fff !important;
  }
}

/* ==================================================
   PROPERTIES PAGE v0.4.6 mobile refinements
================================================== */
.flash-property-type-choice {
  line-height: 1.35;
}

.flash-filter-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.flash-filter-panel-heading h3 {
  margin: 0;
}

.flash-filter-panel-heading .flash-filter-panel-close {
  position: static;
  flex: 0 0 auto;
}

.flash-properties-predictive-mobile-header,
.flash-properties-predictive-mobile-search {
  display: none;
}

@media (max-width: 767px) {
  /* Let every control use the exact same outer width. */
  .flash-filter-control,
  .flash-filter-popover > button {
    padding-left: 0 !important;
  }

  .flash-filter-popover > button {
    padding-right: 16px !important;
    padding-left: 15px !important;
  }

  /* Full-screen predictive search modal, matching the filter modal spacing. */
  body.flash-properties-predictive-open {
    overflow: hidden;
  }

  .flash-properties-predictive-panel {
    position: fixed !important;
    inset: 12px !important;
    inset-block-start: 72px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 24px) !important;
    padding: 16px 18px 22px !important;
    overflow-y: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow:
      0 0 0 100vmax rgba(5, 38, 61, 0.58),
      0 18px 55px rgba(5, 38, 61, 0.28);
    z-index: 100001;
  }

  .flash-properties-predictive-mobile-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
  }

  .flash-properties-predictive-close {
    position: static;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--flash-color-gray, #e0e8eb);
    color: var(--flash-color-darkblue, #05263d);
  }

  .flash-properties-predictive-mobile-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin-bottom: 16px;
    padding: 0 16px;
    border: 1px solid var(--flash-color-gray, #e0e8eb);
    border-radius: 999px;
    background: #fff;
  }

  .flash-properties-predictive-mobile-search .material-symbols-outlined {
    color: var(--flash-color-blue, #00406b);
  }

  .flash-properties-predictive-mobile-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--flash-color-darkblue, #05263d);
    font: inherit;
  }

  .flash-filter-panel-heading {
    margin-bottom: 14px;
  }
}

/* ==================================================
   PROPERTIES PAGE v0.4.7 predictive panel refinements
================================================== */
/* Filter panel headings now contain only the close action. */
.flash-filter-panel-heading {
  justify-content: flex-end;
}

/* Desktop predictive close control: top-right, no background. */
.flash-properties-predictive-mobile-header {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.flash-properties-predictive-footer {
  display: none;
}

@media (min-width: 768px) {
  .flash-properties-predictive-mobile-header {
    margin: 0;
  }

  .flash-properties-predictive-close {
    position: static;
    background: transparent;
  }

  .flash-properties-predictive-close:hover,
  .flash-properties-predictive-close:focus-visible {
    background: transparent;
    color: var(--flash-color-blue, #00406b);
  }
}

@media (max-width: 767px) {
  .flash-properties-predictive-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
  }

  .flash-properties-predictive-mobile-header {
    position: static;
    flex: 0 0 auto;
  }

  .flash-properties-predictive-mobile-search {
    flex: 0 0 auto;
  }

  .flash-properties-predictive-loading,
  .flash-properties-predictive-empty,
  .flash-properties-predictive-panel > [data-predictive-content] {
    flex: 0 0 auto;
  }

  .flash-properties-predictive-panel > [data-predictive-content] {
    min-height: 0;
    overflow-y: auto;
  }

  .flash-properties-predictive-footer {
    display: block;
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--flash-color-gray, #e0e8eb);
    background: #fff;
  }

  .flash-properties-predictive-apply {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    background: var(--flash-color-blue, #00406b);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
  }

  .flash-properties-predictive-apply span {
    color: #fff;
  }

  .flash-properties-predictive-apply .material-symbols-outlined {
    color: #fff;
  }
}

.flash-centris-sold-banner {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(5, 38, 61, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flash-properties-toolbar-actions [data-view-toggle] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.flash-properties-toolbar-actions [data-view-toggle].is-active {
  background: var(--flash-color-blue, #00406b);
  color: #fff;
}
.flash-properties-toolbar-actions
  [data-view-toggle]
  .material-symbols-outlined {
  color: inherit;
}
.flash-properties-map-wrap {
  width: 100%;
  min-height: 650px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(5, 38, 61, 0.12);
  box-shadow: 0 12px 30px rgba(5, 38, 61, 0.08);
}
.flash-properties-map {
  width: 100%;
  height: 650px;
}
.flash-map-pin {
  color: var(--flash-color-blue, #00406b);
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.flash-map-pin .material-symbols-outlined {
  font-size: 34px;
  font-variation-settings: "FILL" 1;
}
.flash-map-popup-card {
  display: block;
  width: 220px;
  text-decoration: none;
  color: #191b24;
}
.flash-map-popup-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}
.flash-map-popup-card strong,
.flash-map-popup-card span,
.flash-map-popup-card small {
  display: block;
}
.flash-map-popup-close {
  position: absolute;
  right: 20px;
  top: 10px;
  border: 0;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
@media (max-width: 767px) {
  .flash-view-label {
    display: none;
  }
  .flash-properties-map-wrap,
  .flash-properties-map {
    height: 72vh;
    min-height: 460px;
  }
  .flash-properties-toolbar-actions [data-view-toggle] {
    padding: 0.7rem;
  }
}

/* v0.5.5 refinements */
.flash-centris-listing-card:has(.flash-centris-sold-banner)
  .flash-centris-listing-card-image-wrap::after {
  background: rgba(5, 38, 61, 0.62) !important;
}
.flash-centris-sold-banner {
  background: var(--flash-color-lightblue, #a6c7db) !important;
  color: var(--flash-color-darkblue, #05263d) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.flash-price-suffix {
  font-size: 0.68em;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 0.15em;
}
.flash-properties-toolbar-actions
  [data-view-toggle].is-active
  .flash-view-label {
  color: #fff !important;
}
.flash-map-popup-card {
  width: 290px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(5, 38, 61, 0.18);
  text-decoration: none;
  color: #191b24;
}
.flash-map-popup-card .flash-map-popup-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.flash-map-popup-body {
  padding: 14px;
}
.flash-map-popup-price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--flash-color-blue, #00406b);
}
.flash-map-popup-type {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #667;
}
.flash-map-popup-address {
  font-weight: 700;
  margin-top: 5px;
}
.flash-map-popup-location {
  font-size: 0.9rem;
  color: #667;
}
.flash-map-popup-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.flash-map-popup-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.86rem;
  color: #334;
}
.flash-map-popup-stat .material-symbols-outlined {
  font-size: 18px;
  color: var(--flash-color-blue, #00406b);
}
.flash-map-popup-close {
  display: none !important;
}
.leaflet-popup-close-button {
  border: 0 !important;
  background: transparent !important;
}
.flash-map-pin {
  color: var(--flash-color-blue, #00406b) !important;
}
@media (max-width: 767px) {
  .flash-properties-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .flash-properties-toolbar-actions [data-view-toggle] {
    width: 64px;
    justify-content: center;
  }
  .flash-properties-toolbar-actions [data-view-toggle] .flash-view-label {
    display: none !important;
  }
}

/* v0.5.6 refinements */
.flash-centris-sold-banner {
  font-weight: 800 !important;
}
.flash-price-suffix {
  color: var(--flash-color-blue, var(--flash-blue, #00406b)) !important;
}
.flash-centris-listing-card .flash-price-suffix {
  color: var(
    --flash-color-dark-blue,
    var(--flash-color-darkblue, #05263d)
  ) !important;
}
.flash-centris-listing-banners,
.flash-listing-banners {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 3;
}
.flash-centris-listing-banner {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}
.flash-centris-listing-banner--sold {
  background: var(--flash-color-lightblue, #a6c7db);
  color: var(--flash-color-darkblue, #05263d);
}
.flash-centris-listing-banner--new {
  background: var(--flash-color-lightgray, #e0e8eb);
  color: var(--flash-color-darkblue, #05263d);
}
.flash-centris-listing-banner--price {
  background: var(--flash-color-blue, #00406b);
  color: var(--flash-color-white, #fff);
}
.flash-centris-listing-banner--open {
  background: var(--flash-color-gray, #e0e8eb);
  color: var(--flash-color-lightgray, #e0e8eb);
}

@media (max-width: 767px) {
  .flash-properties-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
  }
  .flash-properties-toolbar-actions .flash-properties-sort-control {
    order: 1;
    flex: 0 0 100%;
  }
  .flash-properties-toolbar-actions [data-reset] {
    order: 0;
  }
  .flash-properties-toolbar-actions [data-view-toggle] {
    order: 2;
    width: 64px;
    justify-content: center;
  }
  .flash-properties-toolbar-actions [data-view-toggle] .flash-view-label {
    display: none !important;
  }
}
.flash-map-pin,
.flash-map-pin .material-symbols-outlined {
  color: var(--flash-color-blue, #00406b) !important;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
}
.leaflet-popup-close-button {
  font-size: 0 !important;
  width: 34px !important;
  height: 34px !important;
  right: 8px !important;
  top: 8px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--flash-color-blue, #00406b) !important;
}
.leaflet-popup-close-button:before {
  content: "close";
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  line-height: 1;
}
.flash-map-popup-card {
  width: 300px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 45px rgba(5, 38, 61, 0.22) !important;
  background: transparent !important;
}
.flash-map-popup-card img,
.flash-map-popup-img {
  height: 180px !important;
  border-radius: 18px 18px 0 0 !important;
  margin: 0 !important;
}
.flash-map-popup-body {
  background: #fff !important;
  padding: 14px !important;
}
.flash-map-popup-price {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--flash-color-blue, #00406b) !important;
}
.flash-map-popup-type {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  color: var(--flash-color-darkblue, #05263d) !important;
}
.flash-map-popup-address {
  font-size: 1rem !important;
  font-weight: 700 !important;
}
.flash-map-popup-location {
  font-size: 0.9rem !important;
  color: #5b6570 !important;
}
.flash-map-popup-stats {
  display: flex !important;
  gap: 12px !important;
  margin-top: 10px !important;
}
.flash-map-popup-stat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-weight: 700 !important;
}
.flash-map-popup-stat .material-symbols-outlined {
  font-size: 20px !important;
  color: var(--flash-color-blue, #00406b) !important;
}

/* v0.5.7 refinements */
.flash-centris-listing-card.is-sold
  .flash-centris-listing-card-image-wrap::after,
.flash-centris-listing-card:has(.flash-centris-listing-banner--sold)
  .flash-centris-listing-card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 38, 61, 0.62) !important;
  pointer-events: none;
  z-index: 1;
}
.flash-centris-listing-banners {
  z-index: 4;
}
.flash-centris-sold-banner,
.flash-centris-listing-banner--sold {
  font-weight: 800 !important;
}
.flash-map-pin .material-symbols-outlined {
  color: var(--flash-color-blue, var(--flash-blue, #00406b)) !important;
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.leaflet-popup-close-button {
  width: 34px !important;
  height: 34px !important;
  font-size: 0 !important;
  right: 8px !important;
  top: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  color: var(--flash-color-blue, var(--flash-blue, #00406b)) !important;
  text-decoration: none !important;
}
.leaflet-popup-close-button::before {
  content: "close";
  font-family: "Material Symbols Outlined";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
}
.flash-map-popup-card {
  overflow: hidden;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: 0 18px 45px rgba(5, 38, 61, 0.24);
}
.flash-map-popup-img,
.flash-map-popup-card img {
  border-radius: 0 !important;
  display: block;
}
.flash-map-popup-body {
  background: #fff;
}
.flash-map-popup-card:hover .flash-map-popup-img {
  transform: scale(1.06);
}
.flash-map-popup-img {
  transition: transform 0.45s ease;
}
.flash-properties-map-shell {
  position: relative;
}
.flash-properties-map-shell .flash-properties-loading {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.58);
  z-index: 500;
  pointer-events: none;
}
@media (max-width: 767px) {
  .flash-properties-toolbar {
    display: block;
  }
  .flash-properties-toolbar-actions {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
  }
  .flash-properties-toolbar-actions [data-reset],
  .flash-properties-sort-control {
    width: 100% !important;
    flex: 0 0 100%;
    order: 1;
  }
  .flash-properties-sort-control {
    order: 2;
  }
  .flash-properties-toolbar-actions [data-view-toggle] {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    flex: 0 0 64px;
    order: 3;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .flash-properties-toolbar-actions [data-view-toggle]:first-of-type {
    margin-left: auto;
  }
  .flash-properties-toolbar-actions [data-view-toggle] .flash-view-label {
    display: none !important;
  }
  .flash-properties-sort-control + [data-view-toggle],
  .flash-properties-toolbar-actions [data-view-toggle] {
    margin-top: 8px;
  }
}
.flash-properties-map-wrap {
  position: relative;
}
.flash-properties-map-wrap.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 4px solid rgba(0, 64, 107, 0.18);
  border-top-color: var(--flash-color-blue, #00406b);
  border-radius: 50%;
  animation: flashSpin 0.8s linear infinite;
  z-index: 600;
}
.flash-properties-map-wrap.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 599;
  pointer-events: none;
}
@keyframes flashSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Flash Centris v0.5.8 toolbar and banner refinements */
.flash-centris-listing-banner--open {
  background: var(--flash-color-darkgray, #5f6b73) !important;
  color: var(--flash-color-white, #fff) !important;
}
.flash-centris-listing-card .flash-price-suffix {
  color: var(
    --flash-color-dark-blue,
    var(--flash-color-darkblue, #05263d)
  ) !important;
}
.flash-centris-listing-card.is-sold .flash-listing-image-wrap::after,
.flash-centris-listing-card.flash-is-sold .flash-listing-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 38, 61, 0.62);
  pointer-events: none;
  z-index: 1;
}
.flash-centris-listing-card .flash-listing-banners {
  z-index: 3;
}
@media (max-width: 767px) {
  .flash-properties-toolbar-actions {
    margin-top: 1rem !important;
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
  }
  .flash-properties-toolbar-actions [data-reset],
  .flash-properties-toolbar-actions .flash-properties-sort-control {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  .flash-properties-toolbar-actions [data-reset] {
    order: 1 !important;
  }
  .flash-properties-toolbar-actions .flash-properties-sort-control {
    order: 2 !important;
    margin-bottom: 0.35rem !important;
  }
  .flash-properties-toolbar-actions [data-view-toggle] {
    order: 3 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--flash-color-gray, #e0e8eb) !important;
    justify-content: center !important;
    margin-top: 0 !important;
  }
  .flash-properties-toolbar-actions [data-view-toggle].is-active {
    background: transparent !important;
    color: var(--flash-color-blue, var(--flash-color-blue)) !important;
  }
  .flash-properties-toolbar-actions
    [data-view-toggle]
    .material-symbols-outlined {
    font-size: 32px !important;
    color: currentColor !important;
  }
  .flash-properties-toolbar-actions [data-view-toggle] .flash-view-label {
    display: none !important;
  }
}


/* Flash Centris map popup image overlay and banners */
.flash-map-popup-image-wrap{position:relative;overflow:hidden;background:#fff;display:block}
.flash-map-popup-image-wrap.is-sold::after,
.flash-map-popup-card.is-sold .flash-map-popup-image-wrap::after{content:"";position:absolute;inset:0;background:rgba(5,38,61,.62);pointer-events:none;z-index:1}
.flash-map-popup-banners{position:absolute;top:12px;left:12px;right:12px;display:flex;flex-wrap:wrap;gap:6px;z-index:4}
.flash-map-popup-image-wrap .flash-map-popup-img{width:100%;display:block;transition:transform .45s ease}
.flash-map-popup-card:hover .flash-map-popup-image-wrap .flash-map-popup-img{transform:scale(1.06)}
.flash-map-popup-image-wrap .flash-centris-listing-card-image-placeholder{min-height:170px}


/* ==================================================
   PROPERTIES PAGE v0.4.8 usability refinements
================================================== */
.flash-properties-search,
.flash-properties-predictive-mobile-search {
  position: relative;
}

.flash-properties-search input[type="search"],
.flash-properties-predictive-mobile-search input[type="search"] {
  padding-right: 42px;
}

.flash-properties-search input[type="search"]::-webkit-search-cancel-button,
.flash-properties-predictive-mobile-search input[type="search"]::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

.flash-properties-search-clear {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a5afb6;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.flash-properties-search-clear[hidden] {
  display: none !important;
}

.flash-properties-search-clear:hover,
.flash-properties-search-clear:focus-visible {
  background: var(--flash-color-gray, #e0e8eb);
  color: var(--flash-color-darkblue, #05263d);
}

.flash-properties-search-clear .material-symbols-outlined {
  font-size: 21px;
}

@media (max-width: 767px) {
  .flash-properties-predictive-panel > [data-predictive-content] {
    flex: 1 1 auto !important;
    min-height: 0;
    max-height: none;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding-right: 4px;
  }

  .flash-properties-predictive-loading:not([hidden]),
  .flash-properties-predictive-empty:not([hidden]) {
    flex: 0 0 auto;
  }
}


@media (max-width: 767px) {
  .flash-properties-predictive-panel > [data-predictive-content] {
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: #a5afb6 transparent;
  }

  .flash-properties-predictive-panel > [data-predictive-content]::-webkit-scrollbar {
    width: 6px;
  }

  .flash-properties-predictive-panel > [data-predictive-content]::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #a5afb6;
  }
}


/* Branded SVG map marker used by both Leaflet and Google Maps. */
.flash-map-pin-svg {
  display: block;
  width: 34px !important;
  height: 43px !important;
  border: 0 !important;
  background: transparent !important;
  filter: drop-shadow(0 3px 5px rgba(5, 38, 61, 0.24));
}

/* ==================================================
   PROPERTIES PAGE v0.7.11 - elevated mobile sheets
   Prevent iOS focus zoom and animate mobile panels upward.
================================================== */
@keyframes flash-mobile-sheet-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, clamp(64px, 14vh, 128px), 0) scale(0.985);
  }
  62% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes flash-mobile-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 767px) {
  /* iOS Safari zooms focused form controls whose computed font size is below
     16px. Keep both the toolbar and modal search fields at the safe size. */
  .flash-properties-search input[type="search"],
  .flash-properties-predictive-mobile-search input[type="search"] {
    font-size: 16px !important;
    line-height: 1.35;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Raise the filter sheet nearly to the top while respecting notches and the
     browser safe area. */
  .flash-properties-filter-modal-dialog {
    top: max(8px, env(safe-area-inset-top)) !important;
    right: 10px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    inset-block-start: max(8px, env(safe-area-inset-top)) !important;
    max-height: none !important;
    transform-origin: center bottom;
    will-change: transform, opacity;
  }

  .flash-properties-filter-modal.is-open .flash-properties-filter-modal-dialog {
    animation: flash-mobile-sheet-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .flash-properties-filter-modal.is-open .flash-properties-filter-modal-backdrop {
    animation: flash-mobile-backdrop-enter 260ms ease-out both;
  }

  /* Match the predictive-search sheet to the filter sheet. */
  .flash-properties-predictive-panel {
    top: max(8px, env(safe-area-inset-top)) !important;
    right: 10px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    inset: auto 10px max(8px, env(safe-area-inset-bottom)) 10px !important;
    inset-block-start: max(8px, env(safe-area-inset-top)) !important;
    max-height: none !important;
    transform-origin: center bottom;
    will-change: transform, opacity;
  }

  .flash-properties-predictive-panel:not([hidden]) {
    animation: flash-mobile-sheet-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .flash-properties-filter-modal.is-open .flash-properties-filter-modal-dialog,
  .flash-properties-filter-modal.is-open .flash-properties-filter-modal-backdrop,
  .flash-properties-predictive-panel:not([hidden]) {
    animation: none !important;
  }
}

/* ==================================================
   PROPERTIES PAGE v0.7.12 panel/header stacking
================================================== */
@media (max-width: 767px) {
  /* The public header uses a high stacking context for its hamburger button.
     Hide and disable that control while either full-height properties panel is
     open so it can never sit above the panel surface or intercept taps. */
  body.flash-properties-modal-open .flash-site-header,
  body.flash-properties-predictive-open .flash-site-header {
    z-index: 1 !important;
    pointer-events: none;
  }

  body.flash-properties-modal-open .flash-mobile-menu-toggle,
  body.flash-properties-predictive-open .flash-mobile-menu-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .flash-properties-filter-modal,
  .flash-properties-predictive-panel {
    isolation: isolate;
  }
}
