.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { max-height: 44px; width: auto; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 16px; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { color: var(--text); font-weight: 500; }
.site-nav a.active { color: var(--primary); }
.site-nav a.btn { color: var(--primary-contrast); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 20px; border-bottom: 1px solid var(--border); align-items: flex-start; }
    .site-nav.open { display: flex; }
}

.hero { position: relative; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000)); color: #fff; padding: 90px 0 110px; overflow: hidden; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); max-width: 760px; }
.hero p { font-size: 18px; opacity: .9; max-width: 640px; }
.search-box { background: #fff; color: var(--text); border-radius: 14px; padding: 1rem; display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: .7rem; margin-top: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,.18); max-width: 980px; }
@media (max-width: 860px) { .search-box { grid-template-columns: 1fr 1fr; } .search-box .btn { grid-column: 1 / -1; justify-content: center; } }

.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.card-property { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); transition: transform .15s, box-shadow .15s; color: var(--text); display: flex; flex-direction: column; }
.card-property:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,24,40,.12); text-decoration: none; }
.card-property .media { position: relative; aspect-ratio: 4 / 3; background: #e9edf2; }
.card-property .media img { width: 100%; height: 100%; object-fit: cover; }
.card-property .media .badge { position: absolute; top: 12px; left: 12px; box-shadow: var(--shadow); }
.card-property .body { padding: 1rem 1.1rem 1.2rem; }
.card-property .price { font-weight: 800; font-size: 19px; color: var(--primary); }
.card-property .address { font-weight: 700; margin: .2rem 0 0; }
.card-property .city { color: var(--muted); font-size: 14px; }
.facts { display: flex; gap: .35rem 1rem; flex-wrap: wrap; margin-top: .7rem; font-size: 13px; color: #475467; }
.facts .muted:first-child { width: 100%; }
.facts span { display: inline-flex; gap: .3rem; align-items: baseline; white-space: nowrap; }
.placeholder-img { width: 100%; height: 100%; display: grid; place-items: center; color: #98a2b3; font-size: 40px; }

.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.filters { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; position: sticky; top: 90px; }
@media (max-width: 900px) { .listing-layout { grid-template-columns: 1fr; } .filters { position: static; } }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 520px; border-radius: 14px; overflow: hidden; }
.gallery a { display: block; background: #e9edf2; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a:first-child { grid-row: 1 / 3; }
.gallery .more { position: relative; }
.gallery .more span { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; } .gallery a:not(:first-child) { display: none; } .gallery a:first-child { aspect-ratio: 4/3; } }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; margin-top: 2rem; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-title h1 { font-size: 32px; margin-bottom: .2rem; }
.detail-price { font-size: 26px; font-weight: 800; color: var(--primary); }
.key-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1.5rem 0; }
.key-facts div { background: var(--bg-soft); border-radius: 10px; padding: .8rem; text-align: center; }
.key-facts strong { display: block; font-size: 18px; }
.key-facts small { font-size: 12px; }
@media (max-width: 600px) { .key-facts { grid-template-columns: repeat(2, 1fr); } }
.description { white-space: pre-line; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 45%; }
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.agent { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.feature-list { columns: 2; padding-left: 1.1rem; }
@media (max-width: 600px) { .feature-list { columns: 1; } }
.energy { display: inline-block; padding: .1rem .6rem; border-radius: 4px; color: #fff; font-weight: 800; }
.energy-A { background: #009a44; } .energy-B { background: #52b153; } .energy-C { background: #bed52d; color: #333; } .energy-D { background: #fdd800; color: #333; } .energy-E { background: #f6a01a; } .energy-F { background: #ea5d1f; } .energy-G { background: #e30613; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.photo-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 8px; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; background: rgba(10,12,16,.92); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 28px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox .close { top: 20px; right: 20px; }
.lightbox .prev { left: 20px; } .lightbox .next { right: 20px; }
.lightbox .counter { position: absolute; bottom: 20px; color: #fff; font-size: 14px; }

.site-footer { background: #101828; color: #cfd4dc; padding: 48px 0 28px; margin-top: 40px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer .bottom { border-top: 1px solid #1f2a3d; margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: #98a2b3; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.usp div { background: #fff; border-radius: 14px; padding: 1.5rem; border: 1px solid var(--border); }
@media (max-width: 760px) { .usp { grid-template-columns: 1fr; } }

/* clavio.online marketplace */
.office-name { margin-top: .35rem; font-size: 13px; font-weight: 600; color: var(--primary); }
.office-card { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.card-property .office-card, .office-profile .office-card { border-bottom: 0; padding-bottom: 0; }
.office-card img { max-height: 48px; max-width: 120px; width: auto; }
.office-card .brand-mark { flex: none; width: 48px; height: 48px; }
.office-profile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.office-profile h1 { font-size: 28px; }

/* Signup for new offices */
.signup-section { background: linear-gradient(180deg, var(--bg-soft), #fff); border-top: 1px solid var(--border); }
.signup-layout { display: grid; grid-template-columns: 1fr 460px; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .signup-layout { grid-template-columns: 1fr; } }
.signup-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; box-shadow: 0 20px 40px rgba(16,24,40,.08); }
.check-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.check-list li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
.check-list li:before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.plan { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; background: #fff; }
.plan-price { font-size: 24px; font-weight: 800; color: var(--primary); margin: .2rem 0; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.slug-input { display: flex; align-items: stretch; }
.slug-input input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.slug-input span { display: flex; align-items: center; padding: 0 .7rem; background: var(--bg-soft); border: 1px solid #d0d5dd; border-left: 0; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.checkbox span { font-weight: 500; }

/* Marketplace: commercial real estate first */
.hero-commercial { background: linear-gradient(135deg, #1e1b4b, var(--primary) 55%, #0f766e); }
.hero-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.15); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.type-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.type-links a { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem .85rem; font-size: 14px; font-weight: 500; }
.type-links a:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.type-links span { opacity: .7; margin-left: .25rem; }
.usp .usp-featured { border: 2px solid var(--primary); box-shadow: 0 10px 24px rgba(55,48,163,.12); }
