/* Community page additions (Nov 9, 2026): nearby communities map and links, and the in-depth
   section on the major community pages. Uses the site's own variables from site.css. */

/* Nearby */
.nearby .nb-map {
  position: relative;
  height: clamp(320px, 52vw, 460px);
  margin: 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--raised);
}
.nearby .nb-map .leaflet-container { font-family: var(--sans); }
.nearby .nb-map-wait {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 24px; text-align: center; color: var(--muted); font-size: 14px;
}
.nearby .nb-map.nb-fail { height: auto; min-height: 0; padding: 18px 20px; }
.nearby .nb-map.nb-fail .nb-map-wait { position: static; }
.nearby .nb-legend { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.nb-pin-wrap { background: none; border: 0; }
.nb-pin {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--black); color: var(--white);
  border: 2px solid var(--white);
  font: 600 12px/1 var(--sans);
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.nb-pin-me { background: var(--gold); color: var(--black); border-color: var(--black); font-size: 16px; }
.leaflet-popup-content .nb-pop-where { margin: 0 0 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6b675f; }
.leaflet-popup-content .nb-pop-name { margin: 0; font-weight: 600; font-size: 14px; }
.leaflet-popup-content .nb-pop-name a { color: #0b0b0c; text-decoration: underline; }
.leaflet-popup-content .nb-pop-b { margin: 2px 0 0; font-size: 12px; color: #5e5a52; }
.leaflet-popup-content .nb-pop-price { margin: 4px 0 0; font-size: 13px; }
.leaflet-popup-content .nb-pop-me { margin: 4px 0 0; font-size: 12px; color: #7a5c00; font-weight: 600; }
.nearby .nb-sub { margin: 34px 0 6px; }
.nearby .collection .nb-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-right: 8px; border-radius: 50%;
  background: var(--white); color: var(--black); font: 600 12px/1 var(--sans);
  vertical-align: middle;
}
.nearby .collection .nb-dist { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.nearby .nb-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.nearby .nb-links a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.nearby .nb-links a:hover { color: var(--white); }

/* In depth (major community pages) */
.deep { border-top: 1px solid var(--line); }
.deep .deep-grid { display: grid; grid-template-columns: 1fr; gap: 26px 48px; margin-top: 30px; }
@media (min-width: 860px) { .deep .deep-grid { grid-template-columns: 1fr 1fr; } }
.deep .deep-item h3 { margin: 0 0 10px; }
.deep .deep-item p { margin: 0; line-height: 1.7; }
.deep .deep-schools { margin-top: 34px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; }
.deep .deep-schools h3 { margin: 0 0 8px; }
.deep .deep-schools ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.8; }
.deep .deep-schools .fine { margin-top: 12px; }
.deep .deep-offer { margin-top: 26px; padding: 18px 22px; border-left: 3px solid var(--gold); background: var(--raised); }
.deep .deep-offer p { margin: 0; line-height: 1.65; }
.deep .deep-offer .fine { margin-top: 10px; }
.deep .deep-faq { margin-top: 38px; }

/* ---------- Builder media (Nov 21, 2026): gallery, video and exclusive details box, as on the South Florida guide ---------- */
.media-sec { background: var(--black); }
.media-sec .lede { color: #d9d6cf; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0 12px; }
.gal-t { position: relative; display: block; padding: 0; border: 0; background: var(--raised); cursor: zoom-in; overflow: hidden; aspect-ratio: 3 / 2; }
.gal-t img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-t:hover img { transform: scale(1.04); }
.gal-t span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font: 500 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .25s; }
.gal-t:hover span, .gal-t:focus-visible span { opacity: 1; }
.gal-big { grid-column: span 2; grid-row: span 2; }
.media-sec .credit { margin: 0 0 34px; font-size: 12px; line-height: 1.55; color: var(--muted); max-width: 60em; }
.vid-h { margin: 8px 0 16px; }
.vids { display: grid; gap: 18px; margin-bottom: 40px; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .25s; }
.yt:hover img { opacity: 1; }
.yt i { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: rgba(3,3,3,.72); border: 1.5px solid var(--gold); }
.yt i::after { content: ""; position: absolute; left: 30px; top: 23px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--white); }
.yt-sm i { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.yt-sm i::after { left: 22px; top: 17px; border-width: 11px 0 11px 17px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-cap { margin: 8px 0 0; font-size: 14px; color: #ecebe7; }
.vid-cap span { display: block; font-size: 11.5px; color: var(--muted); }
.vid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.xbox { border: 1px solid var(--line); background: var(--raised); padding: clamp(22px, 3.5vw, 36px); }
.xbox .eyebrow { color: var(--gold); margin-bottom: 10px; }
.xbox h3.serif { font-size: clamp(19px, 2.3vw, 26px); letter-spacing: .06em; }
.xbox p { margin: 12px 0 20px; color: #d9d6cf; max-width: 46em; }
.xbox .xlinks { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.xbox .xlinks a { color: #d9d6cf; }
@media (max-width: 760px) {
  .gal { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gal-t span { opacity: 1; font-size: 9.5px; letter-spacing: .08em; }
  .vid-row { grid-template-columns: 1fr; }
}
/* Lightbox */
.lbx { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; background: rgba(3,3,3,.94); padding: 56px 16px; }
.lbx[hidden] { display: none; }
.lbx figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lbx img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.lbx figcaption { margin-top: 12px; font-size: 13px; color: #d9d6cf; text-align: center; }
.lbx figcaption span { color: var(--muted); }
.lbx button { position: absolute; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 34px; width: 56px; height: 56px; }
.lbx .lbx-x { top: 8px; right: 8px; }
.lbx .lbx-p { left: 4px; top: 50%; margin-top: -28px; }
.lbx .lbx-n { right: 4px; top: 50%; margin-top: -28px; }
