﻿:root {
    --color-accent-1: #3e7b27;
    --color-accent-1-rgb: 62, 123, 39;
    --color-white-bone: #f5f5f5;
    --bs-primary: #3e7b27;
    --bs-primary-rgb: 62, 123, 39;
    --second-primary: #85a947;
    --second-primary-rgb: 133, 169, 71;
    --third-primary: #123524;
    --third-primary-rgb: 18, 53, 36;
    --bs-light-primary: #e0f2fe;
    --bs-light: #0ba5ec;
    --bs-white-primary: #f0f9ff;
    --bs-secondary: #85a947;
    --bs-secondary-rgb: 133, 169, 71;
    --font-primary: "Inter", sans-serif;
    --light-gray: #f4f6f8;
    --medium-gray: #dee2e6;
    --dark-gray: #495057;
    --border-radius: 0.5rem;
    --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    --sale-badge-bg: #e6f4ea;
    --sale-badge-color: #1e7f43;
}

body {
    font-family: var(--font-primary);
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
    /* Sticky footer: a short page (My Homes with one card, an empty state, an error)
       otherwise left the footer floating mid-screen with blank space beneath it. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main[role="main"] {
    flex: 1 0 auto;
}

body > footer {
    flex-shrink: 0;
}

textarea {
    field-sizing: content;
    min-height: 4rem;
}

.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.auth-message {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f8f9fa;
    text-align: center;
    border-radius: 5px;
}

    .auth-message .btn {
        margin: 5px;
    }

    .auth-message.no-bg {
        background-color: transparent;
        border: none;
        padding: 0;
    }

.btn-outline-primary {
    --bs-btn-color: var(--bs-black);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--second-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-primary);
    --bs-gradient: none;
    background: #f1f1f1;
    border: none;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--third-primary);
    --bs-btn-active-border-color: var(--third-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--third-primary);
    --bs-btn-active-border-color: var(--third-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-secondary);
    --bs-btn-disabled-border-color: var(--bs-secondary);
}

.btn-favorite {
    font-family: var(--bs-font-sans-serif) !important;
    color: var(--bs-primary);
    margin: 1rem !important;
    z-index: 999;
    top: 0;
    right: 0;
    position: absolute;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(213, 226, 232, 0.35);
    border-radius: 50%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.1px);
    -webkit-backdrop-filter: blur(7.1px);
}

    .btn-favorite:hover {
        color: var(--bs-primary) !important;
    }

    .btn-favorite i {
        font-size: 25px;
        transition: transform 0.3s ease;
    }

    .btn-favorite:hover i {
        transform: scale(0.9);
    }

    .btn-favorite.filled {
        color: var(--bs-primary);
    }

        .btn-favorite.filled i {
            color: var(--bs-primary);
        }

.nav-underline .nav-link.active,
.nav-underline .show > .nav-link {
    border-bottom-color: var(--bs-primary);
}

.responsive-search {
    width: 100%;
}

@media (min-width: 1300px) {
    .responsive-search {
        width: 50%;
    }
}

.mobile-text {
    font-size: 24px !important;
}

@media (max-width: 820px) {
    .mobile-text {
        font-size: 20px !important;
    }
}

.cursor-pointer {
    cursor: pointer !important;
}

.w-0 {
    width: 0% !important;
}

.w-5 {
    width: 5% !important;
}

.w-10 {
    width: 10% !important;
}

.blurred-img {
    filter: blur(8px);
    transform: scale(1.03);
}

.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.locked-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    max-width: 80%;
}

.locked-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.locked-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 14px;
    line-height: 1.35;
}

.locked-btn {
    background: #2f7a1f;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 10px;
}

    .locked-btn:hover {
        background: #256116;
        color: #ffffff;
    }

.locked-signup {
    font-size: 0.85rem;
    color: #6b7280;
}

.locked-link {
    color: #2f7a1f;
    font-weight: 600;
    text-decoration: none;
}

.skeleton-lines {
    margin-top: 0.75rem;
}

.skeleton-line {
    height: 10px;
    background: #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    filter: blur(4px);
}

    .skeleton-line.short {
        width: 70%;
    }

.map-card-locked {
    cursor: default;
}

.w-15 {
    width: 15% !important;
}

.w-20 {
    width: 20% !important;
}

.w-30 {
    width: 30% !important;
}

.w-35 {
    width: 35% !important;
}

.w-40 {
    width: 40% !important;
}

.w-45 {
    width: 45% !important;
}

.w-55 {
    width: 55% !important;
}

.w-60 {
    width: 60% !important;
}

.w-65 {
    width: 65% !important;
}

.w-70 {
    width: 70% !important;
}

.w-80 {
    width: 80% !important;
}

.w-85 {
    width: 85% !important;
}

.w-90 {
    width: 90% !important;
}

.w-95 {
    width: 95% !important;
}

.py-10 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.px-10 {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.py-15 {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.px-15 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.py-20 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.px-20 {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.my-10 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.mx-10 {
    margin-left: 10px !important;
    margin-right: 10px !important;
}

.my-15 {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.mx-15 {
    margin-left: 15px !important;
    margin-right: 15px !important;
}

.my-20 {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.mx-20 {
    margin-left: 20px !important;
    margin-right: 20px !important;
}

.bg-image {
    /*background: linear-gradient( rgba(0, 119, 190, 0.85), rgba(0, 92, 153, 0.95) ), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&q=80&w=1920');*/
    background: linear-gradient(rgba(var(--bs-primary-rgb), 0.85), rgba(var(--second-primary-rgb), 0.95)), url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&q=80&w=1920");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.icon-button {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1.5;
    border-radius: 100%;
    cursor: pointer;
    transition: all 0.2s ease-out;
    background: var(--bs-primary);
    color: white;
}

.icon-padding {
    padding: 0.375rem;
}

.map-filter-button {
    position: absolute;
    top: 138px;
    right: 10px;
    z-index: 1;
    color: #82898d;
    width: 32px;
    height: 32px;
    background-color: white;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .map-filter-button:hover {
        background-color: #f2f2f2;
        color: #31acce;
    }

.map-loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--bs-primary), var(--bs-secondary));
    animation: loading 1.5s infinite;
    display: none;
    z-index: 10;
}

.map-search {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;

    padding: 10px;
    border-radius: 0 0 25px 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: width 0.35s ease;
    width: auto;
}
    .map-search .input-group-text {
        background-color: #f8f9fa;
        border-color: #ced4da;
    }

    .map-search .form-control {
        background-color: #f8f9fa;
        border-color: #ced4da;
    }

.search-content-wrapper {
    width: 300px;
    max-width: 70vw;
}
@media (min-width: 1600px) {
    .search-content-wrapper {
        width: 900px;
    }
}

button[aria-expanded="false"] .bi-chevron-right {
    transform: rotate(180deg);
    transition: transform 0.35s ease;
}

button[aria-expanded="true"] .bi-chevron-right {
    transform: rotate(0deg);
    transition: transform 0.35s ease;
}

@keyframes loading {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

body #hero_banner {
    background-color: #e0e0e0;
    height: 50vh;
}

.icon-padding {
    padding-right: 40px; /* Space for icon on the right */
}

/* --- Navbar Styling --- */
.navbar .profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0;
}

.underline-link {
    position: relative;
    display: inline-block;
}

    .underline-link:after {
        content: "";
        position: absolute;
        border-bottom: 4px solid var(--bs-primary);
        color: var(--bs-primary) !important;
        top: 100%;
        transition: all 0.4s;
    }

    .underline-link:after {
        left: 51%;
        right: 49%;
    }

.semibold-icon {
    -webkit-text-stroke: 0.5px !important;
}

.bold-icon {
    -webkit-text-stroke: 0.75px !important;
}

.bolder-icon {
    -webkit-text-stroke: 0.85px !important;
}

.underline-link:hover:after {
    right: 0;
    left: 0;
}

.underline-link.active {
    color: var(--bs-primary) !important;
    border-bottom: 4px solid var(--bs-primary);
}

.nav-filters.underline-link {
    color: var(--bs-white-primary) !important;
    font-weight: 700;
    border-radius: 0 !important;
}

.tab-pills-filters .nav-item {
    width: 161px;
    text-align: center;
}

.nav-filters.underline-link:after {
    border-bottom: 4px solid var(--bs-white);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link .nav-filters {
    color: var(--bs-white-primary);
    border-bottom: 4px solid var(--bs-white);
    background-color: var(--bs-transparent);
}

.nav-link {
    color: var(--bs-black);
}

    .nav-link:focus,
    .nav-link:hover {
        color: var(--bs-secondary);
    }

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: var(--bs-primary);
}

.map-height {
    /* Subtract the site-wide copyright bar (~36px) so it stays visible on the map page. */
    height: calc(100vh - 70px - 36px);
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
    #hero_banner {
        height: 30vh;
        padding: 2rem 1rem;
    }

    .btn-group-custom {
        flex-direction: column;
        width: 100%;
    }

    .icon-button {
        font-size: 1.2rem;
    }

    .icon-padding {
        padding-right: 30px;
    }

    .form-control {
        height: 44px;
    }

    .btn-group-custom label {
        font-size: 1rem;
    }

    .btn.btn-navbar {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .map-height {
        /* Mobile: subtract nav (55px) + copyright bar (~36px). */
        height: calc(100vh - 55px - 36px);
    }
}

/*FONT CLASSES*/
.fs-14 {
    font-size: 14px;
}

.fs-16 {
    font-size: 16px;
}

.fs-18 {
    font-size: 18px;
}

.fs-20 {
    font-size: 20px;
}

.fs-24 {
    font-size: 24px;
}

.fs-small {
    font-size: 0.75em !important;
}

.text-shadow-1 {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.61);
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 95%;
}

/* BUTTON CLASSES */
.btn-google {
    color: #545454;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 1px #ddd;
}

    .btn-google:hover {
        background-color: #f1f1f1;
    }

/*TRANSITIONS*/
.transition-enter {
    transition: opacity 0.3s ease-out;
}

.transition-enter-start {
    opacity: 0;
}

.transition-enter-end {
    opacity: 1;
}

/* Leave transition */
.transition-leave {
    transition: opacity 0.3s ease-in;
}

.transition-leave-start {
    opacity: 1;
}

.transition-leave-end {
    opacity: 0;
}

/* Background Colors */
.bg-light-blue {
    background-color: #f3f5f7;
}

.bg-white-bone {
    background-color: #f5f5f5;
}

/* Autocomplete */
.autocomplete-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    text-align: start;
    padding: 10px 0;
    overflow-y: auto;
    max-height: 60vh; /* Mobile friendly max-height */
}

@media (min-width: 768px) {
    .autocomplete-suggestions {
        max-height: 500px; /* Desktop max-height */
    }
}

.suggestion-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #fff;
    margin-top: 10px;
    text-align: start;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 8px 0px; /* Smaller padding for mobile */
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
    position: relative;
}

    .suggestion-item:hover {
        background-color: #f8f9fa;
    }

    .suggestion-item:last-child {
        border-bottom: none;
    }

/* Location Styles */
.suggestion-location-icon {
    width: 32px; /* Smaller icon for mobile */
    height: 32px;
    min-width: 32px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #6c757d;
    font-size: 1rem;
}

.suggestion-location-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: start;
}

.suggestion-location-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-location-sub {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Property Styles */
.suggestion-property-img {
    width: 60px; /* Smaller image for mobile */
    height: 45px;
    min-width: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    background-color: #eee;
}

.suggestion-property-info {
    flex-grow: 1;
    overflow: hidden;
}

.suggestion-property-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.suggestion-property-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #212529;
}

.suggestion-property-mls {
    font-size: 0.75rem;
    color: #888;
    margin-left: 6px;
    font-weight: normal;
    border-left: 1px solid #ddd;
    padding-left: 6px;
}

.suggestion-property-address {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: start;
}

.suggestion-property-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px; /* Smaller gap */
    flex-wrap: wrap; /* Allow wrapping */
}

.suggestion-locked {
    cursor: default;
}

.suggestion-locked .locked-overlay {
    z-index: 2;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.78);
}

    .suggestion-locked .locked-card {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(255, 255, 255);
    }

.suggestion-locked .locked-text {
    text-align: left;
}

    .suggestion-locked .locked-title {
        font-size: 0.9rem;
        margin-bottom: 0px;
    }

.suggestion-locked .locked-subtitle {
    font-size: 0.78rem;
    margin-bottom: 0;
}

.suggestion-locked .btn-login {
    font-size: 0.8rem;
    padding: 6px 12px;
    white-space: nowrap;
}

.suggestion-locked .signup-link,
.suggestion-locked .signup-link a {
    font-size: 0.75rem;
}

    .suggestion-property-meta i {
        margin-right: 3px;
    }

.suggestion-property-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto; /* Push to right */
}


.badge-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.5rem;
    font-size: 14px;
}

.badge-sold-conditionally {
    background-color: #fff3cd;
    color: #856404; /* Yellow */
}

.badge-lease {
    background-color: #ffb400;
    color: #000;
}

.badge-leased {
    background-color: #fff3cd;
    color: #dc3545;
}

.badge-sale {
    background-color: var(--sale-badge-bg);
    color: var(--sale-badge-color);
}

.badge-terminated {
    background-color: #f8d7da;
    color: #8b0000; /* Dark Red */
}

.badge-sold {
    background-color: #ffebee;
    color: #c62828; /* Red */
}

.badge-expired {
    background-color: #e2e3e5;
    color: #383d41; /* Gray */
}

.badge-dom {
    background-color: #f8f9fa;
    color: #383d41;
}

.suggestion-loading {
    padding: 20px;
    text-align: center;
    color: #888;
}

    .suggestion-loading span::after {
        content: "";
        animation: dots 1.5s steps(4, end) infinite;
    }

/* Desktop overrides */
@media (min-width: 768px) {
    .suggestion-header {
        padding: 8px 0px;
        font-size: 0.75rem;
    }

    .suggestion-location-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }

    .suggestion-location-name {
        font-size: 0.95rem;
    }

    .suggestion-location-sub {
        font-size: 0.85rem;
    }

    .suggestion-property-img {
        width: 80px;
        height: 60px;
        min-width: 80px;
        margin-right: 15px;
    }

    .suggestion-property-price {
        font-size: 1rem;
    }

    .suggestion-property-mls {
        font-size: 0.85rem;
        margin-left: 8px;
        padding-left: 8px;
    }

    .suggestion-property-address {
        font-size: 0.7rem;
    }

    .suggestion-property-meta {
        font-size: 0.8rem;
        gap: 12px;
    }

    .suggestion-property-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

@keyframes dots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75% {
        content: "...";
    }
}

.filter-modal {
    border-radius: var(--bs-border-radius-xxl);
}

.skeleton {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-text {
    height: 20px;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-img {
    height: 300px;
    width: 100%;
    margin-bottom: 15px;
}

/* Create a stronger pulsing effect */
@keyframes pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.card-skeleton {
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

/* --- Property-card image loading state (2026-08-28) -------------------------
   Themed shimmer + spinner shown in a card's image slot until the photo has
   actually decoded. Reuses the `pulse` keyframes above so the system keeps ONE
   shimmer animation, tinted with the WizReal accent instead of grey.
   Applied by repliersMap.js to popup cards via `.wiz-card-media`. */
.wiz-card-media .wiz-img-skeleton {
    position: absolute;
    inset: 0;
    /* Must stay BELOW .locked-overlay (z-index 2) or it clips the "Content Locked"
       panel. z-index 1 is still above the (unpositioned) <img> and the status/price
       badges, which is all the shimmer needs to cover. */
    z-index: 1;
    background-color: var(--light-gray);
    background-image: linear-gradient(90deg, rgba(var(--color-accent-1-rgb), 0.05) 25%, rgba(var(--color-accent-1-rgb), 0.16) 50%, rgba(var(--color-accent-1-rgb), 0.05) 75%);
    background-size: 200% 100%;
    animation: pulse 1.5s infinite ease-in-out;
}

    .wiz-card-media .wiz-img-skeleton::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 22px;
        height: 22px;
        margin: -11px 0 0 -11px;
        border-radius: 50%;
        border: 2px solid rgba(var(--color-accent-1-rgb), 0.25);
        border-top-color: var(--bs-primary);
        animation: wiz-img-spin 0.7s linear infinite;
    }

@keyframes wiz-img-spin {
    to {
        transform: rotate(360deg);
    }
}

.wiz-card-media .wiz-card-img {
    opacity: 0;
    transition: opacity 0.25s ease-in;
}

.wiz-card-media.is-media-loaded .wiz-card-img {
    opacity: 1;
}

.wiz-card-media.is-media-loaded .wiz-img-skeleton {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .wiz-card-media .wiz-img-skeleton,
    .wiz-card-media .wiz-img-skeleton::after {
        animation: none;
    }

    .wiz-card-media .wiz-card-img {
        transition: none;
    }
}

/* --- Fullscreen photo-preview loader (2026-08-31) ---------------------------
   Covers the black gap while a large listing photo downloads in the lightbox.
   Painted by wwwroot/js/listingGalleryLoader.js as an ADDITIVE overlay - it
   never gates the real image, so if the library changes upstream the gallery
   still works, it just loses the loader. `pointer-events: none` is REQUIRED:
   the overlay sits above the lightbox, and the prev/next/close controls must
   stay clickable through it. */
.wiz-preview-loader {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

    .wiz-preview-loader.is-active {
        display: block;
        opacity: 1;
    }

    .wiz-preview-loader.is-hiding {
        opacity: 0;
    }

    /* Blurred MEDIUM variant of the same photo, already cached by the page's
       thumbnail strip. Centred and contained so it lands roughly where the
       sharp photo will. scale() hides the soft edge the blur leaves behind. */
    .wiz-preview-loader__lqip {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 92vw;
        height: 86vh;
        transform: translate(-50%, -50%) scale(1.04);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
        filter: blur(18px) saturate(1.08);
    }

    /* Light ring on the dark backdrop, accent arc for the active sweep.
       Reuses wiz-img-spin from the popup-card loader above - one spin
       animation in the system. */
    .wiz-preview-loader__spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 46px;
        height: 46px;
        margin: -23px 0 0 -23px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, 0.28);
        border-top-color: var(--second-primary, #85a947);
        animation: wiz-img-spin 0.75s linear infinite;
    }

@media (prefers-reduced-motion: reduce) {
    .wiz-preview-loader {
        transition: none;
    }

    .wiz-preview-loader__spinner {
        animation: none;
    }
}

@media (min-width: 1200px) {
    .card-hover {
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animaci�n suave para el zoom y la sombra */
    }

        .card-hover:hover {
            transform: scale(1.05); /* Aumenta el tama�o al 105% */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* A�ade una sombra para dar m�s �nfasis */
        }
}

.cards-container {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
}

@media (max-width: 1400px) {
    .cards-container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.tab-pills-wrapper {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 4px;
    position: relative;
    display: inline-flex;
    margin-bottom: 1rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .tab-pills-wrapper::-webkit-scrollbar {
        display: none;
    }

    .tab-pills-wrapper .nav-link {
        color: rgba(255, 255, 255, 0.8);
        padding: 0.75rem 1.5rem;
        border: none;
        background: transparent;
        position: relative;
        z-index: 1;
        transition: color 0.3s ease;
        white-space: nowrap;
        font-size: 0.95rem;
        font-weight: 500;
    }

        .tab-pills-wrapper .nav-link.active {
            background: rgba(var(--bs-primary-rgb), 0.7);
            border-radius: 50px;
            color: #fff;
            margin: 3px;
        }

@media (max-width: 576px) {
    .cards-container {
        padding-left: 0rem !important;
        padding-right: 0rem !important;
    }

    .tab-pills-wrapper {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 0.75rem;
        padding: 0;
        height: 40px;
    }

        .tab-pills-wrapper .nav-link {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

    .remove-on-mobile {
        margin-top: 0 !important;
        border-radius: 0 !important;
        --bs-gutter-x: 0 !important;
    }

    /* Autocomplete */
    .autocomplete-suggestions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        width: 100%;
        background: white;
        border: 1px solid #ddd;
        border-radius: 15px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: start;
        padding: 10px;
    }

        .autocomplete-suggestions hr {
            margin: 0 5px 0 5px;
            border: none;
            border-top: 1px solid #ddd;
        }
}

.property-card-header {
    height: 100%;
    max-height: 55px;
    margin-bottom: 0.5rem;
}

.property-card-observations {
    /*height: 100%;*/
    /*max-height: 75px;*/
}

.register-pills .btn-check:checked + .btn {
    background-color: #0a4a6e;
}

/* ---- Header fit ----
   The top bar carries eight nav items, the Residential/Commercial toggle and the auth
   buttons on one row. Without these the nav items broke onto two lines and the Sign up /
   Sign in pair stacked as soon as the row ran out of width. */
.navbar-nav .nav-link {
    white-space: nowrap;
}

/* Just above the xxl breakpoint the row is at its tightest - trim the nav type and the
   per-item padding so all eight items, the toggle and the auth buttons still fit. */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .navbar .navbar-nav .nav-item.fs-20 {
        font-size: 16px;
    }

    .navbar .navbar-nav .nav-link {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .navbar .navbar-nav {
        gap: 0.25rem !important;
    }
}

/* The auth pair is the last thing on the row, so it is the first to be squeezed. Keep it
   on one line and let the nav give up space instead. */
.auth-btn-group {
    flex-shrink: 0;
    white-space: nowrap;
}

.auth-btn {
    font-weight: 500;
    border-width: 2px;
    transition: all 0.2s ease;
}

/* Sign up button */
.auth-btn-outline-primary {
    color: #394150;
    border-color: #dedede;
    background-color: var(--bs-white);
}

    .auth-btn-outline-primary:hover {
        color: #394150;
        border-color: #dedede;
        background-color: #dedede;
    }

    .auth-btn-outline-primary:active {
        transform: scale(0.98);
        color: #394150 !important;
        border-color: #dedede !important;
        background-color: var(--bs-white) !important;
    }

/* Sign in button */
.auth-btn-primary {
    color: var(--bs-white);
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

    .auth-btn-primary:hover {
        color: var(--bs-white);
        background-color: var(--second-primary);
        border-color: var(--second-primary);
    }

    .auth-btn-primary:active {
        transform: scale(0.98);
        color: var(--bs-white) !important;
        background-color: var(--second-primary) !important;
        border-color: var(--second-primary) !important;
    }

.text-gray {
    color: #4b5464 !important;
}

.text-dark-gray {
    color: #364053 !important;
}

/* Default styling for all dropdown items */
.dropdown-menu .dropdown-item {
    background-color: white;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    /* Hover effect for all items */
    .dropdown-menu .dropdown-item:hover {
        background-color: #f0f0f0;
    }

    /* Active state */
    .dropdown-menu .dropdown-item:active {
        background-color: #e0e0e0;
        color: #364053;
    }

.dropdown-toggle.no-arrow::after {
    display: none !important;
}

/* Rounded corners for the last item */
.dropdown-menu li:last-child .dropdown-item {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

    .dropdown-menu li:last-child .dropdown-item:active {
        background-color: #e0e0e0;
    }
/* Ensure no border-radius for middle items */
.dropdown-menu li:not(:first-child):not(:last-child) .dropdown-item {
    border-radius: 0;
}

.dropdown-menu-size-sm {
    min-width: 13rem;
}

.dropdown-menu-size-md {
    min-width: 22rem;
}

@media (max-width: 576px) {
    .dropdown-menu-size-md {
        min-width: 17rem;
    }

    .dropdown-menu-size-sm {
        min-width: 13rem;
    }
}
/* ---- Badges ---- */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-review {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-published {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.notif-badge {
    width: 8px;
    height: 8px;
    background: #e15a61;
    border-radius: 50%;
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 1;
}

.notification-card-header {
    padding: 1.25rem;
}

.notification-card-footer {
    padding: 1.25rem;
}

.btn-saved {
    background-color: #f0f9ff !important;
    color: #036aa3 !important;
    border: 1px solid #f0f9ff !important;
}

    .btn-saved:hover {
        background-color: #e0f2fe !important;
        color: #036aa3 !important;
        border: 1px solid #e0f2fe !important;
    }

    .btn-saved:active {
        background-color: #e0f2fe !important;
        color: #036aa3 !important;
        border: 1px solid #e0f2fe !important;
    }

.dropdown-menu.dropdown-animation.show {
    animation-duration: 0.3s !important;
    animation-fill-mode: both;
    animation-name: dropdownslideIn;
    position: absolute !important;
    top: 100% !important;
    transition: none;
}

@keyframes dropdownslideIn {
    0% {
        transform: translateY(1rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0rem);
        opacity: 1;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #a0a0a0;
    border-radius: 10px;
    background-clip: content-box;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #767676;
    }
/* Scrollable content styles */
.scrollable-content {
    overflow-y: auto;
    max-height: 300px;
    padding: 1rem;
    border-radius: 0.5rem;
    -ms-overflow-style: none;
}

    /* Show scrollbar only while scrolling */
    .scrollable-content::-webkit-scrollbar-thumb {
        background-color: #a0a0a0;
        border-radius: 2px;
        background-clip: content-box;
    }

    .scrollable-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .scrollable-content::-webkit-scrollbar {
        width: 5px;
    }

    .scrollable-content::-webkit-scrollbar-thumb:hover {
        background-color: #767676;
    }

/* Slider */
.noUi-target {
    height: 3px;
    border: none;
}

.noUi-base {
    background-color: var(--color-border);
}

.noUi-connect {
    background-color: var(--color-accent-1) !important;
    box-shadow: 0 !important;
}

.noUi-handle {
    border-radius: 100%;
    width: 30px !important;
    height: 30px !important;
    top: 50% !important;
    transform: translateY(-50%);
    border: 2px solid var(--color-accent-1);
    box-shadow: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .noUi-handle::after {
        content: "|||";
        position: absolute;
        left: unset !important;
        top: unset !important;
        width: auto !important;
        height: auto !important;
        background-color: transparent !important;
        font-size: 13px;
        color: var(--color-accent-1);
    }

.noUi-marker-large {
    display: none !important;
}

.active-pip {
    font-weight: bold;
    color: var(--color-accent-1);
}

/* Register Modal*/
.user-type-option {
    display: none;
}

.user-type-card {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

    .user-type-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        background-color: rgb(var(--bs-primary-rgb), 0.05);
    }

.user-type-option:checked + .user-type-card {
    transform: translateY(0px);
    border: 2px solid var(--bs-primary);
    background-color: rgb(var(--bs-primary-rgb), 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-type-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--bs-primary);
}

.user-type-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--bs-primary);
}

.user-type-desc {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Cards Styling */
.card-hover {
    transition: all 0.3s ease;
}

    .card-hover:hover {
        border-color: #f9f9f9 !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

    .card-hover:focus {
        background-color: #f0f8ff;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
        outline: none;
    }

/* Maps Css */
.atlas-map .popup-content-container {
    max-width: 600px !important;
    border-radius: 8px !important;
}

.atlas-map .popup-close {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 25px !important;
    width: 25px !important;
    font-size: 30px !important;
    padding: 0 !important;
    z-index: 2;
}

.atlas-map * + .tooltiptext {
    display: none !important;
}

/* Chat CSS */
.chat_search {
    position: relative;
    display: flex;
    align-items: center;
}

    .chat_search i {
        position: absolute;
        left: 18px;
    }

    .chat_search input {
        background-color: var(--color-white-bone);
        border-radius: 12px;
        height: 50px;
        padding: 0 20px 0 50px;
        width: 100%;
        border: 0;
        outline: none;
    }

.chat_message {
    height: 60px;
    gap: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .chat_message input {
        background-color: var(--color-white-bone);
        border-radius: 12px;
        height: 60px;
        padding: 0 20px 0 50px;
        width: 100%;
        border: 0;
        outline: none;
    }

.canvas {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    padding: 20px;
    transition: left 0.3s ease-in-out;
    border-radius: 0.5rem;
}

    .canvas.show {
        left: 0;
    }

.close-btn {
    position: absolute;
    top: -10px;
    right: 15px;
    color: #000000;
    background-color: transparent;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
}

.hidden-tabs {
    display: none !important;
}

.visible-tabs {
    display: block !important;
}

/* Loading Classes */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}

.stepper {
    list-style-type: none;
    padding: 0;
    position: relative;
}

    .stepper::before {
        content: "";
        position: absolute;
        top: 16px;
        left: 15px;
        width: 2px;
        background-color: var(--bs-gray-200);
        z-index: 0;
        height: calc(100% - 60px);
    }

.stepper-item {
    position: relative;
    counter-increment: step-counter;
    padding-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

    .stepper-item:last-child {
        padding-bottom: 0;
    }

.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: var(--bs-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
    position: absolute;
}

.stepper-content {
    color: #212529;
    margin-left: 45px;
}

.stepper-item.active .stepper-circle {
    background-color: var(--bs-primary);
    color: white;
}

.stepper-item.active .stepper-content {
    color: var(--bs-primary);
}

.stepper-item.completed .stepper-circle {
    background-color: var(--bs-secondary);
    color: white;
}

.stepper-item.completed .stepper-content {
    color: var(--bs-secondary);
}

.selectable-card {
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .selectable-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
    }

.profile-img {
    height: 200px;
    object-fit: contain;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.selected-checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.btn-check:checked + .selectable-card {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0.5rem 1rem rgba(var(--bs-primary-rgb), 0.25) !important;
}

    .btn-check:checked + .selectable-card .selected-checkmark {
        opacity: 1 !important;
        transform: scale(1) !important;
    }


    .form-check-input:checked {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

    .form-check-input:focus {
        border-color: var(--bs-secondary);
        outline: 0;
        box-shadow: 0 0 0 .25rem rgba(var(--bs-secondary-rgb), .25);
    }

.form-switch .form-check-input:focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e")
}

.content-preview-wrapper {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.blurred-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .blurred-content {
        padding: 2.5rem;
    }
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( to bottom right, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7) ); /* Equivalent to bg-gradient-to-br from-slate-900/70 via-slate-900/80 to-slate-900/70 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: white;
}

.login-prompt-box {
    background-color: white;
    color: #333;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 512px;
    width: 100%;
    transform: scale(1);
    transition: transform 0.3s ease-out;
}

@media (min-width: 640px) {
    .login-prompt-box {
        padding: 3rem;
    }
}

.login-prompt-box .icon {
    width: 4rem;
    height: 4rem;
    color: var(--bs-primary);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.login-prompt-box h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .login-prompt-box h2 {
        font-size: 1.875rem;
    }
}

.login-prompt-box .prompt-text {
    color: #4b5563;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.625;
}

@media (min-width: 640px) {
    .login-prompt-box .prompt-text {
        font-size: 1.125rem;
    }
}

.login-prompt-box .btn-login {
    color: white;
    font-weight: 700;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

    .login-prompt-box .btn-login:hover {
        transform: scale(1.05);
    }

    .login-prompt-box .btn-login:focus {
        box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.5);
    }

.login-prompt-box .signup-link {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

    .login-prompt-box .signup-link a {
        font-weight: 600;
        color: var(--bs-primary);
        text-decoration: none;
    }

        .login-prompt-box .signup-link a:hover {
            color: var(--bs-primary);
            text-decoration: underline;
        }

.blurred-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blurred-content .btn {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--bs-primary);
    --bs-pagination-bg: var(--bs-body-bg);
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: var(--bs-border-color);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: var(--second-primary);
    --bs-pagination-hover-bg: var(--bs-tertiary-bg);
    --bs-pagination-hover-border-color: var(--bs-border-color);
    --bs-pagination-focus-color: var(--second-primary);
    --bs-pagination-focus-bg: var(--bs-secondary-bg);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(var(--second-primary-rgb), 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-disabled-color: var(--bs-secondary-color);
    --bs-pagination-disabled-bg: var(--bs-secondary-bg);
    --bs-pagination-disabled-border-color: var(--bs-border-color);
    display: flex;
    padding-left: 0;
    list-style: none;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    z-index: 10;
    pointer-events: none;
    user-select: none;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(108, 117, 125, 0.8);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.watermark-sold {
    color: rgba(255, 0, 0, 0.7) !important;
    font-size: 5rem !important;
}

/* OpenHouse */
.overallRating {
    overflow: hidden;
    border-radius: 12px;
}

.overallRating__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

@media (max-width: 767px) {
    .overallRating__list {
        grid-template-columns: 1fr;
    }
}

.overallRating__list > *:nth-child(1) {
    grid-column: 2 span;
}

@media (max-width: 767px) {
    .overallRating__list > *:nth-child(1) {
        grid-column: 1 span;
    }
}

.overallRating__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(255 229 45 / 4%);
    padding: 16px 30px;
}

    .overallRating__item:nth-child(1) {
        background-color: rgb(255 229 45 / 92%);
    }

.overallRating__content {
    display: flex;
    align-items: center;
}

.overallRating__icon {
    display: flex;
    margin-right: 30px;
}

.overallRating__list > *:nth-last-child(1):nth-child(even) {
    grid-column: span 2;
}

/*listing map property marker*/

.marker-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.marker-icon {
    background-color: var(--bs-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 2;
}

.marker-label {
    background-color: white;
    color: #212529;
    border-radius: 0px 50px 50px 0px;
    margin-left: -12px;
    padding: 8px 14px 8px 22px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    white-space: nowrap;
    overflow: hidden;
    width: fit-content;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.8s ease, opacity 0.5s ease;
}

.marker-wrapper:hover .marker-label {
    max-width: 500px; 
    opacity: 1;
}

.history-timeline-v2 {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e9ecef;
    margin-left: 0.5rem;
}

.history-node {
    position: relative;
    padding-bottom: 2rem;
}

    .history-node:last-child {
        border-left: 2px solid #fff;
        margin-left: -2px;
        padding-left: 2px;
    }

.history-dot {
    position: absolute;
    left: -2.55rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #dee2e6;
    z-index: 1;
}

    .history-dot.current {
        border-color: var(--bs-primary);
        background-color: var(--bs-primary);
    }

    .history-dot.sold {
        border-color: #c62828;
        background-color: #c62828;
    }

.history-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.history-card-tabular {
    background-color: #f8f9fa;
}

.history-timeline-tabular {
    margin-left: 0.5rem;
}

.history-table-head-offset {
    display: none !important;
}

.history-node-tabular {
    padding-bottom: 2.25rem;
}

.history-node-tabular .history-dot {
    top: 0.35rem;
}

.history-node-left-date {
    position: static;
    width: auto;
    text-align: left;
    white-space: normal;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.05;
    color: #111827;
    margin: 0 0 0.55rem 0rem;
}

.history-node-days {
    display: block;
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.history-node-content {
    padding-left: 0;
}

.history-brokerage {
    margin-top: 0.5rem;
    text-align: left;
}

.history-table-head {
    display: none !important;
}

.history-data-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.history-data-cell {
    min-width: 0;
}

.history-data-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.history-data-value {
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}

.history-event-text {
    font-weight: 700;
}

.history-event--active {
    color: #1f7a3e;
}

.history-event--sold {
    color: #c62828;
}

.history-event--leased {
    color: #a25700;
}

.history-event--terminated {
    color: #a62424;
}

.history-event--expired {
    color: #6c757d;
}

.history-event--conditional {
    color: #7a5a00;
}

.history-collapse-scroll.collapse.show {
    max-height: 42rem;
    overflow: auto;
    padding-right: 0.35rem;
}

@media (max-width: 991.98px) {
    .history-collapse-scroll.collapse.show {
        max-height: 32rem;
    }

    .history-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .history-data-grid {
        grid-template-columns: 1fr;
    }
}

/*Property Card styles*/
.property-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.property-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.property-card .property-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-card .card-body {
    padding: 1rem;
}

.property-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.property-details {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
}

.badge-mls-radius {
    border-top-left-radius: 12px;
}


/* Listing Tabs */
.wizreal-tabs:not(.tabs-scroll) {
    border-bottom: 1px solid #eee;
}

.tabs-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    -ms-overflow-style: none;
    gap: 3px;
    padding: 6px;
    border-bottom: none;
    background: transparent;
    border-radius: 12px;
    align-items: center;
}

    .tabs-scroll::-webkit-scrollbar {
        display: none;
    }

    .tabs-scroll .nav-link {
        white-space: nowrap;
        padding: 0.45rem 0.95rem;
        margin: 0;
        border:none;
        border-bottom: 3px solid #ccc;
        background: transparent;
        color: #495057;
    }

        .tabs-scroll .nav-link i {
            margin-right: 0.4rem;
        }

        .tabs-scroll .nav-link:hover {
            background: rgba(0, 0, 0, 0.04);
        }

        .tabs-scroll .nav-link.active {
            color: var(--bs-primary);
            background-color: transparent;
            border-bottom: 3px solid var(--bs-primary);
        }

.room-table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cfd6de transparent;
}

    .room-table-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .room-table-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .room-table-scroll::-webkit-scrollbar-thumb {
        background: #cfd6de;
        border-radius: 999px;
    }

        .room-table-scroll::-webkit-scrollbar-thumb:hover {
            background: #b8c2cc;
        }

.wizreal-tabs:not(.tabs-scroll) .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.2rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    background: transparent;
}

    .wizreal-tabs:not(.tabs-scroll) .nav-link:hover {
        color: var(--bs-primary);
        background: rgba(var(--bs-primary-rgb), 0.05);
    }

    .wizreal-tabs:not(.tabs-scroll) .nav-link.active {
        color: var(--bs-primary);
        background: transparent;
        border-bottom: 3px solid var(--bs-primary);
        font-weight: 600;
    }

    .wizreal-tabs:not(.tabs-scroll) .nav-link i {
        margin-right: 8px;
    }

.tab-content {
    padding-top: 0.5rem;
}

/* Site-wide copyright bar (rendered at the bottom of every page in _Layout.cshtml).
   Uses the brand primary so it adapts to the residential / commercial purchase-type
   theme (green for residential, teal for commercial). */
.site-copyright-bar {
    background-color: var(--bs-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.4px;
    line-height: 1.4;
    font-size: 0.85rem;
}

    .site-copyright-bar a {
        color: #fff;
        text-decoration: underline;
    }

        .site-copyright-bar a:hover {
            color: rgba(255, 255, 255, 0.85);
        }
/* The install prompt is position:fixed over the page, so on a long form it covered the
   inputs underneath it (reported on Home Valuation, over Bathrooms / Half Baths).
   While it is on screen the content gets matching bottom padding so it can clear it.
   The padding sits on <main>, NOT on <body>: the footer and the copyright bar are the
   last children of body, so padding there was added BELOW the copyright bar and left a
   band of blank page under it - which read as the footer floating up the page. */
body.has-pwa-prompt main[role="main"] {
    padding-bottom: 7rem;
}

@media (max-width: 575.98px) {
    body.has-pwa-prompt main[role="main"] {
        padding-bottom: 11rem;
    }
}

.pwa-install-prompt {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 680px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.16);
    transform: translateY(calc(100% + 2rem));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

    .pwa-install-prompt.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.pwa-install-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    flex: 0 0 auto;
}

.pwa-install-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

    .pwa-install-text strong {
        color: var(--bs-primary);
    }

    .pwa-install-text span {
        color: #596773;
        font-size: 0.9rem;
    }

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .pwa-install-prompt {
        align-items: stretch;
        flex-direction: column;
    }

    .pwa-install-actions {
        justify-content: flex-end;
    }
}

/* Map result card crowding at narrow widths (2026-10-01).
   The type and price sat in a flex row with no gap, and .text-truncate cannot
   shrink a flex item below its content width without min-inline-size: 0 - so a long
   type ran straight into the price ("Single Family$599,998"). */
.wiz-card-headline {
    gap: 0.5rem;
}

.wiz-card-headline > .card-title {
    min-inline-size: 0;
}

.wiz-card-price {
    flex-shrink: 0;
    white-space: nowrap;
}

/* The status badge and the favourite heart are absolutely positioned at opposite
   corners of the same image. Measured at an 800px viewport the image column is only
   75px wide while the heart alone is 40px + margins - so capping the badge width
   cannot work, there is simply no room for both on that row. Below the lg
   breakpoint the heart drops to the bottom corner instead, which leaves the badge
   its full width and removes the collision outright. */
.badge-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .wiz-card-linked .btn-favorite {
        top: auto !important;
        bottom: 0;
    }
}

/* Listing cards are links, not clickable divs (WIZREALMA-414).
   The anchor is stretched over the whole card so the browser's own behaviour works
   (new tab, middle click, keyboard focus, status-bar URL preview), while the
   favourite button and status badges stay clickable above it. */
.wiz-card-linked {
    position: relative;
}

.wiz-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}

.wiz-card-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.wiz-card-linked .btn-favorite,
.wiz-card-linked .badge-status,
.wiz-card-linked a:not(.wiz-card-link),
.wiz-card-linked button:not(.wiz-card-link) {
    position: relative;
    z-index: 2;
}


/* WIZREALMA-417: at phone widths the centred search card ran underneath the map's
   drawing toolbar in the top-right corner. Pin the card to the left edge and reserve
   the toolbar column so the two never overlap. */
@media (max-width: 575.98px) {
    .map-search {
        left: 0;
        right: 56px;
        transform: none;
        width: auto;
        justify-content: flex-start;
        border-radius: 0 0 25px 0;
    }

        .map-search .search-content-wrapper {
            width: 100%;
            max-width: none;
        }
}


/* Listing gallery blur-up + spinner (WIZREALMA-389). Paired with
   wwwroot/js/listingGalleryLoader.js; harmless if that script does not run. */
.wiz-gallery-loading img {
    filter: blur(12px);
    transform: scale(1.02);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.wiz-gallery-loaded img {
    filter: none;
    transform: none;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.wiz-gallery-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wiz-gallery-spin 0.8s linear infinite;
    pointer-events: none;
}

@keyframes wiz-gallery-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Links inside a chat bubble. Keyed on the bubble's text colour, not its background class:
   the shared chat partial uses .message-bubble.bg-primary while the admin conversation view
   uses its own markup, so a background-class rule only ever reached one of them and the same
   link came out green in one chat and default blue in another. */
.js-chat-link {
    color: var(--bs-primary, #3e7b27);
    text-decoration: underline;
    word-break: break-word;
}

.text-white .js-chat-link,
.text-white .js-chat-link:hover,
.text-white .js-chat-link:focus {
    color: #ffffff;
}

/* WIZREALMA-454 - keep the copyright bar at the bottom of a short page.
   Only _AdminLayout carried a sticky-footer rule; the public and map layouts render the
   same bar with nothing holding it down, so on a page with little content it sat directly
   under that content, halfway up the screen. (The PWA-prompt padding above fixed a
   different cause of the same symptom.) Scoped with :has() to pages that actually render
   the bar, so no other layout has its body turned into a flex container. */
body:has(> .site-copyright-bar) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:has(> .site-copyright-bar) > main[role="main"] {
    flex: 1 0 auto;
}

body:has(> .site-copyright-bar) > .site-copyright-bar {
    margin-top: auto;
}
