/*
Theme Name: SiteOrigin Corp Child
Author: SiteOrigin
Author URI: https://siteorigin.com/
Theme URI: https://siteorigin.com/theme/corp
Description: SiteOrigin Corp Child Theme
Version: 1.0.0
Template: siteorigin-corp
Text Domain: siteorigin-corp
Domain Path: /languages/
*/

/* =Theme customization starts here
-------------------------------------------------------------- */

/*General*/
h1, h2, h3, h4 {
    text-wrap: balance;
	line-height: 1;
}

h2, h3, h4, h5, h6 {
    letter-spacing: -3px;	
}

html {
	overflow-x: hidden;
}

body {
	font-size: 18px !important;
    line-height: 1.45 !important;
	letter-spacing: 0.3px !important;
	max-width:100vw;
	overflow-x: hidden;
}

.skip-link:focus {
	z-index: 100000003 !important;
	clip-path: unset;
	clip: unset;
	height: auto;
    width: auto;
	overflow: visible;
}

.corp-container {
	max-width:80% !important;
}

.breadcrumbs {
	display: none !important;
}

.home-title-h1 {
	position: relative;
	z-index:-2;	
}

.home-title-h1 .panel-grid-cell {
	position: absolute;
    transform-origin: center bottom;
    bottom: 0px;
}

.home-title-h1 .panel-grid-cell .siteorigin-widget-tinymce {
	text-align: center;
}

.home-title-h1 .panel-grid-cell p {
	display: inline-block;
	font-size: 40px;
    font-family: "Lexend Peta", sans-serif;
    font-weight: 700;
    color: white;
    padding-bottom: 15px;
    text-transform: uppercase;
	position: relative;
	z-index: 1;
	text-align: center;
}


.home-title-h1 .panel-grid-cell p:before {
    position: absolute;
    content: '';
    width: calc(100% + 50px);
    height: calc(100% + 30px);
    border: 5px solid #fbabab;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.home-title-h1 .panel-grid-cell p:after{
    position: absolute;
    content: '';
    width: calc(100% + 50px);
    height: calc(100% + 30px);
    background: black;
    opacity: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.entry-header {
	margin-bottom: 0px !important;
    width: 140%;
    margin-left: -20%;
    position: relative;
	z-index:-3;
}

/*Header*/

.site-branding {
	margin-right: auto;
}

.chw-widget .social-media-button-container a {
	font-size: 16px !important;
}

.wpml-ls-menu-item .wpml-ls-flag {
    width: 20px !important;
	max-width: none !important;
}

.main-navigation ul .children li, .main-navigation ul .sub-menu li {
    margin: 0;
    padding: 0;
    min-width: 100%;
}

.main-navigation .sow-icon-fontawesome {
	font-size:20px !important;
}

.sub-menu .wpml-ls-item a {
    padding: 10px !important;
}

/*Home Hero*/
.custom-slider {
	display: grid;
	grid-template-columns: repeat(3, 1fr);			
}

.custom-slider-wrapper {
	position:relative;
}

.custom-slider-title p, h1.entry-title {
	position: absolute;
	z-index: 1;
	left: 50%;	
	transform: translateX(-50%);
	text-align: center;
	bottom: -20px;
	font-size:40px;
    font-family: "Lexend Peta", sans-serif;
    font-weight: 700;
	color: white;
	padding-bottom: 40px;
	text-transform: uppercase;
	margin-bottom: 0 !important
}

.custom-slider-title p:after, h1.entry-title:after {
	position: absolute;
    content: '';
    width: calc(100% + 50px);
    height: calc(100% + 30px);
    background: black;
    opacity: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.custom-slider-title p:before, h1.entry-title:before {
	position: absolute;
    content: '';
    width: calc(100% + 50px);
    height: calc(100% + 30px);
   	border:5px solid #fbabab;  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slide-slot {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	height:560px;
}

.slide-slot img {
	width: auto;
	min-width:100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.slide-slot img.active {
	opacity: 1;
}

.rectangle-text h1, .rectangle-text h2, .rectangle-text h3 {
	margin-top:0 !important;
}

.r-white h1, .r-white h2, .r-white h3, .r-white h4 {
	color: white !important;
}

.rectangle {
	position: relative;
}

.rectangle .so-widget-sow-editor {
	position: relative;
    z-index: 20;
}

.rectangle:after {
	border:5px solid white;	
	content:'';
	position: absolute;
	width: 75%;
    height: 70%;
    top: 50%;
    left: 50%;
	transform: translate(-50%, -50%);	
}

.r-white:after {
	border:5px solid white;	
}

.r-green:after {
	border:5px solid #69a045;
}

.rectangle .panel-grid-cell, .rectangle .widget_sow-image, .rectangle .full-img {
	height: 100%;
}

.full-img .sow-image-container {
	height:100%;
	overflow: hidden;
}

.full-img img {
	max-width: none !important;
	width: auto;
    object-fit: cover;
    height: 500px;	
}

/*Post Masonery*/
.real-estate-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: 30px;
	grid-row-gap: 30px;	
}

.real-estate-grid-list {
	grid-template-rows: unset;	
}

.real-estate-grid a {
	background-size: cover;
	background-position: center;
	min-height:350px;
	align-items: end;
    display: flex;
	color: white !important;
	padding:40px;
	position: relative;
}

.real-estate-grid a:after {
	content:'';
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background: black;
	opacity:0;
	transition: all .35s ease-in-out;
}

.real-estate-grid a:hover:after {
	opacity:.5;
}

/*.home-btn .so-panel {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: unset;	
	grid-column-gap: 30px;	
}*/

.listing-home .panel-layout {
	position: relative;
}

.home-btn {
	height: 100%;
    position: absolute;
    inset: 0;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    pointer-events: none;
}

.home-btn .panel-widget-style {
	transform: translateX(-50%);
	left: 50%;
	bottom: 0;
	width: 100%;
	grid-area: 2 / 2 / 3 / 3;
	position: absolute !important;
	text-align: center;
	font-size: 22px;
	font-family: "Lexend Peta", sans-serif;   
	background-size: cover;
    background-position: center;
    min-height: 350px;   
    color: white !important;     
}


.home-btn .panel-widget-style a {
	position: relative;
    bottom: -265px;
    transform-origin: center bottom;
	z-index:3;
	border: 5px solid white !important;
	pointer-events: auto;
	padding:15px !important;
}

.home-btn .panel-widget-style:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #69a045;
    mix-blend-mode: multiply;
}

.real-estate-title {
	position: relative;
}

.real-estate-location, .real-estate-title p {
	position: relative;
	z-index:2;
} 

.real-estate-location {
	padding: 2px 5px;
	background: #69a045;
	display: inline-block;
}

.real-estate-title:after {
	position: absolute;
    content: '';
    width: calc(100% + 50px);
    height: calc(100% + 30px);
    background: black;
    opacity: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);	
}

.real-estate-title:before {
	position: absolute;
    content: '';
    width: calc(100% + 50px);
    height: calc(100% + 40px);
   	border:5px solid #69a045;  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	z-index:2;
}

.real-estate-title p {
	font-size:22px;
    font-family: "Lexend Peta", sans-serif;
	margin-bottom: 10px !important;
   -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.order-1 { 
	grid-area: 1 / 1 / 3 / 2; 
}

.order-2 { 
	grid-area: 1 / 2 / 2 / 4; 
}

.company-button { 
	grid-area: 2 / 2 / 3 / 3;
	position: relative;
	text-align: center;
	font-size: 22px;
    font-family: "Lexend Peta", sans-serif;
	justify-content: center;
}

.company-button p {
	position: relative;
	z-index:2;
	text-transform: uppercase;
	padding:15px;
	border:5px solid white;
}

.real-estate-grid a:hover .company-button p {
	background: white !important;
	color:#69a045 !important;
}

.company-button:before {
	content:'';
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background: #69a045;
	mix-blend-mode: multiply;	
}

.order-3 { 
	grid-area: 2 / 3 / 3 / 4; 
}

/*Contact*/

.contact-p p {
	display: flex;
}

.contact-p img {
	margin-right: 20px !important;		
}

.footer-cf7, .footer-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

.footer-form p {
    width: calc(50% - 20px);
}

.footer-form-m p {
    width: calc(100% - 20px);
}

.footer-form label {
	color: #333333 !important;
	font-size:18px !important;
}

.contact-f .wpcf7-submit {
 	font-family: "Lexend Peta", sans-serif;	
	text-transform: uppercase;
	background: transparent;
	font-size:22px;
	border:5px solid #69a045;
	color: #69a045 !important; 
	margin-top:20px;
}

.contact-f .wpcf7-submit:hover {
 	background: #69a045 !important;
	color: white !important;
}

.footer-cf7 input, .footer-form input, .wpcf7-form-control.wpcf7-textarea {
    width: 100% !important;
    border: 1px solid #69a045 !important;
    border-radius: 0px;   
    color: #666;
    line-height: normal;
    outline: none;   
    -webkit-appearance: none;
}

/*Property*/

.property-head {
	display: flex;
	gap:20px;
	align-items: end;
	padding:5% 0;
}

.initial-content, .second-content, .real_estate-template-default .custom-slider-wrapper {
	padding-bottom:5%;
}

.initial-content p:last-child, .second-content p:last-child {
	margin-bottom:0;
}

.property-gallery {
	width:calc(50% - 10px);
}

.property-info {
	width:calc(50% - 10px);	
}

.real_estate-template-default .property-info h1 {
	margin-bottom:0!important;
	color:#333;
}

.real_estate-template-default .property-info a {
	color: #69a045 !important;
	display: block;
}

.real_estate-template-default .property-info .location {
	color: white !important;
	padding: 2px 5px !important;
    background: #69a045 !important;
    display: inline-block!important;
	margin-bottom: 0 !important;
}

.real_estate-template-default .property-info p {
	display: block;
	margin-bottom: 0 !important;
}

.carousel-container {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

/* Thumbnails vertical (desktop) */
.mySwiper-thumbs {
	width: 100px;
	height: 500px;
}

.mySwiper-thumbs .swiper-slide {
	opacity: 0.6;
	cursor: pointer;	
}

.mySwiper-thumbs .swiper-slide-thumb-active {
	opacity: 1;		
}

.mySwiper-thumbs img {
	width: auto;
	height: 100%;
	object-fit: cover;
}

/* Main slider */
.mySwiper-main {
	flex: 1;
	max-height: 600px;
	height: 600px;
}

.mySwiper-main img {
	width: auto;
	min-height: 100%;
	object-fit: cover;	
	max-height: 600px;
}

.property-gallery .solo-img {
	max-height: 600px;
	height: 600px;	
}

.paralax-img {
	min-height: 500px;
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
	margin-bottom:5%;
}

.property-gallery .solo-img img {
	width: auto;
	min-height: 100%;
	object-fit: cover;	
	max-height: 600px;	
}

/*Footer*/

.site-footer .widgets.widgets-2 .widget {
    width: 100% !important;
	margin-right:0 !important;
}

.footer-cta {
	position: relative;
	background-position: center center;
	padding: 50px 30px 50px 30px;
}

.footer-cta:after {
	content:'';
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background: #69a045;
	mix-blend-mode: multiply;		
}

.footer-cta .panel-grid-cell {
	z-index:2;
}

.footer-cta .sowb-button {
	border: 5px solid white !important;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: Lexend Peta;
    font-weight: 700;
    -webkit-border-radius: 0em 0em 0em 0em;
    -moz-border-radius: 0em 0em 0em 0em;
    border-radius: 0em 0em 0em 0em;
    background: transparent;   
    color: #ffffff !important;
    font-size: 25px;
    padding: 15px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding-inline: 30px;
    cursor: pointer;
    display: inline-block;
    line-height: 1em;
    text-align: center;
    text-decoration: none;
}

.footer-logo img {
	filter: brightness(500%);
}

.site-info span:last-child, .site-info span:after {
    display: none !important;
}

/*Media Query*/
@media (max-width: 1250px) {
	.rectangle:after {
		height: 90%;	
	}
}	

/* Tablet (máximo 992px) → ocultar el tercer slot */
@media (max-width: 1024px) {
	.custom-slider {
		grid-template-columns: repeat(2, 1fr);
	}
	.slide-slot:nth-child(3) {
		display: none;
	}
		
	.real-estate-grid { 
		grid-template-columns: repeat(2, 1fr);		
	}
	
	.order-1 { 
		grid-area: 1 / 1 / 3 / 2;
	}
	
	.order-2 {
		grid-area: 1 / 2 / 2 / 3; 
	}
	
	.order-3 {
		grid-area: 2 / 2 / 3 / 3; 
	}
	
	.company-button {
		grid-area: 3 / 1 / 4 / 3;
		max-height: 200px !important;
		min-height: 150px !important;
		align-items:center !important;
	}
	
	.home-btn {
		grid-template-columns: 1fr;
		position: relative;
		grid-template-rows: unset;
		margin-top: 30px;
	}		
	
	.home-btn .panel-widget-style {
		grid-area: 3 / 1 / 4 / 3;
		max-height: 200px !important;
		min-height: 150px !important;
		align-items:center !important;
		position: relative !important;		
	}
	
	.home-btn .panel-widget-style a {
		bottom: -40px;	
	}
		
	.property-head {
		flex-direction: column-reverse;	
	}
	
	.property-gallery {
		width: 120%;
        margin: 0 -10%;
	}

	.property-info {
		width: 120%;
        margin: 0 -10%;
	}	
	
	.real_estate-template-default .corp-container {
		padding:0 5px;
	}
	
	.initial-content, .second-content, .real_estate-template-default .custom-slider-wrapper, .property-head  {
		padding-bottom:10%;
	}
		
	.mySwiper-main {
		width: 100%;
		height: auto;
		min-height:380px;
		max-height: 600px;
	}

	.mySwiper-main img {
		min-height: 380px;
        max-height: 600px;		
		object-fit: cover;
	}		
}

@media (max-width: 768px) {
	/*Nav*/
	
	.chw-widget .social-media-button-container {
		display: flex !important;
	}
	.chw-widget .social-media-button-container a {
		line-height:3;
		color: white !important;
	}
	/*Header*/
	.custom-slider-title p, h1.entry-title {
		font-size:22px;
		width: 80%;
	}
	
	.home-title-h1 .panel-grid-cell p {
		font-size:22px;
		display: block;
	}
	
	.custom-slider {
		grid-template-columns: 1fr;
	}
	
	.slide-slot:nth-child(2),
	.slide-slot:nth-child(3) {
		display: none;
	}
	
	.slide-slot {
	    height: 400px;	
	}
	
	.rectangle:after {    
		width: 93%;
        height: 93%;
        left: 50%;
        top: 48%;
        transform: translate(-50%, -50%);
	}
	
	.rectangle-page:after {
        height: 96%;        
        top: 50%;       
    }
	
	.full-img .sow-image-container {
		width: 100vw;
		margin-left: -14%;
		min-height: 400px;
	}
	
	.full-img img {
		height: 380px;
	}
	
	.real-estate-grid { 
		grid-template-columns: repeat(1, 1fr);
		grid-template-rows: repeat(3, 1fr);
	}
	
	.order-1 { 
		grid-area: 1 / 1 / 2 / 2; 
	}
	
	.order-2 {
		grid-area: 2 / 1 / 3 / 2; 
	}
	
	.order-3 {
		grid-area: 3 / 1 / 4 / 2;
	}
	
	.company-button, .home-btn .panel-widget-style {
		grid-area: 4 / 1 / 5 / 2;		
	}
		
	/*Property*/
	
	.carousel-container {
        flex-direction: column-reverse;
        align-items: center;
    }
	
	.swiper-vertical>.swiper-wrapper {
		flex-direction: row !important;
		justify-content: space-between;
	}
	
	.mySwiper-thumbs .swiper-slide {
		width: 10px !important;
		height: 10px !important;
		display: flex;
		
		align-items: center;
		background: #69a045;		
	}
	
	.mySwiper-thumbs img {
		display: none;
	}
	
	.mySwiper-thumbs {		
		max-height:15px;		
	}
	
	/*Contact*/
	
	.contact-p img {
		margin-left:0;
	}
	
	.footer-cf7, .footer-form {
		flex-direction: column;
		gap:0;
	}
	
	.footer-form p {
    	width: calc(100% - 20px);
		margin-bottom:15px !important;
	}
	
	.footer-logo .sow-image-container {
		justify-content: center !important;
	}
}	