/* Available Properties browse experience */

/* bootstrap's .btn display beats the hidden attribute without this */
.afb-hero [hidden],
.afb-browse [hidden] {
  display: none !important; }

/* hero wizard */
.afb-hero {
  background: linear-gradient(160deg, #153965 0%, #1e4a80 55%, #3F638E 100%);
  border-radius: 10px;
  color: #fff;
  margin: 10px 0 70px 0;
  padding: 30px 30px 20px 30px;
  position: relative;
  text-align: center; }

.afb-hero-title {
  color: #fff !important;
  font-family: 'Montserrat';
  font-size: 34px !important;
  font-weight: 700;
  margin: 0 0 10px 0 !important;
  padding-bottom: 0; }
  .afb-hero-title:after {
    display: none; }

.afb-hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-bottom: 22px; }

.afb-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0 auto 20px auto;
  max-width: 640px;
  padding: 0;
  position: relative; }
  .afb-steps:before {
    background: rgba(255, 255, 255, 0.25);
    content: '';
    height: 2px;
    left: 40px;
    position: absolute;
    right: 40px;
    top: 19px; }

.afb-step {
  position: relative;
  text-align: center;
  width: 80px;
  z-index: 1; }

.afb-step-circle {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  margin: 0 auto 8px auto;
  transition: all 0.2s ease;
  width: 38px; }

.afb-step-active .afb-step-circle {
  background: #fff;
  color: #153965; }

.afb-step-done .afb-step-circle {
  background: #7fa8d9;
  color: #153965; }

.afb-step-label {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  font-size: 12px; }

.afb-step-active .afb-step-label {
  color: #fff;
  font-weight: 600; }

.afb-wizard {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(21, 57, 101, 0.25);
  color: #333;
  margin: 8px auto -70px auto;
  max-width: 620px;
  padding: 20px 26px;
  position: relative;
  text-align: left;
  width: 100%; }

.afb-wizard-question {
  color: #333 !important;
  font-size: 19px !important;
  font-weight: 700;
  margin: 0 0 14px 0 !important; }

.afb-wizard-or {
  color: #888;
  font-size: 13px;
  margin: 12px 0 6px 0; }

/* compact single-row move-in step */
.afb-wizard-movein {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px; }
  .afb-wizard-movein .afb-chip {
    margin: 0; }

.afb-wizard-or-inline {
  color: #888;
  font-size: 13px; }

.afb-input-inline {
  width: auto; }

/* denser chips so the extras step stays short */
#afb-wizard-extras .afb-chip {
  font-size: 13px;
  padding: 6px 12px; }

.afb-wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 14px; }
  .afb-wizard-nav .afb-btn-next {
    margin-left: auto; }

.afb-btn-ghost {
  background: transparent;
  border: 1px solid #ccc;
  color: #666; }

.afb-wizard-skip {
  color: #3F638E;
  display: block;
  font-size: 15px;
  margin-top: 12px;
  text-align: center;
  text-decoration: underline; }
  .afb-wizard-skip strong {
    font-weight: 700; }
  .afb-wizard-skip:hover {
    color: #153965;
    text-decoration: underline; }

/* the theme's global .btn style appends a right-pointing chevron - flip it
   to a leading left-pointing one for the back button */
#afb-wizard-back {
  padding: 1rem 2.25rem; }
  #afb-wizard-back::after {
    content: none; }
  #afb-wizard-back::before {
    content: '\2039';
    display: inline-block;
    font-size: 1.5em;
    line-height: .85em;
    padding-right: .5rem;
    transition: padding-right .5s;
    vertical-align: middle; }
  #afb-wizard-back:hover::before {
    padding-right: .75rem; }

/* shared inputs */
.afb-input {
  background: #fff;
  border: 1px solid #d5d9e0;
  border-radius: 6px;
  font-size: 15px;
  height: 44px;
  padding: 8px 12px;
  width: 100%; }

.afb-chip {
  background: #fff;
  border: 1px solid #d5d9e0;
  border-radius: 6px;
  color: #444;
  font-size: 14px;
  margin: 0 6px 6px 0;
  padding: 8px 16px;
  transition: all 0.15s ease; }
  .afb-chip:hover {
    border-color: #3F638E; }

.afb-chip-active {
  background: #3F638E;
  border-color: #3F638E;
  color: #fff; }

.afb-beds-buttons {
  display: flex;
  flex-wrap: wrap; }

/* browse layout */
.afb-browse {
  margin-top: 20px; }

.afb-toolbar {
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  gap: 20px;
  margin-bottom: 0;
  padding: 12px 0; }

.afb-toolbar-toggle,
.afb-toolbar-save,
.afb-more-filters,
.afb-compare-button,
.afb-clear {
  background: transparent;
  border: none;
  color: #3F638E;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0; }

.afb-toolbar-save {
  border: 1px solid #d5d9e0;
  border-radius: 20px;
  margin-left: auto;
  padding: 7px 18px; }
  .afb-toolbar-save.afb-saved {
    background: #3F638E;
    border-color: #3F638E;
    color: #fff; }

.afb-toolbar-count {
  font-size: 17px; }

.afb-toolbar-sort {
  align-items: center;
  display: flex;
  gap: 8px; }
  .afb-toolbar-sort label {
    color: #888;
    font-size: 13px;
    font-weight: 400;
    margin: 0; }
  .afb-toolbar-sort select {
    border: none;
    color: #333;
    font-weight: 600; }

.afb-notice {
  background: #eef4fb;
  border: 1px solid #c9dcf2;
  border-radius: 8px;
  color: #2c4a72;
  font-size: 14px;
  margin: 15px 0 0 0;
  padding: 12px 16px; }

.afb-main {
  display: flex;
  min-height: 600px; }

/* filters */
.afb-filters {
  flex: 0 0 220px;
  padding: 20px 25px 20px 0; }

.afb-browse.afb-filters-hidden .afb-filters {
  display: none; }

.afb-filter {
  margin-bottom: 22px; }
  .afb-filter > label {
    color: #333;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px; }

.afb-filter input[type="range"] {
  width: 100%; }

.afb-price-values {
  color: #888;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 4px; }

.afb-price-sliders {
  height: 26px;
  position: relative; }
  .afb-price-sliders input[type="range"] {
    left: 0;
    margin: 0;
    pointer-events: none;
    position: absolute;
    top: 6px;
    width: 100%; }
    .afb-price-sliders input[type="range"]::-webkit-slider-thumb {
      pointer-events: auto; }
    .afb-price-sliders input[type="range"]::-moz-range-thumb {
      pointer-events: auto; }

.afb-filter-switch {
  align-items: center;
  display: flex;
  justify-content: space-between; }
  .afb-filter-switch > label:first-child {
    margin: 0; }

.afb-switch {
  cursor: pointer;
  display: inline-block;
  height: 24px;
  margin: 0;
  position: relative;
  width: 44px; }
  .afb-switch input {
    height: 0;
    opacity: 0;
    width: 0; }
  .afb-switch span {
    background: #ccd2da;
    border-radius: 24px;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background 0.2s ease; }
    .afb-switch span:before {
      background: #fff;
      border-radius: 50%;
      bottom: 3px;
      content: '';
      height: 18px;
      left: 3px;
      position: absolute;
      transition: transform 0.2s ease;
      width: 18px; }
  .afb-switch input:checked + span {
    background: #3F638E; }
    .afb-switch input:checked + span:before {
      transform: translateX(20px); }

.afb-checkbox {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px; }

.afb-compare-button {
  border: 1px solid #d5d9e0 !important;
  border-radius: 6px;
  padding: 8px 14px;
  width: 100%; }
  .afb-compare-button:disabled {
    color: #aaa;
    cursor: not-allowed; }

.afb-clear {
  color: #6c223d;
  font-size: 13px; }

/* card list */
/* the list flows at natural height; the page scrolls and the sticky map
   keeps itself in view alongside */
.afb-list {
  flex: 1 1 auto;
  padding: 20px; }

/* cards */
.afb-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(21, 57, 101, 0.1), 0 4px 14px rgba(21, 57, 101, 0.07);
  display: flex;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative; }

.afb-card-photo {
  flex: 0 0 280px;
  max-height: 210px;
  position: relative; }

.afb-card-image {
  display: block;
  height: 100%;
  max-height: 210px;
  overflow: hidden;
  position: relative; }
  .afb-card-image img {
    height: 100%;
    object-fit: cover;
    width: 100%; }

/* card photo carousel controls */
.afb-photo-nav {
  align-items: center;
  background: rgba(21, 57, 101, 0.55);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.15s ease;
  width: 32px;
  z-index: 2; }
  .afb-photo-nav .fa {
    line-height: 1;
    margin: 0; }
  .afb-photo-nav.afb-photo-prev .fa {
    margin-right: 2px; }
  .afb-photo-nav.afb-photo-next .fa {
    margin-left: 2px; }
  .afb-photo-nav:hover, .afb-photo-nav:focus-visible {
    background: rgba(21, 57, 101, 0.9); }
.afb-photo-prev {
  left: 8px; }
.afb-photo-next {
  right: 8px; }
.afb-photo-count {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  bottom: 8px;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  position: absolute;
  right: 8px;
  z-index: 2; }

.afb-badge {
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  left: 10px;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  position: absolute;
  text-transform: uppercase;
  top: 10px;
  z-index: 2; }

.afb-badge-now {
  background: #2e7d32; }

.afb-badge-soon {
  background: #b26a00; }

.afb-heart {
  background: transparent;
  border: none;
  color: #9aa3af;
  font-size: 17px;
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2; }
  .afb-heart .fa {
    margin: 0; }
  .afb-heart.afb-heart-active {
    color: #c0392b; }

.afb-card-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 20px; }

.afb-card-title {
  font-size: 17px !important;
  margin: 0 25px 6px 0 !important; }
  .afb-card-title a {
    color: #3F638E; }

.afb-card-address {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px; }

.afb-card-specs {
  color: #444;
  font-size: 13px;
  margin-bottom: 6px; }

.afb-card-availability {
  color: #888; }

.afb-card-rent {
  color: #153965;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px; }
  .afb-card-rent span {
    color: #888;
    font-size: 13px;
    font-weight: 400; }

.afb-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between; }

.afb-compare-toggle {
  color: #888;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  margin: 0;
  white-space: nowrap; }
  .afb-compare-toggle input {
    margin-right: 4px; }

.afb-card-view {
  font-size: 12px;
  padding: 6px 14px;
  white-space: nowrap; }

.afb-empty {
  color: #666;
  padding: 60px 20px;
  text-align: center; }

/* map */
.afb-map-wrap {
  flex: 0 0 34%;
  min-height: 600px; }

#afb-map {
  border-radius: 0 10px 10px 0;
  height: calc(100vh - 120px);
  max-height: 750px;
  min-height: 450px;
  position: sticky;
  top: 90px;
  width: 100%;
  z-index: 1; }

.afb-pin {
  background: transparent;
  border: none; }
  .afb-pin span {
    background: #153965;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    white-space: nowrap; }
  .afb-pin span:after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #153965;
    content: '';
    left: calc(50% - 5px);
    position: absolute;
    top: 100%; }

.afb-map-popup {
  font-size: 13px;
  max-width: 220px; }
  .afb-map-popup img {
    border-radius: 4px;
    margin-bottom: 6px;
    max-width: 100%; }
  .afb-map-popup strong {
    display: block; }

.afb-updated {
  color: #999;
  font-size: 12px;
  margin: 15px 0;
  text-align: right; }

/* compare modal */
#afb-compare-modal .modal-title {
  margin: 0 !important; }

.afb-compare-table {
  width: 100%; }
  .afb-compare-table th {
    color: #888;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    text-transform: uppercase;
    vertical-align: top;
    width: 110px; }
  .afb-compare-table td {
    border-left: 1px solid #eee;
    font-size: 14px;
    padding: 8px 10px;
    vertical-align: top; }
  .afb-compare-table img {
    border-radius: 6px;
    max-width: 100%; }

/* responsive */
@media (max-width: 1250px) {
  .afb-map-wrap {
    flex-basis: 30%; }
  .afb-card-photo {
    flex-basis: 200px;
    max-height: 190px; }
  .afb-card-image {
    max-height: 190px; } }

@media (max-width: 991px) {
  .afb-main {
    flex-direction: column; }
  .afb-filters {
    border-bottom: 1px solid #edf0f4;
    flex-basis: auto;
    order: 1;
    padding-right: 0; }
  /* map above the list on stacked layouts - after a 25,000px list it
     would never be seen */
  .afb-map-wrap {
    flex-basis: auto;
    min-height: 0;
    order: 2; }
  /* leaflet forces inline position:relative, which would revive the
     desktop rule's top:90px as a visual offset - zero it out */
  #afb-map {
    border-radius: 10px;
    height: 320px;
    min-height: 0;
    position: static;
    top: 0; }
  .afb-list {
    order: 3;
    padding: 20px 0; } }

@media (max-width: 600px) {
  .afb-hero {
    padding: 30px 15px 110px 15px; }
  .afb-wizard {
    padding: 20px;
    width: calc(100% - 30px); }
  .afb-step-label {
    display: none; }
  .afb-card {
    display: block; }
  .afb-card-photo {
    max-height: 200px; }
  .afb-card-image {
    max-height: 200px; }
  .afb-toolbar {
    flex-wrap: wrap; } }

/* amenity tags on cards */
.afb-card-amenities {
  color: #8a94a3;
  font-size: 12px;
  margin: -2px 0 8px 0; }

/* step circles are clickable */
.afb-step {
  cursor: pointer; }
  .afb-step .afb-step-circle {
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
  .afb-step:hover .afb-step-circle,
  .afb-step:focus-visible .afb-step-circle {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); }
  .afb-step:hover .afb-step-circle {
    background: rgba(255, 255, 255, 0.3);
    color: #fff; }
  .afb-step.afb-step-active:hover .afb-step-circle {
    background: #fff;
    color: #153965; }
  .afb-step.afb-step-done:hover .afb-step-circle {
    background: #7fa8d9;
    color: #153965; }
  .afb-step:hover .afb-step-label {
    color: #fff; }
  .afb-step:focus-visible {
    outline: none; }

/* step 1 town/zip lookup */
.afb-wizard-where {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px; }
  .afb-wizard-where .afb-input {
    flex: 1 1 180px;
    width: auto; }

.afb-town-feedback {
  color: #888;
  font-size: 13px;
  margin: 8px 0 0 0;
  min-height: 18px; }
  .afb-town-feedback.afb-town-found {
    color: #2e7d32; }

.afb-region-context {
  color: #666;
  font-size: 13px;
  margin: 2px 0 0 0; }
  .afb-region-context:empty {
    display: none; }
