/* Wayback fallback: Google Maps UI is dead; show page content instead of a blank white map. */

body {
  overflow: auto !important;
  height: auto !important;
  background: #fff !important;
  color: #111;
}

#map_canvas,
#imageLoader,
#projectNameMessage,
#photos_upload_wrapper {
  display: none !important;
}

.mainWrapper {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}

.mainContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  position: relative;
  z-index: 1;
}

#mainMenu {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: 2;
  margin: 0 0 28px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#mainMenu > li {
  float: none !important;
  height: auto !important;
}

/* SEO dump headings — keep for crawlers, hide visually */
.heading1,
.heading2 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

/* Original content was stored in a 10×10 hidden box for the map overlays */
#pageContents {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  overflow: visible !important;
  margin: 0 0 40px;
}

#pageContents > div {
  display: block;
  margin: 0 0 36px;
  padding: 20px 22px;
  background: #fff;
  border-left: 4px solid #feed01;
  box-sizing: border-box;
}

#pageContents > div[visibility="0"],
#pageContents > div:empty {
  display: none !important;
}

#pageContents > div::before {
  content: attr(menutitle);
  display: block;
  font-family: AlterGothic, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
  text-transform: lowercase;
}

.newsWrapper .newsItem {
  overflow: hidden;
}

.newsItem .column1,
.newsItem .column2 {
  float: none !important;
  width: auto !important;
  max-width: 100%;
}

.newsItem .newsName {
  text-align: left !important;
  font-size: 26px !important;
  line-height: 1.25 !important;
  margin-bottom: 8px !important;
}

.newsItem .newsDesc {
  display: block !important;
}

.newsItem .newsPerex {
  display: none !important;
}

#projects {
  display: block !important;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  columns: 2;
  column-gap: 28px;
}

#projects li {
  break-inside: avoid;
  margin: 0 0 8px;
}

#projects a {
  color: #111;
  text-decoration: none;
  font-family: AlterGothic, Arial, sans-serif;
  font-size: 18px;
}

#projects a:hover {
  background: #feed01;
}

.MZlogo,
.facebook,
#kontaktWrapper {
  position: static !important;
  display: inline-block;
  margin: 12px 16px 12px 0;
  z-index: 1;
}

.footerWrapper {
  display: block !important;
}

/* Detail popup from old JS — keep usable if menu click still fires */
#detailContentWrapper {
  max-width: min(585px, calc(100vw - 32px));
  max-height: 80vh;
  overflow: auto !important;
}

@media (max-width: 720px) {
  #projects {
    columns: 1;
  }

  #mainMenu > li a,
  #mainMenu > li.mzjbc,
  .submenu a {
    font-size: 22px !important;
    height: auto !important;
    line-height: 1.3 !important;
    padding: 8px 12px !important;
  }
}
