.live-directory-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.feed-list {
  border: 1px solid rgba(241, 237, 223, .18);
}

.feed-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px 132px;
  gap: 1rem;
  align-items: center;
  min-height: 104px;
  padding: 1rem;
  border-bottom: 1px solid rgba(241, 237, 223, .16);
  transition: background-color .18s, border-color .18s;
}

.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: rgba(255, 255, 255, .045); }
.feed-row:focus-within { outline: 2px solid #ff4d22; outline-offset: -2px; }
.feed-row__identity h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.feed-row__identity p { margin-top: .35rem; color: rgba(241, 237, 223, .65); font-size: .78rem; line-height: 1.4; }
.feed-row__primary { color: inherit; text-decoration: none; }
.feed-row__primary::after { position: absolute; inset: 0; content: ""; }
.feed-row__status { display: grid; gap: .3rem; justify-items: end; font-family: "JetBrains Mono", monospace; text-align: right; text-transform: uppercase; }
.feed-row__status strong { color: #f1eddf; font-size: .72rem; letter-spacing: .04em; }
.feed-row__status span { color: rgba(241, 237, 223, .48); font-size: .61rem; }
.feed-row__badges { display: grid; gap: .35rem; justify-items: end; position: relative; z-index: 2; }
.feed-badge { display: inline-block; max-width: 132px; padding: .26rem .58rem; border-radius: 999px; font: 600 .59rem/1 "JetBrains Mono", monospace; text-align: center; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-badge--outline { border: 1px solid rgba(241, 237, 223, .48); color: #f1eddf; }
.feed-badge--accent { background: rgba(255, 77, 34, .22); color: #ff5a37; }
.feed-badge--solid { background: rgba(241, 237, 223, .28); color: #f1eddf; }
.feed-all-link { display: inline-block; margin-top: 1.1rem; color: rgba(241, 237, 223, .7); font: 600 .68rem/1.4 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.feed-all-link:hover { color: #ff4d22; }

.spot-card {
  position: relative;
  border: 2px solid;
  transition: background-color .2s, border-color .2s;
}
.spot-card--dark { border-color: rgba(241, 237, 223, .72); color: #f1eddf; }
.spot-card--dark:hover { border-color: #ff4d22; }
.spot-card--light { border-color: #171714; color: #171714; }
.spot-card--light:hover { background: rgba(255, 255, 255, .4); }
.spot-card--compact { min-height: 190px; }
.spot-card--full { min-height: 230px; }
.spot-card__muted--dark { color: rgba(241, 237, 223, .65); }
.spot-card__primary { color: inherit; text-decoration: none; }
.spot-card__primary::after { position: absolute; inset: 0; content: ""; }
.spot-card__secondary { position: relative; z-index: 2; }
.spot-card:focus-within { outline: 3px solid #ff4d22; outline-offset: 2px; }

.live-directory-map {
  width: 100%;
  min-height: 560px;
  border: 2px solid rgba(241, 237, 223, .72);
  background: #d8d1c2;
  filter: saturate(.72) contrast(1.04);
}
.directory-marker { background: transparent; border: 0; }
.directory-marker span { display: block; width: 18px; height: 18px; border: 3px solid #171714; border-radius: 50%; background: #ff4d22; box-shadow: 2px 2px 0 rgba(23, 23, 20, .8); }
.directory-popup { display: grid; gap: .45rem; max-width: 240px; font-family: Inter, sans-serif; }
.directory-popup strong { font-size: .9rem; line-height: 1.2; }
.directory-popup span { font: 10px/1.45 "JetBrains Mono", monospace; color: rgba(23, 23, 20, .68); }
.directory-popup__link { margin-top: .2rem; color: #171714; font: 700 10px/1.3 "JetBrains Mono", monospace; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.directory-popup__link:hover { color: #e32929; }
.live-directory-map .leaflet-popup-content-wrapper,
.live-directory-map .leaflet-popup-tip { border-radius: 0; background: #f1eddf; color: #171714; }
.live-directory-map .leaflet-popup-content-wrapper { border: 2px solid #171714; box-shadow: 4px 4px 0 #171714; }
.live-directory-map .leaflet-control-zoom a { border-radius: 0 !important; background: #f1eddf; color: #171714; }
.live-directory-map .leaflet-control-attribution { font-size: 9px; background: rgba(241, 237, 223, .88); }

.floating-language {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2000;
}
.floating-language__control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 2px solid #171714;
  border-radius: 2px;
  background: #f1eddf;
  box-shadow: 5px 5px 0 #171714;
  font-family: "JetBrains Mono", monospace;
}
.floating-language__label {
  position: absolute;
  top: -10px;
  left: -8px;
  padding: 2px 6px;
  transform: rotate(-6deg);
  border: 1px solid #171714;
  background: #e32929;
  color: #f1eddf;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
  pointer-events: none;
}
.floating-language__button {
  border: 0;
  background: transparent;
  color: #171714;
  padding: .42rem .64rem;
  cursor: pointer;
  font: 700 .72rem/1 "JetBrains Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .15s, color .15s;
}
.floating-language__button:hover { background: rgba(23, 23, 20, .1); }
.floating-language__button.active { background: #171714; color: #f1eddf; }
.floating-language__button:focus-visible { outline: 2px solid #e32929; outline-offset: 2px; }

.detail-hero { border-bottom: 4px solid #171714; }
.detail-hero__meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; font: 600 .65rem/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.detail-hero__meta span { border: 1px solid rgba(241, 237, 223, .55); padding: .38rem .55rem; }
.detail-hero h1 { max-width: 16ch; font-size: clamp(2.8rem, 7vw, 6.4rem); font-weight: 800; letter-spacing: -.06em; line-height: .92; text-transform: uppercase; }
.detail-hero > div > p { max-width: 62ch; margin-top: 1.5rem; color: rgba(241, 237, 223, .72); font: .83rem/1.6 "JetBrains Mono", monospace; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr); gap: 2rem; align-items: start; }
.detail-content { display: grid; gap: 1.5rem; }
.detail-panel { border: 2px solid #171714; padding: clamp(1.25rem, 3vw, 2rem); }
.detail-label { display: inline-block; margin-bottom: 1.5rem; border: 1px solid #171714; padding: .3rem .48rem; font: 600 .62rem/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.detail-excerpt { font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.45; }
.detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(23, 23, 20, .3); }
.detail-facts div { display: grid; gap: .45rem; }
.detail-facts span { color: rgba(23, 23, 20, .58); font: .6rem/1.3 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.detail-facts strong { font-size: .88rem; }
.detail-sources { display: grid; border-top: 1px solid #171714; }
.detail-sources a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid #171714; color: inherit; text-decoration: none; }
.detail-sources a:hover strong { color: #e32929; }
.detail-sources span { font: .64rem/1 "JetBrains Mono", monospace; }
.detail-map-panel { position: sticky; top: 1.5rem; border: 2px solid #171714; background: #171714; color: #f1eddf; }
.detail-map-panel iframe { display: block; width: 100%; height: 520px; border: 0; background: #d8d1c2; }
.detail-map-actions { display: flex; justify-content: flex-start; gap: 2rem; padding: .8rem 1rem; font: 600 .65rem/1.3 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.detail-map-actions a { color: #f1eddf; text-decoration: underline; text-underline-offset: 3px; }
.detail-map-actions a:hover { color: #ff4d22; }

@media (max-width: 1023px) {
  .live-directory-layout,
  .detail-layout { grid-template-columns: 1fr; }
  .live-directory-map { min-height: 460px; }
  .detail-map-panel { position: static; }
}

@media (max-width: 720px) {
  .feed-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 112px; }
  .feed-row__status { display: none; }
  .feed-row__badges { max-width: 125px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-map-panel iframe { height: 400px; }
}

@media (max-width: 640px) {
  .live-directory-map { min-height: 360px; }
  .floating-language { right: .85rem; bottom: .85rem; }
  .floating-language__button { padding: .4rem .52rem; font-size: .65rem; }
  .feed-row { padding: .9rem; gap: .75rem; }
  .feed-row__identity h3 { font-size: .95rem; }
  .feed-row__identity p { font-size: .7rem; }
  .feed-badge { max-width: 112px; font-size: .53rem; }
}
