/* Keep the language control beside the primary links at desktop widths. */
@media (min-width: 1200px) {
  body.tvo-layout #headerSlider .top-user-menu > .container {
    width: calc(100% - 270px);
    max-width: 1280px;
    margin-inline: auto;
    padding: 0;
    transform: translateX(120px);
  }

  body.tvo-layout #headerSlider .top-user-menu > .container > .row {
    display: block;
    margin: 0;
  }

  body.tvo-layout #headerSlider .top-user-menu .topbar-controls,
  body.tvo-layout #headerSlider .top-user-menu .col-md-1 {
    display: none;
  }

  body.tvo-layout #headerSlider .top-user-menu .col-md-11 {
    float: none;
    width: 100%;
    padding: 0;
  }

  body.tvo-layout #headerSlider #primary-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 1.05vw, 19px);
    margin: 0;
    padding: 0;
  }

  body.tvo-layout #headerSlider #primary-menu > li {
    min-width: 0;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  body.tvo-layout #headerSlider #primary-menu > li > a {
    padding: 8px 0;
    white-space: normal;
    overflow-wrap: normal;
    font-size: clamp(11px, .72vw, 13px) !important;
    line-height: 1.3;
  }

  body.tvo-layout #headerSlider #primary-menu > .tvo-language-v11 {
    flex: 0 0 auto;
  }

  body.tvo-language-page-v11.tvo-home #headerSlider .headerBlocks > .col-md-3 > div[id^="novinka_"] {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  body.tvo-language-page-v11.tvo-home #headerSlider .headerBlocks .objednavka {
    margin-top: auto;
  }
}

@media (min-width: 1520px) {
  body.tvo-layout #headerSlider #primary-menu {
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) and (max-width: 1519px) {
  body.tvo-layout #headerSlider .top-user-menu > .container {
    width: calc(100% - 260px);
    margin-left: 250px;
    margin-right: 10px;
    transform: none;
  }
}

/* The original full photographs still load as the reader approaches them. */
body.tvo-home #mainContent img.tvo-photo-v12 {
  max-width: 100%;
  height: auto !important;
  background-color: #eee8e1;
  background-size: cover;
  background-position: center;
}

.tvo-promo-v12 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 112px;
  padding: 16px 18px;
  background: #35231a;
  color: #fff;
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.tvo-promo-v12 .fa {
  flex: 0 0 auto;
  color: #f4bf19;
  font-size: 27px;
}

body.tvo-home #map .tvo-map-v12 {
  max-width: 1140px;
  margin: 0 auto 18px;
  padding: 0 15px;
  color: #3a2719;
}

body.tvo-language-page-v11.tvo-home #map {
  filter: none;
}

.tvo-map-v12 summary {
  padding: 12px 16px;
  border: 1px solid #e7ded2;
  border-radius: 5px;
  background: #f8f5ef;
  cursor: pointer;
  font-weight: 600;
}

.tvo-map-v12 iframe {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.tvo-map-v12 p {
  margin: 8px 0 0;
}

/* November 2026 mobile polish: keep language choice visible in the brand bar. */
#headerSlider #primary-menu > li.tvo-language-v11[hidden] {
  display: none !important;
}

@media (max-width: 1199px) {
  body.tvo-layout #headerSlider .top-user-menu {
    pointer-events: none;
  }

  body.tvo-layout #headerSlider .top-user-menu .col-md-11 {
    pointer-events: auto;
  }

  body.tvo-layout #headerSlider .top-user-menu .topbar-controls {
    z-index: 70 !important;
    gap: 9px;
    justify-content: flex-end !important;
    pointer-events: auto;
  }

  body.tvo-layout #headerSlider .top-user-menu .topbar-controls > .right-user-block {
    display: none !important; /* Legacy, empty language placeholder. */
  }

  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language {
    display: block;
    flex: 0 0 auto;
    position: relative;
    list-style: none;
    pointer-events: auto;
  }

  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language details {
    position: relative;
  }

  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language summary {
    justify-content: center;
    width: 60px;
    min-width: 60px;
    min-height: 46px;
    padding: 8px 6px;
    color: #f9c72d;
    background: #2b1b14;
    border: 1px solid #a48552;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
  }

  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language summary:focus-visible,
  body.tvo-layout #headerSlider .top-user-menu .menu-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language .tvo-language-options-v11 {
    position: absolute !important;
    z-index: 100 !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    width: 184px !important;
    max-width: calc(100vw - 24px);
    padding: 7px !important;
    background: #fff !important;
    border: 1px solid #d7c2a4 !important;
    border-radius: 6px;
    box-shadow: 0 9px 25px rgba(0,0,0,.35) !important;
  }

  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language .tvo-language-options-v11 a {
    display: block;
    padding: 10px 11px !important;
    color: #322219 !important;
    background: #fff;
    border: 0 !important;
    border-radius: 4px;
    font-size: 15px !important;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
  }

  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language .tvo-language-options-v11 a:hover,
  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language .tvo-language-options-v11 a:focus-visible,
  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language .tvo-language-options-v11 a[aria-current] {
    color: #3b2619 !important;
    background: #f8ebcb !important;
  }

  body.tvo-layout #headerSlider .top-user-menu .top-user-main-menu li a {
    text-align: left !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* The original justified text creates conspicuous gaps between words on phones. */
  body.tvo-layout #mainContent p[style*="justify"],
  body.tvo-layout #mainContent li[style*="justify"],
  body.tvo-layout .main-generated-content p[style*="justify"],
  body.tvo-layout .main-generated-content li[style*="justify"] {
    text-align: left !important;
  }

  /* The homepage service photos should never reserve a tall, empty box. */
  body.tvo-home .mC-columns .mC-colums-sideImage {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 10px !important;
    overflow: hidden;
  }

  body.tvo-home .mC-columns .mC-colums-sideImage img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 260px;
    object-fit: cover;
  }

  body.tvo-home .mC-columns .mC-columns-sidlo-description {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 16px;
    margin: 0 0 24px;
  }

  body.tvo-layout .website-contact-block a[href^="tel:"] {
    color: #f6c327 !important;
  }

  /* A blocked Google iframe must not leave a blank 300-400px section. */
  body.tvo-layout #map .tvo-mobile-map {
    margin: 10px 15px 18px;
    border: 1px solid #e5d8c8;
    border-radius: 5px;
    background: #faf7f2;
  }

  body.tvo-layout #map .tvo-mobile-map summary {
    padding: 14px 16px;
    color: #35231a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  body.tvo-layout #map .tvo-mobile-map iframe {
    display: block;
    width: 100%;
    height: 260px !important;
    margin: 0;
    background: #eee7da;
  }
}

@media (max-width: 540px) {
  body.tvo-layout #headerSlider #logo {
    width: 43% !important;
    padding: 10px 0 10px 12px !important;
  }

  body.tvo-layout #headerSlider #logo img {
    width: clamp(108px, 34vw, 145px) !important;
    max-width: 100% !important;
    height: auto !important;
  }

  body.tvo-layout #headerSlider .top-user-menu .topbar-controls {
    right: 12px !important;
    gap: 7px;
  }

  body.tvo-layout #headerSlider .top-user-menu .menu-toggle {
    min-width: 92px !important;
    min-height: 44px !important;
    padding: 9px 10px !important;
    font-size: 14px !important;
  }

  body.tvo-layout #headerSlider .top-user-menu .tvo-mobile-language summary {
    width: 56px;
    min-width: 56px;
    min-height: 44px;
    font-size: 14px;
  }
}

/* One compact WhatsApp contact button on phones instead of the large overlay. */
.tvo-compact-whatsapp {
  display: none;
}

@media (max-width: 1199px) {
  body.tvo-layout .tvo-compact-whatsapp {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 15px;
    z-index: 1100;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1fca61;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
    color: #fff;
    font-size: 29px;
    text-decoration: none;
  }

  body.tvo-layout .tvo-compact-whatsapp:focus-visible {
    outline: 3px solid #f6bf20;
    outline-offset: 3px;
  }
}
