/* --- Bekimmo: Energy tab layout guards --- */
#accordion_property_energy_savings_collapse .listing_detail,
.tab-pane .listing_detail {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

#accordion_property_energy_savings_collapse .listing_detail strong,
.tab-pane .listing_detail strong {
  white-space: normal;
}

#accordion_property_energy_savings_collapse .listing_detail,
.tab-pane .listing_detail {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Ensure images (e.g., PEB badges) never overflow */
#accordion_property_energy_savings_collapse .listing_detail img,
.tab-pane .listing_detail img {
  max-width: 100%;
  height: auto;
}

/* Fix potential row overflow due to gutters */
#accordion_property_energy_savings_collapse .row,
.tab-pane .row {
  margin-left: -15px;
  margin-right: -15px;
}

#accordion_property_energy_savings_collapse .row > [class*="col-"],
.tab-pane .row > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

/* Keep long numbers like PEB code unique from breaking layout */
#accordion_property_energy_savings_collapse .listing_detail,
.tab-pane .listing_detail {
  line-height: 1.4;
}

/* Extra safety: prevent the label line from pushing content out */
#accordion_property_energy_savings_collapse .listing_detail:first-child,
.tab-pane .listing_detail:first-child {
  min-width: 0;
}
/*
 Theme Name:   WpResidence child theme
 Theme URI:    https://themeforest.net/item/wp-residence-real-estate-wordpress-theme/7896392
 Description:  WpResidence child theme
 Author:       WpEstate
 Author URI:   http://wpestate.org
 Template:     wpresidence
 Version:      5.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/


.wpresidence-content-container-wrapper{
	background-color:#fff;
}

iframe.iframePro {
    display: block;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
}

/* PEB Label Styling - Legally mandatory in Belgium */
.property_peb_label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 2px 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property_peb_label .peb-icon {
    width: auto;
    height: 20px;
    max-width: 60px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background: white;
    padding: 2px;
}

.peb-badge {
    width: auto;
}

/* === Bekimmo: Agent Icon Improvements === */

/* Agent icon - background contain for better display */
.agent_card_image,
.agent_picture,
.property_agent_image,
.listing_agent_image,
.agent_image {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-block;
    background-color: #ffffff !important;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Agent icon in property cards - smaller size */
.property_listing .agent_image,
.property_card_details .agent_image {
    width: 40px;
    height: 40px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .agent_image {
        width: 35px;
        height: 35px;
    }
}

.peb-badge {
    height: 17px;
    max-width: 60px;
    border-radius: 2px;
    margin-left: 5px;
}

.peb-placeholder {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
}

/* Ensure PEB label appears above other elements */
.listing-unit-img-wrapper {
    position: relative;
}

/* Ensure PEB label is visible on property cards */
.property_listing .listing-unit-img-wrapper {
    position: relative;
}

/* Alternative positioning for property details section */
.property_details_type1_wrapper .property_peb_label {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    top: auto;
    right: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.property_details_type1_wrapper .property_peb_label .peb-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

/* Base */
.property_categs a.bekimmo-cta-address {
  background: #0082fa;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid #0082fa;
  border-radius: 11px;
  padding: 0px 7px;
  margin-right: 10px;
  margin-top: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Link/Visited/Focus/Active = texte blanc (sauf quand hover) */
.property_categs a.bekimmo-cta-address:link,
.property_categs a.bekimmo-cta-address:visited,
.property_categs a.bekimmo-cta-address:focus,
.property_categs a.bekimmo-cta-address:active {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none;
}

/* HOVER: texte bleu, fond blanc */
.property_categs a.bekimmo-cta-address:hover {
  background: #fff !important;
  color: #0082fa !important;
  -webkit-text-fill-color: #0082fa !important;
  border-color: #0082fa !important;
  text-decoration: none;
}

/* Icône et span suivent la couleur du lien */
.property_categs a.bekimmo-cta-address i,
.property_categs a.bekimmo-cta-address span {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

.accordion-body iframe{
width: 100%;
height: 500px;
border-radius: 20px;
}

.image_gallery{
border-radius: 20px;
}

.lightbox_property_wrapper .lightbox_property_content.row .lightbox_property_slider #owl-demo .item{
      background-size: contain;
}