:root{color-scheme:light;--bg: #fafaf8;--surface: #ffffff;--border: #e2e2dd;--text: #1c1c1c;--muted: #6b6b66;--accent: #158a3a;--accent-ink: #0f6b2c;--danger: #c0392b;--radius: 12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);line-height:1.5}a{color:var(--accent-ink)}.site-header{border-bottom:1px solid var(--border);background:var(--surface);position:sticky;top:0;z-index:10}.site-header-inner{max-width:960px;margin:0 auto;padding:.75rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{font-size:1.25rem;font-weight:700;text-decoration:none;color:var(--text)}.site-nav{display:flex;align-items:center;gap:.75rem}.nav-user{color:var(--muted);font-size:.9rem}.site-main{max-width:960px;margin:0 auto;padding:2rem 1.5rem 4rem}.page-narrow{max-width:560px;margin:0 auto}.btn{display:inline-block;padding:.55rem 1rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.95rem;font-weight:600;text-decoration:none;cursor:pointer;line-height:1.2}.btn:hover{border-color:#cfcfc8}.btn-small{padding:.4rem .75rem;font-size:.85rem}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-ink);border-color:var(--accent-ink)}.btn:disabled{opacity:.6;cursor:default}.link-btn{border:none;background:none;color:var(--accent-ink);font:inherit;padding:0;cursor:pointer;text-decoration:underline}.card{padding:1.25rem 1.5rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.muted{color:var(--muted)}.form-error{color:var(--danger);background:#fdecea;border:1px solid #f5c6c0;padding:.6rem .8rem;border-radius:8px;margin:0 0 1rem}.field-error{color:var(--danger);font-size:.8rem}.home-hero{margin-bottom:2rem}.home-hero h1{margin-bottom:.25rem}.filters{margin-bottom:1.5rem}.filters-actions-row{align-items:flex-end}.filters-actions{display:flex;gap:.5rem;margin-left:auto}.result-count{margin:0 0 1rem;font-size:.9rem}.listing-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}.listing-card{display:block;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:hidden;text-decoration:none;color:inherit;height:100%;transition:border-color .15s,transform .15s}.listing-card:hover{border-color:#cfcfc8;transform:translateY(-2px)}.listing-card-thumb{height:130px;display:flex;align-items:center;justify-content:center;font-size:2.5rem;background:#f0efe9}.listing-card-thumb-photo{padding:0}.listing-card-thumb-photo img{width:100%;height:100%;object-fit:cover}.listing-card-body{padding:.85rem 1rem 1rem}.listing-card-body h3{margin:0 0 .35rem;font-size:1.05rem}.listing-card-summary{margin:0 0 .35rem;color:var(--muted);font-size:.85rem}.listing-card-price{margin:0 0 .25rem;font-weight:700;color:var(--accent-ink)}.listing-card-loc{margin:0;font-size:.8rem}.empty{text-align:center}.empty p{margin-top:0}.form{display:flex;flex-direction:column;gap:1rem}.field{display:flex;flex-direction:column;gap:.3rem;flex:1}.field>span{font-size:.85rem;font-weight:600}.field input,.field select,.field textarea{padding:.55rem .7rem;border:1px solid var(--border);border-radius:8px;font:inherit;background:#fff;color:var(--text)}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}.field-row{display:flex;gap:1rem;flex-wrap:wrap}.field-narrow{max-width:160px}.fieldset{border:1px solid var(--border);border-radius:var(--radius);padding:1rem;display:flex;flex-direction:column;gap:1rem}.fieldset legend{font-size:.85rem;font-weight:700;padding:0 .4rem}.switch-mode{text-align:center;margin-top:1rem}.back-link{display:inline-block;margin-bottom:1rem;font-size:.9rem;text-decoration:none}.detail{max-width:720px;margin:0 auto}.detail-header{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.detail-header h1{margin:0}.detail-price{font-size:1.4rem;font-weight:700;color:var(--accent-ink);margin:.5rem 0 1.25rem}.detail-cover{margin:0 0 1rem;border-radius:var(--radius);overflow:hidden;background:#f0efe9}.detail-cover img{display:block;width:100%;max-height:440px;object-fit:cover}.detail-cover-empty{height:240px;display:flex;align-items:center;justify-content:center;font-size:4rem}.detail-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.5rem;margin-bottom:1.5rem}.detail-gallery img{width:100%;height:110px;object-fit:cover;border-radius:8px}.detail-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin:0 0 1.5rem;padding:1.25rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.detail-facts dt{font-size:.75rem;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);margin-bottom:.15rem}.detail-facts dd{margin:0;font-weight:600}.detail-description{margin-bottom:1.5rem}.detail-description p{white-space:pre-wrap}.detail-contact h2{margin-top:0}.status-badge{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;padding:.2rem .5rem;border-radius:999px;background:#eee;color:var(--muted);font-weight:700}.status-draft{background:#fff3cd;color:#8a6d00}.status-reserved{background:#e0ecff;color:#23508a}.status-sold{background:#eee;color:#555}.photos-hint{margin:0 0 .6rem;font-size:.85rem}.photo-previews{list-style:none;margin:.75rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:.6rem}.photo-preview{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;border:1px solid #e2e2dd;background:#f3f3ef}.photo-preview img{width:100%;height:100%;object-fit:cover;display:block}.photo-cover-badge{position:absolute;left:4px;bottom:4px;padding:1px 6px;font-size:.7rem;border-radius:6px;background:#000000a6;color:#fff}.photo-remove{position:absolute;top:4px;right:4px;width:22px;height:22px;line-height:20px;padding:0;border:none;border-radius:50%;background:#0009;color:#fff;font-size:1rem;cursor:pointer}.photo-remove:hover{background:#c80000d9}
