/*
 Theme Name:   Nadia Smit Property Management
 Theme URI:    https://nshr.co.za/
 Description:  Nadia Smit Property Management
 Author:       Shot On Media
 Author URI:   https://www.shotonmedia.com
 Template:     astra
 Version:      1.0
*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;  
}
.site-header.is-sticky {
    border-bottom: 1px solid #000;
}
/* Normal logo */
.site-logo-img img,
.site-header.is-sticky .site-description {
    transition: all 1s ease;
}

/* Sticky logo */
.site-header.is-sticky .site-logo-img img {
    height: 50px;
	/*max-width: 50px;*/
	width: auto;
}
.site-header.is-sticky .site-description {
	opacity: 0;
	height: 0px;
}

.umbrella-list {
    list-style: none;
    padding-left: 0;
}
.umbrella-list li {
	position: relative;
    padding-left: 32px;
    padding-bottom: 16px;
}

.umbrella-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;

    width: 20px;
    height: 20px;

    background-color: var( --e-global-color-b9ddec2); /* ?? overlay color */

    -webkit-mask-image: url("img/umbrella.png");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;

    mask-image: url("img/umbrella.png");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}

.wp-social-link-whatsapp.whatsapp-footer {
    position: fixed;
    z-index: 9999;
    bottom: 10vh;
    right: 0px;
    padding: 5px 5px;
    width: 70px;
    height: 75px;
    background-color: #ffffff;
    border-radius: 10px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow: 0px 3px 5px rgba(0,0,0,0.5);
    transition: all 0.3s ease-in-out;
}
.wp-social-link-whatsapp.whatsapp-footer:hover {
    width: 80px;
    height: 85px;
}
.wp-social-link-whatsapp.whatsapp-footer svg {
    width: 100%;
    height: 100%;
}
.wp-social-link-whatsapp.whatsapp-footer svg path {
    fill: #25D366
}

/* Theme customization starts here
  -------------------------------------------------------------- */

.site-branding.ast-site-identity {
	text-align:center;
}
.place-card-title {
	color: #ffffff;
}
body.single-place .primary.content-area {
    margin-top: 0px !important;
}
.hidden { display: none;}

/* 1. Define the Animation Keyframes */
@keyframes slide-in-highlight {
    0% {
        width: 0;
		border:none;
    }
    50% {
        width: 0;
		border-width:0;
    }
    100% {
        width: 100%;
		/*border-width: 20px;
		border: 20px solid rgba(0,0,0,0.5);*/
    }
}

/* 2. Style the Parent Span */
.highlight-text,
.highlight-text > * {
    /* Required for positioning the ::after element correctly */
    position: relative; 
	z-index: 2;
    /* The color of the text itself */
    color: #FFFFFF; 
    /* The space around the text, adjust if needed */
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px; 
    padding-top: 10px;
	display: block;
	font-family: "Playball", Sans-serif !important;
	font-size: 1.5em;
	line-height: 1.25em;
	text-shadow: 5px 5px 10px #000000;
}

/* 3. Create and Animate the Highlight Line */
.highlight-text::after {
    content: '';
    /* Position the line under the text */
    position: absolute;
    top: -10%;
    left: 0;
	z-index: -1 !important;
    
    /* Set the line's initial properties */
    height: 120%; /* 6px; /* Adjust thickness */
    /*background-color: #D09E9E; /* The Dusty Rose Accent Color */
	background-image: linear-gradient(to right, #D09E9E, #FFFFFF); 
    /*border: 20px solid #000;*/
	border-radius: 50px;
	opacity: 0.05;
    
    /* Animation Properties */
    width: 0; /* Start width at 0 */
    animation: slide-in-highlight 4.5s ease-out 0.5s forwards; 
    /* Name   | Duration | Timing | Delay | Fill Mode  */
}

.hero-section *:not(span) {
	font-family: "Montserrat", "Ancizar Serif", serif !important;
}



/* Hide modal by default */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 9999; /* Higher than WP Admin bar and headers */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Dimmed background */
    align-items: center;
    justify-content: center;
}

/* When active, use flex to center the box */
.modal-overlay.is-active {
    display: flex;
}

.modal-places-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-places-content {
    max-height: 90vh;
	overflow-y: auto;
}
.modal-places-content #modal-form-container {
    border-top: 2px solid #000;
    margin-top: 20px;
    padding-top: 20px;
}
.modal-places-content .general-info > p {
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}
.modal-places-content span.wpcf7-radio {
    display: block;
    text-align: center;
}
.modal-places-content .general-info > p label {
    width: calc(33.33% - 20px);
}
.modal-places-content form.wpcf7-form {
    display: flex;
    flex-flow: row wrap;
}
.modal-places-content form.wpcf7-form > * {
    width: 100%;
    order: 2;
}
.modal-places-content form.wpcf7-form .wpcf7-response-output {
    order: 1;
    text-align: center;
}
.modal-places-content .booking {
    display: none;
}
.modal-places-content .booking > p,
.modal-places-content .booking > .place-booking-dates > p  {
    display: flex;
    justify-content:  space-between;
    align-items:  center;
    gap: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0px;
}
.modal-places-content .booking > .place-booking-dates > p  {
    font-weight: bold;
}
.modal-places-content .booking > .place-booking-dates > p label {
    width: 35%;
    font-weight: normal;
}
.modal-places-content .booking > p >label:last-child {
    text-align: center;
}
.modal-places-content .submit-btn {
    display: flex;
    justify-content: center;
}
.modal-places-content .submit-btn input {
    background-color: #005bbd;
    color: #fff;
}
.modal-places-content .submit-btn .wpcf7-spinner {
    display: inline-block !important;
}
.modal-places-content .wpcf7-not-valid {
    border: 2px solid #f00;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}
@media(max-width:500px){
    .modal-places-content .general-info > p label,
    .modal-places-content .booking > .place-booking-dates > p label{
        width: 100%;
    } 
    .modal-places-content .booking > .place-booking-dates > p,
    .modal-places-content .booking > p {
        flex-flow: column;
    }
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

.elementor-shortcode .general-info p label {
    margin-bottom: 30px;
    display: block;
}
.elementor-shortcode .wpcf7 .submit-btn p {
    text-align: center;
}
.elementor-shortcode .wpcf7 .submit-btn p input {
    min-width: 35%;
}
.wpcf7-form {
    position: relative;
}
.wpcf7-form .wpcf7-response-output {
    position: absolute;
    left: 2.5%;
    top: 50%;
    width: 95%;
    height: 50%;
    transform: translateY(-60%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    font-size: 2rem;
    border-color: #00a0d2 !important;
    box-shadow: 5px 5px 10px #000;
    border-radius: 10px !important;
    padding-bottom: 110px;
	margin: 0px !important;
}
.wpcf7-form .wpcf7-response-output:after {
    position: absolute;
    bottom: 15px;
    left: 50%;
    width: 120px;
    height: 94px;
    transform: translateX(-50%);
    content: " ";
    background: #fff  url(../../uploads/2025/10/nadia-smit-property-management-120x94.webp) center bottom no-repeat;
    border-radius: 10px;
}


@media(min-width: 768px){
	span.wpcf7-form-control-wrap[data-name="query-type"] {
        margin-top: 0px;
        margin-bottom: 60px;
    }
    span.wpcf7-form-control-wrap[data-name="query-type"] > span {
        display: flex;
        justify-content: space-around;
    }
    span.wpcf7-form-control-wrap[data-name="query-type"] > span > span {
        border: 1px solid rgba(0,0,0,0.2);
        width: 33%;
        padding: 20px;
        text-align: center;
        background-color: #f0d8d8;
        border-color: #f0d8d8;
        border-radius: 5px;
    }
    .elementor-shortcode .booking .place-booking-dates p { display:flex;justify-content: space-between;align-items: flex-start;}
	.elementor-shortcode .booking > p {
		margin: 50px auto;
		display: flex;
		justify-content: space-around;
		align-items: center;
	}
    .elementor-shortcode .booking .place-booking-dates p label {margin-top: 30px;width: 40%;display: block;}
    .elementor-shortcode .booking {display:none;
    }
}