/* LANGA v4.1 — final rewrite 2026-05-23
   Breakpoint unico: 1023px (WP Residence standard)
*/

/* === GLOBALI === */
body .agent_contanct_form{height:auto!important;overflow:visible!important}
body .agent_contanct_form_sidebar .agent_contanct_form{height:auto!important;overflow:visible!important;background:#f0edf5!important}
body .listing-content .agent_contanct_form{background:#f0edf5!important}
.langa-antispam-check{display:flex!important;align-items:center!important;gap:10px!important;margin:8px 0!important}
.langa-antispam-check input[type="checkbox"],
.gdpr_container input[type="checkbox"],
#wpestate_agree_gdpr{width:22px!important;height:22px!important;min-width:22px!important;cursor:pointer;accent-color:#555d50;flex-shrink:0!important}
.langa-antispam-check label,.gdpr_container label{cursor:pointer;user-select:none;font-size:15px!important}
body .agent_contanct_form_sidebar,
body .contactformwrapper,
body .contact-wrapper .wpcf7{background:#f0edf5!important;border-radius:8px!important}

/* Single property */
body.single-estate_property .pre_search_wrapper,
body.single-estate_property .search_wrapper,
body.single-estate_property #search_wrapper{display:none!important}
body.single-estate_property .contact-box{display:none!important}
body.single-estate_property .backtop{display:none!important}
body.single-estate_property #adv-search-header-mobile{display:none!important}
body.single-estate_property .agent_contanct_form_sidebar{background:#f0edf5!important;border-radius:8px!important}
body.single-estate_property .agent_contanct_form .intl-tel-input{margin-bottom:15px}
body.single-estate_property{padding-bottom:80px!important}
body.single-estate_property #colophon,
body.single-estate_property .sub_footer{position:relative;z-index:1}

/* Homepage search visible */
body.home #search_wrapper{display:block!important;visibility:visible!important}
body.home .search_wrapper{display:block!important;visibility:visible!important}
body.home #adv-search-header-mobile{display:block!important}

/* Layout */
.info_container_unit_3{width:100%;float:left;margin-bottom:35px;height:auto}
.half_map_controllers_wrapper{width:100%!important;transform:scale(0.9);margin-bottom:15px;display:flex!important;justify-content:center!important;padding:0!important;position:fixed!important;bottom:0!important;left:0!important;z-index:9998!important}
.half_mobile_toggle_listings,.half_mobile_toggle_map{flex:1!important;text-align:center!important}
.half_control_visible{background-color:#C6C2CF!important}
#gmapzoomminus{}

/* Misc */
.subfooter_menu{margin-right:0!important}
body li.onsale a{padding:17px 30px!important;background:linear-gradient(45deg,#c0bcca,#00000000)!important}
.widget-title-sidebar{margin:0!important}
textarea#agent_comment{margin-top:15px;border:1px solid #e2e2e2!important}
.agent_contanct_form_sidebar .alert-message{margin-top:0!important;margin-bottom:0!important}
.contactformwrapper:before,.contactformwrapper:after{display:none!important}
.contactformwrapper{bottom:20px!important;right:10px!important;position:fixed!important}

/* Checkbox alignment */
.gpr_wrapper{display:flex!important;align-items:center!important;gap:10px!important;margin:8px 0!important}
.gpr_wrapper input[type="checkbox"]{width:20px!important;height:20px!important;min-width:20px!important;margin:0!important;padding:0!important;flex-shrink:0!important}
.gpr_wrapper label{margin:0!important;line-height:1.4!important}
input[type="checkbox"]:checked:before{line-height:20px!important;font-size:16px!important;width:20px!important;height:20px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
/* Toggle widgets single */
body.single-estate_property #advanced_search_widget-1 .widget-title-sidebar,
body.single-estate_property #mortgage_widget-1 .widget-title-sidebar{cursor:pointer;position:relative;padding-right:30px}
body.single-estate_property #advanced_search_widget-1 .widget-title-sidebar::after,
body.single-estate_property #mortgage_widget-1 .widget-title-sidebar::after{
  content:'+';position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:700;color:#555d50}
body.single-estate_property #advanced_search_widget-1 .widget-title-sidebar.langa-open::after,
body.single-estate_property #mortgage_widget-1 .widget-title-sidebar.langa-open::after{content:'−'}
body.single-estate_property #advanced_search_widget-1 form,
body.single-estate_property #mortgage_widget-1 #input_formula{display:none}
body.single-estate_property #advanced_search_widget-1 form.langa-show,
body.single-estate_property #mortgage_widget-1 #input_formula.langa-show{display:block}

/* Agent page term_bar 100% mobile */
@media only screen and (max-width:1023px){
  body.single-estate_agent .term_bar_item{width:100%!important;margin-right:0!important}
}

/* === MOBILE 1023px === */
@media only screen and (max-width:1023px){
  body.half_map_body #google_map_prop_list_sidebar{position:static!important;width:100%!important;height:auto!important;min-height:auto!important;overflow-y:visible!important;top:auto!important}
  body.half_map_body{overflow:auto!important;position:static!important;height:auto!important}
  #google_map_prop_list_wrapper{height:calc(100vh - 100px)!important;min-height:calc(100vh - 100px)!important}
  #google_map_prop_list_wrapper #googleMap{height:100%!important}
  .mobile_header.langa-sticky{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:99999!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.12)!important}
  body.langa-has-sticky{padding-top:50px!important}
  body:not(.half_map_body){padding-top:0!important}
  .agent_contanct_form_sidebar{position:static!important;height:auto!important;max-height:none!important;overflow:visible!important}
  .subfooter_menu{background-color:transparent!important}
  li.onsale a{border-radius:0!important}
}


/* === HALF-MAP <=1024px === */
@media only screen and (max-width:1024px){
  #google_map_prop_list_sidebar{position:static!important;width:100%!important;height:auto!important;min-height:auto!important;overflow-y:visible!important;top:auto!important;bottom:auto!important;margin-top:0!important;padding-bottom:60px!important;right:auto!important;left:auto!important}
  #google_map_prop_list_wrapper{display:none!important}
  #xsearch_wrapper{display:none!important}
  .half_mobile_hide{display:none!important}
  .half_map_controllers_wrapper{display:flex!important}
  #google_map_prop_list_sidebar .listing_wrapper{margin-bottom:15px!important}
}
@media only screen and (max-width:1024px) and (min-width:816px){
  #google_map_prop_list_sidebar .listing_wrapper{max-width:600px;margin-left:auto!important;margin-right:auto!important}
}
@media only screen and (min-width:1025px){
  .half_map_controllers_wrapper{display:none!important}
}
.property_agent_wrapper.property_agent_wrapper_type1{display:none}
.unit_type3_details{width:100%;text-align:center}

/* Search wrapper no border-radius on mobile */
@media only screen and (max-width:1024px){
  #search_wrapper.with_search_form_float #search_wrapper_color{border-radius:0!important}
}

/* Shortcode col spacing mobile */
@media only screen and (max-width:992px){
  .shortcode-col{margin-bottom:30px}
}
