@media screen and (min-width: 767.98px) and (max-width: 1741px){
  
  .kd-bap-carousel {
    padding-left: calc(57px + 3rem);
    padding-right: 40px;
  }
}

footer {
  margin-top: 3rem;
}
.single-models .head-logo.white {
  display: none !important;
}

.single-models .head-logo.color {
  display: block !important;
}

.single-models .navbtn span {
  background-color: #c33525;
}

.kd-home-model-heading h1,
.kd-home-model-heading h2 {
  font-size: 45px;
}

.accordion .accordion-item:has(> .accordion-button.collapsed) {
  border: 1px solid #e5e5e5 !important;
}

.accordion .accordion-item:has(> .accordion-button) {
  border: 1px solid #c33525 !important;
}

.accordion .accordion-item {
  border-radius: 10px !important;
}

.accordion .accordion-item:not(:last-of-type) {
  margin-bottom: 0.5rem;
}

.accordion .accordion-item .accordion-button:after {
  background-color: #f6f6f6;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 9999px;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23C32535'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion .accordion-item .accordion-button .accordion-header {
  font-family: "agenda", sans-serif;
}

.nav.nav-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav.nav-tabs .nav-item:not(:last-of-type) {
  margin-right: 1.5rem;
}

@media (max-width: 575.98px) {
  .nav.nav-tabs + .tab-content {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  }
}

.nav-tabs .nav-link {
  border-bottom: 2px solid #e5e5e5 !important;
  font-size: 16px;
}

@media (min-width: 1199.98px) {
  .nav-tabs .nav-link {
    min-width: 120px;
  }
}

.nav-tabs .nav-link.active {
  border-bottom: 2px solid #c33525 !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-bottom: 2px solid #c33525 !important;
}

@media (min-width: 991.98px) {
  .accordion-sections {
    max-height: 765px;
    overflow: auto;
    overflow-x: hidden;
    padding-bottom: 12rem;
  }
}

/* .accordion-sections .accordion-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
} */

.accordion-sections .accordion-section-h3 {
  font-size: 30px;
}

.ff-agenda {
  font-family: "agenda", sans-serif;
}

.accordion-sections .accordion-section:not(:last-of-type) {
  margin-bottom: 3rem;
}

.kd-home-model-carousel .carousel-control-next {
  justify-content: flex-end;
}

.kd-home-model-carousel .carousel-control-prev {
  justify-content: flex-start;
}

.kd-home-model-carousel .carousel-control-next,
.kd-home-model-carousel .carousel-control-prev {
  opacity: 1;
  top: 50%;
  bottom: unset;
  transform: translateY(-50%);
}

.kd-home-model-carousel .carousel-control-prev span {
  margin-left: 0.5rem;
}

.kd-home-model-carousel .carousel-control-next span {
  margin-right: 0.5rem;
}

.kd-home-model-carousel .carousel-control-prev span,
.kd-home-model-carousel .carousel-control-next span {
  color: white;
  background-color: #c33525;
  border-radius: 9999px;
  background-position: center;
  background-repeat: no-repeat;
  width: 2rem;
  height: 2rem;
  background-size: 20px;
}

.kd-home-model-carousel .carousel-item {
  background-color: #fff;
  position: relative;
  transition: transform 0.25s ease-in-out;
}

.kd-home-model-carousel .carousel-item.floorplan-carousel-item:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 5px;
  display: none;
}

@media (min-width: 575.98px) {
  .kd-home-model-carousel .carousel-item.floorplan-carousel-item:before {
    border-radius: 15px;
  }
}

/* .kd-home-model-carousel .carousel-item img {
  width: 100%;
} */

.kd-home-model-carousel .carousel-item img {
  max-height: 499px;
  object-fit: contain;
  object-position: center;
}

.kd-home-model-carousel .carousel-item img,
.kd-home-model-carousel .carousel-item {
  max-height: 200px;
}

@media (min-width: 575.98px) {
  .kd-home-model-carousel .carousel-item img,
  .kd-home-model-carousel .carousel-item {
    max-height: 499px;
  }
}

.accordion-radio,
.added-option-radio {
  outline-offset: 2px;
}

.accordion-radio:focus,
.accordion-radio:checked {
  outline: 1px solid #c33525 !important;
}

.added-option-radio:focus,
.added-option-radio:checked {
  outline: 1px solid #b4b4b4 !important;
}

.form-check-input:checked {
  background-color: #c33525 !important;
  border-color: #c33525 !important;
}

.form-check-input:focus {
  box-shadow: none !important;
}

.btn.btn-primary {
  background-color: #c33525;
  color: white;
  letter-spacing: 3px;
  font-size: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
}

.btn.btn-primary .btn-text {
  padding: 1rem;
}

@media (min-width: 575.98px) {
  .btn.btn-primary .btn-text {
    padding: 1rem 3rem 1rem 3rem;
  }
}

.btn.btn-primary .icon-wrapper {
  padding: 1rem 1.5rem 1rem 1.5rem;
}

.btn.btn-primary .icon-wrapper {
  background-color: #8b2419;
  transition: all 0.3s;
}

.btn.btn-primary img {
  max-width: 30px;
}

.btn.btn-primary:before {
  content: none;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: #212529;
}

.btn.btn-primary:hover .icon-wrapper,
.btn.btn-primary:focus .icon-wrapper {
  background-color: #000000;
}

.quoted-price-wrapper {
  min-width: 200px;
  text-align: center;
}

@media (min-width: 575.98px) {
  #quoted-price,
  .quoted-price-wrapper.h3 {
    font-size: 30px;
  }
}

.quoted-price-text.h4 {
  font-size: 22px;
}

@media (max-width: 575.98px) {
  .quoted-price-text.h4 {
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  .quoted-price-wrapper.h3 {
    font-size: 24px;
  }
}

.kd-model-badge {
  border: 1px solid #c33525;
  border-radius: 3px;
  max-width: 140px;
  font-size: 15px;
}

.kd-model-badge .text {
  width: 100%;
  text-align: center;
  color: #c33525;
}

.kd-model-badge .price {
  padding: 0.5rem;
  background-color: #c33525;
  color: #fff;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

@media (max-width: 575.98px) {
  .kd-model-badge {
    font-size: 10px;
  }
}

@media (min-width: 575.98px) {
  .kd-model-badge {
    border-radius: 5px;
    max-width: 210px;
  }
}

.elevation-option.selected {
  border-color: #c33525 !important;
}

.carousel-model-gallery-grid {
  display: grid;
  grid-template-areas:
    "a a b"
    "a a c";
  gap: 5px;
}

@media (min-width: 575.98px) {
  .carousel-model-gallery-grid {
    min-height: 499px;
  }
}

.placeholder-wrapper {
  position: relative;
}

.placeholder-wrapper:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0,0,0,.5);
}

.kd-home-model-carousel .carousel-item .carousel-model-gallery-grid-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.carousel-model-gallery-grid-img-1,
.carousel-model-gallery-grid > a:has(.carousel-model-gallery-grid-img-1) {
  grid-area: a;
}

.carousel-model-gallery-grid-img-2,
.carousel-model-gallery-grid > a:has(.carousel-model-gallery-grid-img-2) {
  grid-area: b;
}

.carousel-model-gallery-grid-img-3,
.carousel-model-gallery-grid > a:has(.carousel-model-gallery-grid-img-3) {
  grid-area: c;
}

.gallery-grid-wrapper {
  display: grid;
  grid-template-areas:
    "a a a a b b"
    "a a a a c c"
    "d d d e e e"
    "f f g g h h"
    "i i j j j j"
    "k k j j j j"
    "l l l m m m";
  gap: 5px;
}

.gallery-img-1 {
  grid-area: a;
}
.gallery-img-2 {
  grid-area: b;
}
.gallery-img-3 {
  grid-area: c;
}
.gallery-img-4 {
  grid-area: d;
}
.gallery-img-5 {
  grid-area: e;
}
.gallery-img-6 {
  grid-area: f;
}
.gallery-img-7 {
  grid-area: g;
}
.gallery-img-8 {
  grid-area: h;
}
.gallery-img-9 {
  grid-area: i;
}
.gallery-img-10 {
  grid-area: j;
}
.gallery-img-11 {
  grid-area: k;
}
.gallery-img-12 {
  grid-area: l;
}
.gallery-img-13 {
  grid-area: m;
}

.kd-home-meta-description h3 {
  font-size: 25px;
}

.meta-details,
.kd-meta-box {
  border: 1px solid #ddd;
  min-height: 40px;
}

.beds, .baths, .sqft {
  min-width: 100px;
  max-width: 125px;
}

.meta-details {
  font-size: 16px;
}

.kd-meta-box {
  transition: border-color 0.15s ease-in-out;
  font-size: 14px;
  border-radius: 10px;
}

@media (max-width: 575.98px) {
  .kd-meta-box {
    font-size: 12px;
  }
}

.kd-meta-box:hover,
.kd-meta-box:focus {
  border-color: #c33525 !important;
}

.readmore {
  overflow-y: hidden;
  transition: all 0.3s ease-in-out;
}

.readmore + a {
  font-weight: 500;
  font-size: 18px;
  position: relative;
}

.readmore + a:after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("../templates/partials/carousel/chevron.svg");
  width: 13px;
  height: 9px;
}

.modal .nav-pills .nav-link.active {
  background-color: #c33525;
  color: #fff !important;
  border-color: #c33525 !important;
}

.modal .nav-pills .nav-link:not(:last-of-type) {
  margin-bottom: 0.5rem;
}

.modal .floorplan-model-wrapper h3 {
  font-size: 35px;
}

.modal .floorplan-tab-content:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.1);
}

.kd-team-modal-section {
  background-image: url("/wp-content/uploads/2024/08/pattern-black-octagon-v2.jpg");
  background-position: center;
  background-repeat: repeat;
}

.modal .modal-body {
  position: relative;
}

.modal .modal-body .btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background-color: black;
  opacity: 1;
  border-radius: 9999px;
  background: #e5e5e5
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c32535'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 0 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center / 1em auto no-repeat;
  padding: 0.5rem;
  z-index: 5;
}

.carousel-item {
  min-height: 200px;
  position: relative;
}

@media (min-width: 575.98px) {
  .carousel-item {
    min-height: 499px;
  }
}

.added-floorplan {
  z-index: 1;
}

.added-floorplan,
.primary-floorplan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* .added-floorplan {
  position: relative;
  z-index: 1;
} */

/* Slick Carousel stuff */

.slick-slide {
  margin-right: 15px;
  margin-left: 15px;
}

.slick-dots {
  bottom: -2rem;
}

.slick-dots li {
  margin: 0; /* total spacing between dots becomes 5px */
}

/* Base dot style */
.slick-dots li button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background-color: transparent;
  padding: 0;
}

/* Remove default dot styling (optional cleanup) */
.slick-dots li button::before {
  content: none;
}

/* Active dot */
.slick-dots li.slick-active button {
  background-color: #c33525;
}

.custom-arrow:before {
  content: none;
}

.custom-arrow {
  width: 33px;
  height: 33px;
}

.kd-bap-box .img-wrapper .community-heading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  z-index: 2;
}

.home-meta-info .contact-icon {
  background: #c33525;
  border-radius: 9999px;
  padding: 0.5rem;
  margin-right: 1rem;
  width: 40px;
  height: 40px;
}

.home-meta-info span {
  font-weight: 500;
  font-size: 25px;
}

/* Arreane's Styling */

#kd-save-summary-form .hs-build_and_price_name {
  display: flex;
  flex-direction: column;
}
#kd-save-summary-form .hs-build_and_price_name legend.hs-field-desc {
  order: 30;
  display: block;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #aaa;
  margin-bottom: 20px;
}
#kd-save-summary-form .hs-build_and_price_name .input {
  margin-bottom: 10px;
}
#kd-save-summary-form input[type="text"],
#kd-save-summary-form input[type="email"],
#kd-save-summary-form input[type="tel"],
#kd-save-summary-form textarea {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: solid 2px #ddd;
  width: 100%;
}
#kd-save-summary-form textarea {
  resize: none;
}
#kd-save-summary-form .fieldset {
  max-width: 100%;
}
#kd-save-summary-form .form-columns-2 {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
#kd-save-summary-form .form-columns-2 .hs-form-field {
  width: 100%;
}
#kd-save-summary-form .input {
  margin-bottom: 20px;
}
#kd-save-summary-form .inputs-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
#kd-save-summary-form label {
  font-size: 13px;
  font-weight: 500;
}
#kd-save-summary-form .inputs-list li label {
  display: flex;
  align-items: center;
}
#kd-save-summary-form .hs-submit {
  display: none;
}
#kd-save-summary-form .legal-consent-container .hs-richtext {
  display: none;
}
#kd-save-summary-form .hs-error-msg,
#kd-save-summary-form .hs-error-msgs label {
  color: #c33525;
}
#kd-save-summary-form .kd-save-summary-form__submit {
  margin-top: 20px;
  transition: 0.3s ease;
}
#kd-save-summary-form .kd-save-summary-form__submit .icon-wrapper {
  position: relative;
}
#kd-save-summary-form
  .kd-save-summary-form__submit
  .kd-save-summary-form__loader {
  transition: 0.3s ease;
  transform: scale(0);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#kd-save-summary-form.kd-save-summary-form--loading
  .kd-save-summary-form__submit {
  pointer-events: none;
  background: #212529;
}
#kd-save-summary-form.kd-save-summary-form--loading
  .kd-save-summary-form__submit
  .icon-wrapper {
  background: #000000;
}
#kd-save-summary-form.kd-save-summary-form--loading
  .kd-save-summary-form__submit
  .kd-save-summary-form__loader {
  transform: scale(1);
}
#kd-save-summary-form .kd-save-summary-form__submit svg {
  transition: 0.3s ease;
}
#kd-save-summary-form.kd-save-summary-form--loading
  .kd-save-summary-form__submit
  svg {
  transform: translateY(100%);
  opacity: 0;
}

a.text-danger {
  color: #c33525 !important;
}

@media (min-width: 1724px){
  .custom-col {
    width: auto !important;
  }
}

.custom-justify {
  justify-content: flex-start;
  flex-direction: row;
}

@media (min-width: 1725px) {
  .custom-col {
    width: 100%;
  }

  .custom-justify {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
}

/* Lightbox Styling */


/* Position the image container (needed to position the left and right arrows) */
.kd-lightbox-modal .container {
  position: relative;
}

.kd-lightbox-modal .carousel-control-next,
.kd-lightbox-modal .carousel-control-prev {
  opacity: 1;
}

/* Hide the images by default */
.kd-lightbox-modal .slides {
  display: none;
}

/* Next & previous buttons */
.kd-lightbox-modal .prev,
.kd-lightbox-modal .next {
  cursor: pointer;
  position: absolute;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-size: 16px;
  text-decoration: none;
  background-color: #c33525;
  background-size: 20px !important;
  border-radius: 9999px;
  opacity: 1;
}

/* Position the "next button" to the right */
.kd-lightbox-modal .next {
  right: 0;
}

.kd-lightbox-modal .prev {
  left: 0;
}
/* On hover, add a black background color with a little bit see-through */
.kd-lightbox-modal .prev:hover,
.kd-lightbox-modal .next:hover {
  background-color: rgba(195, 53, 57, 1);
}

/* Number text (1/3 etc) */
.kd-lightbox-modal .numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  background-color: rgba(0, 0, 0, .4);
}

.kd-lightbox-modal .row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.kd-lightbox-modal .column {
  float: left;
  width: 16.66%;
}

/* Add a transparency effect for thumnbail images */
.kd-lightbox-modal .thumb-image {
  opacity: 0.6;
}

.kd-lightbox-modal .active,
.kd-lightbox-modal .thumb-image:hover {
  opacity: 1;
}

.kd-lightbox-modal .gallery-thumbnails-scroll {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.kd-lightbox-modal .gallery-thumbnails-scroll .thumb {
  flex: 0 0 calc(100% / 6 - 5px);
  max-width: calc(100% / 6 - 5px);
  box-sizing: border-box;
}
.kd-lightbox-modal .gallery-thumbnails-scroll .thumb img {
  width: 100%;
  height: 100%;
  max-height: 130px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.kd-lightbox-modal .gallery-thumbnails-scroll .thumb img.active,
.kd-lightbox-modal .gallery-thumbnails-scroll .thumb img:hover {
  opacity: 1;
}

.kd-lightbox-modal .gallery-img {
  max-height: 600px;
  object-fit: contain;
}

.kd-lightbox-modal .modal-dialog {
  margin-top: 28px !important;
  max-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.kd-lightbox-modal .modal-content {
  max-height: 100vh !important;
  overflow: auto;
}
.kd-lightbox-modal .gallery-img {
  max-height: clamp(200px, 70vh, 90vh);
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.kd-lightbox-modal .thumb-image {
  max-height: clamp(40px, 8vw, 80px);
  width: auto;
  object-fit: cover;
}  

.models-template-default header {
  position: static !important;
}

.kd-bap-box__promotion {
  position: absolute;
  z-index: 1;
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 7px;
}
.kd-bap-box__promotion--pill {
  border-radius: 60px;
  border: solid 1px #C33525;
  top: 12px;
  left: 12px;
}
.kd-bap-box__promotion--flag {
  font-weight: 700;
  font-size: 15px;
  background: #C33525;
  color: #C33525;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  overflow: hidden;
  padding: 1px 0px 1px 7px;
  top: 12px;
  left: 0;
  max-width: 100%;
}
.kd-bap-box__promotion--flag .kd-bap-box__promotion-inner {
  padding: 4px 17px 4px 7px;
  background: #fff;
  display: block;
  clip-path: polygon(0 0, calc(100% - 1px) 0, calc(100% - 13px) 100%, 0 100%);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.kd-promotion {
  font-weight: 700;
  font-size: 15px;
  background: #C33525;
  color: #C33525;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%);
  overflow: hidden;
  margin-left: auto;
  padding: 1px 7px 1px 0;
  max-width: max-content;
}
.kd-promotion .kd-promotion__inner {
  padding: 4px 8px 4px 19px;
  background: #fff;
  display: block;
  clip-path: polygon(1px 0, 100% 0, 100% 100%, 13px 100%);
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.kd-promotion.kd-promotion--inverse {
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  overflow: hidden;
  padding: 1px 0px 1px 7px;
  margin-left: 0;
}
.kd-promotion.kd-promotion--inverse .kd-promotion__inner {
  padding: 4px 17px 4px 7px;
  clip-path: polygon(0 0, calc(100% - 1px) 0, calc(100% - 13px) 100%, 0 100%);
}


.pswp__img {
  background: #fff !important;
}


a.base-model-lightbox-link {
  position: relative;
}
a[data-pswp-width][data-pswp-height]:before {
  position: absolute;
  top: 15px;
  right: 15px;
  content: "\f424";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  text-shadow: 1px 1px 0 #333;
  color: #e0e0e0;
}