/* MG 2.5.5 -- service archive card and city selector repair.
   All selectors are confined to the catalog page; global search and navigation untouched. */
body.mg-site.catalog-polished .elementor .mg-native-loop-grid .mg-loop-card,
body.mg-site.catalog-polished .elementor .mg-loop-card.mg-service-card {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:flex-start!important;gap:0!important;position:relative!important;
  overflow:hidden!important;height:100%!important;min-height:0!important;
  padding:0!important;background:#fff!important;border-radius:16px!important;
  isolation:isolate;
}
body.mg-site.catalog-polished .elementor .mg-loop-card > .elementor-widget-theme-post-featured-image {
  position:relative!important;inset:auto!important;float:none!important;
  order:0!important;display:block!important;flex:0 0 auto!important;
  width:100%!important;min-height:0!important;margin:0!important;padding:0!important;
  overflow:hidden!important;aspect-ratio:16/9!important;background:#edf3fb;
}
body.mg-site.catalog-polished .elementor .mg-loop-card > .elementor-widget-theme-post-featured-image .elementor-widget-container,
body.mg-site.catalog-polished .elementor .mg-loop-card > .elementor-widget-theme-post-featured-image :is(a,.elementor-post__thumbnail){
  display:block!important;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;
}
body.mg-site.catalog-polished .elementor .mg-loop-card > .elementor-widget-theme-post-featured-image img{
  display:block!important;position:relative!important;inset:auto!important;float:none!important;
  width:100%!important;height:100%!important;aspect-ratio:16/9!important;object-fit:cover!important;
  border-radius:0!important;margin:0!important;
}
body.mg-site.catalog-polished .elementor .mg-loop-card > .mg-loop-copy {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:10px!important;order:1!important;position:relative!important;inset:auto!important;
  float:none!important;transform:none!important;z-index:1!important;
  flex:1 0 auto!important;min-width:0!important;width:100%!important;height:auto!important;
  padding:clamp(16px,2vw,24px)!important;background:#fff!important;color:#102440!important;
  overflow:visible!important;box-sizing:border-box!important;
}
body.mg-site.catalog-polished .elementor .mg-loop-copy > .elementor-widget {
  position:relative!important;inset:auto!important;float:none!important;transform:none!important;
  display:block!important;width:100%!important;max-width:100%!important;height:auto!important;
  min-height:0!important;margin:0!important;padding:0!important;flex:none!important;
  color:#102440;
}
body.mg-site.catalog-polished .elementor .mg-loop-copy .elementor-heading-title,
body.mg-site.catalog-polished .elementor .mg-loop-copy :is(h2,h3) {
  position:static!important;display:block!important;margin:0!important;
  color:#102440!important;line-height:1.35!important;font-size:clamp(18px,2vw,22px)!important;
  font-weight:750!important;overflow-wrap:anywhere;
}
body.mg-site.catalog-polished .elementor .mg-loop-copy .elementor-widget-text-editor,
body.mg-site.catalog-polished .elementor .mg-loop-copy .elementor-widget-text-editor p {
  position:static!important;color:#566a82!important;font-size:14px!important;line-height:1.65!important;
  margin:0!important;overflow-wrap:anywhere;
}
body.mg-site.catalog-polished .elementor .mg-loop-copy .elementor-widget-button{margin-top:auto!important;padding-top:10px!important;}
body.mg-site.catalog-polished .elementor .mg-loop-copy .elementor-button {
  background:transparent!important;color:#0753f2!important;box-shadow:none!important;
  border:0!important;border-radius:0!important;padding:8px 0!important;
  text-align:left!important;justify-content:flex-start!important;font-size:14px!important;
  font-weight:750!important;line-height:1.4!important;
}
body.mg-site.catalog-polished .elementor .mg-loop-copy .elementor-button:hover,
body.mg-site.catalog-polished .elementor .mg-loop-copy .elementor-button:focus-visible{color:#043cac!important;text-decoration:underline!important;}
/* Elementor HTML widgets remain grid items even when their nested details are hidden. */
body.mg-site .local-city-groups > .elementor-widget[hidden],
body.mg-site .local-city-groups > .elementor-widget-html[hidden],
body.mg-site .local-city-groups .local-city-group[hidden]{display:none!important;}
body.mg-site .local-city-groups .elementor-widget-html:not([hidden]){min-width:0!important;max-width:100%;}
body.mg-site .local-city-groups .local-city-group:not([hidden]){display:block;}
body.mg-site .mg-city-filter-notice{font-size:13px;line-height:1.5;color:#536881;margin:0 0 20px;}
@media(max-width:767px){
 body.mg-site.catalog-polished .elementor .mg-loop-card > .mg-loop-copy{padding:18px!important;gap:9px!important;}
 body.mg-site.catalog-polished .elementor .mg-loop-copy .elementor-heading-title{font-size:19px!important;}
 body.mg-site.catalog-polished .elementor .mg-loop-copy .elementor-widget-text-editor p{font-size:13px!important;}
}
