@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    --background: #F0EBE3;
    --foreground: #1A1510;
    --card: #FAF8F5;
    --muted: #DDD5C9;
    --muted-text: #7A7069;
    --accent: #B8732A;
    --border: rgba(26, 21, 16, .12);
    --display: 'Playfair Display', Georgia, serif;
    --body: 'Manrope', system-ui, sans-serif;
    --mono: 'DM Mono', 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--body);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    background: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.cursor-dot, .cursor-ring {
    position: fixed;
    left: -100px;
    top: -100px;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(184, 115, 42, .7);
}

.header {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    top: 0;
    border-bottom: 1px solid transparent;
    transition: .5s;
}

.header.scrolled {
    background: rgba(240, 235, 227, .92);
    backdrop-filter: blur(16px);
    border-color: rgba(26, 21, 16, .08);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(26, 21, 16, .2);
    display: grid;
    place-items: center;
    transition: .3s;
}

.brand-icon svg {
    width: 16px;
    color: var(--accent);
}

.brand:hover .brand-icon {
    border-color: var(--accent);
}

.brand strong {
    display: block;
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: .15em;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a {
    position: relative;
    color: rgba(26, 21, 16, .7);
    font-size: 14px;
    letter-spacing: .02em;
    transition: .2s;
}

.nav a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: .3s;
}

.nav a:hover {
    color: var(--foreground);
}

.nav a:hover:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.favorites-button {
    position: relative;
    width: 28px;
    height: 36px;
    display: grid;
    place-items: center;
}

.favorites-button svg {
    width: 17px;
    transition: .2s;
}

.favorites-button.active svg {
    fill: var(--accent);
    color: var(--accent);
}

.favorites-count {
    position: absolute;
    right: -6px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    place-items: center;
    background: var(--accent);
    color: white;
    font-family: var(--mono);
    font-size: 9px;
}

.favorites-count.show {
    display: grid;
}

.contact-button {
    padding: 11px 20px;
    background: var(--foreground);
    color: var(--background);
    font-size: 14px;
    letter-spacing: .08em;
    transition: background .3s, transform .15s;
}

.contact-button:hover {
    background: var(--accent);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: linear-gradient(rgba(26, 21, 16, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 21, 16, .025) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 64px;
}

.hero-content {
    position: relative;
    z-index: 5;
    padding-right: 64px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.eyebrow span {
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.eyebrow p {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted-text);
}

.hero-content>.eyebrow {
    margin-bottom: 32px;
}

.hero-content>.eyebrow span {
    width: 48px;
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 32px;
}

.hero h1 em, .calculator h2 em {
    font-style: italic;
    color: var(--accent);
}

.hero-copy {
    max-width: 450px;
    color: var(--muted-text);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.hero-search {
    max-width: 600px;
    display: flex;
    border: 1px solid var(--border);
    background: rgba(250, 248, 245, .8);
    backdrop-filter: blur(8px);
    padding: 4px;
}

.deal-switch {
    display: flex;
    border-right: 1px solid var(--border);
}

.deal-button {
    padding: 14px 20px;
    color: var(--muted-text);
    font-size: 14px;
    font-weight: 500;
    transition: .2s;
}

.deal-button.active {
    background: var(--foreground);
    color: var(--background);
}

.hero-search select, .hero-search input {
    min-width: 0;
    border: 0;
    border-right: 1px solid var(--border);
    outline: 0;
    background: transparent;
    padding: 14px 16px;
    font-size: 14px;
}

.hero-search select {
    flex: 1;
}

.hero-search input {
    width: 145px;
}

.hero-search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--accent);
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: .3s;
}

.hero-search-button:hover {
    background: var(--foreground);
}

.hero-search-button svg {
    width: 15px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(26, 21, 16, .08);
}

.hero-stats strong {
    display: block;
    color: var(--accent);
    font-family: var(--display);
    font-size: 24px;
}

.hero-stats span {
    display: block;
    color: var(--muted-text);
    font-size: 12px;
    margin-top: 2px;
    letter-spacing: .04em;
}

.hero-collage {
    position: relative;
    height: 580px;
}

.hero-photo {
    position: absolute;
    will-change: transform;
    transition: transform .1s linear;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-main {
    right: 0;
    top: 32px;
    width: 380px;
    height: 480px;
}

.hero-photo-side {
    left: 0;
    top: 96px;
    width: 230px;
    height: 290px;
    border: 4px solid var(--background);
    z-index: 2;
}

.hero-photo-small {
    right: 32px;
    bottom: 0;
    width: 180px;
    height: 160px;
}

.new-label {
    position: absolute;
    left: -16px;
    bottom: -16px;
    background: var(--foreground);
    color: var(--background);
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 11px;
}

.new-label span {
    display: block;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: .15em;
    margin-bottom: 2px;
}

.new-label strong {
    font-weight: 500;
}

.corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(184, 115, 42, .4);
}

.corner-one {
    right: 375px;
    top: 16px;
    border-left: 1px solid;
    border-top: 1px solid;
}

.corner-two {
    left: 226px;
    bottom: 96px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

.scroll-indicator span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted-text);
}

.scroll-indicator i {
    width: 1px;
    height: 40px;
    background: linear-gradient(var(--accent), transparent);
    animation: pulse 1.5s infinite;
}

.hero-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn .75s forwards;
}

.hero-reveal.delay-1 {
    animation-delay: .1s;
}

.hero-reveal.delay-2 {
    animation-delay: .25s;
}

.hero-reveal.delay-3 {
    animation-delay: .35s;
}

.hero-reveal.delay-4 {
    animation-delay: .55s;
}

.section {
    padding-top: 96px;
    padding-bottom: 96px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.section-head h2, .calculator-title h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 40px;
    letter-spacing: -.02em;
}

.catalog-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-toggle, .catalog-tools select {
    height: 42px;
    border: 1px solid var(--border);
    background: transparent;
    padding: 0 16px;
    font-size: 14px;
    transition: .2s;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle svg {
    width: 14px;
}

.filter-toggle:hover, .catalog-tools select:hover {
    border-color: var(--foreground);
}

.filters-wrap {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .4s, opacity .35s;
}

.filters-wrap.open {
    max-height: 400px;
    opacity: 1;
}

.filters-panel {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    background: rgba(250, 248, 245, .6);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 40px;
}

.filters-panel label>span, .rooms-filter>span {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-text);
    margin-bottom: 8px;
}

.filters-panel select, .filters-panel input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--background);
    outline: 0;
    padding: 0 12px;
    font-size: 14px;
}

.rooms-filter>div {
    display: flex;
    gap: 4px;
}

.room-button {
    flex: 1;
    height: 38px;
    border: 1px solid var(--border);
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 11px;
}

.room-button.active {
    background: var(--foreground);
    border-color: var(--foreground);
    color: var(--background);
}

.results-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.results-row span {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--muted-text);
}

.results-row button {
    display: none;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.results-row button.show {
    display: block;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.property-card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform .4s cubic-bezier(.23, 1, .32, 1), box-shadow .4s;
    transform-style: preserve-3d;
}

.property-card:hover {
    box-shadow: 0 26px 60px rgba(26, 21, 16, .12);
}

.property-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--muted);
}

.property-image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s;
}

.property-card:hover .property-image>img {
    transform: scale(1.05);
}

.property-shade {
    position: absolute;
    inset: 0;
    background: rgba(26, 21, 16, 0);
    transition: .5s;
}

.property-card:hover .property-shade {
    background: rgba(26, 21, 16, .1);
}

.property-badges {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
}

.property-badges span {
    padding: 6px 10px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.deal-badge {
    background: var(--foreground);
    color: var(--background);
}

.deal-badge.rent {
    background: var(--accent);
    color: white;
}

.type-badge {
    background: rgba(240, 235, 227, .86);
    backdrop-filter: blur(8px);
}

.favorite-card {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(240, 235, 227, .85);
    backdrop-filter: blur(8px);
    z-index: 4;
}

.favorite-card svg {
    width: 15px;
    transition: .2s;
}

.favorite-card.active svg {
    fill: var(--accent);
    color: var(--accent);
    transform: scale(1.15);
}

.card-number {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: rgba(240, 235, 227, .55);
    font-family: var(--mono);
    font-size: 12px;
}

.property-body {
    padding: 20px;
}

.property-body h3 {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 12px;
    transition: .3s;
}

.property-card:hover h3 {
    color: var(--accent);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 11px;
    margin-bottom: 16px;
}

.property-location svg {
    width: 11px;
}

.property-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.property-price {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 19px;
    font-weight: 500;
    white-space: nowrap;
}

.property-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 10px;
}

.property-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.property-stats svg {
    width: 11px;
}

.card-reveal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    opacity: 0;
    transition: .3s;
}

.property-card:hover .card-reveal {
    opacity: 1;
}

.card-reveal span {
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 11px;
}

.card-reveal b {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 400;
}

.card-reveal svg {
    width: 11px;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 96px 0;
    color: var(--muted-text);
}

.empty-state.show {
    display: block;
}

.empty-state svg {
    width: 40px;
    height: 40px;
    opacity: .3;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 500;
}

.empty-state p {
    font-size: 14px;
    margin-top: 8px;
}

.calculator {
    position: relative;
    overflow: hidden;
    background: var(--foreground);
    color: var(--background);
    padding-top: 112px;
    padding-bottom: 112px;
}

.calculator-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(240, 235, 227, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 235, 227, .04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.calculator-inner {
    position: relative;
    z-index: 2;
}

.eyebrow.light p {
    color: rgba(240, 235, 227, .5);
}

.calculator-title {
    margin-bottom: 56px;
}

.calculator-title h2 {
    line-height: 1.2;
    color: var(--background);
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.calculator-controls {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.range-field>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.range-field label {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(240, 235, 227, .6);
}

.range-field strong {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 500;
}

.range-field input {
    width: 100%;
    height: 2px;
    appearance: none;
    background: rgba(240, 235, 227, .15);
    outline: 0;
}

.range-field input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--foreground);
    box-shadow: 0 0 0 3px rgba(184, 115, 42, .2);
}

.range-field input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--foreground);
}

.range-field small {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: rgba(240, 235, 227, .3);
    font-family: var(--mono);
    font-size: 10px;
}

.calculator-result {
    border: 1px solid rgba(240, 235, 227, .1);
    padding: 32px;
}

.payment-box {
    text-align: center;
    margin-bottom: 40px;
}

.payment-box p {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(240, 235, 227, .5);
    margin-bottom: 16px;
}

.payment-box strong {
    display: block;
    color: var(--accent);
    font-family: var(--display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -.03em;
}

.payment-box small {
    display: block;
    color: rgba(240, 235, 227, .4);
    font-family: var(--mono);
    font-size: 11px;
    margin-top: 8px;
}

.calculation-list>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(240, 235, 227, .08);
}

.calculation-list span {
    color: rgba(240, 235, 227, .5);
    font-size: 14px;
}

.calculation-list strong {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
}

.loan-bar {
    margin-top: 24px;
}

.loan-bar>div {
    height: 6px;
    display: flex;
    background: rgba(240, 235, 227, .1);
    overflow: hidden;
}

.loan-bar span {
    display: block;
    height: 100%;
    background: rgba(184, 115, 42, .8);
    transition: .5s;
}

.loan-bar i {
    flex: 1;
    background: rgba(240, 235, 227, .2);
}

.loan-bar p {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: rgba(240, 235, 227, .4);
    font-family: var(--mono);
    font-size: 10px;
}

.find-property {
    display: block;
    margin-top: 24px;
    padding: 16px;
    text-align: center;
    background: var(--background);
    color: var(--foreground);
    font-size: 14px;
    letter-spacing: .1em;
    transition: .3s;
}

.find-property:hover {
    background: var(--accent);
    color: white;
}

.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 64px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .brand-icon {
    width: 32px;
    height: 32px;
}

.footer-brand strong {
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: .15em;
}

.footer-about p {
    max-width: 330px;
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.7;
}

.footer h4 {
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer li, .footer a {
    color: rgba(26, 21, 16, .7);
    font-size: 14px;
}

.footer a:hover {
    color: var(--accent);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-list svg {
    width: 13px;
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 12px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 21, 16, .7);
    backdrop-filter: blur(8px);
}

.modal-box {
    position: relative;
    z-index: 2;
    width: min(1000px, 100%);
    max-height: 90vh;
    display: flex;
    overflow: hidden;
    background: var(--card);
    animation: modalIn .35s cubic-bezier(.23, 1, .32, 1);
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(240, 235, 227, .85);
    transition: .2s;
}

.modal-close:hover {
    background: var(--accent);
    color: white;
}

.modal-close svg {
    width: 16px;
}

.modal-gallery {
    position: relative;
    width: 55%;
    min-height: 520px;
    background: var(--muted);
    flex-shrink: 0;
}

.modal-gallery>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn .3s;
}

.modal-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(transparent, rgba(26, 21, 16, .4));
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(240, 235, 227, .75);
    transition: .2s;
}

.gallery-arrow:hover {
    background: var(--background);
}

.gallery-arrow:disabled {
    opacity: .3;
}

.gallery-arrow svg {
    width: 18px;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-thumbs {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
}

.gallery-thumbs button {
    width: 56px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, .4);
    overflow: hidden;
}

.gallery-thumbs button.active {
    border-color: var(--accent);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gallery-dots button {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, .5);
    transition: .2s;
}

.gallery-dots button.active {
    width: 20px;
    background: var(--accent);
}

.modal-details {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
}

.modal-breadcrumb {
    display: flex;
    gap: 8px;
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.modal-details h2 {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 4px;
    padding-right: 32px;
}

.modal-price {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.modal-stat {
    padding: 12px;
    text-align: center;
    background: var(--background);
    border: 1px solid var(--border);
}

.modal-stat svg {
    width: 15px;
    color: var(--accent);
    margin-bottom: 6px;
}

.modal-stat strong {
    display: block;
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 500;
}

.modal-stat span {
    display: block;
    color: var(--muted-text);
    font-size: 10px;
    margin-top: 2px;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.modal-tab {
    position: relative;
    padding: 10px 16px;
    color: var(--muted-text);
    font-size: 14px;
}

.modal-tab.active {
    color: var(--foreground);
}

.modal-tab.active:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
}

.modal-panel {
    display: none;
}

.modal-panel.active {
    display: block;
}

.modal-description {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 24px;
}

.agent-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background);
    border: 1px solid var(--border);
}

.agent-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(184, 115, 42, .1);
    border: 1px solid rgba(184, 115, 42, .2);
    color: var(--accent);
    font-family: var(--display);
    font-weight: 500;
}

.agent-box>div:nth-child(2) {
    flex: 1;
}

.agent-box strong {
    display: block;
    font-size: 14px;
}

.agent-box span {
    display: block;
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 11px;
    margin-top: 3px;
}

.agent-box button {
    padding: 9px 16px;
    background: var(--foreground);
    color: var(--background);
    font-size: 12px;
    transition: .2s;
}

.agent-box button:hover {
    background: var(--accent);
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#contactForm label span {
    display: block;
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#contactForm input, #contactForm textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--background);
    outline: 0;
    padding: 12px 14px;
    font-size: 14px;
    resize: none;
}

#contactForm input:focus, #contactForm textarea:focus {
    border-color: var(--accent);
}

#contactForm>button {
    padding: 14px;
    background: var(--foreground);
    color: var(--background);
    font-size: 14px;
    letter-spacing: .1em;
    transition: .3s;
}

#contactForm>button:hover {
    background: var(--accent);
}

#contactForm small {
    color: var(--muted-text);
    font-family: var(--mono);
    font-size: 9px;
    text-align: center;
}

.success-message {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.success-message.show {
    display: block;
}

.success-message svg {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-bottom: 16px;
}

.success-message h3 {
    font-family: var(--display);
    font-size: 18px;
    margin-bottom: 8px;
}

.success-message p {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.6;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s, transform .7s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: none;
    }

}

@keyframes pulse {
    0%, 100% {
        opacity: .35;
    }

    50% {
        opacity: 1;
    }

}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.96) translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@media (pointer:fine) {
    * {
        cursor: none!important;
    }

}

@media (max-width: 1100px) {
    .nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-right: 0;
        max-width: 760px;
    }

    .hero-collage {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .filters-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-layout {
        gap: 40px;
    }

}

@media (max-width: 760px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-inner {
        height: 72px;
    }

    .brand small {
        display: none;
    }

    .contact-button {
        padding: 10px 14px;
    }

    .hero-grid {
        padding-top: 110px;
        padding-bottom: 70px;
        min-height: auto;
    }

    .hero-search {
        flex-direction: column;
    }

    .deal-switch {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .deal-button {
        flex: 1;
    }

    .hero-search select, .hero-search input {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .hero-stats {
        gap: 22px;
    }

    .section {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-head h2, .calculator-title h2 {
        font-size: 34px;
    }

    .catalog-tools {
        width: 100%;
    }

    .filter-toggle, .catalog-tools select {
        flex: 1;
        min-width: 0;
    }

    .filters-wrap.open {
        max-height: 750px;
    }

    .filters-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .property-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-reveal {
        opacity: 1;
    }

    .calculator {
        padding-top: 84px;
        padding-bottom: 84px;
    }

    .calculator-layout {
        grid-template-columns: 1fr;
    }

    .range-field>div {
        align-items: flex-start;
        gap: 8px;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .modal {
        padding: 12px;
    }

    .modal-box {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-gallery {
        width: 100%;
        height: 320px;
        min-height: 320px;
    }

    .modal-details {
        overflow: visible;
    }

    .modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 480px) {
    .header-actions {
        gap: 8px;
    }

    .contact-button {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero-copy {
        font-size: 14px;
    }

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

    .hero-stats strong {
        font-size: 21px;
    }

    .filters-panel {
        grid-template-columns: 1fr;
    }

    .catalog-tools {
        flex-direction: column;
    }

    .filter-toggle, .catalog-tools select {
        width: 100%;
    }

    .modal-details {
        padding: 22px;
    }

    .gallery-thumbs {
        display: none;
    }

}

/* KAMERTON portfolio demo mobile polish v2.15.4 */
@media (max-width: 760px) {
  html,body{max-width:100%;overflow-x:hidden}
  .container{width:100%;padding-left:16px;padding-right:16px}
  .header-inner{height:64px}
  .brand{font-size:18px}.header-actions{gap:6px}.favorite-button{display:none}.contact-button{padding:9px 12px;font-size:12px}
  .hero-grid{padding-top:88px;padding-bottom:52px}
  .hero h1{font-size:clamp(42px,13vw,58px);line-height:.96}
  .hero-copy{font-size:15px;line-height:1.65}
  .hero-search{border-radius:14px;overflow:hidden}.hero-search button,.hero-search select,.hero-search input{min-height:48px}
  .hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hero-stats>div{min-width:0}
  .section{padding-top:58px;padding-bottom:58px}.section-head h2,.calculator-title h2{font-size:32px}
  .catalog-tools{gap:8px}.property-card{border-radius:16px;overflow:hidden}.property-image{aspect-ratio:4/3;height:auto}
  .calculator{padding:62px 0}.calculator-card{padding:22px 16px}
  .modal-box{max-height:calc(100dvh - 24px);border-radius:16px}.modal-gallery{height:230px;min-height:230px}.modal-details{padding:20px 16px}
}
@media (max-width: 430px){.hero-stats{grid-template-columns:1fr 1fr}.hero-stats>div:last-child{grid-column:1/-1}.modal-stats{grid-template-columns:1fr}}
