:root {
  --teal: #00a8a4;
  --teal-d: #00837f;
  --teal-ink: #0a4f4d;
  --navy: #1b2430;
  --muted: #5d6775;
  --line: #e3e8ee;
  --bg: #f3f6f8;
  --card: #ffffff;
  --orange: #ff6a3d;
  --ok: #1f8a4c;
  --warn: #c47b00;
  --shadow: 0 10px 30px rgba(18, 32, 47, .08);
  --radius: 12px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Source Sans 3", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-d); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 20; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: var(--teal-ink);
  color: #d7efee;
  font-size: 13px;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.logo-type { font-family: var(--display); font-size: 26px; letter-spacing: -0.04em; font-weight: 500; }
.logo-type strong { color: var(--teal); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--navy); font-weight: 600; text-decoration: none; }
.nav a.is-on, .nav a:hover { color: var(--teal-d); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; font: inherit; font-weight: 700;
  padding: 11px 18px; border-radius: 8px; text-decoration: none;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-d); text-decoration: none; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #000; color: #fff; text-decoration: none; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-wide { width: 100%; }
.hero {
  position: relative;
  background: #0c3d3b url("../img/hero.jpg") center/cover no-repeat;
  color: #fff;
  min-height: 280px;
  display: grid;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,40,42,.35), rgba(8,28,32,.72));
}
.hero-inner { position: relative; padding: 56px 0; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero p.lede { margin: 0 0 24px; font-size: 18px; max-width: 46ch; color: #e7f4f3; }
.search {
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  box-shadow: var(--shadow);
}
.search label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.search input, .search select, .form input, .form select, .form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy);
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
}
.form textarea { min-height: 120px; resize: vertical; }
.search .btn { height: 44px; align-self: end; padding-inline: 22px; }
.section { padding: 40px 0 56px; }
.section.alt { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-head h2, .page-title h1, .page-hero h1 {
  font-family: var(--display); letter-spacing: -0.03em; margin: 0;
}
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  display: flex; flex-direction: column;
}
.card-photo { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #d7dee5; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-photo img { transform: scale(1.04); }
.card-price {
  position: absolute; left: 12px; bottom: 12px;
  background: #fff; color: var(--navy); font-weight: 800; padding: 6px 10px; border-radius: 8px; font-size: 16px;
}
.badge {
  position: absolute; right: 12px; top: 12px;
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 8px; border-radius: 6px;
}
.badge-pending { background: var(--warn); }
.badge-rented { background: #6b7280; }
.card-body { padding: 16px 16px 18px; }
.card-type { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-d); }
.card h3 { margin: 0 0 6px; font-size: 20px; font-family: var(--display); }
.card h3 a { color: var(--navy); text-decoration: none; }
.card-addr { margin: 0 0 12px; color: var(--muted); }
.specs { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; font-weight: 700; color: var(--navy); }
.page-hero { background: var(--bg); border-bottom: 1px solid var(--line); padding: 22px 0; }
.page-hero h1 { font-size: clamp(26px, 4vw, 36px); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1.6fr .8fr; gap: 8px; margin-bottom: 28px; }
.gallery-main, .thumbs img, .thumbs a {
  background: #d7dee5; border-radius: 10px; overflow: hidden;
}
.gallery-main { aspect-ratio: 16/10; }
.gallery-main img, .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; gap: 8px; }
.thumbs a { aspect-ratio: 16/10; display: block; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 28px; align-items: start; }
.listing-main { min-width: 0; }
.listing-main h2 { font-family: var(--display); font-size: 22px; margin: 28px 0 12px; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  background: var(--bg); border-radius: 12px; padding: 16px; margin: 0 0 8px;
}
.facts div { text-align: center; min-width: 0; }
.facts b { display: block; font-size: 18px; font-family: var(--display); }
.facts span { color: var(--muted); font-size: 13px; }
.prose p { margin: 0 0 14px; }
.amenity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 0; margin: 0; list-style: none; }
.amenity-list li::before { content: "✓ "; color: var(--teal); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--bg); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow); position: sticky; top: 92px;
  min-width: 0; max-width: 100%; overflow: hidden;
}
.side-card h2 { margin: 16px 0 6px; font-family: var(--display); font-size: 20px; }
.price-lg { font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.id-pill {
  display: inline-block; margin: 8px 0 4px; padding: 4px 10px; border-radius: 999px;
  background: #e7f6f5; color: #0b6e6b; font-size: 12px; font-weight: 700; letter-spacing: .03em;
}
.form { display: grid; gap: 12px; min-width: 0; width: 100%; }
.form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--navy); min-width: 0;
}
.form .row { display: grid; grid-template-columns: 1fr; gap: 12px; min-width: 0; }
.form input[type="date"] { min-height: 44px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 8px; margin: 8px 0; font-weight: 600; }
.alert-ok { background: #e8f7ee; color: #145c32; }
.alert-err { background: #fdecec; color: #8a1f1f; }
.side-card .btn { width: 100%; margin-top: 4px; box-sizing: border-box; }
.side-contact { margin: 10px 0 0; word-break: break-word; }
.map-frame { width: 100%; height: 280px; border: 0; border-radius: 12px; }
.site-footer { background: #122027; color: #c5d0d6; padding: 48px 0 18px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.logo-light { color: #fff; }
.footer-blurb { max-width: 42ch; }
.site-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #dce7eb; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #24343c; margin-top: 28px; padding-top: 14px; font-size: 13px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.why h3 { margin: 0 0 8px; font-family: var(--display); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.header-inner { position: relative; }
@media (max-width: 900px) {
  .search, .gallery, .listing-layout, .footer-grid, .contact-grid, .why, .grid {
    grid-template-columns: 1fr;
  }
  .facts { grid-template-columns: 1fr 1fr; }
  .amenity-list { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav {
    display: none; position: absolute; right: 0; top: 60px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; padding: 12px; flex-direction: column; min-width: 220px;
    box-shadow: var(--shadow); z-index: 50;
  }
  .nav.is-open { display: flex; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .side-card { position: static; }
  .section { padding: 28px 0 40px; }
  .wrap { width: min(1160px, calc(100% - 24px)); }
}
@media (max-width: 560px) {
  .form input, .form select, .form textarea { font-size: 16px; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar-inner { justify-content: center; text-align: center; }
}
