/* Component-only legacy polish. Website shell moved to shared/responsive. */
@media (max-width:1200px), (max-width:1366px) and (pointer:coarse) {
 :is(.gv-district-grid,.gv-company-grid,.gv-tourism-grid,.gv-district-gallery,.gv-company-gallery,.gv-tourism-gallery){grid-template-columns:1fr!important}
 :is(.gv-district-filters,.gv-company-filters,.gv-tourism-filters){padding:16px!important}
 :is(.gv-district-filters,.gv-company-filters,.gv-tourism-filters) button{width:100%!important}
 :is(.gv-district-gallery,.gv-company-gallery,.gv-tourism-gallery) img{height:auto!important}
}

/* One column contract for shared home sections and all nine listing pages. */
body .gv-home-section .gv-home-grid,body .gv-listing-page .gv-listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:1200px),(max-width:1600px) and (any-pointer:coarse){
 body .gv-home-section .gv-home-grid,body .gv-listing-page .gv-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 /* Home previews show two cards total; listing pagination still shows six. */
 body .gv-home-section .gv-home-grid > :nth-child(n+3){display:none!important}
}

/* Maintain desktop mega-menu visibility while crossing the trigger-to-panel gap. */
.menu .properties-mega-item.gv-mega-open .properties-mega-menu{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateX(-50%)!important}
.menu .properties-mega-item.gv-mega-open .properties-mega-content{opacity:1;transform:translateY(0) scale(1)}
.menu .properties-mega-item.gv-mega-open .properties-mega-link::after{width:100%}

/* One active desktop panel; CSS hover/focus must not retain the previous menu. */
@media(min-width:1201px) and (pointer:fine),(min-width:1367px){
.menu .properties-mega-item:not(.gv-mega-open) .properties-mega-menu{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.menu .properties-mega-item .properties-mega-menu{overflow:visible!important}
.menu .properties-mega-item .properties-mega-menu::before{top:-9px!important}
.menu .properties-mega-item .properties-mega-content{max-height:calc(var(--gv-mega-height,70vh) - 28px);overflow:auto;overscroll-behavior:contain}
.menu .properties-mega-item::after{display:none}
}
