:root {
    --ql-shell-max-width: 1200px;
    --ql-shell-text: #1a1a1a;
    --ql-shell-muted: #333333;
    --ql-shell-white: #ffffff;
    --ql-shell-blue-900: #0a2b5f;
    --ql-shell-blue-700: #0b58bf;
    --ql-shell-blue-800: #0a3d86;
    --ql-shell-blue-050: #f8fbff;
    --ql-shell-blue-100: #dbe5f1;
    --ql-shell-blue-200: #c7d6ea;
    --ql-shell-blue-300: #89aee0;
    --ql-shell-blue-600: #21446f;
    --ql-shell-blue-650: #16385f;
    --ql-shell-shadow-soft: 0 14px 30px rgba(8, 30, 70, 0.22);
    --ql-shell-shadow-card: 0 26px 60px rgba(4, 17, 42, 0.28);
}

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

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--ql-shell-text);
    background-color: var(--ql-shell-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #000000;
    text-decoration: none;
}

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

p {
    margin: 0 0 1rem;
    color: var(--ql-shell-muted);
}

img {
    max-width: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

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

.container {
    width: 100%;
    max-width: var(--ql-shell-max-width);
    margin: 0 auto;
    padding: 0 1.2rem;
}

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

.row > [class*="col-"] {
    width: 100%;
    padding: 0 0.5rem;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-fill {
    flex: 1 1 auto;
}

.gap-2 {
    gap: 0.5rem;
}

.overflow-auto {
    overflow: auto;
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.position-relative {
    position: relative;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.object-fit-cover {
    object-fit: cover;
}

.rounded-pill {
    border-radius: 999px;
}

.fw-semibold {
    font-weight: 600;
}

.border-2 {
    border-width: 2px !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.bg-success {
    background: #198754;
    color: #ffffff;
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    min-width: 1em;
    height: 1em;
    line-height: 1;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid transparent;
    background: #f2f5f9;
    color: #10213a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn-sm {
    min-height: 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 0.9rem 1.15rem;
    font-size: 1rem;
}

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

.btn-dark {
    background: #212529;
    border-color: #212529;
    color: #ffffff;
}

.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.btn-info {
    background: #0dcaf0;
    border-color: #0dcaf0;
    color: #062b33;
}

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.btn-outline {
    background: linear-gradient(180deg, #f5f9ff 0%, #e9f1fb 100%);
    border-color: #c7d6ea;
    color: #21446f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.text-muted {
    color: rgba(33, 37, 41, 0.75);
}

.text-white {
    color: #ffffff;
}

.text-primary {
    color: #0d6efd;
}

.small,
small {
    font-size: 0.875em;
}

.fw-bold {
    font-weight: 700;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-3 {
    padding-right: 1rem;
    padding-left: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.h4,
.h6 {
    margin: 0 0 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.h4 {
    font-size: 1.5rem;
}

.h6 {
    font-size: 1rem;
}

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

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

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e5e5;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 1rem 0;
}

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

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

.brand-logo {
    display: block;
    width: auto;
    max-width: 200px;
    height: 65px;
}

.navbar-menu {
    display: flex;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.5rem;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #10213a;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: #000000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    color: #333333;
    font-weight: 500;
}

.nav-free-badge {
    position: relative;
    top: -2px;
    padding: 0.24rem 0.48rem;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

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

.main-content {
    min-height: calc(100vh - 200px);
    max-width: var(--ql-shell-max-width);
    margin: 0 auto;
}

.page-header {
    position: relative;
    overflow: hidden;
    margin: 0 1.75rem 1.25rem;
    padding: 2.7rem 0 2rem;
    border-radius: 0 0 18px 18px;
    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, var(--ql-shell-blue-900) 0%, var(--ql-shell-blue-700) 52%, var(--ql-shell-blue-800) 100%);
    color: #ffffff;
    box-shadow: var(--ql-shell-shadow-soft);
}

.page-header::before,
.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-header::before {
    z-index: 1;
    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%);
}

.page-header::after {
    z-index: 2;
    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%);
}

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

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    background: transparent;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 0.5rem;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.property-detail-page .breadcrumb {
    margin-bottom: 1.4rem;
}

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

.page-header .breadcrumb a,
.page-header .breadcrumb span {
    text-shadow: 1px 1px #000;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
}

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

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

.form-control,
.form-select,
.multi-select > .form-select,
.btn {
    min-height: 52px;
    border-radius: 14px;
}

.form-control,
.form-select,
.multi-select > .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ql-shell-blue-100);
    background: var(--ql-shell-blue-050);
    box-shadow: none;
}

.search-form .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.search-form .row > [class*="col-"] {
    width: 100%;
    padding: 0 0.75rem;
}

.d-none,
[hidden] {
    display: none !important;
}

.fade:not(.show) {
    opacity: 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #ffffff;
    border-radius: 0.5rem;
}

.carousel {
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

.property-detail-placeholder {
    min-height: 360px;
    background: #f2f5f9;
}

.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__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__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--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;
}

.property-carousel-split-nav {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 2;
}

.property-carousel-hit-area {
    flex: 1 1 50%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.property-carousel-hit-area--prev {
    border-radius: 28px 0 0 28px;
}

.property-carousel-hit-area--next {
    border-radius: 0 28px 28px 0;
}

.property-thumbnails {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.9rem;
    overflow: auto;
}

.thumbnail-item {
    flex: 0 0 clamp(112px, 18vw, 148px);
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
    padding: 0;
    background: transparent;
    border: 1px solid #d7e2ef;
    box-shadow: 0 4px 10px rgba(14, 31, 57, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

.thumbnail-item.active {
    border-color: #17314f;
    box-shadow: 0 0 0 1px #17314f, 0 10px 22px rgba(14, 31, 57, 0.14);
    transform: translateY(-1px);
}

.home-page .page-header.home-hero,
.search-band-page .page-header.home-hero,
.change-history-page .page-header.home-hero {
    padding: 2.9rem 0 3rem;
    margin-bottom: 1.75rem;
}

.home-hero-grid,
.property-search-header-content {
    display: block;
    max-width: none;
}

.home-hero-copy h1 {
    max-width: 60ch;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-shadow: 1px 1px #000;
}

.home-hero-copy p {
    max-width: 60ch;
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.75;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-kicker i {
    color: #8fc4ff;
}

.home-hero-search,
.property-header-search-wrap {
    margin: 1.8rem 0 1.65rem;
}

.home-search-card,
.property-header-search-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(218, 229, 243, 0.85);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--ql-shell-shadow-card);
}

.home-search-card .search-form,
.property-search-page-header .search-form {
    margin-bottom: 0;
    padding: 1.5rem;
    border: 0;
    border-radius: 28px 28px 0 0;
    background: transparent;
    box-shadow: none;
}

.home-search-actions,
.property-header-search-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#home-advanced-btn {
    border: 1px solid var(--ql-shell-blue-200);
    background: linear-gradient(180deg, #f5f9ff 0%, #e9f1fb 100%);
    color: var(--ql-shell-blue-600);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-search-card .search-form .form-label,
.property-search-page-header .search-form .form-label {
    color: #2a3b58;
}

.home-search-card .search-form .form-control,
.home-search-card .search-form .form-select,
.home-search-card .search-form .multi-select > .form-select,
.property-search-page-header .search-form .form-control,
.property-search-page-header .search-form .form-select,
.property-search-page-header .search-form .multi-select > .form-select {
    min-height: 52px;
    border-radius: 14px;
    border-color: #dbe5f1;
    background: #f8fbff;
    box-shadow: none;
}

.home-search-card .search-form .form-control:focus,
.home-search-card .search-form .form-select:focus,
.home-search-card .search-form .multi-select > .form-select:focus,
.property-search-page-header .search-form .form-control:focus,
.property-search-page-header .search-form .form-select:focus,
.property-search-page-header .search-form .multi-select > .form-select:focus {
    border-color: #6eaef7;
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.home-search-card .search-form .btn,
.property-search-page-header .search-form .btn {
    min-height: 52px;
    border-radius: 14px;
}

.home-search-actions .btn,
.property-header-search-actions .btn {
    min-width: 0;
}

.property-header-search-actions {
    margin-top: 0.25rem;
}

.home-search-card #home-advanced-btn,
.property-search-page-header #home-advanced-btn {
    white-space: nowrap;
}

.home-search-card #home-advanced-btn .advanced-btn-label-expanded,
.property-search-page-header #home-advanced-btn .advanced-btn-label-expanded {
    display: none;
}

.home-search-card #home-advanced-btn .advanced-btn-label-short,
.property-search-page-header #home-advanced-btn .advanced-btn-label-short {
    display: none;
}

.home-search-card #home-advanced-btn[aria-expanded="true"] .advanced-btn-label-collapsed,
.property-search-page-header #home-advanced-btn[aria-expanded="true"] .advanced-btn-label-collapsed {
    display: none;
}

.home-search-card #home-advanced-btn[aria-expanded="true"] .advanced-btn-label-expanded,
.property-search-page-header #home-advanced-btn[aria-expanded="true"] .advanced-btn-label-expanded {
    display: inline;
}

.home-search-card .search-form #home-advanced-btn,
.property-search-page-header #home-advanced-btn {
    border-color: #c7d6ea !important;
    background: linear-gradient(180deg, #f5f9ff 0%, #e9f1fb 100%);
    color: #21446f;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-search-card .search-form #home-advanced-btn:hover,
.home-search-card .search-form #home-advanced-btn:focus,
.property-search-page-header #home-advanced-btn:hover,
.property-search-page-header #home-advanced-btn:focus {
    border-color: #89aee0 !important;
    background: linear-gradient(180deg, #eef5ff 0%, #dfeafb 100%);
    color: #16385f;
}

.home-search-card .multi-select,
.property-search-page-header .multi-select {
    position: relative;
}

.home-search-card .multi-select .multi-select-menu,
.property-search-page-header .multi-select .multi-select-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 1060;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #d7e3f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(14, 31, 57, 0.16);
    padding: 0.55rem;
}

.home-search-card .multi-select .dropdown-item,
.property-search-page-header .multi-select .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    color: #1f3553;
    font-size: 0.96rem;
    line-height: 1.35;
    white-space: normal;
}

.home-search-card .multi-select .dropdown-item:hover,
.home-search-card .multi-select .dropdown-item:focus-within,
.property-search-page-header .multi-select .dropdown-item:hover,
.property-search-page-header .multi-select .dropdown-item:focus-within {
    background: #f4f8fd;
}

.home-search-card .multi-select .dropdown-item input,
.property-search-page-header .multi-select .dropdown-item input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: #0a58bf;
}

.home-search-card #home-advanced-options,
.property-search-page-header #home-advanced-options {
    margin-top: 0.9rem;
    padding: 1rem;
    border-radius: 18px;
    background: #f7fbff;
    border: 1px solid #dbe7f3;
}

.home-search-utility,
.property-header-search-utility {
    margin-top: 1rem;
    padding: 1.15rem 1.5rem 1.35rem;
    border-top: 1px solid #e2ebf5;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.95) 0%, rgba(241, 247, 253, 0.98) 100%);
    border-radius: 0 0 28px 28px;
}

.home-search-note {
    margin: 0.85rem 0 0;
    color: #4f6480;
    font-size: 0.92rem;
}

.home-search-card .search-lists-wrap,
.property-search-page-header .search-lists-wrap {
    margin-bottom: 0;
}

.property-search-page-header .search-lists-tabs {
    gap: 0.7rem;
    margin-bottom: 0;
}

.search-lists-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.95rem;
}

.home-search-card .search-list-tab,
.property-search-page-header .search-list-tab,
.search-list-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid #d5e1ee;
    border-radius: 999px;
    background: #ffffff;
    color: #46627f;
    padding: 0.55rem 0.95rem;
    box-shadow: 0 2px 6px rgba(13, 35, 68, 0.05);
}

.home-search-card .search-list-tab:hover,
.home-search-card .search-list-tab:focus,
.property-search-page-header .search-list-tab:hover,
.property-search-page-header .search-list-tab:focus,
.search-list-tab:hover,
.search-list-tab:focus {
    color: #0b56b2;
    border-color: #9ebbe1;
    background: #f6faff;
}

.home-search-card .search-list-tab.active,
.property-search-page-header .search-list-tab.active,
.search-list-tab.active {
    color: #ffffff;
    border-color: #0a58bf;
    background: linear-gradient(135deg, #0a58bf 0%, #2d74cb 100%);
    box-shadow: 0 10px 18px rgba(10, 88, 191, 0.2);
}

.property-search-page-header .search-list-tab {
    gap: 0.2rem;
    padding: 0.75rem 1.15rem;
    border-color: #d1dcea;
    color: #4c668c;
    box-shadow: 0 8px 18px rgba(16, 33, 58, 0.05);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.property-search-page-header .search-list-tab:hover,
.property-search-page-header .search-list-tab:focus {
    color: #143b71;
    border-color: #9fbbe0;
    background: #f8fbff;
    outline: none;
}

.property-search-page-header .search-list-tab.active {
    color: #143b71;
    border-color: #8eb0df;
    background: #eef5ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.property-header-clear-link a {
    color: #52627d;
}

.property-header-clear-link a:hover {
    color: #173b6d;
}

.home-search-label-short {
    display: none;
}

.home-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.3rem;
}

.home-hero-metric {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(5, 18, 42, 0.34);
}

.home-hero-metric strong {
    display: block;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.2;
}

.home-hero-metric-label {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.home-point {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(3, 14, 34, 0.26);
}

.home-point i {
    display: inline-flex;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(143, 196, 255, 0.18);
    color: #c7e3ff;
}

.home-point span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.35;
}

.property-search-page-header .search-form .btn.btn-primary,
.home-search-card .search-form .btn.btn-primary {
    box-shadow: 0 10px 22px rgba(12, 49, 107, 0.18);
}

.property-card {
    border: 1px solid #dfe8f3;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(14, 31, 57, 0.08);
}

.property-card .row.g-0 {
    min-height: 280px;
    margin: 0;
}

.property-card .row.g-0 > [class*="col-"] {
    padding: 0;
}

.property-card .col-md-4,
.property-card .col-md-8 {
    width: 100%;
}

.property-image-container {
    position: relative;
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 28px 0 0 28px;
    background: linear-gradient(180deg, #e7eff8 0%, #dce7f4 100%);
    line-height: 0;
}

.property-image-container > a,
.property-image-container picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.property-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 46%;
}

.property-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.55rem 1.65rem;
}

.property-card .property-display-price:first-child h4 {
    color: #10213a;
    font-size: 1.5rem;
    line-height: 1.15;
}

.property-card .property-display-price:nth-of-type(2) h6 {
    color: #5b7089;
    font-size: 1rem;
    font-weight: 600;
}

.property-card .property-address h6 {
    color: #1a3555;
    font-size: 1rem;
    line-height: 1.4;
}

.property-card-meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.property-card .property-price {
    margin-bottom: 1rem;
}

.property-card .search-band-card {
    max-width: min(100%, 320px);
}

.property-card .search-band-card__value {
    padding: 0.5rem 0.5rem;
    border-radius: 16px;
    font-size: 1.04rem;
    box-shadow: 0 8px 18px rgba(13, 46, 94, 0.1);
}

.property-card .search-band-card__label {
    font-size: 0.78rem;
}

.property-card .search-band-card__confidence {
    font-size: 0.8rem;
}

.property-listing-date small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: #f2f7fd;
    color: #24405f;
    font-weight: 600;
}

.property-features .d-flex {
    gap: 0.65rem;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: #f2f7fd;
    color: #24405f;
    font-weight: 600;
    white-space: nowrap;
}

.feature-item i {
    width: 0.95rem;
    margin-right: 0;
    flex: 0 0 0.95rem;
    text-align: center;
}

.property-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.property-actions .btn {
    line-height: 1.65;
    font-size: 0.9rem;
}

.property-detail-page .carousel-inner.rounded {
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(14, 31, 57, 0.12);
}

.property-detail-page {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.property-detail-image,
.property-detail-placeholder {
    display: block;
    width: 100%;
    border-radius: 28px;
}

.property-detail-image {
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.property-detail-carousel-frame {
    position: relative;
}

.property-detail-media-card .card-body {
    padding: 1rem;
}

.property-detail-media-card #propertyCarousel {
    margin: -1rem -1rem 0;
}

.property-carousel-open {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    min-height: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 33, 58, 0.82);
    color: #ffffff;
}

.property-surface-card {
    background: #ffffff;
    border: 1px solid #dfe8f3;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(14, 31, 57, 0.08);
    overflow: hidden;
}

.property-surface-card .card-body,
.property-detail-sidebar-card .card-body {
    padding: 1.3rem;
}

.property-detail-sidebar-card .card-body {
    padding: 1.35rem;
}

.property-detail-address {
    margin-bottom: 0.95rem;
    color: #17314f;
    font-size: 0.95rem;
    line-height: 1.35;
}

.property-status-pill {
    border-radius: 999px;
    background: #6b7a8c;
}

.property-status-pill--under-contract {
    background: #a15c00;
}

.property-status-pill--sold {
    background: #198754;
}

.property-detail-sidebar-card .property-pricing {
    display: grid;
    gap: 0.7rem;
}

.property-detail-sidebar-card .price-value {
    margin-bottom: 0;
    color: #10213a;
    font-size: 1.6rem;
    line-height: 1.15;
}

.property-search-band {
    max-width: 100%;
}

.property-detail-meta-band {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.property-detail-sidebar-card .search-band-card__value {
    padding: 0.5rem 0.5rem;
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    border-radius: 16px;
}

.property-detail-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.property-detail-feature-pills .feature-item {
    display: inline-flex;
    gap: 0.42rem;
    align-items: center;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: #f2f7fd;
    color: #24405f;
    font-weight: 600;
}

.property-detail-feature-pills .feature-item i {
    margin-right: 0;
}

.property-detail-meta-row {
    margin-bottom: 0.7rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid #e0eaf5;
    border-radius: 16px;
    background: #f7fbff;
}

.property-detail-meta-row:last-of-type {
    margin-bottom: 1.2rem;
}

.property-detail-meta-row .d-flex {
    align-items: center;
    gap: 1rem;
}

.property-detail-meta-row span {
    color: #60748c;
}

.property-detail-meta-row strong {
    color: #142846;
}

.property-detail-page .card-title {
    margin-bottom: 0.75rem;
    color: #10213a;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.2;
}

.property-detail-page h2.h4,
.property-detail-page h2.card-title,
.property-detail-page .card-body > h2 {
    color: #10213a;
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 700;
}

.property-detail-page .btn-primary {
    box-shadow: 0 12px 24px rgba(12, 49, 107, 0.16);
}

.property-detail-sidebar-card .btn {
    min-height: 46px;
    font-size: 0.96rem;
}

.support-card,
.insight-card {
    height: 100%;
    padding: 24px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-info-sidebar {
    padding: 2rem;
    border-radius: 8px;
    background: #f8f9fa;
}

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

.stat-card {
    padding: 2rem;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-size: 2.5rem;
    font-weight: 700;
}

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

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
}

.metric-big {
    margin-bottom: 5px;
    color: #333333;
    font-size: 2.5rem;
    font-weight: 700;
}

.metric-label {
    color: #666666;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .property-card .row.g-0 {
        align-items: stretch;
        height: 100%;
        min-height: 280px;
    }

    .property-card .col-md-4 {
        display: flex;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        width: 33.333333%;
        align-self: stretch;
    }

    .property-card .col-md-8 {
        display: flex;
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
        width: 66.666667%;
        align-self: stretch;
    }

    .property-image-container {
        flex: 1 1 auto;
        height: auto;
        min-height: 100%;
        border-radius: 28px 0 0 28px;
    }

    .property-card .card-body {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 991.98px) {
    .row > .col-lg-8,
    .row > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .nav-item {
        margin-left: 1.25rem;
    }
    .home-hero-metrics,
    .home-hero-points,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .header {
        z-index: 11000;
    }

    .page-header {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        padding: 2.1rem 0 1.5rem;
    }

    .page-header-content h1,
    .home-hero-copy h1 {
        font-size: 2.05rem;
    }

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

    .navbar-toggle {
        display: inline-flex;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        border-top: 1px solid #e5e5e5;
        background: #ffffff;
        box-shadow: 0 16px 28px rgba(14, 31, 57, 0.08);
    }

    .navbar-menu.active {
        display: block;
        z-index: 11001;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .brand-logo {
        height: 40px;
        max-width: 150px;
    }

    .row {
        flex-direction: column;
    }

    .search-form .row > [class*="col-"] {
        width: 100%;
    }

    .property-card .row.g-0 {
        flex-direction: column;
        min-height: auto;
    }

    .property-image-container {
        height: 300px;
        border-radius: 28px 28px 0 0;
    }

    .property-surface-card,
    .property-detail-image,
    .property-detail-placeholder,
    .property-detail-page .carousel-inner.rounded {
        border-radius: 24px;
    }

    .property-surface-card .card-body,
    .property-detail-sidebar-card .card-body {
        padding: 1.1rem;
    }

    .property-detail-media-card .card-body {
        padding: 0.85rem;
    }

    .property-detail-media-card #propertyCarousel {
        margin: -0.85rem -0.85rem 0;
    }

    .property-carousel-open {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.38rem 0.7rem;
    }

    .property-thumbnails {
        gap: 0.45rem;
    }

    .thumbnail-item {
        flex: 0 0 clamp(84px, 24vw, 102px);
        width: clamp(84px, 24vw, 102px);
    }

    .property-detail-sidebar-card .price-value,
    .property-detail-page h2.h4,
    .property-detail-page h2.card-title,
    .property-detail-page .card-body > h2 {
        font-size: 1.2rem;
    }

    .property-detail-sidebar-card .search-band-card__value {
        font-size: 0.96rem;
    }

    .property-features .d-flex {
        gap: 1rem;
    }

    .home-hero-metrics,
    .home-hero-points,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .home-search-card .search-form,
    .property-search-page-header .search-form {
        padding: 1.1rem;
    }

    .home-search-label-full {
        display: none;
    }

    .home-search-label-short {
        display: inline;
    }

    .home-search-card #home-advanced-btn .advanced-btn-label-full,
    .property-search-page-header #home-advanced-btn .advanced-btn-label-full {
        display: none;
    }

    .home-search-card #home-advanced-btn .advanced-btn-label-short,
    .property-search-page-header #home-advanced-btn .advanced-btn-label-short {
        display: inline;
    }
}

@media (min-width: 992px) {
    .row > .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .row > .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .property-card .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .property-card .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .property-card-meta-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.2rem;
    }

    .property-card-meta-row .property-price {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .property-card-meta-row .property-features {
        flex: 0 0 450px;
        max-width: 450px;
        min-width: 0;
    }

    .property-card-meta-row .property-features .d-flex {
        width: 100%;
        gap: 0.55rem;
        justify-content: flex-start;
        align-content: flex-start;
    }

    .property-card-meta-row .feature-item {
        flex: 0 1 calc((100% - 5rem) / 3);
        min-width: 0;
    }
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }

    .navbar-menu {
        display: flex !important;
        position: static;
        padding: 0;
        border-top: 0;
        background: transparent;
        box-shadow: none;
    }

    .navbar-nav {
        flex-direction: row;
    }

    .nav-item {
        margin-top: 0;
        margin-bottom: 0;
    }
}
