/*
Adding print support. The print styles are based on the the great work of
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Margins & paddings
# Typography
# Page breaks
# Links
# Visibility
--------------------------------------------------------------*/
@media print {

	/* Margins & paddings */
	@page {
		margin: 2cm;
	}

	.entry .entry-header,
	.entry,
	.single .site-main > article > .entry-footer {
		margin-top: 0;
		margin-bottom: 0;
	}

	.site-footer .site-info {
		margin: 0;
	}

	.site-header {
		padding: 0;
	}

	/* Fonts */
	body {
		font: 13pt Georgia, "Times New Roman", Times, serif;
		font: 13pt var(--global--font-secondary, Georgia, "Times New Roman", Times, serif);
		line-height: 1.3;
		background: #fff !important;
		color: #000 !important;
	}

	.has-background-dark * {
		color: #000 !important;
	}

	h1,
	.entry-title,
	.singular .entry-title,
	.page-title {
		font-size: 22pt !important;
		/* font-weight: bold; */
    color:#000 !important;
	}

  .iwp-single-property .property-price .main-price,
	h2,
	h3,
	h4,
	.has-regular-font-size,
	.has-large-font-size,
	h2.author-title,
	p.author-bio,
	.comments-title,
	.archive-description {
		font-size: 14pt !important;
		margin-top: 25px;
    color:#000;
	}

	.comment-meta,
	.comment-meta .comment-author .fn {
		font-size: 13pt;
	}

	/* Page breaks */
	a {
		page-break-inside: avoid;
	}

	blockquote {
		page-break-inside: avoid;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		page-break-after: avoid;
		page-break-inside: avoid;
	}

	img {
		page-break-inside: avoid;
		/* page-break-after: avoid; */
	}

	table,
	pre,
	figure {
		page-break-inside: avoid;
	}

	ul,
	ol,
	dl {
		page-break-before: avoid;
	}

	/* Links */
	a:link,
	a:visited,
	a {
		background: transparent;
		font-weight: bold;
		text-decoration: underline;
		text-align: left;
	}

	a[href^=http]:after {
		content: " < " attr(href) "> ";
	}

	a:after > img {
		content: "";
	}

	article a[href^="#"]:after {
		content: "";
	}

	a:not(:local-link):after {
		content: " < " attr(href) "> ";
	}

	.entry-title a:after {
		content: "\a< " attr(href) "> ";
		white-space: pre;
		font-size: 14pt;
	}

	.cat-links a:after,
	.tags-links a:after,
	.byline a:after,
	.comment-metadata a:after,
	.wp-block-calendar a:after,
	.wp-block-tag-cloud a:after,
	.page-links a:after {
		content: "";
	}

	/* Visibility */
	.primary-navigation,
	.site-title + .primary-navigation,
	.footer-navigation,
	.entry-footer,
	.post-navigation,
	.navigation.pagination,
	.widget-area,
	.edit-link,
	.more-link,
	.comment-reply,
	.reply,
	.comment .comment-metadata .edit-link,
	.comment-respond,
	#dark-mode-toggler {
		display: none !important;
	}

	.entry .entry-content .wp-block-button .wp-block-button__link,
	.entry .entry-content .button,
	.entry .entry-content .wp-block-file__button {
		color: #000;
		background: none;
	}

  .iwp-single-property-v1 .page-heading, #property-plan-0 .collapse {
   display: block !important;
   background-color: #fff !important;
}
  .iwp-single-property-v5__details--tabs {
		display:flex;
	}
  .iwp-property-block {
		padding:30px 15px 0 !important;
	}
  #iw-tabs-single__v5--features {
		padding:15px 0 0;
	}

  .single-iwp_property .header.header-default.header-style-v2 .iw-header:not(.sticky-placeholder) {
    position:relative !important;
    /* background-color: rgba(0,50,76,1)!important; */
  }

  /* .iwp-property-gallery-slider-v1 .owl-item.cloned, */
  /* .iwp-property-gallery-slider-v1 .owl-item:not(.active), */
  .page-heading.default.property-page-heading.sticky-placeholder,
  .single-iwp_property .header.header-default.header-style-v2 .sticky-placeholder,
  .header.header-default.header-style-v2 .iw-header.sticky-placeholder,
  .navbar-light-inner .float-right,
  /* .header.header-default.header-style-v2 .navbar-light-inner::after, */
  .navbar.stickyplaceholder,
  .main-logo,
	.logo-mobile,
  .sticky-placeholder,
  .iw-menu-header-default,
  .iw-user-property,
  #property-floor-plans .iwp-property-block-title,
  .gdpr,
  .sun_download_pdf,
  .property-actions,
  .property-plans .property-info-title,
  .iwp-property-gallery-slider-v2,
  #property-map,
  .owl-nav, .iw-tabs-list__nav {
		display: none !important;
    /* visibility:hidden !important; */
	}
  .sticky-logo,
  .navbar,
  .header,
  #iw-tabs-single__v5--details,
	#iw-tabs-single__v5--additional,
	#iw-tabs-single__v5--features,
	#iw-tabs-single__v5--diagnostic,
	.iwp-single-property-diagnostic .row,
  #property-floor-plans,
  .property-plans .collapse,
  .property-extra {
		display:block !important;
	}
  .sticky-logo {
    margin-left: auto;
    margin-right: auto;
		/* filter: invert(14%) sepia(17%) saturate(7227%) hue-rotate(176deg) brightness(95%) contrast(103%); */
    /* filter: invert(15%) sepia(16%) saturate(5724%) hue-rotate(171deg) brightness(97%) contrast(105%); */
filter: invert(15%) sepia(30%) saturate(2940%) hue-rotate(171deg) brightness(60%) contrast(102%);
	}
  .navbar {
		padding-bottom:20px !important;
	}
  .single-iwp_property #contents-main {
		margin:0px !important;
	}
  .iw-logo {
    float:unset !important;
		padding-top:12px !important;
	}
  #property-gallery .iwp-flexslider .slides li {
  	/* width:100% !important; */
  	/* height:100% !important; */
  }
  #property-gallery .owl-item.active {
		/* margin-top:-10% !important; */
	}
  #property-gallery .owl-item.active figure {
    height:600px !important;
    width:100% !important;
  }
  #property-gallery img {
    /* height:600px !important; */
		/* margin-top:-10% !important; */
    object-fit: scale-down;
    width:50%;
    /* margin:auto; */
	}
  .swiper-button-prev,
  .swiper-button-next {
    display:none;
  }
  .iwp-single-property .iwp-single-property-v1 .property-carrousel-heading {
    position:relative;
    padding:15px 0;
  }
  .iwp-single-property .page-heading {
		    margin-top: -18em !important;
	}
  #property-virtual {
    display:none;
  }
  #property-description .enap-sprop-tab-content {
    display: block !important;
  }
  #property-description label {
    display: none;
  }
  .property-address {
		padding:0px !important;
    display:inline !important;
		float:right !important;
    font-size:14pt !important;
	}
  .main-price {
    padding:10px 0;
		margin-right:0px;
		/* float:right; */
	}
  .col-xs-12 {
		padding:0px 15px;
  }
  .property-page-heading {
	}
  .iwp-single-property .iwp-single-property-v1 .property-page-heading {
		/* margin:0px; */
    position:relative !important;
    right:0px !important;
    /* z-index:9999 !important; */
	}
  .iwp-single-property-v5__details--tabs .iw-tabs-list__content {
  	padding-top:0px !important;
  }
  .iwp-single-property .property-info-group {
		border: none;
	}
  #iw-tabs-single__v5--additional .col-xs-12 {
		width:50% !important;
	}
  /* PAGEBREAKS */
  /*  sanitizing floats and widths on parents to allow pagebreaks with safari */
	.col-sm-12 {
		float:none;
    width: auto;
	}
  #property-description {
		/* page-break-after:always; */
	}
  #iw-tabs-single__v5--diagnostic,
  #property-floor-plans {
/* fix firefox overlapping divs */
    /* position:relative; */
    /* clear:both; */
    /* overflow: visible !important; */
		page-break-before: always;
    page-break-inside: avoid;
    display: block !important;
	}
}
