:root {
  --navy: #1f3a52;
  --navy-deep: #16293a;
  --sun: #e08a3c;
  --sun-soft: #f3b15f;
  --cream: #faf7f2;
  --ink: #20262c;
  --muted: #5d6b78;
  --line: #e7e0d6;
  --white: #ffffff;
  --ok: #2e7d52;
  --shadow: 0 10px 30px rgba(31, 58, 82, 0.10);
  --shadow-lg: 0 24px 60px rgba(22, 41, 58, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; }

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

.container { width: min(1140px, 92vw); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sun); color: #fff; box-shadow: 0 6px 16px rgba(224, 138, 60, 0.35); }
.btn-primary:hover { background: #d57d2f; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-link { background: transparent; color: #fff; padding-left: 0.4rem; }
.btn-link:hover { color: var(--sun-soft); }
.btn-block { width: 100%; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(22, 41, 58, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; }
.brand-mark { color: var(--sun-soft); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Fraunces", serif; font-size: 1.15rem; letter-spacing: 0.2px; }
.brand-text em { font-style: normal; font-size: 0.72rem; color: #b9c6d2; letter-spacing: 0.4px; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; gap: 1.4rem; }
.header-nav a:not(.btn) { color: #d9e2ea; font-weight: 500; font-size: 0.95rem; }
.header-nav a:not(.btn):hover { color: #fff; }

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(22,41,58,0.55), rgba(22,41,58,0.78)),
    linear-gradient(120deg, #24435f, #1f3a52 55%, #2a2f45);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; color: var(--sun-soft); font-weight: 600; margin: 0 0 0.8rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); max-width: 16ch; font-weight: 700; }
.hero-sub { max-width: 56ch; color: #d9e2ea; font-size: 1.1rem; margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Listings */
.listings { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.filters { display: flex; gap: 0.5rem; }
.chip {
  font: inherit; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); transition: all 0.15s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #cdd7df, #9fb0bd); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; letter-spacing: 0.5px; opacity: 0.85; }
.card-badge {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  background: var(--ok); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.card-badge.rented { background: #97a3ad; }
.card-price { position: absolute; bottom: 0.9rem; right: 0.9rem; z-index: 2; background: rgba(22,41,58,0.92); color: #fff; padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); font-weight: 700; }
.card-price span { font-weight: 400; font-size: 0.8rem; opacity: 0.8; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-title { font-size: 1.2rem; font-family: "Fraunces", serif; }
.card-address { color: var(--muted); font-size: 0.9rem; margin-top: -0.3rem; }
.card-specs { display: flex; gap: 1.1rem; color: var(--ink); font-size: 0.9rem; font-weight: 500; margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.card-specs span { display: inline-flex; align-items: center; gap: 0.35rem; }
.card-specs b { font-weight: 700; }

/* Contact */
.contact { background: var(--navy-deep); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.contact h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.contact p { color: #c4d0da; max-width: 44ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.1rem; border-left: 3px solid var(--sun); padding-left: 1rem; }
.contact-list span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1px; color: #93a4b2; }
.contact-list a { color: var(--sun-soft); font-weight: 600; }

/* Footer */
.site-footer { background: #11202d; color: #8ea0ad; padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.fineprint { font-size: 0.74rem; opacity: 0.7; max-width: 52ch; }
.empty-state { text-align: center; color: var(--muted); padding: 2rem 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 26, 36, 0.6); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; background: #fff; border-radius: var(--radius);
  width: min(720px, 100%); max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); padding: 2rem;
  animation: pop 0.18s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 0.8rem; right: 1rem; z-index: 5;
  background: rgba(255,255,255,0.9); border: none; font-size: 1.8rem; line-height: 1; color: var(--muted);
  cursor: pointer; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
}
.modal-close:hover { color: var(--ink); background: #fff; }

/* Detail */
.detail-card { padding: 0; }
.detail-gallery { position: relative; aspect-ratio: 16 / 10; background: #cdd7df; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-gallery .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(22,41,58,0.7); color: #fff; border: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
.gallery-nav:hover { background: rgba(22,41,58,0.95); }
.gallery-nav.prev { left: 0.8rem; } .gallery-nav.next { right: 0.8rem; }
.gallery-count { position: absolute; bottom: 0.8rem; right: 0.8rem; background: rgba(22,41,58,0.85); color: #fff; font-size: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 999px; }
.detail-thumbs { display: flex; gap: 0.5rem; padding: 0.7rem 1.6rem 0; flex-wrap: wrap; }
.detail-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.6; border: 2px solid transparent; }
.detail-thumbs img.is-active { opacity: 1; border-color: var(--sun); }
.detail-pad { padding: 1.4rem 1.6rem 2rem; }
.detail-head { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: baseline; justify-content: space-between; }
.detail-head h2 { font-size: 1.7rem; }
.detail-price { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.detail-price span { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.detail-address { color: var(--muted); margin: 0.2rem 0 1rem; }
.detail-specs { display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0.9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.detail-specs span { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.detail-desc { color: #3a444d; margin-bottom: 1.6rem; }
.incl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 1.6rem; }
.incl-col h4 { font-family: "Inter", sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 0.6rem; }
.incl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.incl-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.incl-list .ic { flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; margin-top: 0.15rem; }
.incl-list .yes .ic { background: #e3f3ea; color: var(--ok); }
.incl-list .no .ic { background: #f3e3e3; color: #b3473f; }
.incl-list .no { color: var(--muted); }

@media (max-width: 620px) {
  .header-nav a:not(.btn) { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .incl-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 1.4rem; }
  .detail-pad { padding: 1.2rem; }
}

/* Form */
.apply-prop { color: var(--muted); margin: 0.2rem 0 1.4rem; font-weight: 500; }
.apply-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; border: none; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.92rem; }
.req { color: var(--sun); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field textarea {
  font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%; transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(224,138,60,0.15); }
.field textarea { resize: vertical; margin-top: 0.5rem; }
.radio-row { display: flex; gap: 1.5rem; }
.radio-row label { font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 0.25rem; }
.form-status { text-align: center; font-weight: 600; margin: 0; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #b3473f; }
.success-panel { text-align: center; padding: 1rem 0; }
.success-panel .check { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #e3f3ea; color: var(--ok); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 1rem; }
