/* =========================================================================
   South Africa | Forbes Global Properties, listing template.
   White editorial magazine system, identical tokens and anatomy to the
   main site: FreightNeo and Work Sans, black, white, Forbes red.
   Shared by every listing page (Villa Mhlosinga, Villa Thandawena, ...).
   ========================================================================= */

@font-face { font-family: "FreightNeo"; src: url("assets/brand/FreightNeo-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "FreightNeo"; src: url("assets/brand/FreightNeo-Book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "FreightNeo"; src: url("assets/brand/FreightNeo-Semi.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("assets/brand/WorkSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("assets/brand/WorkSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("assets/brand/WorkSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --white: #ffffff;
  --black: #000000;
  --text: #333333;
  --soft: #6b6b6b;
  --line: #e3e0db;
  --rule: #000000;
  --red: #d8361e;
  --gray-band: #f2f0ee;
  --display: "FreightNeo", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1360px;
  --pad: clamp(1.2rem, 4vw, 3.4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--black); margin: 0; }
.pipe { color: var(--red); margin: 0 0.28em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.55em;
  background: var(--black); color: var(--white);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.72em 1.25em; border: 0; border-radius: 3px; cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease);
}
.chip:hover { background: var(--red); }
.chip--red { background: var(--red); }
.chip--red:hover { background: var(--black); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%); z-index: 200;
  background: var(--black); color: var(--white); padding: 0.7rem 1.2rem; font-size: 13px;
  border-radius: 0 0 3px 3px; transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Masthead ---------- */
.mast {
  position: sticky; top: 0; z-index: 60;
  background: var(--black); color: var(--white);
  border-bottom: 2px solid var(--red);
}
.mast__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 76px;
}
.mast__left { justify-self: start; display: flex; gap: 1.6rem; }
.mast__left a { font-size: 13px; letter-spacing: 0.05em; color: rgba(255,255,255,0.85); transition: color 0.3s; }
.mast__left a:hover { color: var(--white); }
.mast__brand { justify-self: center; text-align: center; font-family: var(--display); line-height: 1.15; }
.mast__brand strong { display: block; font-weight: 600; font-size: 1.3rem; letter-spacing: 0.02em; }
.mast__brand span { display: block; font-family: var(--sans); font-weight: 500; font-size: 9.5px; letter-spacing: 0.42em; text-transform: uppercase; margin-top: 2px; color: rgba(255,255,255,0.92); }
.mast__right { justify-self: end; }

/* ---------- Tagline bar ---------- */
.tagline { border-bottom: 2px solid var(--rule); }
.tagline p {
  max-width: var(--maxw); margin: 0 auto; padding: 1.05rem var(--pad);
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--black);
}

/* ---------- Front: featured + rail ---------- */
.front { padding: clamp(1.8rem, 3.5vw, 3rem) 0 clamp(2.4rem, 4vw, 3.6rem); }
.front__grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(1.6rem, 3vw, 3rem); }

.featured { display: block; }
.featured__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--gray-band); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__media .chip { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.featured h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; margin: 1.3rem 0 0.7rem; }
.featured .lede { margin: 0; color: var(--text); max-width: 68ch; }
.featured__meta { font-size: 14px; color: var(--soft); margin: 0.8rem 0 0; }
.featured__meta strong { color: var(--black); font-weight: 500; }

.rail { display: flex; flex-direction: column; gap: clamp(1.6rem, 3vw, 2.4rem); }
.rail__card { display: block; }
.rail__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-band); }
.rail__media img { width: 100%; height: 100%; object-fit: cover; }
.rail__media .chip { position: absolute; left: 0; bottom: 0; padding: 0.5em 0.9em; font-size: 10.5px; }
.rail__card h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.2; margin: 0.9rem 0 0; }
.rail__card:hover h3 { color: var(--red); }
.rail__card p { font-size: 13px; color: var(--soft); margin: 0.35rem 0 0; }

/* ---------- Section header ---------- */
.secthead { border-top: 2px solid var(--rule); padding-top: 1rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.secthead h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.secthead h2 .arrow { font-family: var(--sans); font-weight: 300; margin-left: 0.45em; }
.secthead .secthead__note { font-size: 13px; color: var(--soft); white-space: nowrap; }
section { padding: 0 0 clamp(2.8rem, 5vw, 4.4rem); }

/* ---------- Stats strip (fact strip) ---------- */
.stats { border-top: 2px solid var(--rule); border-bottom: 1px solid var(--line); margin-bottom: clamp(2.8rem, 5vw, 4.4rem); }
.stats ul { list-style: none; margin: 0 auto; max-width: var(--maxw); padding: clamp(1.6rem, 3vw, 2.4rem) var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.stats li { display: flex; flex-direction: column; gap: 0.2rem; }
.stats strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--black); }
.stats span { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }

/* ---------- Editorial two column ---------- */
.duo { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: start; }
.duo--flip { grid-template-columns: 1fr 1.1fr; }
.duo__lead { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.18; color: var(--black); margin: 0; }
.duo__lead em { font-style: italic; }
.duo p { margin: 0 0 1rem; max-width: 58ch; }
.duo p:last-child { margin-bottom: 0; }
.duo h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 0 0 0.8rem; }
.kicker { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 0.5rem; }
.pricebar { border-top: 2px solid var(--rule); padding-top: 1rem; margin-top: 1.6rem; }
.pricebar span { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); display: block; margin-bottom: 0.3rem; }
.pricebar strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--black); }
.pricebar em { font-style: normal; font-size: 13px; color: var(--soft); margin-left: 0.7em; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Editorial figures ---------- */
.plate { margin: 0; }
.plate img { width: 100%; object-fit: cover; background: var(--gray-band); }
.duo .plate img { aspect-ratio: 4 / 3; }
.sectintro { max-width: 68ch; margin: 0 0 1.6rem; }
.spread--follow { margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.plate figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: 12.5px; color: var(--soft); padding-top: 0.6rem; }
.plate--doc img { object-fit: contain; background: var(--white); border: 1px solid var(--line); padding: clamp(0.8rem, 2vw, 1.6rem); }

/* full width statement image */
.statement { margin: 0 0 clamp(2.8rem, 5vw, 4.4rem); }
.statement img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; background: var(--gray-band); }
.statement figcaption { max-width: var(--maxw); margin: 0 auto; padding: 0.6rem var(--pad) 0; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--soft); }

/* ---------- Image spreads (magazine grids) ---------- */
.spread { display: grid; gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.spread figure { margin: 0; }
.spread img { width: 100%; height: 100%; object-fit: cover; background: var(--gray-band); }
.spread figcaption { font-size: 12.5px; color: var(--soft); padding-top: 0.5rem; }
.spread--pano { grid-template-columns: 1fr 1fr; }
.spread--pano .is-wide { grid-column: 1 / -1; }
.spread--pano .is-wide img { aspect-ratio: 21 / 9; }
.spread--pano figure:not(.is-wide) img { aspect-ratio: 4 / 3; }
.spread--lead { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.spread--lead .is-lead { grid-row: 1 / -1; }
.spread--lead .is-lead img { height: 100%; }
.spread--lead figure:not(.is-lead) img { aspect-ratio: 3 / 2; }
.spread--flip { grid-template-columns: 1fr 1.4fr; }
.spread--flip .is-lead { grid-column: 2; grid-row: 1 / -1; }
.spread--flip figure:not(.is-lead) { grid-column: 1; }
.spread--pair { grid-template-columns: 1fr 1fr; }
.spread--pair img { aspect-ratio: 3 / 2; }
.spread--quad { grid-template-columns: 1fr 1fr; }
.spread--quad img { aspect-ratio: 3 / 2; }

/* ---------- Film ---------- */
.film__stage { position: relative; aspect-ratio: 16 / 9; background: var(--black); overflow: hidden; }
.film__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--black); }
.film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease); }
.film__stage::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.22); transition: opacity 0.3s var(--ease); pointer-events: none; }
.film__stage.is-playing::after, .film__stage.is-playing .film__poster, .film__stage.is-playing .film__play, .film__stage.is-playing .film__label { opacity: 0; pointer-events: none; }
.film__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  background: var(--white); color: var(--black); border: 0; border-radius: 3px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.72em 1.25em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.film__play::after { content: " \25B6"; font-size: 10px; }
.film__play:hover { background: var(--red); color: var(--white); }
.film__label { position: absolute; left: 1rem; bottom: 0.9rem; z-index: 2; color: rgba(255,255,255,0.92); font-size: 12.5px; letter-spacing: 0.08em; transition: opacity 0.3s var(--ease); }
.film__cap { display: flex; justify-content: space-between; gap: 1rem; font-size: 12.5px; color: var(--soft); padding-top: 0.6rem; margin: 0; }

/* ---------- Flight times ---------- */
.times { list-style: none; margin: clamp(1.4rem, 2.4vw, 2rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem 1.4rem; }
.times li { border-top: 1px solid var(--line); padding-top: 0.7rem; display: flex; flex-direction: column; gap: 0.15rem; }
.times strong { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--black); }
.times span { font-family: var(--display); font-size: 1.15rem; color: var(--black); }
.access__note { font-size: 13.5px; color: var(--soft); margin: 1.4rem 0 0; }

/* ---------- Quiet band (quote, affiliation) ---------- */
.band { background: var(--gray-band); border-top: 2px solid var(--rule); padding: clamp(2rem, 4vw, 3rem) 0; margin-bottom: clamp(2.8rem, 5vw, 4.4rem); }
.band__quote { font-family: var(--display); font-weight: 300; font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.4; color: var(--black); max-width: 60ch; margin: 0; }

/* ---------- Specification ---------- */
.spec__list { margin: 0; padding: 0; }
.spec__list > div { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.spec__list > div:last-child { border-bottom: 2px solid var(--rule); }
.spec__list dt { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.spec__list dd { margin: 0; font-family: var(--display); font-size: 1.12rem; color: var(--black); }
.spec__list > div:last-child dd { color: var(--red); }

/* ---------- Enquiry band ---------- */
.office { background: var(--gray-band); border-top: 2px solid var(--rule); padding: clamp(2.8rem, 5vw, 4.4rem) 0; margin-bottom: 0; }
.office__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: start; }
.office h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; margin-bottom: 1rem; }
.office__intro p { margin: 0 0 1rem; max-width: 46ch; }
.office__direct { font-size: 14px; color: var(--soft); }
.office__direct a { color: var(--black); border-bottom: 2px solid var(--red); font-weight: 500; }
.office form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.field input, .field textarea {
  background: var(--white); border: 1px solid #c9c5bf; color: var(--black);
  padding: 0.8rem 0.85rem; font-family: var(--sans); font-size: 15px; border-radius: 2px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.office form .chip { grid-column: 1 / -1; justify-self: start; }
.enquire__note { grid-column: 1 / -1; font-size: 14px; color: var(--black); min-height: 1.2em; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--gray-band); border-top: 2px solid var(--rule); padding: clamp(2.4rem, 5vw, 4rem) 0 2rem; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; padding-bottom: 1.4rem; border-bottom: 2px solid var(--rule); }
.footer__brand { font-family: var(--display); font-size: 1.15rem; color: var(--black); }
.footer__brand span { color: var(--red); margin: 0 0.3em; }
.footer__nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); flex-wrap: wrap; }
.footer__nav a { font-size: 13.5px; font-weight: 600; color: var(--black); }
.footer__nav a:hover { color: var(--red); }
.footer__legal { text-align: center; font-size: 12px; color: var(--soft); max-width: 78ch; margin: 1.8rem auto 0; line-height: 1.7; }
.footer__legal a { border-bottom: 1px solid var(--line); }

/* ---------- No-JS fallback ---------- */
.fallback-gallery img { width: 100%; margin-bottom: 1rem; }
.fallback-contact { text-align: center; color: var(--soft); font-size: 0.95rem; padding: 2rem 1.4rem; max-width: 70ch; margin: 0 auto; }
.fallback-contact a { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .front__grid { grid-template-columns: 1fr; }
  .rail { flex-direction: row; }
  .rail__card { flex: 1; }
  .duo, .duo--flip, .office__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mast__inner { grid-template-columns: auto 1fr; min-height: 64px; gap: 1rem; }
  .mast__left { display: none; }
  .mast__brand { justify-self: start; text-align: left; }
  .mast__brand strong { font-size: 1.05rem; }
  .mast__brand span { font-size: 8px; letter-spacing: 0.3em; }
  .mast__right .chip { font-size: 10.5px; padding: 0.65em 1em; }
  .rail { flex-direction: column; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .spread--pano, .spread--lead, .spread--flip, .spread--pair, .spread--quad { grid-template-columns: 1fr; grid-template-rows: none; }
  .spread--lead .is-lead, .spread--flip .is-lead { grid-column: auto; grid-row: auto; }
  .spread--lead .is-lead img, .spread--flip .is-lead img { aspect-ratio: 3 / 2; height: auto; }
  .statement img { aspect-ratio: 16 / 10; }
  .spec__list > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .office form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; }
}
