*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Matched to djwmanagement.com */
    --djw-dark:    #2b2b2b;   /* site header / body text */
    --djw-red:     #c0392b;   /* CTA buttons (red accent) */
    --djw-red-hov: #a93226;
    --djw-white:   #ffffff;
    --djw-bg:      #f7f7f7;   /* site page background */
    --djw-border:  #e0e0e0;
    --djw-muted:   #777777;
    --djw-light:   #f2f2f2;
    --radius:      4px;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--djw-bg);
    color: var(--djw-dark);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    color: var(--djw-red-hov);
}

a:hover {
    color: var(--djw-dark) ;
    text-decoration: none !important;
}
/* ── Search Bar ── */
.search-section {
    background: var(--djw-dark);
    padding: 50px 20px;
}

.search-section h2 {
    color: var(--djw-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.search-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.search-field {
    flex: 1 1 140px;
    min-width: 120px;
}

.search-field label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-bottom: 10px;
}

.search-field input,
.search-field select {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--djw-white);
    padding: 8px 10px;
    border-radius: var(--radius);
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    outline: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
}

.search-field select option { background: #2b2b2b; }
.search-field input::placeholder { color: rgba(255,255,255,0.3); }
.search-field input:focus,
.search-field select:focus { border-color: rgba(255,255,255,0.5); }

.search-btn {
    background: var(--djw-red);
    color: var(--djw-white);
    border: none;
    padding: 9px 22px;
    border-radius: var(--radius);
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    height: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-end;
}

.search-btn:hover { background: var(--djw-red-hov); }

/* ── Results Bar ── */
.results-bar {
    padding: 12px 20px;
    background: var(--djw-white);
    border-bottom: 1px solid var(--djw-border);
}
.result_bar_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.results-count {
    font-size: 13px;
    color: var(--djw-muted);
}

.results-count strong { color: var(--djw-dark); font-weight: 700; }

.sort-toggle {
    font-size: 13px;
    color: var(--djw-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sort-toggle span {
    color: var(--djw-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Listings ── */
.listings-wrap {
    padding: 18px 10px 40px;
    max-width: 1140px;
    margin: 0 auto;
}

.property-card {
    background: var(--djw-white);
    border: 1px solid var(--djw-border);
    border-radius: var(--radius);
    display: flex;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.18s;
    text-decoration: none;
    color: inherit;
}

.property-card:hover {
    box-shadow: 0 3px 14px rgba(0,0,0,0.12);
}

.card-accent {
    width: 4px;
    min-width: 4px;
    background: var(--djw-red);
    flex-shrink: 0;
}

.card-img {
    width: 200px;
    min-width: 200px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.card-img-placeholder {
    width: 200px;
    min-width: 200px;
    height: 200px;
    background: var(--djw-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--djw-dark);
    line-height: 1.45;
    margin-bottom: 8px;
    /*display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;*/
    overflow: hidden;
}

.card-title br {
  margin-bottom: 10px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover { color: var(--djw-red); }

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--djw-muted);
}
.meta-item svg{
    width: 14px;
    height: 14px;
}

.card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  justify-content: space-around;
    padding: 12px 14px 12px 4px;
    flex-shrink: 0;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--djw-dark);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.card-price-label {
    font-size: 11px;
    color: var(--djw-muted);
    font-weight: 400;
    text-align: right;
}

.view-btn {
    background: var(--djw-red);
    color: var(--djw-white) !important;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: var(--radius);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.15s;
    white-space: nowrap;
    display: inline-block;
}

.view-btn:hover { background: var(--djw-red-hov) !important; }

.phone-link {
    color: var(--djw-red);
    text-decoration: none;
    font-weight: 600;
}

.phone-link:hover { text-decoration: underline; }

.no-results {
    text-align: center;
    padding: 50px 20px;
    color: var(--djw-muted);
    font-size: 14px;
}

@media (max-width: 540px) {
    .search-field { flex: 1 1 calc(50% - 5px); }
    .card-img, .card-img-placeholder { width: 80px; min-width: 80px; height: 200px; }
    .card-price { font-size: 16px; }
    .card-body { padding: 10px 10px; }
    .card-right { padding: 10px;flex-direction: inherit; }
    .card-title { font-size: 16px; }
    .property-card{
        display: block;
    }
}
/* PROPERTY INNER PAGE CSS */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }
/* ── Back button bar ── */
.back-bar {
    background: #fff;
    padding: 20px 8%;
}
.back-btn {
    display: inline-block;
    border: 1px solid #444;
    color: #444;
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 2px;
    cursor: pointer;
}
.back-btn:hover { background: #444; color: #fff; text-decoration: none; }

/* ── Main property section ── */
.property-section {
    padding: 20px 8% 75px;
}

.property-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ── Gallery ── */
.property-gallery {
    width: 50%;
    flex-shrink: 0;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
body.no-scroll{
    overflow: hidden;
    height: 100vh;
}
.product {
    display: flex;
    flex-direction: column;
}

.property-gallery .slick-prev, .property-gallery .slick-next {
    width: 40px;
    height: 40px;
}

.property-gallery .slick-next:before, .property-gallery .slick-prev:before {
    font-size: 40px;
}


@media only screen and (min-width: 768px) {
    .product {
        flex-direction: row;
    }

    .product-images {
        width: 90%;
        margin: 0 auto;
        padding: 20px;
    }

    .product-description {
        margin-left: 36px;
    }
}
/* Thumbnails Slider */
.slider-thumbnails {
    margin-left: -15px;
    margin-right: -15px;
}

.slider-thumbnails .slick-slide {
    padding: 10px;
    transition: transform 0.3s ease-out;
}

.slider-thumbnails .slick-slide:focus img {
    box-shadow: 0 0 5px rgba(0,0,0,0.6);
}

.slider-thumbnails .slick-slide img {
    max-width: 100%;
    border: solid 5px #922b26;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s ease-out;
    border-radius: 3px;
}

/* Main Slider */
.slider {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    border: solid 9px #922b26;
    box-sizing: border-box;
    margin-bottom: 15px;
    border-radius: 5px;
}

.slider .slick-slide img {
    width: 100%;
}

/* make button larger and change their positions */
.slick-prev,
.slick-next {
    width: 50px;
    height: 50px;
    z-index: 1;
}

.slick-prev {
    left: 5px;
}

.slick-next {
    right: 5px;
}

.slick-prev:before,
.slick-next:before {
    font-size: 40px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


/* General slick slider styling */
.slick-slide:focus,
.slick-slide:focus {
    outline: none;
    /* remove default outline when on :focus */
}

/* transition effects for opacity */
.slick-arrow {
    transition: opacity 0.5s ease-out;
}

/* Loading effects for main slider */
.slider {
    /* background: url(img/tail-spin.svg); */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100px 100px;
    /* min-height: 100px; */
}
.slider img.slick-loading {
    opacity: 0;
}
.slider img {
    transition: opacity 0.3s ease 0s;
}
.slider .slick-loading:after {
    content:'loading'
}

.property-gallery .slider-thumbnails .slick-slide img {
    /* height: 100%; */
    min-height: 100px;
    max-height: 100px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.property-gallery .slick-track {
    height: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.property-gallery .slick-list.draggable {
    height: 100% !important;
}

.property-gallery .slider .slick-slide img {
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.lightbox .lb-data .lb-close {
    top: -5%;
    position: absolute;
    right: 10%;
}
.lightbox .lb-nav a.lb-prev {
    opacity: 1 !important;
    left: -60px !important;
    position: absolute !important;
    width: 50px !important;
}

.lightbox .lb-nav a.lb-next {
    width: 50px !important;
    opacity: 1 !important;
    right: -60px !important;
    position: absolute !important;
}
.lightbox {
    top: 10% !important;
    height: 100vh !important;
    /* overflow-y: auto !important; */
    padding: 50px;
}
.lightboxOverlay {
    height: 100% !important;
    /* padding: 3%; */
    overflow: auto;
    position: fixed !important;
}
.lightbox .lb-details {
    display: none !important;
}
@media (min-width: 1500px) {
    .property-gallery .slider-thumbnails .slick-slide img {
    /* height: 100%; */
        min-height: 200px;
        max-height: 200px;
    }
}
@media (max-width: 768px) {
    .slider-thumbnails .slick-prev {
        left: -5px;
    }

    .slider-thumbnails .slick-next {
        right: -5px;
    }
}
/* .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f7f7f7;
}

.gallery-grid .gimg {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #e8e8e8;
}

.gallery-grid .gimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
} */

/* placeholder blocks for missing images */
/* .gallery-grid .gimg.placeholder {
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 11px;
    text-align: center;
} */

/* ── Content side ── */
.property-content {
    flex: 1;
    min-width: 0;
    padding: 0 5%;
}

.prop-address {
    font-size: 18px;
        font-weight: 700;
    color: var(--djw-dark);
    line-height: 22px;
    margin-bottom: 8px;
}

.prop-title {
    font-size: 24px;
    color: #922b26;
    line-height: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.prop-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.prop-desc p { margin-bottom: 12px; }
.prop-desc p:last-child { margin-bottom: 0; }

/* Details list */
.details-list {
    margin-bottom: 10px;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 6px 0;
    font-size: 13px;
}

.detail-label {
    width: 45%;
    font-weight: 600;
    color: #555;
}

.detail-value {
    flex: 1;
    color: #333;
}

/* ── CTA section ── */
.cta-col {
    width: 100%;
    background: #eaeaea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 8%;
    gap: 12px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #922b26;
    color: #fff !important;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
}
.cta-btn:hover { background: #7a2320; text-decoration: none; color: #fff !important; }

.divider-line {
    width: 20%;
    height: 1px;
    background: #922b26;
    margin: 4px 0;
}

.cta-phone {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

/* ── Additional Info section ── */
.additional-section {
    padding: 0 8%;
}

.additional-title {
    font-size: 24px;
    color: #444;
    margin: 50px 0 25px;
    font-weight: 600;
}

.additional-grid {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
}

.additional-col {
    width: 50%;
    padding: 0 8% 0 0;
}

.additional-col h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}

.additional-col p {
    font-size: 13px;
    color: #555;
}
/* ── Post footer ── */
.post-footer {
    padding: 16px 8%;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #eee;
    margin-top: 10px;
}
.post-footer a { color: #922b26; }

/* ── Blog post header ── */
.post-header {
    padding: 20px 8% 10px;
}

.post-author-bar {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.post-main-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.35;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .property-inner { flex-direction: column; }
    .property-gallery { width: 100%; padding: 20px;}
    .property-content { padding: 16px 0; }
    .map-cta-section { flex-direction: column; }
    .map-col, .cta-col { width: 100%; }
    .additional-grid { flex-direction: column; }
    .additional-col { width: 100%; padding: 0; margin-bottom: 20px; }
    .post-nav { flex-direction: column; gap: 8px; }
}
.details-list a,
.cta-phone a {
    color: var(--djw-red-hov) !important;
}
.details-list a:hover,
.cta-phone a:hover {
    color: var(--djw-dark) !important;
}
.container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}
html, body {
    overflow-x: hidden;
}

@media (max-width: 575px) {
    .property-card {
        flex-wrap: wrap;
    }

    .card-img-placeholder, .card-img {
        width: 100%;
        min-width: 100%;
    }
}