/* Östlund Equities — shared styles */
:root {
  --ink: #15191f;
  --ink-2: #252b33;
  --paper: #ffffff;
  --stone: #f5f2ec;
  --line: #e4ded4;
  --text: #1b1f25;
  --muted: #5a616c;
  --brass: #9a7a4f;
  --brass-dark: #7d6340;
  --focus: #9a7a4f;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 2px;

  --z-map: 10;
  --z-header: 50;
  --z-menu: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); font-weight: 500; margin: 0 0 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: var(--ink);
  color: #fff;
}
.site-header--overlay {
  position: absolute; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(10, 13, 18, 0.55), rgba(10, 13, 18, 0));
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-height: 44px; }
.brand__mark { height: 44px; width: auto; }
.brand__word { height: 19px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-size: 15px; letter-spacing: 0.04em;
  padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 1px solid transparent; transition: border-color .2s, opacity .2s;
}
.nav a:hover { border-bottom-color: rgba(255,255,255,.6); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav__divider { width: 1px; height: 20px; background: rgba(255,255,255,.35); margin: 0 10px; }
.nav__contact { font-weight: 500; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: #fff; padding: 10px; }
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .brand__word { height: 12px; }
  .brand__mark { height: 32px; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav__divider { display: none; }
}
@media (max-width: 400px) { .brand__word { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--radius);
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--brass { background: var(--brass); color: #fff; }
.btn--brass:hover { background: var(--brass-dark); }
.btn--ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 900px); min-height: min(92svh, 900px);
  display: flex; align-items: center; color: #fff;
  background: var(--ink) url("../images/fiske/01-exterior.jpg") center 62% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,13,18,.35) 0%, rgba(10,13,18,.15) 40%, rgba(10,13,18,.55) 100%),
    linear-gradient(to right, rgba(10,13,18,.45), rgba(10,13,18,0) 65%);
}
/* Full-screen cover page (homepage) */
.hero--cover {
  min-height: 100vh; min-height: 100svh;
  background-image: url("../images/fiske/03-living.jpg");
  background-position: center 55%;
}
.hero--cover::before {
  background:
    linear-gradient(to bottom, rgba(10,13,18,.4) 0%, rgba(10,13,18,0) 30%, rgba(10,13,18,0) 70%, rgba(10,13,18,.3) 100%),
    linear-gradient(to right, rgba(10,13,18,.62) 0%, rgba(10,13,18,.35) 45%, rgba(10,13,18,0) 75%);
}

.hero--cover h1 { max-width: 13ch; margin-bottom: 36px; }

/* Tagline band (Rent page) */
.tagline-band { background: var(--stone); padding: clamp(64px, 9vw, 120px) 0; text-align: center; }
.tagline-band h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.12; margin-bottom: 32px; }
.tagline-band em { color: var(--brass-dark); }

/* Cover links: Schedule a tour / Browse rentals / Our beliefs */
.cover-links { display: flex; max-width: 780px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.cover-link {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 0 24px; background: rgba(255,255,255,.94); color: var(--text);
  text-decoration: none; font-size: 16px; letter-spacing: .04em; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.cover-link + .cover-link { border-left: 1px solid var(--line); }
.cover-link svg { width: 20px; height: 20px; flex: none; color: var(--brass); transition: transform .2s, color .2s; }
.cover-link:hover { background: var(--ink); color: #fff; }
.cover-link:hover svg { color: #fff; transform: translateX(3px); }
@media (max-width: 640px) {
  .cover-links { flex-direction: column; }
  .cover-link + .cover-link { border-left: 0; border-top: 1px solid var(--line); }
}

/* Inner page with text + photo (Tour, Beliefs) */
.split.page-split { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); align-items: start; }
.page-split h1 { font-size: clamp(40px, 5.5vw, 64px); margin-bottom: 18px; }
.split.page-split > img { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 46ch; }
.prose { margin: 0 0 32px; max-width: 60ch; font-size: 18px; line-height: 1.75; }
.prose p { margin: 0 0 1em; color: var(--text); }
@media (max-width: 860px) { .split.page-split > img { position: static; aspect-ratio: 4 / 3; } }

/* Tour form */
.tour-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field__opt { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9c1b4; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { margin: 0; font-size: 14px; color: #b3261e; }
.tour-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tour-form .details__note { margin: 0; }
@media (max-width: 520px) { .tour-form { grid-template-columns: 1fr; } }
.hero .container { position: relative; padding-top: var(--header-h); padding-bottom: 48px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); max-width: 15ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__sub { font-size: clamp(18px, 2vw, 22px); margin: 18px 0 34px; max-width: 34ch; color: rgba(255,255,255,.92); }


/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--stone { background: var(--stone); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(34px, 4.5vw, 52px); }
.section__head p { margin: 10px 0 0; color: var(--muted); max-width: 52ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.card { text-decoration: none; display: block; cursor: pointer; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__badge { position: absolute; top: 14px; left: 14px; background: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; }
.card__body { padding: 16px 2px 0; }
.card__price { font-size: 20px; font-weight: 500; }
.card__name { font-family: var(--serif); font-size: 26px; margin: 2px 0 4px; }
.card__meta { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 18px; }
.split p { color: var(--muted); margin: 0 0 28px; max-width: 48ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding: 56px 0 28px; }
.page-intro h1, .page-intro__title { font-size: clamp(40px, 5.5vw, 64px); }
.page-intro p { color: var(--muted); margin: 12px 0 0; max-width: 60ch; }

/* ---------- Listing panel ---------- */
.listing { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 56px); padding: 36px 0 96px; }
.listing[hidden] { display: none; }
.gallery__main { position: relative; aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: background-color .2s, color .2s;
}
.gallery__nav:hover { background: var(--ink); color: #fff; }
.gallery__nav svg { width: 22px; height: 22px; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__count { position: absolute; right: 14px; bottom: 14px; background: rgba(21,25,31,.75); color: #fff; font-size: 13px; letter-spacing: .06em; padding: 5px 10px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery__thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; transition: border-color .2s, opacity .2s; opacity: .7; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { border-color: var(--brass); opacity: 1; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.details__status { display: inline-block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; background: var(--stone); color: var(--brass-dark); margin-bottom: 16px; }
.details h2 { font-size: clamp(36px, 4vw, 48px); }
.details__hood { margin: 10px 0 0; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dark); font-weight: 500; }
.details__addr { color: var(--muted); margin: 4px 0 22px; }
.details__price { font-size: 30px; font-weight: 500; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.stats div { padding: 14px 0; }
.stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 22px; font-weight: 500; }
.stats span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.details p { margin: 0 0 18px; }
.features { list-style: none; padding: 0; margin: 0 0 28px; }
.features li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--line); font-size: 16px; }
.features li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 1px; background: var(--brass); }
.details__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.details__note { font-size: 13px; color: var(--muted); margin-top: 18px; }
@media (max-width: 900px) { .listing { grid-template-columns: 1fr; } }

/* ---------- Rentals explorer: map left, addresses right ---------- */
.explorer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.explorer__map {
  position: sticky; top: var(--sticky-top, var(--header-h)); z-index: 1;
  height: calc(100vh - var(--sticky-top, var(--header-h))); height: calc(100svh - var(--sticky-top, var(--header-h)));
  background: #e8e6e1;
}
.explorer__mapbox { position: absolute; inset: 0; }
.explorer__side { padding: clamp(32px, 4vw, 56px) clamp(16px, 4vw, 56px) clamp(56px, 6vw, 88px); min-width: 0; min-height: calc(100svh - var(--header-h)); }
.explorer__list[hidden], .explorer__detail[hidden] { display: none; }
.explorer__title { font-size: clamp(38px, 4.5vw, 56px); }
.explorer__lede { color: var(--muted); margin: 10px 0 28px; }

.addr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.addr {
  width: 100%; display: grid; grid-template-columns: 132px 1fr 24px; gap: 20px; align-items: center;
  padding: 18px 8px 18px 0; background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer; transition: background-color .2s;
}
.addr:hover { background: var(--stone); }
.addr__img { width: 132px; aspect-ratio: 4 / 3; object-fit: cover; }
.addr__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.addr__name { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.addr__line { color: var(--muted); font-size: 15px; }
.addr__meta { font-size: 15px; font-weight: 500; }
.addr__arrow { width: 22px; height: 22px; color: var(--brass); transition: transform .2s; }
.addr:hover .addr__arrow { transform: translateX(3px); }

.explorer__back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; margin-bottom: 18px;
  background: none; border: 0; cursor: pointer; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  color: var(--text); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.explorer__back:hover { border-bottom-color: var(--brass); }
.explorer__back svg { width: 18px; height: 18px; }
.explorer .listing { grid-template-columns: 1fr; gap: 26px; padding: 0; }

@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer__map { position: relative; top: 0; height: 52vh; min-height: 320px; }
  .explorer__side { min-height: 0; }
}
@media (max-width: 520px) {
  .addr { grid-template-columns: 96px 1fr 20px; gap: 14px; }
  .addr__img { width: 96px; }
  .addr__name { font-size: 22px; }
}

/* ---------- Map photo pins (Google Maps) ---------- */
.explorer__map { background: #e9e7e2; }
.explorer__maperr { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.pin {
  position: absolute; width: 46px; height: 46px; transform: translate(-50%, -50%);
  padding: 0; border: 0; background: none; cursor: pointer;
}
.pin__photo {
  display: block; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(21,25,31,.12), 0 8px 20px rgba(0,0,0,.28);
  background: var(--stone); transition: transform .25s ease, box-shadow .25s ease;
}
.pin__photo img { width: 100%; height: 100%; object-fit: cover; }
.pin__label {
  position: absolute; left: 50%; top: 54px; transform: translateX(-50%);
  background: #fff; color: var(--ink);
  font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 9px; white-space: nowrap; border: 1px solid rgba(21,25,31,.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.14); transition: opacity .2s, background-color .25s, color .25s;
}
.explorer:not(.labels-on) .pin__label { opacity: 0; pointer-events: none; }
.explorer:not(.labels-on) .pin:hover .pin__label, .explorer:not(.labels-on) .pin:focus-visible .pin__label, .explorer .pin.is-active .pin__label { opacity: 1; }
.pin:hover .pin__photo { transform: scale(1.08); }
.pin.is-active .pin__photo { transform: scale(1.18); box-shadow: 0 0 0 3px var(--brass), 0 10px 24px rgba(0,0,0,.35); }
.pin.is-active .pin__label { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 64px 0 36px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img.brand__word { height: 14px; margin-top: 16px; }
.site-footer h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); }
.site-footer__license { margin: 8px 0 0; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
