/* =========================================================
   Bella Royal — design system
   Colors come from the Peak, Swirles & Cavallito Properties
   logo (teal #0093A5, pink #D763A4) and website (yellow #FFE499).
   ========================================================= */

@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* surfaces */
  --ivory: #FAF6EF;
  --paper: #FFFDF9;
  --linen: #F1E9DC;
  --rule: #E0D6C6;
  /* text */
  --ink: #2B2C33;
  --ink-soft: #5C5D66;
  /* brand (decorative and large type) */
  --teal: #0093A5;
  --rose: #D763A4;
  --butter: #FFE499;
  /* brand (accessible for small text and links) */
  --teal-text: #07707D;
  --rose-text: #A63F77;

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

  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --gutter: clamp(20px, 5vw, 56px);
  --space: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
figure { margin: 0; }
address { font-style: normal; }
.wrap { width: var(--wrap); margin-inline: auto; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display-1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display-1 em, .display-2 em { font-style: italic; color: var(--teal-text); }
.display-2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
}
.display-3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.65; color: var(--ink); }
.kicker { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem; }

/* The two yellow squares from the PSCP logo, used as a signature mark */
.mark { display: inline-flex; gap: 4px; margin-right: 12px; vertical-align: .05em; }
.mark i { width: 9px; height: 9px; background: var(--butter); display: block; box-shadow: inset 0 0 0 .5px rgba(150, 120, 30, .25); }

.eyebrow {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0 0 1.2rem;
}
.eyebrow--rose { color: var(--rose-text); }

/* ---------- links & buttons ---------- */
.text-link {
  display: inline-block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal-text);
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease), color .3s;
}
.text-link:hover { background-size: 40% 1px; color: var(--teal-text); }
.text-link--rose { color: var(--rose-text); }
.text-link--rose:hover { color: var(--rose-text); }
.link-row, .featured__more, .contact-band__links { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; }

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--teal-text);
  border: 1px solid var(--teal-text);
  padding: 16px 30px;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.button:hover { background: transparent; color: var(--teal-text); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; background: var(--ivory); border-bottom: 1px solid var(--rule); }
.site-header__inner { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
.brand__name { font-family: var(--serif); font-size: 1.95rem; line-height: 1; font-weight: 500; letter-spacing: .01em; }
.brand__firm { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-text); }
.site-nav ul { list-style: none; display: flex; gap: clamp(18px, 2.6vw, 40px); margin: 0; padding: 0; align-items: center; }
.site-nav a { font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-nav .site-nav__cta { color: var(--rose-text); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .brand__name { font-size: 1.6rem; }
  .brand__firm { font-size: .58rem; letter-spacing: .14em; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0; cursor: pointer;
    font: 500 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  }
  .nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
  .nav-toggle__bars::before { content: ""; position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--rule); display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; width: var(--wrap); margin: 0 auto; padding: 8px 0 24px; }
  .site-nav li { width: 100%; border-top: 1px solid var(--rule); }
  .site-nav a { display: block; padding: 16px 0; font-size: .82rem; border: 0; }
  .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; }
}

/* ---------- hero ---------- */
.hero__figure { position: relative; }
.hero__img { width: 100%; height: min(78vh, 760px); min-height: 380px; object-fit: cover; }
.hero__caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 0; font-size: .88rem; color: var(--ink-soft); }
.hero__caption em { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.hero__caption a { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; font-weight: 500; }

/* ---------- home intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); padding: var(--space) 0; align-items: start; }
.intro__body { padding-top: clamp(0px, 3.6vw, 52px); border-top: 1px solid var(--rule); }
.intro__body .lead { margin-top: 1.6rem; }
.intro .link-row { margin-top: 2rem; }

/* ---------- section head ---------- */
.section-head { display: flex; flex-direction: column; margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- listing cards ---------- */
.featured { padding-bottom: var(--space); }
.featured__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.featured__side { display: grid; gap: clamp(20px, 3vw, 40px); align-content: start; }
.featured__more { margin-top: clamp(32px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--rule); }
.card__link { display: block; text-decoration: none; color: inherit; }
.badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--ivory); color: var(--rose-text); font: 500 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 9px 12px; }
.card__media, .portfolio__media { position: relative; }
.card__media { overflow: hidden; background: var(--linen); }
.card__media img, .card__media .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.card--lead .card__media img, .card--lead .card__media .placeholder { aspect-ratio: 5 / 4; }
.card__link:hover .card__media img { transform: scale(1.03); }
.card__text { padding-top: 16px; }
.card__meta { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose-text); margin: 0 0 6px; }
.card__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; transition: color .3s; }
.card--lead .card__title { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.card__link:hover .card__title { color: var(--teal-text); }
.card__place { color: var(--ink-soft); font-size: .95rem; margin: 4px 0 0; }

.placeholder {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px;
  background: var(--linen);
  border: 1px solid var(--rule);
  padding: 32px;
  min-height: 220px;
}
.placeholder .mark { margin: 0 0 6px; }
.placeholder__name { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; }
.placeholder__note { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- interlude ---------- */
.interlude { position: relative; margin-bottom: calc(var(--space) + 40px); }
.interlude__img { width: 100%; height: min(70vh, 640px); min-height: 320px; object-fit: cover; }
.interlude__quote {
  position: absolute; left: var(--gutter); bottom: -56px;
  margin: 0; background: var(--ivory); padding: clamp(22px, 3vw, 36px) clamp(26px, 4vw, 56px);
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; max-width: min(640px, 100% - 2 * var(--gutter));
}
.interlude__quote .mark { display: flex; margin-bottom: 14px; }

/* ---------- meet ---------- */
.meet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: center; padding: clamp(24px, 4vw, 48px) 0 var(--space); }
.meet__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.meet__text h2 { margin-bottom: 1.4rem; }

/* ---------- paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-bottom: var(--space); }
.path { display: flex; flex-direction: column; padding: 40px clamp(20px, 3vw, 44px) 44px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--rule); transition: background-color .4s; }
.path:first-child { padding-left: 0; }
.path:last-child { border-right: 0; padding-right: 0; }
.path:hover { background: var(--paper); }
.path__num { font-family: var(--serif); font-style: italic; color: var(--rose-text); font-size: 1.2rem; margin-bottom: 18px; }
.path h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.1rem); color: var(--teal-text); margin-bottom: 12px; line-height: 1.1; }
.path p { color: var(--ink-soft); flex: 1; }
.path__more { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--teal-text); }

/* ---------- contact band ---------- */
.contact-band { background: var(--linen); padding: clamp(64px, 8vw, 110px) 0; }
.contact-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact-band__body p:first-child { color: var(--ink-soft); }
.contact-band__links { margin: 1.6rem 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); border-top: 3px solid var(--teal); }
.site-footer__top { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding: 72px 0 56px; }
.site-footer__name { font-family: var(--serif); font-size: 2rem; line-height: 1; margin: 0 0 8px; }
.site-footer__tag { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__contact li, .site-footer__nav li { margin-bottom: 8px; }
.site-footer__social { display: flex; gap: 20px; margin-top: 18px !important; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__nav a { color: var(--ink); text-decoration: none; }
.site-footer__nav a:hover { color: var(--teal-text); text-decoration: underline; }
.site-footer__logo img { width: 170px; margin-bottom: 18px; }
.site-footer__firm address { font-size: .92rem; color: var(--ink-soft); line-height: 1.7; }
.site-footer__legal { width: var(--wrap); margin-inline: auto; border-top: 1px solid var(--rule); padding: 26px 0 40px; font-size: .8rem; color: var(--ink-soft); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; }
.site-footer__legal p { margin: 0; }
.eho { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

/* ---------- inner page heads ---------- */
.page-head { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); max-width: 900px; margin-left: max(var(--gutter), (100% - 1240px) / 2); }
.page-head .lead { margin-top: 1.6rem; max-width: 720px; }
.page-head--center { text-align: center; margin-inline: auto; max-width: 760px; }
.page-head--center .lead { margin-inline: auto; }
.page-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 110px); align-items: end; max-width: none; margin-inline: auto; }
.page-head__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.jump { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 2.4rem; padding-top: 24px; border-top: 1px solid var(--rule); }
.jump a { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; text-decoration: none; }
.jump a:hover { text-decoration: underline; }

/* ---------- meet bella story ---------- */
.story { padding-bottom: var(--space); }
.story__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 6vw, 96px); padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--rule); }
.story__label { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--teal-text); line-height: 1.2; }
.story__body { max-width: 680px; font-size: 1.06rem; }

.equestrian { background: var(--linen); padding: var(--space) 0; }
.equestrian__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.equestrian__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.equestrian__photo figcaption, .gallery figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 10px; }
.equestrian__text h2 { margin-bottom: 1.4rem; }

.where { padding: var(--space) 0; text-align: center; }
.where .eyebrow { justify-content: center; }
.where h2 { max-width: 900px; margin-inline: auto; }
.where__note { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- listings portfolio ---------- */
.portfolio { padding-bottom: var(--space); display: grid; gap: clamp(72px, 10vw, 140px); }
.portfolio__item { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.portfolio__item--flip .portfolio__media { order: 2; }
.portfolio__media { display: block; overflow: hidden; background: var(--linen); }
.portfolio__media img, .portfolio__media .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.portfolio__media:hover img { transform: scale(1.03); }
.portfolio__num { font-family: var(--serif); font-style: italic; color: var(--rose-text); font-size: 1.15rem; margin-bottom: 10px; }
.portfolio__text h2 a { color: var(--ink); text-decoration: none; }
.portfolio__text h2 a:hover { color: var(--teal-text); }
.portfolio__place { color: var(--ink-soft); margin: 10px 0 22px; }

.idx { padding-bottom: var(--space); border-top: 1px solid var(--rule); padding-top: clamp(56px, 7vw, 96px); }
.idx__note { color: var(--ink-soft); max-width: 680px; margin: 1.2rem 0 2rem; }
.idx__frame { border: 1px solid var(--rule); background: var(--paper); }
.idx__frame iframe { display: block; width: 100%; height: 900px; border: 0; }
@media (max-width: 600px) { .idx__frame iframe { height: 760px; } }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts div:first-child { border-top: 1px solid var(--rule); }
.facts dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; text-align: right; }
.facts--compact { margin-bottom: 24px; }
.facts__empty { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; margin: 0; }

/* ---------- listing detail ---------- */
.listing__cover-img, .listing__cover .placeholder { width: 100%; height: min(80vh, 780px); min-height: 360px; object-fit: cover; }
.listing__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); align-items: end; border-bottom: 1px solid var(--rule); }
.breadcrumbs { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { text-decoration: none; }
.listing__place { font-size: 1.1rem; color: var(--ink-soft); margin: 14px 0 0; }
.listing__area { display: inline-block; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--rule); }
.listing__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-self: end; }
.listing__body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); padding: clamp(40px, 5vw, 72px) 0; }
.listing__desc { max-width: 680px; }
.listing__note { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--teal-text); }
.options { display: grid; gap: 0; margin-top: 2.4rem; }
.option { padding: 32px 0; border-top: 1px solid var(--rule); }
.option__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.option__price { font-family: var(--serif); font-size: 1.6rem; color: var(--teal-text); margin: 0; }
.option__meta { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-text); margin: 8px 0 18px; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); padding-bottom: clamp(40px, 5vw, 72px); }
.gallery__item--wide { grid-column: span 6; }
.gallery__item--half { grid-column: span 3; }
.gallery__item--third { grid-column: span 2; }
.gallery__link { display: block; overflow: hidden; cursor: zoom-in; background: var(--linen); }
.gallery__link img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.1s var(--ease), opacity .4s; }
.gallery__item--wide .gallery__link img { aspect-ratio: 16 / 9; }
.gallery__link:hover img { transform: scale(1.02); }
.listing__foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 28px 0 var(--space); border-top: 1px solid var(--rule); }
.listing__disclaimer { font-size: .82rem; color: var(--ink-soft); max-width: 640px; margin: 0; }
.listing__next { display: flex; gap: 16px; align-items: baseline; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); margin: 0; }

.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(28, 29, 33, .94); color: var(--paper); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(28, 29, 33, .94); }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lightbox__caption { font-size: .85rem; margin: 14px 20px 0; text-align: center; color: #e9e3d8; }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 1px solid rgba(255,255,255,.4); color: var(--paper); font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 12px 16px; cursor: pointer; }

/* ---------- sold ---------- */
.sold { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 7vw, 96px) clamp(28px, 4vw, 56px); padding-bottom: var(--space); }
.sold__item:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.sold__media img, .sold__media .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sold__text { padding-top: 18px; }
.sold__meta { color: var(--ink-soft); margin: 6px 0 8px; }
.sold__role { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-text); }
.empty-note { padding-bottom: var(--space); }
.empty-note p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; max-width: 760px; border-top: 1px solid var(--rule); padding-top: 32px; }

/* ---------- buying & selling ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(40px, 7vw, 110px); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.guide__intro p { color: var(--ink-soft); margin-top: 1.2rem; }
.guide__photo { margin-top: 2rem; }
.guide__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.guide .steps, .guide__cta { grid-column: 2; }
.guide__intro { grid-row: span 2; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.steps li:first-child { padding-top: 6px; }
.steps__num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--rose-text); line-height: 1.2; }
.steps h3 { font-family: var(--serif); font-size: 1.65rem; line-height: 1.2; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-soft); }
.guide__cta { margin-top: 32px; }

.land { background: var(--linen); padding: var(--space) 0; scroll-margin-top: 24px; }
.land__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.land__text h2 { margin-bottom: 1.2rem; }
.land__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.checklist li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 9px; height: 9px; background: var(--butter); box-shadow: inset 0 0 0 .5px rgba(150,120,30,.3); }
.fineprint { padding: 48px 0; }
.fineprint p { font-size: .9rem; color: var(--ink-soft); max-width: 760px; margin: 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 120px); padding: clamp(64px, 9vw, 120px) 0 var(--space); }
.contact__details { margin: 2.4rem 0 0; }
.contact__details div { padding: 18px 0; border-top: 1px solid var(--rule); }
.contact__details dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.contact__details dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.contact__details dd a { color: var(--ink); text-decoration: none; }
.contact__details dd a:hover { color: var(--teal-text); text-decoration: underline; }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; }

.form { background: var(--paper); border: 1px solid var(--rule); padding: clamp(28px, 4vw, 56px); align-self: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin: 0 0 24px; display: grid; gap: 8px; }
.field label { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.optional { color: var(--ink-soft); font-weight: 400; letter-spacing: .08em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #b9ae9c; border-radius: 0; padding: 10px 0;
  transition: border-color .3s;
}
.field textarea { border: 1px solid #b9ae9c; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232B2C33' fill='none'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-text); box-shadow: 0 1px 0 var(--teal-text); }
.field textarea:focus { box-shadow: 0 0 0 1px var(--teal-text); }
.form__hp { position: absolute; left: -9999px; }
.checks { border: 0; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.checks legend { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding: 0; margin-bottom: 14px; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; cursor: pointer; }
.contact__info .lead { margin-top: 1.4rem; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal-text); margin: 0; }
.field input::placeholder, .field textarea::placeholder { color: #8b8578; }
.form-photo { margin-top: 2.4rem; }
.form-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.form-direct { margin-top: 1.2rem; color: var(--ink-soft); }
@media (max-width: 900px) { .form-photo { display: none; } }
@media (max-width: 600px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.form__fine { font-size: .82rem; color: var(--ink-soft); margin: 18px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .intro, .featured__grid, .meet, .contact-band__inner, .page-head--split, .story__row, .equestrian__inner,
  .portfolio__item, .listing__head, .listing__body, .guide, .land__inner, .contact, .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .intro__body { padding-top: 28px; }
  .portfolio__item--flip .portfolio__media { order: 0; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .path, .path:first-child, .path:last-child { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .listing__actions { justify-self: start; }
  .guide .steps, .guide__cta { grid-column: auto; }
  .guide__intro { grid-row: auto; }
  .guide__photo { display: none; }
  .sold { grid-template-columns: minmax(0, 1fr); }
  .sold__item:nth-child(even) { margin-top: 0; }
  .site-footer__legal { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .page-head--split .page-head__photo { order: -1; max-width: 420px; }
  .interlude__quote { position: relative; left: auto; bottom: auto; margin: -48px var(--gutter) 0; }
  .meet__photo { max-width: 460px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__item--wide, .gallery__item--half, .gallery__item--third { grid-column: auto; }
  .gallery__item--wide .gallery__link img { aspect-ratio: 3 / 2; }
  .hero__img { height: 62vh; }
  .facts dd { font-size: 1.1rem; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); }
}

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

@media print {
  .site-header, .contact-band, .gallery, .nav-toggle { display: none; }
}

/* ---------- property tiles (listings, pending, sold) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.tile__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); }
.tile__media { position: relative; overflow: hidden; background: var(--linen); }
.tile__media img, .tile__media .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; min-height: 0; border: 0; transition: transform 1.1s var(--ease); }
a.tile__link:hover .tile__media img { transform: scale(1.03); }
.tile__tag { position: absolute; top: 0; right: 0; z-index: 2; font: 500 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 10px 14px; color: var(--paper); }
.tile__tag--active { background: var(--teal-text); }
.tile__tag--pending { background: var(--rose-text); }
.tile__tag--sold { background: var(--ink); }
.tile__text { flex: 1; text-align: center; padding: 24px 20px 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tile__name { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.15; margin: 0; transition: color .3s; }
a.tile__link:hover .tile__name { color: var(--teal-text); }
.tile__addr { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.tile__facts { font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); margin: 0; }
.tile__price { font-family: var(--serif); font-size: 1.5rem; color: var(--teal-text); margin: 6px 0 0; }
.tile-section { padding-bottom: clamp(56px, 7vw, 96px); }
.tile-section__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); text-align: center; margin: 0 0 clamp(24px, 3vw, 40px); }
.tile-section__title::after { content: ""; display: block; width: 22px; height: 9px; margin: 14px auto 0; background: linear-gradient(90deg, var(--butter) 9px, transparent 9px 13px, var(--butter) 13px); }
.tile-section__more { text-align: center; margin-top: 32px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

.tile__note, .listing__cover-note { position: absolute; left: 0; bottom: 0; z-index: 2; background: rgba(43, 44, 51, .72); color: #fff; font: 400 .7rem/1 var(--sans); letter-spacing: .06em; padding: 7px 10px; }
.listing__cover { position: relative; }
.listing__cover-note { font-size: .78rem; padding: 9px 14px; }
.story--after { padding-top: var(--space); }

/* ---------- Izzy and Can Can ---------- */
.pets { display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 48px); margin-top: 28px; flex-wrap: wrap; }
.pet { margin: 0; text-align: center; }
.pet img { width: 100%; height: auto; }
.pet--dog { width: clamp(150px, 22vw, 230px); transform: rotate(-2deg); }
.pet--horse { width: clamp(190px, 28vw, 300px); transform: rotate(1.5deg); }
.pet figcaption { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--rose-text); margin-top: 6px; }
.pet-hero { width: 170px; margin: 0 auto 20px; }
.pet-hero--wide { width: 260px; }
.pet-hero img { width: 100%; height: auto; }

/* =========================================================
   Refinements: blush, scallop, dogwood, arches
   ========================================================= */
:root { --blush: #F8E9EC; }
.contact-band { background: var(--blush); }

/* Scalloped footer edge, like the trim on an awning */
.site-footer { position: relative; border-top: 0; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px;
  background: radial-gradient(circle at 13px 14px, var(--paper) 12.5px, transparent 13.5px) 0 0 / 26px 14px repeat-x;
}
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; }

/* Snaffle bit icon */
.bit { display: block; width: 96px; height: auto; color: var(--teal); }
.bit--label { margin: 0 0 12px -2px; }
.bit--footer { width: 84px; margin: 0 0 12px -2px; }
.bit--center { margin: 0 auto 10px; width: 104px; }

/* Jumping cutout */
.jumper { width: clamp(170px, 20vw, 240px); margin: 0 0 18px; }
.jumper img { width: 100%; height: auto; }

/* Arched portraits, like a Charleston doorway */
.meet__photo img, .page-head__photo img { border-radius: 50% 50% 0 0 / 40% 40% 0 0; }

/* Recently sold under featured listings */
.tile-section__title--sub { margin-top: clamp(56px, 7vw, 88px); }

/* Read the full description */
.more { margin-top: 1rem; }
.more summary { cursor: pointer; list-style: none; display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 1.4rem; }

/* Towns */
.where__counties { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 1.2rem 0 0; }

/* New construction */
.guide--simple .checklist { margin-top: 0; }
.guide--simple .guide__intro { grid-row: span 2; }
.guide--simple .guide__cta { margin-top: 8px; align-self: start; }
.guide--simple { align-items: start; }

.brand__firm sup { font-size: .7em; vertical-align: .35em; line-height: 0; }
.site-footer__name .realtor { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; color: var(--ink-soft); }
.site-footer__name sup { font-size: .7em; line-height: 0; }
