/**
 * Web Dev Custom Stylesheet
 */

.bmd-mh-slide-inner h1 {
  line-height: 1.2;
}
.wdt_custom_tooolbar .topbar-wrap {
  min-height: 40px;
  padding: 10px;
  align-items: center;
  justify-content: end;
  gap: 30px;
  flex-wrap: wrap;
  text-align: center;
}
.slider_remove_gradient::before {
  background: none !important;
}
.wdt_custom_tooolbar .topbar-wrap span,
.wdt_custom_tooolbar .topbar-wrap span a {
  font-size: 19px;

  font-weight: 400;
  font-family: "Oswald";
}

.wdt_custom_tooolbar .topbar-wrap span a {
  text-decoration: none;
}

.wdt_custom_tooolbar .topbar-wrap span,
.wdt_custom_tooolbar .topbar-wrap span a {
  font-size: 19px;

  font-weight: 400;
  font-family: "Oswald";
}

.wdt_custom_tooolbar .topbar-wrap span,
.wdt_custom_tooolbar .topbar-wrap span a {
  font-size: 19px;

  font-weight: 400;
  font-family: "Oswald";
}

.variation2 .bmd-mh-inner .bmd-mh-slide {
  position: relative;
}

.bmd_tile_block_inner {
  z-index: 50;
}
.enable_overlay_main .bmd_tile_block_inner::after {
  -o-transition: opacity 0.25s ease-in-out;
  transition: opacity 0.25s ease-in-out;
  -moz-transition: opacity 0.25s ease-in-out;
  -webkit-transition: opacity 0.25s ease-in-out;
  background: rgba(0, 0, 0, 0.8);
  background: -webkit-linear-gradient(
    top,
    rgba(0, 0, 0, 0.1) 70%,
    #222 100%,
    #555 100%,
    #222 100%,
    #555 10%
  );
  content: "";
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.enable_overlay_main .bmd-red-button,
.enable_overlay_main h3 {
  z-index: 100;
}
.variation2 .bmd-mh-inner .bmd-mh-slide:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.variation2 .bmd-mh-slide-inner {
  max-width: 1260px;
  margin: 0 auto;
  align-items: center;
  padding: 5% 30px;
  justify-content: center;
}

.variation2 .bmd-mh-slide-inner:after {
  display: none;
}

.variation2 .bmd-mh-slide-inner .bmd-mh-small-text {
  margin-left: 0;
}

.bmd-fh-inner .bmd-cta-centered {
  margin-bottom: 54px;
}

.bmd_fh_desc {
  font-size: 18px;
  line-height: 25px;
  text-align: center;
  margin: 0 auto 42px;
  padding: 0 25px;
  max-width: 1000px;
  font-weight: 300;
}

.bmd_tiles {
  max-width: 1260px;
  margin: 0 auto;
  padding: 85px 0 5px;
}

.bmd_tile_block h3 {
  width: 100%;
  font-weight: 400;
  margin-bottom: 36px;
}

.bmd_tile_block .bmd-red-button {
  padding: 16px 35px;
  line-height: 1.8;
}

.bmd_tile_block .bmd-red-button:hover {
  color: #000;
}

.bmd_home_filter {
  margin-top: 5px;
  margin-bottom: 85px;
  background-size: cover;
  background-position: center;
  padding: 90px 25px;
}

.bmd_home_filter_inner {
  max-width: 1260px;
  margin: 0 auto;
}

.bmd_filter_block {
  background: #fff;
  padding: 30px 27px;
  max-width: 390px;
  text-align: center;
}

.bmd_filter_block h4 {
  font-weight: 400;
  margin-bottom: 25px;
}

.bmd_filter_block .bmd-blue-button {
  padding: 16px 35px;
  line-height: 1.8;
  display: inline-block;
  margin-top: 12px;
}

.bmd_filter_block .bmd-hf-form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  float: initial;
  width: 100%;
}

.bmd_filter_block .bmd-select-wrapper {
  display: block;
  width: 100%;
}

.bmd_filter_block .bmd-select-wrapper:after {
  top: 9px;
}

.bmd_filter_block .bmd-hf-select {
  width: 100%;
  margin-bottom: 12px;
  height: 37px;
  border-radius: 0;
  outline: none !important;
}

ul.tags_bilddealers_home.sale_page_279 {
  right: 0;
}

ul.tags_bilddealers_home {
  position: absolute;
}

ul.tags_bilddealers_home li {
  width: auto;
  float: left;
  margin: 10px 2px 2px 5px;
  padding: 2px 5px;
  border-radius: 5px;

  font-weight: 600;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  font-size: 12px;

  padding: 4px 10px;
}
ul.tags_bilddealers_home.sale_page_279 {
  right: 0;
}

ul.tags_bilddealers_home {
  position: absolute;
}

ul.tags_bilddealers_home li {
  width: auto;
  float: left;
  margin: 10px 2px 2px 5px;
  padding: 2px 5px;
  border-radius: 5px;

  font-weight: 600;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  font-size: 12px;

  padding: 4px 10px;
}

/*Cookies Css Open*/
.cky-notice-btn-wrapper {
  flex-direction: column-reverse;
}

button.cky-btn.cky-btn-customize {
  margin: 0px;
  font-size: 14px;
  border: none;
  padding: 2px;
  text-decoration: underline;
}

.cky-notice-btn-wrapper button.cky-btn.cky-btn-accept {
  border-radius: 4px;
  margin-left: 0;
  font-size: 14px;
  padding: 0px 20px;
}

.wpautoterms-footer {
  display: none;
}
/*Cookies Css Close*/

/**
 * Web Dev Custom Media Query
 */
@media screen and (max-width: 1279px) {
  .bmd_filter_block .bmd-select-wrapper {
    margin-top: 0;
  }
}

@media screen and (max-width: 960px) {
  .bmd-mh-slide-inner {
    padding: 0 21px;
  }

  .bmd-mh-slide-inner h1 {
    text-align: center;
    line-height: 0.9;
  }
}

/*Cookies Css Open*/
@media screen and (max-width: 769px) {
  .cky-notice-btn-wrapper {
    flex-direction: row !important;
    align-items: end !important;
  }
  .cky-notice-btn-wrapper .cky-btn-accept {
    order: 1;
    font-size: 12px;
  }
  .cky_text_content {
    font-size: 12px !important;
  }
  button.cky-btn.cky-btn-customize {
    font-size: 12px;
    order: 2 !important;
  }
}
/*Cookies Css Close*/

@media screen and (min-width: 768px) {
  .bmd_tiles_inner {
    display: flex;
    flex-wrap: wrap;
    row-gap: 30px;
    justify-content: space-between;
  }

  .bmd_tile_block {
    width: calc(50% - 12px);
    position: relative;
    background-size: cover;
    background-position: center;
  }

  .bmd_tile_block:before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 100%;
  }

  .bmd_tile_block_inner {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    align-content: flex-end;
    padding: 39px;
  }
}

@media screen and (max-width: 767px) {
  .wdt_custom_tooolbar .topbar-wrap span {
    width: 100%;
    display: inline-block;
    text-align: right;
  }
  .wdt_custom_tooolbar .topbar-wrap span,
  .wdt_custom_tooolbar .topbar-wrap span a {
    font-size: 14px;
  }
  .wdt_custom_tooolbar .topbar-wrap {
    gap: 10px;
  }
  .variation2 .bmd-mh-slide-inner .bmd-mh-small-text {
    text-align: left;
    line-height: 1;
  }

  .bmd_tiles {
    overflow: hidden;
  }

  .bmd_tiles_inner.slick-slider {
    padding-left: 25px;
    margin-bottom: 45px;
  }

  .bmd_tiles_inner .slick-list {
    padding-right: 25px;
  }

  .bmd_tile_block {
    margin-right: 15px;
    background-size: cover;
    background-position: center;
  }

  .bmd_tiles_inner .slick-dots {
    bottom: -35px;
    width: calc(100% - 50px);
  }

  .bmd_tile_block_inner {
    position: relative;
  }

  .bmd_tile_block_inner:before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 100%;
  }

  .bmd_tile_block h3 {
    position: absolute;
    left: 30px;
    bottom: 60px;
  }

  .bmd_tile_block .bmd-red-button {
    position: absolute;
    left: 30px;
    bottom: 25px;
    padding: 15px 35px;
    line-height: 1.3;
    font-size: 13px;
  }
}

@media screen and (max-width: 767px) {
  .enable_overlay_main .bmd_tile_block_inner::after {
    background: -webkit-linear-gradient(
      top,
      rgba(0, 0, 0, 0.1) 40%,
      #222 100%,
      #555 100%,
      #222 100%,
      #555 10%
    );
  }
}

/* ── Mortgage Calculator Popup ── */

.bay-fin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  backdrop-filter: blur(2px);
}

.bay-fin-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 75%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.bay-fin-modal.is-open,
.bay-fin-overlay.is-open {
  display: block;
}

/* Prevent body scroll when modal is open */
body.bay-fin-open {
  overflow: hidden;
}

.bay-fin-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 4px 8px;
  border-radius: 4px;
  transition:
    color 0.2s,
    background 0.2s;
}

.bay-fin-modal-close:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
}

.bay-fin-calc-section {
  background-color: white;
  padding: 40px;
}
.bay-fin-calc-inner {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.bay-fin-calc-heading {
  font-size: 40px;
  font-family: "Crimson Text", serif !important;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.bay-fin-field {
  margin-bottom: 20px;
}
.bay-fin-label {
  display: block;
  margin-bottom: 6px;
  color: #5f7fa8;
}
.bay-fin-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.bay-fin-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: #111;
  line-height: 1;
}
.bay-fin-number {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid #d0dce6;
  border-radius: 30px;
  text-align: right;
  background: white;
  appearance: none;
}
.bay-fin-number:focus {
  outline: none;
}

.bay-fin-slider {
  --fill: 20%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #9dbfd2 0%,
    #9dbfd2 var(--fill),
    #d0dce6 var(--fill),
    #d0dce6 100%
  );
  cursor: pointer;
  outline: none;
}

.bay-fin-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid #9dbfd2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.bay-fin-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.bay-fin-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid #9dbfd2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.bay-fin-term-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bay-fin-term-btn {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid #d0dce6;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.bay-fin-term-btn:hover {
  border-color: #9dbfd2;
  color: #9dbfd2;
}
.bay-fin-term-btn.active {
  background: #9dbfd2;
  border-color: #9dbfd2;
  color: #000;
}
.bay-fin-result {
  background: #142439;
  border-radius: 30px;
  padding: 20px;
  color: #d0dce6;
  position: sticky;
  top: 100px;
}
.bay-fin-result-label {
  font-weight: 500;
  color: white;
  margin: 0 0 6px;
  line-height: 1;
}
.bay-fin-result-amount {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 4px;
}
.bay-fin-result-dollar {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d0dce6;
  margin-top: 6px;
}
#monthly-payment {
  font-size: 3.5rem;
  font-weight: 700;
  color: #9dbfd2;
  line-height: 1;
}
.bay-fin-result-per {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 20px;
  line-height: 1;
}
.bay-fin-result-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bay-fin-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bay-fin-result-row span {
  color: white;
  line-height: 1;
}
.bay-fin-result-row span:last-child {
  font-weight: 500;
  color: white;
}
.bay-fin-result-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0 0 10px;
}
.bay-fin-result-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 30px;
  background: #9dbfd2;
  color: #142439;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  box-sizing: border-box;
}
.bay-fin-result-btn:hover {
  background: #142439;
  color: #9dbfd2;
  border: 1px solid #9dbfd2;
}

@media (max-width: 600px) {

    .bay-fin-modal {
        width: 96vw;
        max-height: 92vh;
        top: 50%;
        border-radius: 10px;
    }

    .bay-fin-calc-section {
        padding: 0;
    }

    .bay-fin-calc-inner {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bay-fin-calc-form {
        padding: 48px 20px 20px; /* extra top padding clears the × button */
    }

    .bay-fin-calc-heading {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .bay-fin-result {
        border-radius: 0 0 10px 10px; /* match modal bottom corners */
        padding: 20px;
    }

    .bay-fin-result-amount {
        font-size: 2.2rem;
    }

    .bay-fin-slider-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .bay-fin-number {
        width: 80px;
    }

    .bay-fin-term-btns {
        display: block;
    }

    .bay-fin-term-btn {
        width: 90%;
        margin-bottom: 10px;
    }

    .bay-fin-result-btn {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

}