/* Sitemap footer: prevent stranded columns and overlarge copyright block. */
html body.vtm-sitemap-page footer.legal-footer.vtm-unified-commercial-footer{padding:30px 0 46px!important}
html body.vtm-sitemap-page footer.legal-footer.vtm-unified-commercial-footer>.wrap.footer-grid{
 display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.85fr)!important;
 column-gap:clamp(14px,2vw,30px)!important;row-gap:12px!important;
 width:calc(100% - 36px)!important;max-width:1280px!important;
 margin:0 auto!important;padding:0 0 20px!important;align-items:start!important
}
html body.vtm-sitemap-page footer.legal-footer .footer-grid>div{grid-column:auto!important;grid-row:auto!important;display:flex!important;gap:2px!important}
html body.vtm-sitemap-page footer.legal-footer .footer-title{font-size:16px!important;line-height:1.35!important;margin-bottom:5px!important}
html body.vtm-sitemap-page footer.legal-footer .footer-grid p,
html body.vtm-sitemap-page footer.legal-footer .footer-grid a{font-size:14px!important;line-height:1.4!important;margin:0!important}
html body.vtm-sitemap-page footer.legal-footer>.wrap.footer-bottom.vtm-footer-one-line{
 width:calc(100% - 36px)!important;max-width:1280px!important;margin:0 auto!important;
 padding:18px 0 0!important;min-height:0!important;display:flex!important;
 flex-wrap:wrap!important;gap:4px 12px!important;font-size:12px!important;line-height:1.35!important
}
html body.vtm-sitemap-page footer.legal-footer .footer-bottom.vtm-footer-one-line>*{
 font-size:inherit!important;line-height:inherit!important;white-space:normal!important;margin:0!important
}
@media(max-width:700px){
 html body.vtm-sitemap-page footer.legal-footer.vtm-unified-commercial-footer>.wrap.footer-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px 20px!important
 }
 html body.vtm-sitemap-page footer.legal-footer .footer-grid>div:first-child{grid-column:1/-1!important}
}
@media(max-width:560px){
 html body.vtm-sitemap-page footer.legal-footer.vtm-unified-commercial-footer>.wrap.footer-grid{
  grid-template-columns:minmax(0,1fr)!important;width:calc(100% - 28px)!important;
  gap:12px!important;padding:0 0 20px!important
 }
 html body.vtm-sitemap-page footer.legal-footer .footer-grid>div:first-child{grid-column:auto!important}
 html body.vtm-sitemap-page footer.legal-footer .footer-grid>div:first-child p{display:block!important}
 html body.vtm-sitemap-page footer.legal-footer>.wrap.footer-bottom.vtm-footer-one-line{
  width:calc(100% - 28px)!important;padding:18px 0 0!important;
  font-size:11px!important;gap:4px 8px!important
 }
}
/* Stable large-icon layout: no JS masonry row heights or scroll-triggered reflow. */
html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]{
 grid-auto-rows:auto!important;
 grid-auto-flow:row!important;
 align-items:start!important;
}
html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]>.vtm-map-section{
 grid-row-end:auto!important;
}
html body.vtm-sitemap-page footer.legal-footer.vtm-unified-commercial-footer{
 padding-bottom:54px!important;
}

/* Large icons: balanced independent columns, no empty grid rows or scroll-time measurement. */
@media(min-width:701px){
 html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]{
   display:block!important;column-count:2!important;column-gap:18px!important;
   grid-auto-rows:auto!important;grid-auto-flow:row!important;
 }
 html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]>.vtm-map-section{
   display:inline-block!important;width:100%!important;
   break-inside:avoid!important;-webkit-column-break-inside:avoid!important;
   margin:0 0 18px!important;grid-column:auto!important;order:initial!important;
 }
 html body.vtm-sitemap-page .vtm-map-grid.vtm-map-balanced[data-view="large"]>[data-group-id="group-3"]{
   grid-column:auto!important;order:initial!important;
 }
}
@media(max-width:700px){
 html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]{
   display:block!important;column-count:1!important;
 }
 html body.vtm-sitemap-page .vtm-map-grid[data-view="large"]>.vtm-map-section{
   display:block!important;break-inside:avoid!important;margin:0 0 14px!important;
 }
}
