:root {
  --bg: #f6f6f9;
  --surface: #ffffff;
  --ink: #22253a;
  --muted: #5f6475;
  --line: #e4e5ee;
  --brand: #3c4285;
  --brand-ink: #ffffff;
  --brand-soft: #e8e9f5;
  --accent: #e0a83a;
  --brand-dark: #2a2e66;
  --open: #1f7a4d;
  --soon: #b26a10;
  --rented: #6b7280;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1, h2 { font-family: var(--font); font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--brand); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: var(--brand-soft); }
.nav .btn { background: var(--brand); color: #fff; }
.logo-svg { height: 40px; width: auto; display: block; }
.wordmark { font-family: var(--font); font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; color: var(--brand); white-space: nowrap; }
.wordmark b { font-weight: 800; }
.listed-by { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.crosslink { font-size: .9rem; }
.site-footer .wordmark { display: inline-block; font-size: 1.7rem; margin-bottom: 10px; }
.site-footer .logo-svg { height: 52px; margin-bottom: 10px; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 10px; padding: 12px 18px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-sm { padding: 8px 12px; min-height: 36px; font-size: .9rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* hero */
.hero { background: #fff; color: var(--ink); padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.hero p { font-size: 1.15rem; max-width: 40em; color: var(--muted); }
.hero .btn { background: var(--brand); color: #fff; }
.hero h1 { color: var(--brand-dark); }
.hero h1 span { color: var(--brand); }
.hero .btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }

section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--brand-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { overflow-wrap: anywhere; }
.card-body p { margin: 0 0 4px; }
.specs { font-size: .95rem; }
.avail { font-size: .95rem; color: var(--muted); }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--brand); opacity: .7; font-size: .9rem; }
.ph svg { width: 56px; height: 56px; }
.badge { position: absolute; top: 12px; left: 12px; color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.badge-open { background: var(--open); }
.badge-soon { background: var(--soon); }
.badge-rented { background: var(--rented); }
.dim { opacity: .55; }

.skeleton { background: var(--surface); border-radius: var(--radius); height: 300px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0,0,0,.04), transparent); animation: sh 1.2s infinite; }
@keyframes sh { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.error { background: #fff4f2; color: #8a2a17; border-radius: 10px; padding: 12px 14px; }

/* tenant strip */
.tenant { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tile h3 { margin-bottom: 6px; }

/* property page */
.crumbs { font-size: .9rem; margin: 18px 0 8px; }
.prop { display: grid; gap: 28px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 880px) { .prop { grid-template-columns: 1.4fr 1fr; grid-template-areas: "photo panel" "desc panel"; } .prop-photo { grid-area: photo; } .prop-desc { grid-area: desc; } .panel { grid-area: panel; } }
.prop-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-soft); box-shadow: var(--shadow); }
.prop-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 880px) { .prop-gallery { grid-area: photo; } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-soft); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; align-self: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.fact { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.fact b { display: block; font-size: 1.05rem; }
.fact span { font-size: .85rem; color: var(--muted); }
.price { font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.rich p:last-child { margin-bottom: 0; }

/* form */
.form-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; max-width: 640px; }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .req { color: #b42318; margin-left: 2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=date], .field textarea, .field select {
  width: 100%; font: inherit; padding: 12px; border: 1px solid #cfc8bb; border-radius: 10px; background: #fff; min-height: 46px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 400; }
.choice input { width: 20px; height: 20px; }
.help { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.ferr { color: #b42318; font-size: .9rem; margin-top: 4px; min-height: 0; }
[aria-invalid=true] { border-color: #b42318 !important; }
.thanks { background: var(--brand-soft); border-radius: var(--radius); padding: 22px; }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); padding: 32px 0; font-size: .92rem; }
.site-footer a { color: var(--brand); }
.site-footer strong { color: var(--ink); }
.site-footer .cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.eho { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.eho svg { width: 28px; height: 28px; }

.center-msg { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
/* ---- phone polish ---- */
.site-footer p { line-height: 1.9; }
.site-footer a { display: inline-block; padding: 4px 0; }
.crumbs a { display: inline-block; padding: 8px 0; }
@media (max-width: 640px) {
  section { padding: 36px 0; }
  .hero { padding: 32px 0 36px; }
  .hero p { font-size: 1.05rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .logo-svg { height: 34px; }
  /* rented homes: compact rows instead of big cards */
  #portfolio-grid .card, #more-grid .card { flex-direction: row; }
  #portfolio-grid .card-img, #more-grid .card-img { width: 112px; flex: 0 0 112px; aspect-ratio: auto; }
  #portfolio-grid .card-img .badge, #more-grid .card-img .badge { top: 8px; left: 8px; font-size: .7rem; padding: 2px 8px; }
  #portfolio-grid .ph svg, #more-grid .ph svg { width: 34px; height: 34px; }
  #portfolio-grid .ph span, #more-grid .ph span { display: none; }
  #portfolio-grid .card-body, #more-grid .card-body { padding: 12px 14px; }
  #portfolio-grid, #more-grid { gap: 12px; }
}

/* floating quick actions (phone + computer) */
.fab { position: fixed; z-index: 30; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.fab-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; font: 600 .95rem var(--font); text-decoration: none; box-shadow: 0 4px 14px rgba(34,37,58,.14); }
.fab-primary { background: var(--brand); color: #fff; }
.fab-ghost { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.fab-btn:hover { filter: brightness(1.05); }
.show-sm { display: none !important; }
@media (max-width: 640px) {
  .fab { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
  .fab-btn { flex: 1; padding: 10px 6px; box-shadow: none; font-size: .9rem; }
  .fab .hide-sm { display: none !important; }
  .fab .show-sm { display: inline-flex !important; }
  body.has-fab { padding-bottom: 72px; }
}

.fab-menu { position: relative; display: flex; }
.fab-menu > button { width: 100%; cursor: pointer; }
.fab-pop { position: absolute; right: 0; bottom: calc(100% + 8px); width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(34,37,58,.18); padding: 8px; }
.fab-pop a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.fab-pop a:hover { background: var(--brand-soft); }
.fab-pop a b { display: block; color: var(--brand); }
.fab-pop a span { font-size: .85rem; color: var(--muted); }
.fab-emerg { margin: 6px 4px 2px; padding: 10px; border-radius: 10px; background: #fff4f2; color: #8a2a17; font-size: .85rem; }
.fab-emerg a { display: inline; padding: 0; color: #8a2a17; font-weight: 600; text-decoration: underline; }
@media (max-width: 640px) {
  .fab-menu { flex: 1; position: static; }
  .fab-pop { left: 12px; right: 12px; width: auto; bottom: calc(100% + 8px); }
}

/* 3 FRIENDLY ROUNDED */
:root { --font: "Poppins", system-ui, sans-serif; --radius: 24px; --bg: #ffffff; }
body { font-family: var(--font); }
h1, h2 { font-family: var(--font) !important; font-weight: 600; letter-spacing: -.02em; }
.btn, .fab-btn, .nav .btn { border-radius: 999px; font-family: var(--font); }
.hero { background: #fff; border: 0; padding: 20px 0 8px; }
.hero .wrap { background: #eef0fa; border-radius: 32px; padding: 48px 40px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero .wrap { padding-right: 380px; } .hero .wrap::after { content: ""; position: absolute; right: 40px; bottom: -10px; width: 300px; height: 300px; background: url("../img/skyline.svg") center/contain no-repeat; } }
/* the skyline is FRentals' logo mark: other brands get no hero art */
@media (min-width: 900px) { html[data-brand]:not([data-brand="frentals"]) .hero .wrap { padding-right: 16px; } html[data-brand]:not([data-brand="frentals"]) .hero .wrap::after { display: none; } }
.card { border: 0; box-shadow: 0 8px 28px rgba(60,66,133,.10); }
.card-img { margin: 10px; border-radius: 18px; overflow: hidden; }
.panel { border: 0; box-shadow: 0 8px 28px rgba(60,66,133,.10); }
.tenant { background: #eef0fa; border: 0; }
.tile { background: #fff; border: 0; }
.site-footer { background: #eef0fa; border: 0; }
.fab-pop { border-radius: 20px; }
