* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; color: #222; background: #fafafa; }

header.site-header { background: #1f2937; color: #fff; padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
header.site-header a { color: #fff; text-decoration: none; }
header.site-header > div { display: flex; align-items: center; }

.site-banner { max-width: 1100px; margin: 0 auto; }
.site-banner img { display: block; width: 100%; height: auto; }

main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.listing-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.1); text-decoration: none; color: inherit; display: block; position: relative; }
.listing-card img { width: 100%; height: 180px; object-fit: cover; display: block; background: #ddd; }
.listing-card .no-photo { width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; background: #ddd; color: #777; }
.listing-card-body { padding: .9rem; }
.listing-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.listing-card .price { font-weight: bold; color: #2563eb; }
.sold-badge { position: absolute; top: .6rem; right: .6rem; background: #b91c1c; color: #fff; padding: .25rem .6rem; border-radius: 4px; font-size: .8rem; font-weight: bold; }

.back-link { display: inline-block; margin-bottom: 1rem; color: #2563eb; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.listing-detail .gallery { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.listing-detail .gallery img { width: 180px; height: 140px; object-fit: cover; border-radius: 6px; }
.listing-detail .facts { display: flex; gap: 1.5rem; margin: 1rem 0; color: #444; }
.agent-box { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 1rem; margin-top: 1.5rem; }

.contact-form { display: flex; flex-direction: column; gap: .75rem; max-width: 420px; margin-top: 1rem; }
.contact-form input, .contact-form textarea { padding: .5rem; border: 1px solid #ccc; border-radius: 4px; }

.btn { display: inline-block; padding: .6rem 1.2rem; background: #2563eb; color: #fff; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-size: 1rem; }
.btn:hover { background: #1d4ed8; }

.success { color: #15803d; }
.error { color: #b91c1c; }

.site-nav { display: flex; gap: 1rem; margin-left: 1.5rem; }
.site-nav a { opacity: .85; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.team-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.1); padding: 1rem; text-align: center; }
.team-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: .75rem; }
.team-card-noPhoto { width: 120px; height: 120px; border-radius: 50%; background: #ddd; color: #777; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; font-size: .8rem; }
.team-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.team-card-title { color: #2563eb; font-size: .85rem; margin-bottom: .5rem; }
