/* Theme: Sun & Stone — warm cream + ochre + cactus green */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Sun & Stone primary tokens */
  --ss-ink:        #1F1F1F;
  --ss-ink-soft:   #3A352D;
  --ss-cream:      #F4EBD9;
  --ss-cream-2:    #EBDFC4;
  --ss-ochre:      #C99D5E;
  --ss-green:      #5E7A5A;   /* cactus green */
  --ss-umber:      #7B5B3A;

  /* shape aliases */
  --ink:        var(--ss-ink);
  --ink-soft:   var(--ss-ink-soft);
  --paper:      var(--ss-cream);
  --paper-2:    var(--ss-cream-2);
  --accent:     var(--ss-ochre);
  --accent-2:   var(--ss-green);
  --graphite:   var(--ss-ink-soft);
  --muted:      rgba(31, 31, 31, 0.65);
  --line:       rgba(31, 31, 31, 0.12);

  /* legacy aliases */
  --red:        var(--ss-ochre);
  --navy:       var(--ss-ink);
  --navy-dark:  #0F0F0F;
  --card:       var(--ss-ink-soft);
  --card-dark:  var(--ss-ink);
  --bg:         var(--ss-cream);
  --white:      #ffffff;
  --accent-line: var(--ss-ochre);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--white);
  font-size: 14px;
  line-height: 1;
}
.brand img { height: 44px; width: auto; display: block; }
.brand .brand-red { color: var(--red); margin-left: 8px; }

.nav {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 34px;
}
.nav a {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
  text-transform: uppercase;
}
.nav a:hover,
.nav a.active { border-color: var(--white); }

/* Nav dropdown (Pads) */
.nav .has-dropdown { position: relative; }
.nav .dropdown {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 11;
}
.nav .has-dropdown:hover .dropdown,
.nav .has-dropdown:focus-within .dropdown { display: block; }
.nav .dropdown li { display: block; }
.nav .dropdown a {
  display: block;
  padding: 10px 18px;
  border-bottom: 0;
  text-transform: none;
  letter-spacing: 0.5px;
  font-size: 12px;
  white-space: nowrap;
}
.nav .dropdown a:hover,
.nav .dropdown a.active {
  background: rgba(255, 255, 255, 0.10);
  border-bottom-color: transparent;
}

.hamburger { display: none; background: transparent; border: 0; color: var(--white); font-size: 22px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(56.25vw, 720px);
  min-height: 460px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(20, 29, 41, .55), rgba(20, 29, 41, .55));
  z-index: 1;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero .hero-inner { position: relative; z-index: 2; padding: 0 20px; max-width: 1100px; }
.hero h1 {
  font-size: 54px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.05;
}
.hero .subtitle {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero .meta {
  display: inline-block;
  padding: 14px 28px;
  background: rgba(61, 77, 100, .65);
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 12px;
}
.hero .meta .line2 { display: block; margin-top: 4px; font-size: 13px; opacity: .9; }
.hero .meta a.map-link { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.55); transition: border-color .15s ease, opacity .15s ease; }
.hero .meta a.map-link:hover { border-bottom-color: #fff; opacity: 1; }

/* Short hero variant */
.hero.short { height: 340px; }

/* Red accent divider under titles */
.accent {
  width: 120px;
  height: 3px;
  background: var(--accent-line);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 20px;
}
.section.bg-gray { background: var(--bg); }
.section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  color: var(--ink);
}
.section .lead {
  max-width: 820px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.section .lead p + p { margin-top: 10px; }
.container { max-width: 1100px; margin: 0 auto; }

/* ---------- Specs grid ---------- */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.specs ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}
.specs h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Site-plan spec cards (6 colored boxes) */
.spec-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.spec-card {
  background: var(--card);
  color: var(--white);
  padding: 22px 18px;
  text-align: center;
  border-radius: 2px;
}
.spec-card .label { font-size: 13px; letter-spacing: 1px; opacity: .85; }
.spec-card .value { font-size: 18px; font-weight: 700; margin-top: 6px; }

/* ---------- Location stat panel ---------- */
.stats-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 32px auto 0;
  color: var(--white);
}
.stats-panel p { margin: 0; line-height: 1.6; font-size: 15px; }

/* ---------- Dark section (Location / port) ---------- */
.section.dark {
  background: var(--navy);
  color: var(--white);
}
.section.dark h2 { color: var(--white); }

/* Port container strip background */
.section.containers {
  background: url("../backgrounds/1666452988.jpg") center/cover no-repeat;
  color: var(--white);
  position: relative;
}
.section.containers::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20, 29, 41, .55);
}
.section.containers > * { position: relative; z-index: 1; }

/* ---------- Gallery ---------- */
.gallery-hero {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.gallery-main {
  max-width: 820px;
  margin: 40px auto 0;
}
.gallery-main img {
  width: 100%;
  border-radius: 2px;
}
.thumb-strip {
  max-width: 820px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
}
.thumb-strip img {
  width: 100%;
  height: 46px;
  object-fit: cover;
  cursor: pointer;
  opacity: .75;
  transition: opacity .15s ease;
}
.thumb-strip img:hover,
.thumb-strip img.active { opacity: 1; }

/* ---------- Contact form + boxes ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.contact-form h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.contact-form .required-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
  display: block;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 4px;
}
.contact-form .name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  border-radius: 2px;
}
.contact-form textarea { height: 240px; resize: vertical; }
.contact-form .sub-label { font-size: 11px; color: var(--muted); margin-top: 2px; display: block; }

.btn {
  display: inline-block;
  background: var(--card-dark);
  color: var(--white);
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 18px;
}
.btn:hover { background: #0f1924; }
.btn.red { background: var(--red); }
.btn.red:hover { background: #b81818; }

.info-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.info-box .info-label { font-size: 16px; }
.info-box img { max-height: 42px; }
.info-box a { display: inline-flex; align-items: center; transition: opacity .15s; }
.info-box a:hover { opacity: .75; }
.footer-logos a { display: inline-block; transition: opacity .15s; }
.footer-logos a:hover { opacity: .8; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  margin-top: 24px;
}
.people-grid .person {
  font-size: 15px;
  line-height: 1.7;
  padding: 26px 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.people-grid .person strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 2px;
  color: var(--ink, #141d29);
}
.people-grid .person .role {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.people-grid .person a {
  text-decoration: none;
  word-break: break-word;
  transition: color .15s ease, border-color .15s ease;
}
.people-grid .person a[href^="tel:"] {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  color: #141d29;
  letter-spacing: .4px;
  margin-top: 2px;
}
.people-grid .person a[href^="mailto:"] {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: #2a3a52;
  border-bottom: 1px solid rgba(196, 30, 58, .35);
  padding-bottom: 1px;
  margin-top: 6px;
}
.people-grid .person a:hover { color: var(--red); }
.people-grid .person a[href^="mailto:"]:hover { border-bottom-color: var(--red); }

.contact-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 28px 0 0;
}
.contact-heading .accent { margin-top: 8px; width: 90px; height: 3px; }

.brochure-wrap { text-align: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: var(--ink);
  padding: 40px 20px 50px;
}
.site-footer .footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 280px;
  gap: 14px 28px;
  align-items: center;
}
.site-footer .footer-grid > * { min-width: 0; }
.site-footer .person {
  font-size: 14px;
  line-height: 1.55;
  /* Stretch (default) + text-align center → each person fills its grid
     cell and the text is centered inside. Using justify-self:center would
     shrink the block to content width, and the two brokers' differing
     content widths (Harrison's longer role/email line) made the centered
     blocks land at different offsets within their cells. */
  justify-self: stretch;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.site-footer .person strong { font-size: 15px; }
.site-footer .person a { color: var(--red); overflow-wrap: anywhere; word-break: break-word; }
.site-footer .footer-logos { text-align: right; }
.site-footer .footer-logos img { display: inline-block; max-width: 303px; }
.site-footer .disclaimer {
  max-width: 1100px;
  margin: 30px auto 0;
  font-size: 10px;
  line-height: 1.4;
  color: #555;
}

/* Bottom hero under home page */
.bottom-hero {
  background-size: cover;
  background-position: center;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  position: relative;
}
.bottom-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
}
.bottom-hero h2 {
  position: relative;
  font-size: 36px;
  letter-spacing: 4px;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 1;
  color: var(--white);
}

/* ---------- Building overview cards (buildings.html) ---------- */
.building-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.building-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
  color: inherit;
}
.building-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10,37,64,.12);
}
.building-card .badge {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.building-card .badge .id {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.building-card .badge .sf {
  font-size: 13px;
  letter-spacing: 1px;
  opacity: .9;
}
.building-card .body {
  padding: 16px 18px 20px;
  font-size: 13px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  justify-content: space-between;
}
.building-card .body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.building-card .body li + li { margin-top: 4px; }
.building-card .dims {
  flex: 0 0 auto;
  text-align: right;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.building-card .dims .label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 700;
}
.building-card .dims .value {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.building-card .card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.building-card .card-stats .stat {
  padding: 12px 14px;
  text-align: center;
}
.building-card .card-stats .stat + .stat {
  border-left: 1px solid var(--line);
}
.building-card .card-stats .value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.building-card .card-stats .label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 700;
}
.building-card .cta {
  display: block;
  padding: 12px 18px;
  background: var(--bg);
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}
.building-card:hover .cta { background: var(--accent-line); color: var(--white); }

/* ---------- Pricing table ---------- */
.pricing-table {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--white);
}
.pricing-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 13px;
  text-transform: uppercase;
}
.pricing-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: #000;
  font-weight: 500;
}
.pricing-table tr:nth-child(even) td { background: #f7f9fb; }
.pricing-table tr:hover td { background: #eaf0f5; }
.pricing-table td:first-child {
  font-weight: 700;
  color: var(--navy);
}
.pricing-table a { color: var(--navy); border-bottom: 1px dotted var(--muted); }

/* ---------- Distance table (location page) ---------- */
.distance-table {
  max-width: 520px;
  margin: 30px auto 0;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
}
.distance-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.distance-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.distance-table td:last-child { text-align: right; font-weight: 700; color: var(--navy); }

/* ---------- Building detail page specs ---------- */
.detail-header {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}
.detail-header .meta-card {
  background: var(--navy);
  color: var(--white);
  padding: 22px 26px;
  border-radius: 4px;
}
.detail-header .meta-card .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 14px;
}
.detail-header .meta-card .row:last-child { border-bottom: 0; }
.detail-header .meta-card .row .label { opacity: .75; letter-spacing: 1px; font-size: 12px; text-transform: uppercase; }
.detail-header .meta-card .row .value { font-weight: 700; }
.detail-header .meta-card .row.highlight { background: var(--accent-line); margin: 10px -26px 0; padding: 14px 26px; border-radius: 0; font-size: 15px; }
.detail-header .meta-card .row.highlight .label { opacity: 1; }

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}
.back-link:hover { color: var(--accent-line); border-color: var(--accent-line); }

/* ---------- Broker card (footer on flyer-style pages) ---------- */
.broker-card {
  background: var(--white);
  border-left: 4px solid var(--accent-line);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 40px auto 0;
}
.broker-card .person { font-size: 13px; line-height: 1.6; }
.broker-card .person strong { display: block; font-size: 14px; margin-bottom: 2px; color: var(--navy); }
.broker-card .person .title { color: var(--muted); font-size: 12px; }
.broker-card .person a { color: var(--accent-line); }

/* ---------- Partners footer (replaces single logo) ---------- */
.site-footer.partners-footer { background: var(--navy); color: var(--white); }
.site-footer.partners-footer .person { line-height: 1.55; }
.site-footer.partners-footer .person strong { display: block; color: var(--white); margin-bottom: 2px; }
.site-footer.partners-footer .person a { color: #ffb3b8; }
.site-footer.partners-footer .disclaimer { color: rgba(255,255,255,.6); }
.site-footer.partners-footer .footer-logos img { mix-blend-mode: screen; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .hero h1 { font-size: 36px; }
  .hero { height: 420px; }
  .specs { grid-template-columns: 1fr; gap: 24px; }
  .spec-cards { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .stats-panel { grid-template-columns: 1fr; gap: 20px; }
  .location-stats { grid-template-columns: 1fr !important; gap: 28px !important; }
  /* minmax(0, 1fr) keeps the two broker columns truly equal — plain 1fr's
     auto min-size lets the wider content (Harrison's email) push its column
     beyond half-width and squeeze Jack's. */
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .footer-logos { text-align: center; grid-column: span 2; }
  .people-grid { grid-template-columns: 1fr; }
  .thumb-strip { grid-template-columns: repeat(6, 1fr); }
  .thumb-strip img { height: 60px; }

  /* Mobile nav drawer */
  .site-header.menu-open { background: var(--navy); }
  .site-header.menu-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
  }
  .site-header.menu-open .nav li { width: 100%; }
  .site-header.menu-open .nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-top: 0;
    border-left: 0;
    border-right: 0;
  }
  .site-header.menu-open .nav a.active,
  .site-header.menu-open .nav a:hover {
    background: rgba(255,255,255,.08);
    border-bottom-color: rgba(255,255,255,.08);
  }

  /* Nav dropdown: inline in mobile drawer instead of popover */
  .site-header.menu-open .nav .dropdown {
    position: static;
    display: block;
    transform: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
  }
  .site-header.menu-open .nav .dropdown a {
    padding: 12px 40px;
    font-size: 11px;
  }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 28px; letter-spacing: 2px; }
  .hero .subtitle { font-size: 14px; }
  .site-header { padding: 14px 16px; }
  .spec-cards { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  /* The 900px rule sets .footer-logos to span 2 columns. With a single-
     column grid that span forces the browser to create an implicit 2nd
     column, and Jack/Harrison auto-flow into it side-by-side. Reset. */
  .site-footer .footer-logos { grid-column: auto; }
}

.drone-video {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 32px auto 0;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ss-ink);
}
.drone-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.drone-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.drone-gallery a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.drone-gallery img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 900px) {
  .building-grid { grid-template-columns: 1fr 1fr; }
  .detail-header { grid-template-columns: 1fr; }
  .broker-card { grid-template-columns: 1fr 1fr; }
  .pricing-table { font-size: 14px; }
  .pricing-table th, .pricing-table td { padding: 10px 12px; }
  .drone-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .building-grid { grid-template-columns: 1fr; }
  .broker-card { grid-template-columns: 1fr; }
  .drone-gallery { grid-template-columns: 1fr; }
}

/* === Sun & Stone theme-specific utilities === */

/* serif display headlines */
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -0.015em; }

/* italic emphasis runs in headlines */
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

/* eyebrow label */
.ss-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ss-green); font-weight: 600;
}

/* pill components for use-type tags */
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.pill.ochre { background: var(--ss-ochre); color: var(--ss-ink); }
.pill.green { background: var(--ss-green); color: var(--paper); }
.pill.outline { background: transparent; border: 1px solid rgba(31, 31, 31, 0.25); color: var(--ss-ink); }

/* pill row layout */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* demographics ring panel uses serif-stat treatment */
.demo-rings .stat .v { font-family: 'DM Serif Display', Georgia, serif; font-size: 28px; }
.demo-rings .stat .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ss-green); font-weight: 600; margin-top: 4px; }

/* mobile override — undo structural 2px letter-spacing reapplication at ≤520px */
@media (max-width: 520px) {
  .hero h1 { letter-spacing: -0.01em; }
}

/* DM Serif Display only ships at weight 400; structural 800 weight on these
   selectors causes browser-synthesized bold — pin them at 400 to avoid synthesis */
.section h2,
.bottom-hero h2 {
  font-weight: 400;
}

/* === Lightbox (image viewer modal) === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  /* Allow native pinch-zoom on mobile and scroll-pan when image overflows. */
  overflow: auto;
  touch-action: pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
.lightbox.open { display: flex; }
/* Clip-box for the image: keeps the pad-zoom transform from painting
   over the adjacent details panel. */
.lightbox-img-wrap {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  line-height: 0;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  user-select: none;
  transform-origin: 50% 50%;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
  display: block;
}
/* Desktop click-to-zoom: jump from fit-to-viewport to natural size; the
   overlay becomes scrollable so the user can pan around the image. */
.lightbox.zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}
.lightbox.zoomed .lightbox-img-wrap {
  /* In natural-size pan mode, the lightbox itself scrolls — the wrap must
     stop clipping or the user can't pan the full image. */
  overflow: visible;
  max-width: none;
  max-height: none;
  display: block;
}
.lightbox.zoomed .lightbox-img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
  /* Override the pad-zoom transform so natural-size pan mode works. */
  transform: none !important;
  transition: none;
}
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 22px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px 12px;
  transition: opacity .15s ease;
  z-index: 1001;
}
.lightbox-close:hover { opacity: 1; }

/* Side-by-side image + details (only when a pad is opened) */
.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
}
.lightbox.with-details .lightbox-img-wrap {
  max-width: calc(100% - 380px - 28px);
  max-height: 90vh;
}
.lightbox-details {
  width: 380px;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  color: var(--ink);
  border-radius: 4px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
  flex: 0 0 auto;
}
.lightbox-details .lb-title {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: .5px;
  color: var(--navy);
}
.lightbox-details .lb-tag {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.lightbox-details .lb-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}
.lightbox-details .lb-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}
.lightbox-details .lb-specs .k {
  color: var(--muted);
  flex: 0 0 92px;
  font-weight: 600;
}
.lightbox-details .lb-specs .v {
  color: var(--ink);
  text-align: right;
  flex: 1 1 auto;
}
.lightbox-details .lb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lightbox-details .lb-actions .btn { text-align: center; }
.lightbox-details .lb-actions .lb-more {
  text-align: center;
  font-size: 13px;
  color: var(--red);
  text-decoration: none;
  margin-top: 4px;
}
.lightbox-details .lb-actions .lb-more:hover { text-decoration: underline; }

/* While zoomed (natural-size image), hide the details panel so the user
   can pan the full image without the side panel competing for space. */
.lightbox.zoomed .lightbox-content { display: block; }
.lightbox.zoomed .lightbox-details { display: none; }
.lightbox.zoomed.with-details .lightbox-img-wrap { max-width: none; max-height: none; }
.lightbox.zoomed.with-details .lightbox-img { max-width: none; max-height: none; }

@media (max-width: 900px) {
  .lightbox-content { flex-direction: column; gap: 16px; }
  .lightbox.with-details .lightbox-img-wrap { max-width: 100%; max-height: 55vh; }
  .lightbox-details { width: 100%; max-width: 100%; max-height: 40vh; }
}
@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 8px; right: 12px; font-size: 30px; }
  .lightbox-details { padding: 16px; }
  .lightbox-details .lb-title { font-size: 18px; }
}
