.dbw-property-template {
    width: 100%;
}

.dbw-property-key-features-text span {
    border-left: 1px solid #dfdfdf;
    padding-left: 20px;}

.dbw-property-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 0rem;
}

.dbw-property-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dbw-property-title {
    margin-top: 0;
}

.dbw-property-layout {
    display: grid;
    grid-template-columns: minmax(0, 65%) minmax(280px, 35%);
    gap: 2.5rem;
    align-items: start;
}

.dbw-property-featured-image-wrap {
    margin: 0;
}

.dbw-property-featured-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

.dbw-property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dbw-property-gallery-item {
    margin: 0;
}

.dbw-property-gallery-link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.dbw-property-gallery-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
}

.dbw-property-details {
    display: grid;
    gap: 1rem;
}

.dbw-property-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    color: #666666;
    font-size: 18px;
    line-height: 1.3;
}

.dbw-property-detail-item--key-features {
    align-items: flex-start;
}

.dbw-property-detail-value {
    display: block;
}

.dbw-property-icon {
    color: #263974;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
}

.dbw-property-floorplan-wrap {
    margin: 0;
    padding-top: 0.5rem;
}

.dbw-property-button,
.dbw-property-button:visited {
    border-radius: 30px 30px 30px 30px;
    background: #0ea3d7;
    border-width: 1px 0;
    border: 1px solid #0ea3d7;
    color: #ffffff !important;
    font-size: 1em;
    padding: 1em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding-inline: 2em;
    display: inline-block;
    line-height: 1.2;
    text-decoration: none;
}

.dbw-property-button:hover,
.dbw-property-button:focus {
    background: #0c92c1;
    border-color: #0c92c1;
    color: #ffffff !important;
    text-decoration: none;
}

.dbw-property-content {
    margin-top: 3rem;
}

.dbw-property-content > :first-child {
    margin-top: 0;
}

.dbw-property-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .dbw-property-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dbw-property-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dbw-property-inner {
        padding: 0 1rem 2rem;
    }

    .dbw-property-gallery-grid {
        grid-template-columns: 1fr;
    }

    .dbw-property-detail-item,
    .dbw-property-floorplan-wrap {
        text-align: left;
    }

    .dbw-property-button {
        width: 100%;
        text-align: center;
    }
}

.dbw-property-detail-item--key-features {
    display: block;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.dbw-property-key-features-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dbw-property-key-features-heading h2 {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
}

.dbw-property-key-features-text {
    padding-top: 0.85rem;
    line-height: 1.65;
}

.dbw-property-key-features-text span {
    display: block;
    padding: 0.15rem 0;
}

.dbw-property-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.86);
}

.dbw-property-lightbox.is-open {
    display: flex;
}

.dbw-property-lightbox__dialog {
    position: relative;
    max-width: min(1100px, 100%);
    max-height: 100%;
}

.dbw-property-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.dbw-property-lightbox__caption {
   display:none;
}

.dbw-property-lightbox__close,
.dbw-property-lightbox__prev,
.dbw-property-lightbox__next {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #263974;
    cursor: pointer;
    line-height: 1;
     padding: 5px 18px !important;
}

.dbw-property-lightbox__close {
    top: -1rem;
    right: -1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.7rem;
    padding: 5px 18px !important;
}

.dbw-property-lightbox__prev,
.dbw-property-lightbox__next {
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 2rem;
    transform: translateY(-50%);
        padding: 5px 18px !important;
}

.dbw-property-lightbox__prev {
    left: -4rem;
}

.dbw-property-lightbox__next {
    right: -4rem;
}

.dbw-property-lightbox__close:focus,
.dbw-property-lightbox__prev:focus,
.dbw-property-lightbox__next:focus {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .dbw-property-lightbox {
        padding: 1rem;
    }

    .dbw-property-lightbox__image {
        max-height: calc(100vh - 5rem);
    }

    .dbw-property-lightbox__close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .dbw-property-lightbox__prev,
    .dbw-property-lightbox__next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .dbw-property-lightbox__prev {
        left: 1rem;
    }

    .dbw-property-lightbox__next {
        right: 1rem;
    }
}

.dbw-nhbc-strip {
    display: grid;
    grid-template-columns: minmax(0, 28%) minmax(0, 72%);
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 1rem 3rem;
}

.dbw-nhbc-strip__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dbw-nhbc-strip__logo {
    display: block;
    max-width: 100%;
    width: 320px;
    height: auto;
}

.dbw-nhbc-strip__content p {
    margin: 0;
}

@media (max-width: 768px) {
    .dbw-nhbc-strip {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}
