/* ============================================================
   N18 — Design tokens
   Navy/gold, compass-and-elevation motif drawn from the mark.
   ============================================================ */
:root {
  --navy-900: #0A2342;
  --navy-800: #0F2E56;
  --navy-700: #16386A;
  --navy-600: #1D4489;
  --gold-600: #A7811C;
  --gold-500: #C9A227;
  --gold-300: #E8C468;
  --paper: #F7F5EF;
  --paper-dim: #EFEBE0;
  --ink: #17191F;
  --ink-soft: #4B4F5C;
  --line: rgba(10, 35, 66, 0.14);
  --line-gold: rgba(201, 162, 39, 0.45);

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Bearing eyebrow: the signature device.
   Real coordinates / directional labels, not decorative numbering. --- */
.bearing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.bearing::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
}

/* --- Header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.nav-cta {
  background: var(--navy-900);
  color: var(--paper) !important;
  padding: 9px 18px;
  border-radius: 3px;
  border-bottom: none !important;
  font-size: 0.86rem !important;
}
.nav-cta:hover { background: var(--navy-700); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav-cta { margin: 16px 28px; text-align: center; }
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--paper);
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before {
  /* faint compass-rose ring, ambient not literal */
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 104, 0.18);
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 104, 0.14);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.hero .bearing { color: var(--gold-300); }
.hero .bearing::before { background: var(--gold-300); }
.hero h1 { color: var(--paper); }
.hero p.lead {
  color: rgba(247, 245, 239, 0.78);
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art img { width: 100%; max-width: 320px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 200px; }
}

.button-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 860px) { .button-row { justify-content: center; } }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  border: 1px solid transparent;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-300); }
.btn-outline {
  border-color: rgba(247, 245, 239, 0.4);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn-outline-dark {
  border-color: var(--line);
  color: var(--navy-900);
}
.btn-outline-dark:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* --- Sections --- */
section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--paper-dim); }
.section-navy {
  background: var(--navy-900);
  color: var(--paper);
}
.section-navy h2 { color: var(--paper); }
.section-navy p { color: rgba(247, 245, 239, 0.75); }
.section-navy .bearing { color: var(--gold-300); }
.section-navy .bearing::before { background: var(--gold-300); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  padding: 30px 26px;
  border-radius: 2px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.stat-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line-gold);
}
.stat dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 6px;
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-900);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: rgba(247, 245, 239, 0.65);
  padding: 56px 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin: 0 0 14px;
}
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: var(--font-display); color: var(--paper); font-size: 1.1rem; }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 20px 28px 0;
  border-top: 1px solid rgba(247,245,239,0.12);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- Page hero (interior pages) --- */
.page-hero {
  background: var(--navy-900);
  color: var(--paper);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--paper); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .bearing { color: var(--gold-300); }
.page-hero .bearing::before { background: var(--gold-300); }
.page-hero p { color: rgba(247,245,239,0.75); max-width: 60ch; }

/* --- Forms --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
  border-color: var(--gold-500);
}
textarea { resize: vertical; min-height: 130px; }

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
.form-status.visible { display: block; }
.form-status.ok { color: #1E7A4C; }
.form-status.err { color: #B3261E; }

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-detail .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  min-width: 64px;
  padding-top: 3px;
}
.contact-detail .v { color: var(--navy-900); font-weight: 600; }
.contact-detail .v a { text-decoration: none; }
.contact-detail .v a:hover { color: var(--gold-600); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.list-plain li:first-child { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --- Rentals --- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head h2 { margin-bottom: 0; }
.text-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--gold-600); }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.listing-card {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.listing-card:hover,
.listing-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(10, 35, 66, 0.14);
}
.listing-card:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.listing-photo { position: relative; aspect-ratio: 4 / 3; background: var(--paper-dim); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy-900);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
}
.listing-body { padding: 20px 22px 24px; border-top: 3px solid var(--gold-500); }
.listing-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 4px;
}
.listing-price span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.listing-body h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; margin: 0 0 6px; }
.listing-meta { font-size: 0.92rem; color: var(--ink); margin: 0 0 4px; }
.listing-area { font-size: 0.85rem; margin: 0; }

.empty-note {
  border: 1px dashed var(--line);
  padding: 28px;
  border-radius: 4px;
  text-align: center;
}

/* --- Listing detail --- */
.crumbs { font-size: 0.85rem; margin-bottom: 18px; color: rgba(247,245,239,0.7); }
.crumbs a { color: var(--gold-300); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.listing-hero { padding: 40px 0 28px; }
.listing-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.listing-hero .address { color: rgba(247,245,239,0.8); margin: 0; font-size: 1.02rem; }

.gallery { background: var(--navy-900); padding-bottom: 36px; }
.gallery-main {
  position: relative;
  background: #06182f;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(247,245,239,0.9);
  color: var(--navy-900);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery-nav:hover { background: var(--gold-300); }
.gallery-nav:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-count {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(10,35,66,0.8);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 9px;
  border-radius: 2px;
}
.gallery-thumbs {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scrollbar-width: thin;
}
.gallery-thumbs button {
  flex: 0 0 auto;
  width: 96px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.6;
  transition: opacity 0.15s, border-color 0.15s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button:hover { opacity: 0.9; }
.gallery-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold-500); }
.gallery-thumbs button:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 1px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 4px;
}
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-900); }

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}
.listing-layout h2 { font-size: 1.5rem; margin-top: 8px; }
.listing-layout section { padding: 0; margin-bottom: 40px; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.96rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.fine-print { font-size: 0.8rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; }

.side-card {
  position: sticky;
  top: 90px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: 2px;
  padding: 26px 24px;
}
.side-card .listing-price { font-size: 1.9rem; }
.side-card .btn { width: 100%; text-align: center; }
.side-card h3 { font-size: 1.15rem; margin: 26px 0 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.side-card form { display: grid; gap: 14px; margin-top: 14px; }
.side-card label { margin-bottom: 4px; }
.side-card textarea { min-height: 90px; }
.side-card .side-phone { font-size: 0.88rem; margin: 14px 0 0; text-align: center; }
.side-card .side-phone a { color: var(--navy-900); font-weight: 600; }
.btn-navy { background: var(--navy-900); color: var(--paper); border: none; cursor: pointer; }
.btn-navy:hover { background: var(--navy-700); }

@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .gallery-main { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; }
  .facts { gap: 12px 26px; }
  .facts dd { font-size: 1.15rem; }
  .gallery-thumbs button { width: 72px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .listing-card:hover { transform: none; }
}

.site-footer .list-plain li,
.site-footer .list-plain a { color: rgba(247, 245, 239, 0.78); }
.site-footer .list-plain a:hover { color: var(--gold-300); }

/* --- Logo mark: always shown on a light tile --- */
.brand img { height: 46px; width: auto; border-radius: 4px; }
.hero-art img {
  width: 100%;
  max-width: 300px;
  filter: none;
  background: var(--paper);
  padding: 26px;
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.footer-brand img {
  height: 46px;
  width: auto;
  background: var(--paper);
  padding: 5px;
  border-radius: 4px;
}
@media (max-width: 860px) { .hero-art img { max-width: 190px; padding: 18px; } }

/* --- Apply page --- */
.gate-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: 2px;
  padding: 30px 28px;
  display: grid;
  gap: 10px;
}
.gate-card h2 { font-size: 1.4rem; margin: 0; }
.gate-card p { margin: 0 0 6px; }
.gate-card input { text-transform: uppercase; letter-spacing: 0.08em; }
.gate-card .btn { margin-top: 6px; }

.apply-wrap { max-width: 860px; }
.apply-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 14px;
}
.apply-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  color: var(--ink-soft);
}
.apply-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.apply-steps strong { color: var(--navy-900); }

.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: 2px;
  padding: 32px 30px;
}
.notice h2 { font-size: 1.5rem; }
.notice h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin: 28px 0 12px;
}
.notice .note { font-size: 0.9rem; margin: 12px 0 0; }
.feature-list.one-col { grid-template-columns: 1fr; }

.fee-table-wrap { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.fee-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 500;
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.fee-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}
.fee-table td:nth-child(2) { white-space: nowrap; font-weight: 600; color: var(--navy-900); }

.apply-cta { margin-top: 32px; text-align: center; }
.apply-cta p { margin-top: 14px; font-size: 0.92rem; }
.apply-cta a:not(.btn) { color: var(--navy-900); font-weight: 600; }

@media (max-width: 640px) {
  .notice { padding: 24px 18px; }
  .fee-table thead { display: none; }
  .fee-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .fee-table td { display: block; padding: 2px 0; border: none; }
  .fee-table td:first-child { font-weight: 700; color: var(--navy-900); }
}
