/* =====================================================================
   MAPS-HUB-LOCK 2026-09-24 — PROTECTED SECTION STYLESHEET
   =====================================================================
   DO NOT overwrite, delete, or unlink this file.
   Load AFTER adaptive.css (and after readability-lock / side-column).
   Sweeps A/B/C: never FTP this path; never strip its <link> from main.tpl;
   never full-STOR adaptive.css hoping maps tip blocks will survive.
   Owners: maps hub bc-53590c54 · expand bc-5948fd82 · anti-otkat bc-6329c5b5
   Marker search: MAPS-HUB-LOCK 2026-09-24
   Live HTML: dle_static googlemaps (#maps-hub-2026) — DB, not git tip.
   Canonical list: internal/protected-sections-lock.md (project store)
   ===================================================================== */

/* =====================================================================
   MAPS HUB LOCK (separate stylesheet) — 2026-09-24
   Loaded AFTER adaptive.css / readability-lock / side-column from main.tpl.
   Densify/sweep peers that only append to adaptive.css cannot bury hub layout.
   Owns: #maps-hub-2026 card grid + .map-page shells (OSM/Yandex/searhmap/streetmap).
   Preserve: readability-lock floors, header date, right sidebar, /vozduh/, veterans lightbox.
   No 2ГИС. No font shrink below 14px body/CTA. Peer bc-53590c54 owns hub HTML/product.
   ===================================================================== */


/* Hard grid — wins even if adaptive tip loses MAPS blocks */
#maps-hub-2026 .maps-hub__grid,
#maps-hub-2026 .maps-hub__grid--4 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 !important;
}
@media (min-width: 720px) {
  #maps-hub-2026 .maps-hub__grid,
  #maps-hub-2026 .maps-hub__grid--4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
}
#maps-hub-2026 .maps-card {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  border: 1px solid #d5deea !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: 0 1px 2px rgba(26,42,68,.06) !important;
}
#maps-hub-2026 .maps-card__media {
  float: none !important;
  width: 100% !important;
  height: 148px !important;
  min-height: 148px !important;
  overflow: hidden !important;
}
#maps-hub-2026 .maps-card__media img {
  float: none !important;
  width: 100% !important;
  height: 148px !important;
  object-fit: cover !important;
  margin: 0 !important;
  border: 0 !important;
}
#maps-hub-2026 .maps-card__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 14px !important;
  border-radius: 8px !important;
  background: #1f4f9c !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.mid_col:has(#maps-hub-2026) .post_content > br { display: none !important; }
.mid_col:has(#maps-hub-2026) .post_content div[align] {
  float: none !important;
  text-align: left !important;
}
@media (max-width: 719px) {
  #maps-hub-2026 .maps-card__cta { width: 100% !important; }
}

/* === MAPS HUB REDESIGN: /googlemaps.html section shell 2026-09-24 === */
/* NOTE: append-only AFTER tip. Presentation only — no map data overhaul. */
/* Preserve A-R1* / city-dir / C77–C90 / readability-lock.css. No font shrink. */
/* No 2ГИС CTAs. No Flash/dev notes. weather GLOBALS-only. Header chrome untouched. */
/* searhmap/streetmap keep existing map pages; hub is gallery/cards only. */

.mid_col:has(#maps-hub-2026) .post_title,
.mid_col:has(#maps-hub-2026) #news-title {
  font-size: 22px !important;
  line-height: 1.3 !important;
  margin: 0 0 12px !important;
  color: #1a2a44;
}

.mid_col:has(#maps-hub-2026) #archive-note-maps-2026,
.mid_col:has(#maps-hub-2026) .archive-note#archive-note-maps-2026 {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 12px 14px !important;
  border-left: 3px solid #2f6fed !important;
  background: #f3f7fc !important;
  color: #243248 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.mid_col:has(#maps-hub-2026) #archive-note-maps-2026 strong {
  font-size: 14px !important;
  color: #1a2a44 !important;
}

.mid_col:has(#maps-hub-2026) #archive-note-maps-2026 a {
  color: #1f4f9c !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#maps-hub-2026 {
  margin: 0 0 18px;
}

#maps-hub-2026 .maps-hub__intro {
  margin: 0 0 16px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #2a3a52 !important;
}

#maps-hub-2026 .maps-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  #maps-hub-2026 .maps-hub__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

#maps-hub-2026 .maps-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

#maps-hub-2026 .maps-card__media {
  display: block;
  background: linear-gradient(160deg, #e8eef6 0%, #d5e3f4 55%, #c5d6ea 100%);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#maps-hub-2026 .maps-card__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  object-fit: cover;
  border: 0 !important;
}

#maps-hub-2026 .maps-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1 1 auto;
}

#maps-hub-2026 .maps-card__title {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #1a2a44 !important;
}

#maps-hub-2026 .maps-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}

#maps-hub-2026 .maps-card__title a:hover,
#maps-hub-2026 .maps-card__title a:focus-visible {
  color: #1f4f9c !important;
  text-decoration: underline !important;
}

#maps-hub-2026 .maps-card__blurb {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #3a4a62 !important;
  flex: 1 1 auto;
}

#maps-hub-2026 .maps-card__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 14px !important;
  border-radius: 8px;
  background: #1f4f9c !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 0 !important;
}

#maps-hub-2026 .maps-card__cta:hover,
#maps-hub-2026 .maps-card__cta:focus-visible {
  background: #163a75 !important;
  color: #fff !important;
  outline: 2px solid #1f4f9c;
  outline-offset: 2px;
}

/* Kill leftover float/br spam only on redesigned hub */
.mid_col:has(#maps-hub-2026) .post_content > br {
  display: none !important;
}

.mid_col:has(#maps-hub-2026) .post_content img {
  float: none !important;
}

@media (max-width: 719px) {
  .mid_col:has(#maps-hub-2026) .post_title,
  .mid_col:has(#maps-hub-2026) #news-title {
    font-size: 20px !important;
  }
  #maps-hub-2026 .maps-hub__intro {
    font-size: 14px !important;
  }
  #maps-hub-2026 .maps-card__title {
    font-size: 17px !important;
  }
  #maps-hub-2026 .maps-card__cta {
    width: 100%;
    box-sizing: border-box;
  }
}

/* NOTE: MAPS HUB — floors ≥14px body/blurb/cta/note. No lock unlink. No /vozduh/ touch. */

/* === MAPS EXPAND: OSM+Yandex hub cards + map-page shells 2026-09-24 === */
/* NOTE: append-only AFTER tip. No 2ГИС. No Flash/API tech notes. */
/* Preserve MAPS HUB / A-R1* / C77–C93 / readability-lock.css. No font shrink. */
/* Header / AQ / right-sidebar / bolnici / bazi / veterans untouched. weather GLOBALS-only. */

@media (min-width: 900px) {
  #maps-hub-2026 .maps-hub__grid--4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .mid_col:has(#maps-hub-2026) {
    /* keep mid column readable; 2x2 grid already set at 900 */
  }
  #maps-hub-2026 .maps-hub__grid--4 {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

#maps-hub-2026 .maps-card__media--osm,
#maps-hub-2026 .maps-card__media--yandex {
  background: linear-gradient(160deg, #e4eef5 0%, #d0e0ec 100%);
}

#maps-hub-2026 .maps-card__media--yandex img,
#maps-hub-2026 .maps-card__media--osm img {
  object-fit: cover;
}

/* --- Map page shell (searhmap / streetmap / osmmap / yandexmap) --- */
.mid_col:has(.map-page) .post_title,
.mid_col:has(.map-page) #news-title {
  font-size: 22px !important;
  line-height: 1.3 !important;
  margin: 0 0 12px !important;
  color: #1a2a44;
}

.mid_col:has(.map-page) .post_content > br,
.mid_col:has(.map-page) .full-story .post_content > br {
  display: none !important;
}

.map-page {
  margin: 0 0 18px;
}

.map-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 14px;
}

.map-page__nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #d0dbe8;
  border-radius: 8px;
  background: #f5f8fc;
  color: #1f4f9c !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.map-page__nav a:hover,
.map-page__nav a:focus-visible {
  background: #e8f0fa;
  outline: 2px solid #1f4f9c;
  outline-offset: 1px;
}

.map-page__lead {
  margin: 0 0 14px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #2a3a52 !important;
}

.map-page__frame {
  position: relative;
  width: 100%;
  margin: 0 0 12px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef6;
  min-height: 280px;
}

.map-page__frame iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 480px;
  border: 0 !important;
  margin: 0;
}

#map-page-osm .map-page__frame iframe,
#map-page-yandex .map-page__frame iframe {
  height: 520px;
}

.map-page__ext {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #3a4a62 !important;
}

.map-page__ext a {
  color: #1f4f9c !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hide leftover tech archive notes on polished map pages */
.mid_col:has(.map-page) #archive-note-maps-2026 {
  display: none !important;
}

@media (max-width: 719px) {
  .mid_col:has(.map-page) .post_title,
  .mid_col:has(.map-page) #news-title {
    font-size: 20px !important;
  }
  .map-page__lead {
    font-size: 14px !important;
  }
  .map-page__frame iframe,
  #map-page-osm .map-page__frame iframe,
  #map-page-yandex .map-page__frame iframe {
    height: 360px;
  }
  .map-page__nav a {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* NOTE: MAPS EXPAND — floors ≥14px. No lock unlink. No /vozduh/ touch. */

/* === MAPS HUB VISUAL FIX: square 2×2 cards 2026-09-24 === */
/* NOTE: append-only AFTER tip. Restore polish after CSS tip race wiped MAPS HUB. */
/* Keep OSM+Yandex cards. No 2ГИС. No tech notes. No header/AQ/sidebar fight. */
/* readability-lock floors preserved — no font shrink. */

.mid_col:has(#maps-hub-2026) .post_content.cf {
  overflow: visible;
}

#maps-hub-2026 {
  margin: 0 0 20px;
  clear: both;
}

#maps-hub-2026 .maps-hub__intro {
  margin: 0 0 14px !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #2a3a52 !important;
}

#maps-hub-2026 .maps-hub__grid,
#maps-hub-2026 .maps-hub__grid--4 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

@media (min-width: 520px) {
  #maps-hub-2026 .maps-hub__grid,
  #maps-hub-2026 .maps-hub__grid--4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
}

#maps-hub-2026 .maps-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  min-width: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #d5deea !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  float: none !important;
}

#maps-hub-2026 .maps-card__media {
  display: block !important;
  position: relative;
  flex: 0 0 auto;
  width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  min-height: 148px;
  max-height: none;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(160deg, #e7eef6 0%, #d4e1ef 100%) !important;
  float: none !important;
}

#maps-hub-2026 .maps-card__media img,
.mid_col:has(#maps-hub-2026) #maps-hub-2026 .maps-card__media img,
.mid_col:has(#maps-hub-2026) .post_content #maps-hub-2026 img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  float: none !important;
  object-fit: cover !important;
  object-position: center !important;
  vertical-align: top;
}

#maps-hub-2026 .maps-card__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  flex: 1 1 auto;
  padding: 12px 14px 14px !important;
  min-height: 0;
}

#maps-hub-2026 .maps-card__title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #1a2a44 !important;
}

#maps-hub-2026 .maps-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}

#maps-hub-2026 .maps-card__blurb {
  margin: 0 !important;
  flex: 1 1 auto;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #3a4a62 !important;
}

#maps-hub-2026 .maps-card__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin-top: 4px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  background: #1f4f9c !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 0 !important;
  text-align: center;
}

#maps-hub-2026 .maps-card__cta:hover,
#maps-hub-2026 .maps-card__cta:focus-visible {
  background: #163a75 !important;
  color: #fff !important;
}

.mid_col:has(#maps-hub-2026) #archive-note-maps-2026 {
  display: block !important;
  margin: 0 0 12px !important;
  padding: 12px 14px !important;
  border-left: 3px solid #2f6fed !important;
  background: #f3f7fc !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #243248 !important;
}

.mid_col:has(#maps-hub-2026) .post_title,
.mid_col:has(#maps-hub-2026) #news-title {
  font-size: 22px !important;
  line-height: 1.3 !important;
  margin: 0 0 12px !important;
}

/* Kill legacy float/align leftovers inside hub only */
.mid_col:has(#maps-hub-2026) .post_content > br { display: none !important; }
.mid_col:has(#maps-hub-2026) .post_content div[align],
.mid_col:has(#maps-hub-2026) .post_content [style*="float"] {
  float: none !important;
  text-align: left !important;
}

@media (max-width: 519px) {
  .mid_col:has(#maps-hub-2026) .post_title,
  .mid_col:has(#maps-hub-2026) #news-title { font-size: 20px !important; }
  #maps-hub-2026 .maps-hub__intro { font-size: 14px !important; }
  #maps-hub-2026 .maps-card__title { font-size: 16px !important; }
  #maps-hub-2026 .maps-card__media { min-height: 160px; }
}

/* NOTE: MAPS HUB VISUAL FIX — 2×2 equal cards, ≥14px, OSM+Yandex kept. */

/* NOTE: MAPS HUB LOCK end — sweep-proof. Do not unlink from main.tpl. */


/* === MAPS HUB EQUAL CARDS 2026-09-24c === */
/* Even card chrome after lock; peer HTML untouched. */
#maps-hub-2026 .maps-hub__grid,
#maps-hub-2026 .maps-hub__grid--4 {
  align-items: stretch !important;
}
#maps-hub-2026 .maps-card {
  height: 100% !important;
  min-height: 100% !important;
}
#maps-hub-2026 .maps-card__media,
#maps-hub-2026 .maps-card__media--osm,
#maps-hub-2026 .maps-card__media--yandex {
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  flex: 0 0 150px !important;
}
#maps-hub-2026 .maps-card__media img {
  height: 150px !important;
  max-height: 150px !important;
  object-fit: cover !important;
  object-position: center !important;
}
#maps-hub-2026 .maps-card__body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 148px !important;
  padding: 14px !important;
}
#maps-hub-2026 .maps-card__blurb {
  flex: 1 1 auto !important;
  margin: 0 0 10px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
#maps-hub-2026 .maps-card__cta {
  margin-top: auto !important;
}
#maps-hub-2026 .maps-card__title {
  font-size: 17px !important;
  line-height: 1.3 !important;
  min-height: 2.6em !important;
}
@media (max-width: 719px) {
  #maps-hub-2026 .maps-card__title { min-height: 0 !important; font-size: 17px !important; }
  #maps-hub-2026 .maps-card__media,
  #maps-hub-2026 .maps-card__media img {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
  }
}
/* NOTE: MAPS HUB EQUAL CARDS end */
