/* ===== CSS RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.desktop-gutter-ad {
    display: none;
}

@media (min-width: 1940px) {
    .desktop-gutter-shell {
        position: relative;
        display: grid;
        grid-template-columns: 300px minmax(1280px, 1280px) 300px;
        column-gap: 20px;
        justify-content: center;
        align-items: start;
    }

    .desktop-gutter-ad {
        display: block;
        position: sticky;
        top: 80px;
        align-self: start;
        width: 300px;
        z-index: 90;
        pointer-events: none;
    }

    .desktop-gutter-ad--left {
        grid-column: 1;
    }

    .desktop-gutter-ad--right {
        grid-column: 3;
    }

    .main-content {
        grid-column: 2;
        min-width: 1280px;
    }

    .desktop-gutter-ad__inner {
        width: 300px;
        pointer-events: auto;
        transition: none;
        will-change: auto;
        transform: none !important;
    }

    .desktop-gutter-ad__inner > div[data-fuse] {
        width: 300px;
        min-height: 600px;
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000000;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #333333;
}

a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #666666;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-wrap-banner {
    display: none;
}

.navbar-wrap-banner__slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 728px;
    height: 90px;
    border: 1px dashed rgba(16, 33, 58, 0.35);
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.06);
    color: #355273;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-logo {
    display: block;
    height: 65px;
    width: auto;
    max-width: 200px;
    transition: opacity 0.3s ease;
}

body.show-navbar-wrap-banner .navbar-brand {
    margin-top: 10px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: #000000;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar-menu {
    display: flex;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #333333;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #000000;
}

@media (min-width: 990px) {
    body.show-navbar-wrap-banner .navbar .container {
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        row-gap: 0.1rem;
    }

    body.show-navbar-wrap-banner .navbar-wrap-banner {
        display: flex;
        flex: 1 1 auto;
        width: 100%;
        max-width: 728px;
        min-width: 0;
        justify-content: center;
        overflow: hidden;
        margin-left: auto;
    }

    body.show-navbar-wrap-banner .navbar-wrap-banner > div[data-fuse] {
        width: 100%;
        max-width: 728px;
        min-width: 0;
    }

    body.show-navbar-wrap-banner .navbar-menu {
        flex: 0 0 100%;
        width: 100%;
        justify-content: right; /* flex-start; */
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-auth-slot {
    min-width: 118px;
}

.nav-auth-slot .dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    line-height: 1.1;
    white-space: nowrap;
}

.nav-auth-slot .nav-auth-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex: 0 0 auto;
}

.nav-auth-slot .dropdown-toggle::after {
    margin-top: 0;
}

.nav-auth-slot--loading .nav-auth-skeleton {
    display: block;
    width: 100px;
    height: 16px;
    border-radius: 999px;
    margin: 0.65rem 0;
    background: linear-gradient(90deg, #eceff3 25%, #f6f8fb 50%, #eceff3 75%);
    background-size: 220% 100%;
    animation: navAuthShimmer 1.1s ease-in-out infinite;
}

.nav-auth-slot--loading .nav-link,
.nav-auth-slot--loading .dropdown-toggle {
    visibility: hidden;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 200px);
    max-width: 1280px;
    margin: auto;
}

/* ===== PAGE HEADER (GLOBAL) ===== */
.page-header {
    background:
        radial-gradient(860px 420px at 82% 6%, rgba(134, 191, 255, 0.26), transparent 58%),
        radial-gradient(720px 340px at 16% 0%, rgba(255, 255, 255, 0.12), transparent 54%),
        linear-gradient(135deg, #0a2b5f 0%, #0b58bf 52%, #0a3d86 100%);
    color: white;
    padding: 0.9rem 0 1rem;
    position: relative;
    margin: 0 0.75rem 1.25rem;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(8, 30, 70, 0.22);
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 18, 42, 0.08) 0%, rgba(5, 18, 42, 0.22) 100%),
        radial-gradient(900px 400px at 78% 5%, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(7, 29, 72, 0.38) 0%, rgba(10, 88, 191, 0.18) 55%, rgba(8, 67, 145, 0.3) 100%),
        linear-gradient(180deg, rgba(4, 18, 40, 0.16) 0%, rgba(4, 18, 40, 0.44) 100%);
    pointer-events: none;
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
}

.page-header-content h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 12px rgba(2, 10, 24, 0.24);
}

.page-header-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(2, 10, 24, 0.22);
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
    padding: 0;
    background: transparent;
    font-size: 0.95rem;
    line-height: 1.25;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: 1px 1px #000;
}

.page-header .breadcrumb a:hover {
    color: #ffffff;
}

.page-header .breadcrumb span {
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 1px 1px #000;
}

.page-header .breadcrumb span:last-child {
    color: rgba(255,255,255,0.65);
}

/* ===== HERO SECTION ===== */
.hero {
    /*background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);*/
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #000000;
    border-color: #000000;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== Property Detail Neutral Styling ===== */
.icon-offgrey {
    color: #ccc !important;
}

.text-offgrey {
    color: #222 !important;
}

.feature-value {
    font-size: 1rem;
    line-height: 1.2;
}

.property-features .fa-lg {
    font-size: 1.25rem;
}

.property-features .border {
    border-color: #e5e5e5 !important;
}

.property-features small {
    color: #777 !important;
}

/* Mobile tuning for detail page features */
@media (max-width: 576px) {
    .property-features .fa-lg {
        font-size: 1rem;
    }
    .property-features .feature-value {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    .property-features .border {
        padding: 0.5rem !important;
    }
    .property-features small {
        font-size: 0.75rem;
    }
}

/* Reduced pricing font for property detail sidebar */
.property-pricing .price-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}

.search-band-card {
    display: inline-grid;
    gap: 0.55rem;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    padding: 0.78rem;
    border-radius: 22px;
    background: #f7fbff;
    border: 1px solid #dfe8f3;
    box-shadow: 0 12px 24px rgba(14, 31, 57, 0.06);
}

.search-band-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #61738b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.05rem;
}

.search-band-card__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6f86a3;
    text-decoration: none;
}

.search-band-card__info:hover,
.search-band-card__info:focus {
    color: #274a77;
}

.search-band-card__value {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.82rem 0.95rem;
    border-radius: 18px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: clamp(1.02rem, 1.45vw, 1.22rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.12;
    box-shadow: 0 10px 20px rgba(13, 46, 94, 0.12);
}

.search-band-card__value:hover,
.search-band-card__value:focus {
    color: #ffffff;
    text-decoration: none;
}

.search-band-card__confidence {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    width: fit-content;
    padding: 0;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.search-band-card__confidence i {
    font-size: 0.62rem;
}

.search-band-card__confidence:hover,
.search-band-card__confidence:focus {
    text-decoration: none;
}

.search-band-card--transparent .search-band-card__value {
    background: linear-gradient(135deg, #0b5ed7 0%, #0d6efd 100%);
}

.search-band-card--high .search-band-card__value {
    background: linear-gradient(135deg, #157347 0%, #198754 100%);
}

.search-band-card--medium .search-band-card__value {
    background: linear-gradient(135deg, #e46f0a 0%, #fd7e14 100%);
}

.search-band-card--low .search-band-card__value {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
}

.search-band-card__confidence--transparent {
    color: #0d6efd;
}

.search-band-card__confidence--high {
    color: #198754;
}

.search-band-card__confidence--medium {
    color: #fd7e14;
}

.search-band-card__confidence--low {
    color: #dc3545;
}

.search-band-modal .modal-dialog {
    max-width: 640px;
}

.search-band-modal .modal-content {
    border: 1px solid #dfe8f3;
    border-radius: 28px;
    box-shadow: 0 28px 56px rgba(14, 31, 57, 0.14);
}

.search-band-modal .modal-header,
.search-band-modal .modal-footer {
    border-color: #e3ebf5;
    padding: 1.25rem 1.4rem;
}

.search-band-modal .modal-title {
    color: #10213a;
}

.search-band-modal .modal-body {
    padding: 1.35rem 1.4rem 1.45rem;
    color: #546985;
}

.search-band-modal__intro {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: #f7fbff;
    border: 1px solid #e0eaf5;
}

.search-band-modal__section-title {
    color: #10213a;
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-band-modal__levels li {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: #fbfdff;
    border: 1px solid #e6eef7;
}

.search-band-modal__disclaimer {
    border-radius: 22px;
    border-color: #dce7f4 !important;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
}

/* ===== CARDS ===== */
.card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    /* height: 100%; Removed to prevent stacking issues in forms */
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.card-text {
    color: #666666;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #999999;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== STATS ===== */
.stats {
    background: #f8f9fa;
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    display: block;
}

.stat-label {
    color: #666666;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ===== HOME FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 5px 16px rgba(17, 24, 39, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #d7e5f7;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #0a58bf;
    background: linear-gradient(135deg, #eef4fd 0%, #e6effd 100%);
    border: 1px solid #d7e5f7;
}

.feature-icon-svg {
    width: 38px;
    height: 38px;
    display: block;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.feature-card p {
    margin-bottom: 0;
    color: #4b5563;
    line-height: 1.6;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000000;
}

.form-control {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Property listings page search form */
.property-search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-form-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.contact-form-container h2 {
    color: #111827;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-form-container > p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
}

.contact-form .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #000000;
}

.contact-form .checkbox-label a {
    color: #000000;
    text-decoration: underline;
}

.contact-form .checkbox-label a:hover {
    text-decoration: none;
}

.contact-info {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.contact-info h2 {
    color: #111827;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info > p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-content h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-content p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.listing_description_editor p {
    margin-bottom: 0.1rem !important;
}

.social-links h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.faq-item h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-buttons {
        justify-content: center;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-pill-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    color: #000000 !important;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.footer-pill-link:hover {
    color: #000000 !important;
    background: #f3f3f3;
}

.footer-links a:hover {
    color: #ffffff;
}

.contact-info p {
    color: #222;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #999999;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.legal-link {
    color: #999999;
    font-size: 0.875rem;
}

.legal-link:hover {
    color: #ffffff;
}
#main-content .text-primary {
    color: #222222;
}

/* ===== DROPDOWN NAVIGATION ===== */
/* Desktop: ensure dropdown floats over content */
@media (min-width: 769px) {
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        margin-top: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        z-index: 10000;
        min-width: 200px;
    }
}

/* Mobile: Tabbed in text links */
@media (max-width: 768px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        padding-left: 1.5rem;
        padding-top: 0;
        padding-bottom: 0.5rem;
    }

    .navbar-nav .dropdown-item {
        color: #555;
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: transparent;
        color: #000;
    }
    
    .navbar-nav .dropdown-divider {
        border-color: #eee;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .dropdown-toggle::after {
        /* Optional: adjust caret if needed */
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Desktop navigation - ensure horizontal layout */
@media (min-width: 769px) {
    .navbar-nav {
        flex-direction: row;
    }
    
    .nav-item {
        margin-left: 2rem;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Mobile and tablet navigation */
@media (max-width: 768px) {
    .header {
        z-index: 11000;
    }

    /* Keep Bootstrap modals above the sticky mobile header */
    .modal-backdrop {
        z-index: 11990 !important;
    }

    .modal {
        z-index: 12000 !important;
    }

    .container {
        padding: 0 0.75rem;
    }

    .form-control,
    .form-select,
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="number"],
    input[type="password"] {
        font-size: 16px;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e5e5;
        padding: 1rem;
    }
    
    .navbar-menu.active {
        display: block;
        z-index: 11001;
    }
    
    .navbar-nav {
        flex-direction: column;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    /* Responsive logo styles */
    .brand-logo {
        height: 40px;
        max-width: 150px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .page-header {
        margin: 0 0 1rem;
        border-radius: 0;
        padding: 0.9rem 0 1rem;
    }

    .page-header-content h1 {
        font-size: 2rem;
    }

    .page-header-content p, .home-hero-copy p {
        font-size: 1.02rem;
        line-height: 1.65;
    }

    .page-header .breadcrumb {
        font-size: 0.9rem;
        gap: 0.35rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-6, .col-8, .col-9 {
        flex: 0 0 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .property-search-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .stats {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .feature-icon-svg {
        width: 34px;
        height: 34px;
    }
}

/* Ensure property features remain inline on mobile (overrides global stacking) */
@media (max-width: 768px) {
    .property-features {
        flex-direction: row; /* override .row stacking */
    }
    .property-features .col-4 {
        flex: 0 0 33.333333%; /* keep three columns */
        padding: 0 0.25rem; /* slightly tighter gutters */
    }
    /* Keep insights cards two-up on mobile */
    .insights-cards {
        flex-direction: row;
    }
    .insights-cards .col-6 {
        flex: 0 0 50%;
        padding: 0 0.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes navAuthShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== PROPERTY GRID LAYOUT ===== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.property-grid .property-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0; /* Override the margin from property-listings.css */
}

.property-grid a {
    display: block;
    height: 100%;
}

.property-grid a:hover .property-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.property-grid a:hover .property-image img {
    transform: scale(1.05);
}

.property-grid .property-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.property-grid .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Remove direct hover on card since we now use the anchor hover */
/* .property-grid .property-card:hover { ... } - REMOVED */
/* .property-grid .property-card:hover .property-image img { ... } - REMOVED */

.property-grid .property-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-grid .property-status.status-exclusive {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000;
}

.property-grid .property-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-grid .property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.property-grid .property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-grid .property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.property-grid .property-location::before {
    content: "📍";
    margin-right: 0.5rem;
}

.property-grid .property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-grid .feature {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.property-grid .feature i {
    margin-right: 0.25rem;
    color: #0d6efd;
}

.property-grid .property-agent {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.property-grid .agent-info {
    display: flex;
    flex-direction: column;
}

.property-grid .agent-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.property-grid .agent-agency {
    color: #666;
    font-size: 0.8rem;
}

.property-grid .property-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.property-grid .property-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-grid .property-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    
    .property-grid .property-image {
        height: 250px;
    }
    
    .property-grid .property-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .property-grid .property-content {
        padding: 1rem;
    }
    
    .property-grid .property-features {
        gap: 0.5rem;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ===== PROPERTY DETAIL PAGE ===== */
.property-detail-image {
    height: 500px;
    object-fit: cover;
    cursor: zoom-in;
}

.property-detail-placeholder {
    height: 500px;
}

.property-description {
    color: rgba(33, 37, 41, 0.75);
    line-height: 1.65;
}

.property-description p {
    color: rgba(33, 37, 41, 0.75);
    margin-bottom: 1rem;
}

.property-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .property-detail-image,
    .property-detail-placeholder {
        height: 300px;
    }
}

/* ===== PROPERTY CAROUSEL & THUMBNAILS ===== */
.property-carousel-control {
    width: 5%;
    /*background-color: rgba(0, 0, 0, 0.3); opacity: 1;
    transition: background-color 0.3s ease; */
}

.property-carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.property-thumbnails {
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #fff;
    padding: 2px 4px; /* Padding to prevent left edge clipping */
}

.property-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.property-thumbnails::-webkit-scrollbar-track {
    background: #fff;
}

.property-thumbnails::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

.thumbnail-item {
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    width: 80px;
    height: 60px;
    min-width: 80px;
}

.thumbnail-item:hover {
    opacity: 0.8;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: #000; /* Primary color */
    transform: scale(1.05);
    z-index: 1;
    border-radius: var(--bs-border-radius) !important;
}

/* Larger thumbnails on desktop (~37% larger) */
@media (min-width: 992px) {
    .thumbnail-item {
        width: 110px;
        height: 82px;
        min-width: 110px;
    }
}

/* Gallery Modal Controls - Match Property Grid style */
#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: 5%;
    opacity: 1;
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50%;
}

#galleryCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ===== ARCHIVED RIBBON ===== */
.property-image-container, 
.property-grid .property-image,
.carousel-item {
    position: relative;
    overflow: hidden;
}

.archived-ribbon {
    position: absolute;
    top: 25px;
    left: -25px;
    background: #6c757d; /* Bootstrap secondary gray */
    color: #fff;
    padding: 5px 30px;
    transform: rotate(-45deg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    width: 120px;
    letter-spacing: 1px;
}

.listing-date-updated {
    color: rgba(108, 117, 125, 0.75);
}

.listing-date-updated-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(108, 117, 125, 0.22);
    background: rgba(108, 117, 125, 0.08);
    color: rgba(108, 117, 125, 0.85);
    font-size: 0.72rem;
    line-height: 1.1;
    font-weight: 600;
}
