/* Sky Island — shared chrome.
   Everything global lives here: tokens, reset, container, header/nav, buttons,
   footer. Page files hold only what is unique to that page.

   Two colour branches. :root is the main/Short Stays palette (vivid).
   .branch-leases overrides it for the residential pages, which the brief wants
   more restrained. Values that differed only by drift (--ink, --cream, footer
   background, logo width, footer padding) are unified here to one value each. */

:root {
  --blue: #0070c0;
  --green: #32cc32;
  --pink: #ff3399;          /* decoration: rules, borders, accents */
  --pink-btn: #d92b82;      /* white text on pink needs 4.5:1; #ff3399 is 3.4:1 */
  --yellow: #efc62e;
  --ink: #17221d;
  --cream: #f7f5ed;
  --line: #d9ddd8;
  --muted: #5d6962;
}

.branch-leases {
  --blue: #0875bd;
  --green: #29b83e;
  --pink: #f52b91;
  --pink-btn: #da2681;
  --gold: #c99b3c;
  --cream: #f7f4ec;
  --line: #d8ddd9;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

a { text-decoration: none; color: inherit }

.w { width: min(1180px, 88vw); margin: auto }

h1, h2, h3 { margin-top: 0; letter-spacing: -.035em }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
  color: #66716a;
  margin-bottom: 14px;
}

/* inline icons are drawn, not loaded from an icon font */
svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- header / nav -------------------------------------------------------
   Two variants. Default is the solid sticky bar used on the inner pages.
   .site-nav--overlay is the home page, where the nav sits on top of the hero
   video and so needs to be transparent, taller, and shadowed for legibility. */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e7e9e6;
}

.site-nav {
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
}

.site-nav img { width: 245px; max-width: 42vw; height: auto }

.site-header--overlay {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  background: none; border-bottom: 0;
  color: #fff;            /* no longer inside .hero, so white is not inherited */
}

.site-nav--overlay { height: 105px; position: relative; z-index: 2 }

.site-nav--overlay img {
  width: 305px; max-width: 44vw; height: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .35));
}

.links {
  display: flex; gap: 24px; align-items: center;
  font-size: 14px; font-weight: 700;
}

/* ---- buttons ------------------------------------------------------------
   .btn is the restrained outlined button used through the Leases branch.
   .btn--solid is the filled one the home page hero uses. */

.btn {
  display: inline-block;
  padding: 12px 17px;
  border: 1px solid #c9cfca;
  border-radius: 4px;
  background: #fff;
  font-weight: 800;
}

.btn.primary,
.btn--pink {
  background: var(--pink-btn);
  border-color: var(--pink-btn);
  color: #fff;
}

.btn--solid {
  padding: 14px 21px;
  border: none;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.bookpill { background: var(--pink-btn); color: #fff; padding: 11px 16px; border-radius: 4px }

/* the three-colour rule under the home hero */
.bar { height: 6px; display: flex }
.bar i { flex: 1 }
.bar i:nth-child(1) { background: var(--blue) }
.bar i:nth-child(2) { background: var(--green) }
.bar i:nth-child(3) { background: var(--pink) }

/* ---- footer -------------------------------------------------------------
   Was three near-identical near-blacks and two logo sizes across the
   prototype pages. Unified. */

footer { background: #15231d; color: #fff; padding: 38px 0 }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap }
.foot img { width: 220px; height: auto; display: block }
.foot span { font-size: 13px; opacity: .72 }
.foot-brand { display: flex; align-items: center; gap: 26px; flex-wrap: wrap }

.foot-phone { font-size: 13px; opacity: .6; font-weight: 400 }
.foot-phone:hover, .foot-phone:focus-visible { opacity: .95; text-decoration: underline }

.foot-nav { display: flex; gap: 20px; font-size: 14px; font-weight: 700; flex-wrap: wrap }
.foot-nav a { opacity: .88 }
.foot-nav a:hover, .foot-nav a:focus-visible { opacity: 1; text-decoration: underline }

/* ---- accessibility ------------------------------------------------------ */

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px }

.skip-link {
  position: absolute; left: -9999px;
  background: #fff; color: var(--ink);
  padding: 12px 18px; z-index: 100; font-weight: 800;
}
.skip-link:focus { left: 12px; top: 12px }

@media (max-width: 800px) {
  /* the header's text links go; the footer nav carries navigation from here down */
  .links a:not(.btn):not(.bookpill) { display: none }
  .site-nav > a.navHome { display: none }        /* trailing cross-site links, outside .links */
  .foot { display: block }
  .foot-brand { display: block }
  .foot span { display: block; margin-top: 14px }
  .foot-phone { display: inline-block; margin-top: 10px }
  .foot-nav { margin-top: 22px; gap: 16px 20px }
}

/* Anchor targets were landing under the 81px sticky header, so tapping a nav link
   hid the very heading it pointed at. */
[id] { scroll-margin-top: 96px }

/* Touch targets. WCAG 2.5.8 wants 24px minimum; these were 15-16px. */
.foot-nav a { padding: 11px 0; display: inline-block }
.foot-phone { padding: 10px 0; display: inline-block }

/* ---- photo viewer -------------------------------------------------------- */

/* The invitation: a small control in the corner of any browsable photo. */
.shot { position: relative }
.shot-zoom {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 15px; line-height: 34px; cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.shot-zoom:hover, .shot-zoom:focus-visible { background: #fff }
[data-lb] { cursor: zoom-in }

html.lb-open { overflow: hidden }

.lb[hidden] { display: none }      /* display:flex below would otherwise defeat [hidden] */

.lb {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: #0d100e;          /* solid: at 94% the page ghosted through behind the photo */
  padding: 56px 8px 64px;
}
.lb-figure { margin: 0; max-width: min(1200px, 92vw); text-align: center }
.lb-figure img {
  display: block; margin: 0 auto;
  max-width: 100%; max-height: calc(100vh - 130px);
  object-fit: contain; background: #1b201d;
}
.lb-figure figcaption { color: #e8ece9; font-size: 14px; margin-top: 12px; line-height: 1.5 }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  color: #b9c2bc; font-size: 13px; margin: 0 }
.lb-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lb-nav {
  flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.lb-close:hover, .lb-nav:hover,
.lb-close:focus-visible, .lb-nav:focus-visible { background: rgba(255,255,255,.28) }

@media (max-width: 620px) {
  .lb { padding: 52px 4px 60px }
  .lb-nav { position: absolute; bottom: 14px; width: 46px; height: 46px }
  .lb-prev { left: 18px } .lb-next { right: 18px }
  .lb-count { bottom: 28px }
  .lb-figure img { max-height: calc(100vh - 150px) }
}

/* Explicit affordance on a browsable photo: how many there are, and a way in —
   in one small control, because a count and a separate button competed for the
   same corner and, on a half-width card, covered the photograph between them. */
.shot-pill {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(12,16,14,.72); color: #fff;
  font: inherit; font-size: 13px; font-weight: 700; padding: 9px 12px;
  backdrop-filter: blur(2px);
}
.shot-pill svg {
  flex: none; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.shot-pill:hover, .shot-pill:focus-visible { background: rgba(12,16,14,.9) }

/* ---- the setting block --------------------------------------------------
   Shared by the leases listing and every rental page through
   partials/setting.php, so it lives here rather than in one page's file. */
.setting { display: grid; grid-template-columns: 1fr 1fr; background: #073e5c; color: #fff }
.settingImg { background-size: cover; background-position: center; min-height: 500px }
.settingImg.shot { position: relative }
.settingImg .shot-zoom { right: 14px; bottom: 14px }
.settingCopy { padding: 70px 7vw; display: flex; flex-direction: column; justify-content: center }
.settingCopy p { font-size: 17px; line-height: 1.65; color: #dceaf0 }
.warning {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.3);
  padding: 16px; font-size: 13px; line-height: 1.5;
}
.settingCta { margin-top: 26px }

@media (max-width: 900px) {
  .setting { grid-template-columns: 1fr }
  /* the 800px copy of the aerial, so a phone does not pull the full-size one */
  .settingImg--responsive { background-image: url('../images/si-aerial-site-sm.jpg') !important }
}
