/* --- BRAND VARIABLES & RESET --- */
:root {
    --brand-navy: #09203D;
    --brand-white: #FFFFFF;
    --brand-gold: #BF9903;
    
    --brand-bg: #F9F9F9;
    --brand-text: #09203D;
    --brand-text-light: #5A6A7E;
    
    --font-heading: "Josefin Sans", serif;
    --font-body: "Josefin Sans", sans-serif;
    
    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

.sw-wrapper {
    font-family: var(--font-body);
    color: var(--brand-text);
    background: var(--brand-white);
    line-height: 1.8;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.sw-wrapper * { box-sizing: border-box; }

.sw-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* --- NAV BAR --- */
.sw-nav-bar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    border-bottom: 1px solid rgba(9, 32, 61, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.sw-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-back-link, .sw-share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brand-navy);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: none; border: none; cursor: pointer;
    transition: color 0.3s ease;
}

.sw-share-btn {
	border: 1px solid #09203d!important;
	color: black!important;
	transition: .2s ease-in-out;
}

.sw-share-btn:hover {
	background: #09203d!important;
	border: 1px solid #09203d!important;
	color: #fff!important;
}

.sw-back-link:hover, .sw-share-btn:hover {
    color: var(--brand-gold);
}

/* --- HEADER --- */
.sw-header-section {
    padding: 80px 0 50px;
    text-align: center;
}

.sw-title {
    font-family: var(--font-heading);
    font-size: 56px;
    color: var(--brand-navy);
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.1;
}

.sw-price-row {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--brand-gold);
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    position: relative;
}

.sw-ref { 
    font-family: var(--font-body);
    font-size: 11px; 
    color: var(--brand-text-light); 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding-top: 5px;
}

.sw-cta-button {
    display: inline-block;
    background: var(--brand-navy);
    color: var(--brand-white);
    padding: 18px 45px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    transition: all 0.4s var(--ease-smooth);
    border: 1px solid var(--brand-navy);
    position: relative;
    overflow: hidden;
}

.sw-cta-button:hover { 
    background: var(--brand-white);
    color: var(--brand-navy);
}

/* --- HERO SECTION --- */
.sw-hero-section { 
    margin-bottom: 100px; 
}

.sw-hero-main {
    width: 100%;
    height: 85vh;
    min-height: 600px;
    position: relative;
    cursor: pointer;
    background: #f0f0f0;
    overflow: hidden;
}

.sw-hero-main img {
    width: 100% !important;
    min-width: 100%;
    height: 100%; 
    object-fit: cover;
    transition: transform 1.2s var(--ease-smooth);
}

.sw-hero-main:hover img { transform: scale(1.04); }

.sw-hero-main::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(9, 32, 61, 0.6), transparent);
    pointer-events: none;
}

.sw-view-photos-btn {
    position: absolute;
    bottom: 40px; right: 40px;
    background: var(--brand-white);
    border: none;
    padding: 15px 30px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-navy);
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.sw-view-photos-btn:hover { 
    background: var(--brand-gold);
    color: var(--brand-white);
}

.sw-thumb-strip { margin-top: 5px; }
.sw-thumb-flex { display: flex; gap: 5px; }

.sw-thumb-item {
    flex: 1; height: 160px; cursor: pointer; overflow: hidden;
}

.sw-thumb-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.3s, transform 0.5s;
}

.sw-thumb-item:hover img { opacity: 0.8; transform: scale(1.05); }

/* --- MAIN GRID --- */
.sw-content-bg { padding-bottom: 120px; }

.sw-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
}

/* Left Content */
.sw-section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--brand-navy);
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
    font-weight: 400;
}

.sw-section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 2px;
    background: var(--brand-gold);
}

.sw-description { 
    font-size: 17px; 
    font-weight: 400; 
    color: var(--brand-text-light);
    margin-bottom: 60px; 
    text-align: justify;
}
.sw-description p { margin-bottom: 30px; }

.sw-map-wrapper { margin-top: 60px; }
.sw-map-address { 
    margin-bottom: 25px; 
    font-weight: 600; 
    color: var(--brand-navy); 
    font-size: 18px;
    font-family: var(--font-heading);
}

/* Right Sidebar */
.sw-sidebar-card {
    position: sticky;
    top: 120px;
    padding: 0;
}

.sw-col-sidebar h3 {
    font-family: var(--font-heading);
    color: var(--brand-navy);
    font-size: 28px; 
    margin-bottom: 30px;
    margin-top: 0;
}

/* --- KEY FEATURES GRID --- */
.sw-stats-grid {
    background: transparent;
    padding: 0;
    display: grid;
    gap: 1px; 
    background-color: rgba(9, 32, 61, 0.1); 
    border: 1px solid rgba(9, 32, 61, 0.1);
    margin-bottom: 50px;
}

/* Grid Columns Logic */
.sw-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sw-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sw-grid-cols-1 { grid-template-columns: 1fr; }

.sw-stat {
    background: var(--brand-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 10px;
    color: var(--brand-navy);
    transition: background 0.3s;
}

.sw-stat:hover { background: #fafafa; }

/* Single Item Styling */
.sw-grid-cols-1 .sw-stat {
    flex-direction: row;
    gap: 20px;
    padding: 30px;
}
.sw-grid-cols-1 .sw-stat .sw-stat-val {
    margin-top: 0;
    font-size: 13px;
    letter-spacing: 2px;
}
.sw-grid-cols-1 .sw-stat .sw-custom-icon {
    margin-bottom: 0;
}

.sw-custom-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    object-fit: contain;
}

.sw-stat-val {
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Features List */
.sw-features-list { list-style: none; padding: 0; margin: 0 0 50px 0; }
.sw-features-list li {
    padding: 15px 0; 
    border-bottom: 1px solid rgba(9, 32, 61, 0.1);
    position: relative; 
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-text-light);
    display: flex;
    justify-content: space-between;
}

/* Details Table */
.sw-details-table { margin-bottom: 50px; }
.sw-details-table h4 { 
    margin: 0 0 25px 0; 
    color: var(--brand-navy); 
    font-family: var(--font-heading);
    font-size: 22px; 
}
.sw-dt-row {
    display: flex; justify-content: space-between;
    padding: 15px 0; border-bottom: 1px solid rgba(9, 32, 61, 0.1);
    font-size: 15px;
}
.sw-dt-row span { color: var(--brand-text-light); font-weight: 400; }
.sw-dt-row strong { color: var(--brand-navy); font-weight: 600; }

/* Downloads */
.sw-downloads { 
    background: #FAFAFA; 
    padding: 30px; 
    border-left: 4px solid var(--brand-gold);
}

.sw-dl-link {
    display: flex; color: var(--brand-navy);
    text-decoration: none; 
    font-weight: 700; 
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px; 
    justify-content: space-between;
    transition: color 0.3s;
}
.sw-dl-link:last-child { margin-bottom: 0; }
.sw-dl-link::after { content: "↓"; color: var(--brand-gold); }
.sw-dl-link:hover { color: var(--brand-gold); }

/* --- FORM --- */
.sw-form-section { 
    background: var(--brand-navy); 
    padding: 100px 0; 
    color: var(--brand-white);
}
.sw-center-title { 
    text-align: center; 
    font-family: var(--font-heading);
    font-size: 42px; 
    color: var(--brand-white); 
    margin-bottom: 60px; 
    font-weight: 400;
}

.sw-form-wrapper { max-width: 900px; margin: 0 auto; }
.sw-form-col-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.sw-form-col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.sw-form-full { margin-bottom: 40px; }

.sw-contact-form input, .sw-contact-form textarea {
	border-color: #fff!important;
	transition: .2s ease-in-out;
}

.sw-contact-form input:focus-within, .sw-contact-form textarea:focus-within {
	outline: 0;
    border-color: #fff !important;
    background-color: #09203D;
    box-shadow: 0 0 0 2px #09203D, 0 0 0 4px #fff;
}

input, textarea, .sw-fake-select {
    width: 100%; 
    padding: 15px 0; 
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-body); 
    font-size: 16px; 
    background: transparent;
    color: var(--brand-white);
    transition: all 0.3s;
    border-radius: 0;
}
input::placeholder, textarea::placeholder { 
    color: rgba(255, 255, 255, 0.5); 
    font-weight: 300;
}
input:focus, textarea:focus { 
    outline: none; 
    border-bottom: 1px solid var(--brand-gold); 
    background: rgba(255,255,255,0.02);
}

textarea { height: 100px; resize: none; }

.sw-submit-btn {
    background: var(--brand-gold)!important; 
    color: var(--brand-white)!important;
    border: 1px solid transparent!important; 
    padding: 12px 16px; 
    font-weight: 700;
    font-size: 13px; 
    cursor: pointer; 
	border-radius: 0px!important;
    transition: 0.3s;
    width: 100%;
}
.sw-submit-btn:hover { 
    background: transparent!important; 
    color: #fff!important;
	border: 1px solid #bf9903!important;
}

/* --- TOAST --- */
.sw-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--brand-navy);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--brand-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}
.sw-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* --- MODALS --- */
.sw-gallery-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--brand-white);
    z-index: 10000;
    display: none;
    flex-direction: column;
}
.sw-gallery-modal.active { display: flex; animation: swFadeIn 0.3s ease; }

@media (max-width: 991px) {
    #sw-gallery-modal.sw-gallery-modal {
        top: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: 100% !important; 
        height: 100dvh !important; 
/*         z-index: 999999 !important;  */
    }
    .sw-modal-header {
        padding: 15px 0 !important;
    }
}

@keyframes swFadeIn { from { opacity: 0; } to { opacity: 1; } }

.sw-modal-header {
    flex-shrink: 0; background: var(--brand-white); padding: 25px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05); 
/* 	position: sticky;  */
/* 	top: 0;  */
	inset: 0;
	z-index: 20;
}
.sw-modal-header .sw-container { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 767px) {
	.sw-modal-header .sw-container {
		flex-direction: column;
	}
	.sw-modal-title {
		text-align: center;
	}
}

.sw-modal-back-btn {
    background: none; border: 1px solid transparent; color: var(--brand-navy);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    transition: 0.3s ease-in-out;
}
.sw-modal-back-btn:hover { 
	color: var(--brand-gold); 
	border: 1px solid #09203d;
	background: transparent!important;
}

.sw-modal-title { font-family: var(--font-heading); font-size: 24px; color: var(--brand-navy); }

.sw-modal-body { flex-grow: 1; overflow-y: auto; padding: 40px 0; background: var(--brand-white); }

.sw-masonry-grid {
    display: grid; grid-template-columns: 1fr; 
    gap: 20px;
}

.sw-masonry-item {
    cursor: zoom-in; position: relative;
    overflow: hidden; 
}
.sw-masonry-item img {
    width: 100%; display: block; object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}
.sw-masonry-item:hover img { transform: scale(1.03); }

/* Lightbox */
.sw-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(9, 32, 61, 0.98); 
    z-index: 11000;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.sw-lightbox.active { display: flex; opacity: 1; }

.sw-lightbox-close {
    position: absolute; top: 40px; right: 40px;
    background: transparent; color: var(--brand-white);
    border: 1px solid rgba(255,255,255,0.3); 
    font-size: 30px; width: 60px; height: 60px;
    border-radius: 50%; cursor: pointer; z-index: 11005;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.sw-lightbox-close:hover { 
    background: var(--brand-white); 
    color: var(--brand-navy); 
}

.sw-lightbox-content {
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden; cursor: zoom-in;
}

#sw-lightbox-img {
    max-width: 90%; max-height: 90%; object-fit: contain;
    transition: transform 0.3s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

#sw-lightbox-img.zoomed {
    max-width: none; max-height: none;
    width: auto; height: auto;
    transform: scale(1.5);
    cursor: zoom-out;
}

.sw-zoom-hint {
    position: absolute; bottom: 40px;
    color: var(--brand-white); 
    font-family: var(--font-body);
    font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase; opacity: 0.7;
}

/* --- SIMILAR PROPERTIES SECTION (Boxy / DezRez Style) --- */
.sw-similar-section {
    background-color: var(--brand-bg);
    padding: 80px 0;
    border-top: 1px solid rgba(9, 32, 61, 0.05);
}

.sw-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns like the plugin */
    gap: 30px;
}

/* 1. THE CARD CONTAINER */
.sw-card-box {
    background: var(--brand-white);
    border: 1px solid #e0e0e0; /* Defines the box */
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
}

/* Hover: Darken border and subtle lift */
.sw-card-box:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

/* 2. IMAGE WRAPPER (Rectangular 3:2) */
.sw-card-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2; 
    height: auto; 
    background: #f4f4f4;
    position: relative;
    overflow: hidden;
    border-radius: 0; /* Sharp corners */
    margin-bottom: 0; 
    border-bottom: 1px solid #e0e0e0;
}

.sw-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sw-card-box:hover .sw-slide-img {
    transform: scale(1.05); /* Slight zoom within box */
}

/* 3. BADGES (Rectangular & Boxy) */
.sw-card-badges {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sw-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-navy);
    padding: 8px 16px; /* Boxier padding */
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0; /* Square corners */
    box-shadow: none;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

/* Status Colors */
.sw-badge.status { background: var(--brand-navy); color: #fff; border: none; }
.sw-badge.status-rent { background: #2ecc71; } /* Green for Rent */
.sw-badge.status-sale { background: var(--brand-navy); } /* Navy for Sale */
.sw-badge.status-sold { background: #e74c3c; } /* Red for Sold */
.sw-badge.status-offer { background: #f39c12; } /* Orange for Offer */

/* 4. CONTENT DETAILS (Padded Box) */
.sw-card-details {
    padding: 25px; /* Inner spacing */
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.sw-card-price {
    font-family: var(--font-body); 
    font-size: 22px;
    color: var(--brand-navy); 
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.sw-card-qualifier {
    font-size: 13px; 
    font-weight: 400; 
    color: #999; 
    display: block; 
    margin-bottom: 4px;
}

.sw-card-details h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.sw-card-type {
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999 !important;
    margin-bottom: 15px !important;
    font-family: var(--font-body);
}

/* 5. META SPECS (Beds/Baths) */
.sw-card-meta {
    display: flex;
    gap: 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: auto; /* Push to bottom */
}

.sw-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
    margin-right: 25px;
    font-family: var(--font-body);
}
.sw-spec-item i { color: var(--brand-gold); }

/* 6. LINK ARROW */
.sw-card-view-link {
    margin-top: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: var(--brand-gold);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-family: var(--font-body);
}
.sw-card-box:hover .sw-card-view-link {
    color: var(--brand-navy);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .sw-similar-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* Responsive */
@media (max-width: 900px) {
    .sw-container { padding: 0 20px; }
    .sw-title { font-size: 36px; }
    .sw-grid { grid-template-columns: 1fr; gap: 60px; }
    .sw-hero-main { height: 50vh; }
    .sw-form-col-3, .sw-form-col-2 { grid-template-columns: 1fr; gap: 0; }
    .sw-form-col-3 input, .sw-form-col-2 input { margin-bottom: 30px; }
    .sw-thumb-flex { overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
    .sw-thumb-item { min-width: 140px; }
    .sw-grid-cols-3 { grid-template-columns: 1fr 1fr; }
    .sw-nav-bar { padding: 15px 0; }
    
    /* Similar Properties Mobile */
    .sw-similar-grid { grid-template-columns: 1fr; }
    .sw-sim-img-wrap { height: 220px; }
}
/* =========================================
   AGENT DETAILS CARD STYLES
   ========================================= */

.sw-agent-details {
    padding: 20px;
    background-color: #f9f9f9; /* Light grey background to separate it */
    border: 1px solid #eee;
    border-radius: 8px; /* Soft rounded corners */
    text-align: center; /* Center align the text for a profile feel */
    margin-bottom: 20px;
}

/* The Label (e.g., "Property Negotiator") */
.sw-agent-label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem; /* Small text */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
}

/* The Name (e.g., "Luke Evans") */
.sw-agent-name {
    font-family: 'Rufina', serif; /* Use your theme's Serif font */
    font-size: 1.6rem;
    color: #11213b; /* Brand Navy */
    margin: 0 0 20px 0; /* Space below name */
    line-height: 1.2;
    font-weight: 700;
}

/* The Button (e.g., "Contact Agent") */
.sw-agent-link {
    display: inline-block;
    width: 100%; /* Full width button */
    padding: 12px 0;
    background-color: #11213b; /* Brand Navy */
    color: #ffffff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid #11213b;
    box-sizing: border-box;
}

/* Hover Effect for Button */
.sw-agent-link:hover {
    background-color: #ffffff;
    color: #11213b;
    border-color: #11213b;
    cursor: pointer;
}

/* Optional: Add a subtle icon animation if you use FontAwesome inside the link later */
.sw-agent-link i {
    margin-right: 8px;
}