/**
 * Base Stock Styles - Custom CSS for the Stock Network Plugin
 * Used for styling the stock search form and results
 * Last updated: 2023
 */

 .stock_item {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

.stock_details h3 {
    text-transform: uppercase;
    color: #0DCDC2 !important;
}


h3.stock_title {
    text-transform: uppercase;
    color: #0DCDC2 !important;
}

 @media only screen and (max-width: 768px) {
	/* For mobile phones: */
	.horizontal-form-container {
		padding: 13px 13px !important;
	}
	.input-container.destination {
		width: 96% !important;
	}
	.input-container2 {
		width: 96% !important;
	}
	.horizontal-form select {
		min-width: 0px !important;
	}
	.horizontal-form input[type="submit"] {
		flex: 0 0 88% !important;
	}
	.input-container {
		width: 48% !important;
	}
	.sn_description {
		margin-left: 0px;
		margin-right: 0px;
	}
}
.loading {
	text-align: center;
	padding: 20px;
	font-style: italic;
	font-family: "Montserrat", Sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3em;
	color: #0dcdc2;
}

.error {
	color: #721c24;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	padding: 15px;
	border-radius: 4px;
	margin: 10px 0;
}

.horizontal-form-container {
	background-color: #ffffff;
	padding: 10px 0px 10px 20px;
	margin: 0;
	box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	margin-bottom: 30px;
}

.horizontal-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.horizontal-form input[type="text"].small {
	/* flex: 0 0 130px; */
	color: #666565;
	border: 1px solid #dfdada;
}

.horizontal-form input[type="text"].large {
	flex: 2;
	color: #666565;
	border: 1px solid #dfdada;
}

.horizontal-form select {
	flex: 1;
	min-width: 150px;
	border: 1px solid #dfdada;
	color: #666565;
	padding-left: 31px;
}

.horizontal-form input[type="radio"] {
	margin-left: 10px;
}

.horizontal-form input[type="submit"] {
	background-color: #0dcdc2;
	color: #fff;
	border: 0px solid #fff;
	flex: 1;
	padding: 10px 20px;
	height: 100%;
}

.hiddenform {
	display: none !important;
}
input#field_85e80a {
	border-style: solid;
	border-width: 1px 1px 1px 1px;
	border-color: #ffffff;
	background-color: transparent;
	border-radius: 25px;
	box-shadow: none;
	font-family: "Maven Pro", sans-serif;
	color: #fff;
	font-weight: 400;
}
label#field_85e80a_label {
	text-align: left;
	font-family: "Maven Pro", sans-serif;
	color: #fff;
	font-weight: 600;
	letter-spacing: 4px;
	font-size: 12px;
	margin-bottom: 10px;
	text-transform: uppercase;
}
div#frm_field_269_container {
	margin-top: 0px;
}
div#frm_field_193_container {
	margin-top: 0px;
}
.ui-datepicker thead {
	background: #0dcdc2 !important;
	color: #ffffff !important;
}

.result_show {
	margin-top: 50px;
	padding-top: 20px;
	font-size: 20px;
	color: #0dcdc2;
	font-weight: 600;
	text-align: center;
	margin-bottom: 20px;
	font-family: "Maven Pro", sans-serif;
	font-weight: 800;
	letter-spacing: 4px;
	font-size: 14px;
	text-transform: uppercase;
}

.result_show {
	font-size: 20px;
	color: #0dcdc2;
	font-weight: 600;
	text-align: center;
	margin-bottom: 20px;
}
.sn_dates {
	float: left;
}
.sn_nights {
	width: 20%;
	float: right;
}
.frm_style_formidable-style.with_frm_style
	.frm_trigger
	.frm_icon_font.frm_arrow_icon:before {
	content: none;
	color: #444;
}
.frm_style_formidable-style.with_frm_style
	.frm_trigger.active
	.frm_icon_font.frm_arrow_icon:before {
	content: none;
	color: #444;
}

form#form_querystock select {
	border-style: solid;
	border-width: 1px 1px 1px 1px;
	border-color: #ffffff;
	background-color: transparent;
	border-radius: 25px;
	box-shadow: none;
	font-family: "Maven Pro", sans-serif;
	color: #fff;
	font-weight: 400;
}

span.sn_book_now_single {
	background-color: #0dcdc2;
	padding: 0px 6px 5px 6px;
	border-radius: 3px;
	font-size: 23px;
	line-height: 16px;
	text-transform: uppercase;
	text-align: center;
	margin: 0 auto;
	/* margin-bottom: 20px; */
	float: right;
}
.sn_cashback {
	margin-bottom: 15px;
	padding-bottom: 00px;
	border-bottom: 1px solid #000;
	background: #ff9c34;
	line-height: 24px;
}
.sn_description p {
	color: #333 !important;
	font-size: 13px;
	text-align: justify;
}
span.cashback_block {
	color: #eee;
	padding: 4px 5px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 500;
}
.sn_area {
	margin-top: -10px;
}
.sn_area h6 {
	background: #ccc;
	padding: 3px;
	margin: 0px;
	text-align: right;
	color: #000;
	font-size: 12px;
}

.ui-datepicker .ui-datepicker-title select.ui-datepicker-month,
.ui-datepicker .ui-datepicker-title select.ui-datepicker-year {
	float: left;
}

.btn_app {
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
	margin: 10px;
	border-radius: 16px;
}
.cashback_ico {
	background-image: url(http://app.avantewealth.co.za/wp-content/uploads/2022/08/cashboack2.png);
	background-size: 20px;
	height: 30px;
	background-repeat: no-repeat;
	position: static;
	top: 0;
	right: 0;
	margin-top: -110px;
	margin-left: 70px;
	z-index: 100;
}
.frm_forms h3 h2 {
	color: #16257e;
	font-size: 22px;
}
.frm_style_formidable-style.with_frm_style .frm_submit button,
.frm_form_submit_style,
.frm_style_formidable-style.with_frm_style .frm-edit-page-btn {
	background: #ffffff;
	border-color: #ffffff;
	border-radius: 40px 40px 40px 40px;
	padding: 9px 25px 9px 25px;
}

#bdt-user-login3aaf9bda .bdt-field-group .bdt-input {
	text-align: center;
}

.ui-datepicker .ui-widget-header,
.ui-datepicker .ui-datepicker-header {
	background: #ffffff !important;
	color: #ffffff !important;
}

.frm_message {
	background-color: #fff !important;
	border: 0px solid #fff !important;
}

/* BOOKING LIST QUERY */
.qapi_booking_single {
	border-bottom: 1px solid #ffffff;
	margin-bottom: 10px;
}

.qapi_booking_top {
	background-color: #172d72;
	color: #ffffff;
	display: flex;
	padding: 10px;
	width: 100%;
}
.qapi_booking_bottom {
	padding: 10px;
	display: flex;
}

.qapi_booking_info a {
	color: #ffffff;
}
.qapi_ref {
	width: 45%;
}
.qapi_status {
	width: 45%;
}
.qapi_booking_info {
	text-align: right;
	width: 10%;
	display: none;
}
.qapi_booking_info a {
	color: #ffffff;
}
.wcc_info_link a {
	color: #ffffff;
}
.qapi_booking_bottom {
	display: flex;
}
.qapi_resortname {
	width: 60%;
}
.qapi_resort_information {
	width: 4%;
	float: left;
	display: none;
}
.qapi_dates {
	float: right;
	width: 30%;
}

.sn_slideshow {
	text-align: center;
	overflow: hidden;
	height: 510px;
	width: 350px;
	margin: 0 auto;
}

.sn_slide-wrapper {
	width: 2192px;
	-webkit-animation: slide 18s ease infinite;
}

.sn_slide {
	float: left;
	height: 510px;
	width: 350px;
}
.sn_slide img {
	width: 350px;
}

.sn_slide:nth-child(1) {
	background: #fff;
}

.sn_slide:nth-child(2) {
	background: #fff;
}

.sn_slide:nth-child(3) {
	background: #fff;
}

.sn_slide:nth-child(4) {
	background: #fff;
}

@-webkit-keyframes slide {
	20% {
		margin-left: 0px;
	}
	30% {
		margin-left: -350px;
	}
	50% {
		margin-left: -350px;
	}
	60% {
		margin-left: -700px;
	}
	70% {
		margin-left: -700px;
	}
	80% {
		margin-left: -1400px;
	}
	90% {
		margin-left: -1400px;
	}
}
/* END SLIDESHOW */
/*SLIDESHOW 2 CSS */
div#crossfade {
	height: 275px;
}
div#crossfade > img {
	width: 100%;
	height: 275px;
	position: absolute;
	color: transparent;
	opacity: 0;
	z-index: 0;
	-webkit-backface-visibility: hidden;
	-webkit-animation: imageAnimation 30s linear infinite 0s;
	-moz-animation: imageAnimation 30s linear infinite 0s;
	-o-animation: imageAnimation 30s linear infinite 0s;
	-ms-animation: imageAnimation 30s linear infinite 0s;
	animation: imageAnimation 30s linear infinite 0s;
}

div#crossfade > img:nth-child(2) {
	-webkit-animation-delay: 6s;
	-moz-animation-delay: 6s;
	-o-animation-delay: 6s;
	-ms-animation-delay: 6s;
	animation-delay: 6s;
}
div#crossfade > img:nth-child(3) {
	-webkit-animation-delay: 12s;
	-moz-animation-delay: 12s;
	-o-animation-delay: 12s;
	-ms-animation-delay: 12s;
	animation-delay: 12s;
}
div#crossfade > img:nth-child(4) {
	-webkit-animation-delay: 18s;
	-moz-animation-delay: 18s;
	-o-animation-delay: 18s;
	-ms-animation-delay: 18s;
	animation-delay: 18s;
}
div#crossfade > img:nth-child(5) {
	-webkit-animation-delay: 24s;
	-moz-animation-delay: 24s;
	-o-animation-delay: 24s;
	-ms-animation-delay: 24s;
	animation-delay: 24s;
}

@-webkit-keyframes imageAnimation {
	0% {
		opacity: 0;
		-webkit-animation-timing-function: ease-in;
	}
	8% {
		opacity: 1;
		-webkit-animation-timing-function: ease-out;
	}
	17% {
		opacity: 1;
	}
	25% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

@-moz-keyframes imageAnimation {
	0% {
		opacity: 0;
		-moz-animation-timing-function: ease-in;
	}
	8% {
		opacity: 1;
		-moz-animation-timing-function: ease-out;
	}
	17% {
		opacity: 1;
	}
	25% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

@-o-keyframes imageAnimation {
	0% {
		opacity: 0;
		-o-animation-timing-function: ease-in;
	}
	8% {
		opacity: 1;
		-o-animation-timing-function: ease-out;
	}
	17% {
		opacity: 1;
	}
	25% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

@-ms-keyframes imageAnimation {
	0% {
		opacity: 0;
		-ms-animation-timing-function: ease-in;
	}
	8% {
		opacity: 1;
		-ms-animation-timing-function: ease-out;
	}
	17% {
		opacity: 1;
	}
	25% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

@keyframes imageAnimation {
	0% {
		opacity: 0;
		animation-timing-function: ease-in;
	}
	8% {
		opacity: 1;
		animation-timing-function: ease-out;
	}
	17% {
		opacity: 1;
	}
	25% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

.sn_pricenorm {
	color: #172d72;
	text-decoration: line-through;
}
.sn_price {
	color: #172d72;
	font-weight: 600;
	text-align: right;
	font-size: 22px;
}
.sn_similar_match {
	clear: both;
}
.sn_direct_match {
	clear: both;
}
.sn_list_item {
	clear: both;
	width: 100%;
	border-bottom: 1px solid #ffffff;
	background-color: #fff;
}
.sn_room_size {

	font-family: "Barlow", Sans-serif;
	font-size: 1.1em;
	color: #172d72;
	font-weight: 600;
	margin-bottom: 6px;
}
.sn_nights {
	text-align: right;
}
.sn_heading {
	font-family: "Barlow", Sans-serif;
	font-size: 18px;
	letter-spacing: 2.2px;
	color: #ffffff !important;
	background-color: #0dcdc2;
	padding: 3px;
	padding-left: 10px;
	padding-right: 10px;
	display: flex;
	justify-content: space-between;
}
.sn_heading h3 {
	color: #ffffff !important;
}
.sn_heading_map a {
	color: #ffffff;
}
.sn_heading_info a {
	color: #ffffff;
	margin-right: 10px;
}

.sn_description {
	color: #999999;
	margin-left: 10px;
	margin-right: 10px;
}
hr {
	height: 1px;
	clear: both;
}
.sn_listings {
	margin-bottom: 20px;
}
.sn_item_details {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
}
.sn_book_now {
	background-color: #0dcdc2;
	/* float: right; */
	padding: 10px 20px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 23px;
	line-height: 23px;
	text-transform: uppercase;
	width: 132px;
	text-align: center;
	margin: 0 auto;
	margin-bottom: 20px;
	margin-top: 20px;
}
.frm_hidden_field_qr {
	display: none;
}

.sn_imagebar {
	width: 100%;
	height: auto;
	overflow: hidden;
	position: relative;
}

.slideshow {
	width: 100%;
	height: 210px;
	position: relative;
	overflow: hidden;
}

.slideshow-container {
	display: flex;
	transition: transform 0.3s ease-in-out;
    gap: 2px;
	height: 100%;
}

.res_img {
	flex: 1;
	min-width: 0;
	overflow: hidden;
    position: relative;
}

.slideshow-container .res_img img {
	width: 100%;
	height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* Media query for mobile devices */
@media screen and (max-width: 767px) {
	.res_img {
		flex: 0 0 100%;
		width: 100%;
	}
}
.wprc-copy-link label {
	width: 100%;
}
.error-message-api {
	text-align: center;
	padding: 30px;
	font-weight: 600;
}
p.elementor-icon-box-description {
	color: #000 !important;
}
div#iframesn-container iframe {
	height: 687px;
}

span.sn_roomdesc {
	font-size: 12px;
	color: #4a4343;
	font-weight: 400;
}
span.strike {
	text-decoration: line-through;
	color: red;
}

label#field_obamy_label {
	text-align: left;
	font-family: "Maven Pro", sans-serif;
	color: #fff;
	font-weight: 600;
	letter-spacing: 4px;
	font-size: 12px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.horizontal-form-container {
	box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
		rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
.ui-datepicker .ui-datepicker-title select.ui-datepicker-month {
	width: 44%;
    margin-right: 10px;
}

.ui-datepicker .ui-datepicker-title select.ui-datepicker-year {
	width: 50%;
}

.input-container {
	position: relative;
	display: flex;
	align-items: center;
	width: 30%;
}

.input-container.submit-button-container {
    width: auto;
}

.input-container input[type="text"] {
	padding-left: 34px !important; /* Adjust this value to make space for the icon */
}

.input-container svg {
	position: absolute;
	left: 10px;
	width: 15px; /* Set the width to 30px */
	height: 100%; /* Set the height to 100% */
	fill: #666565;
	pointer-events: none; /* Ensure the icon does not interfere with input focus */
}

.input-container2 {
	position: relative;
	display: flex;
	align-items: center;
}

.input-container2 svg {
	position: absolute;
	left: 10px;
	width: 15px; /* Set the width to 30px */
	height: 100%; /* Set the height to 100% */
	fill: #666565;
	pointer-events: none;
	top: 0px;
}

.input-container.destination {
	width: 38%;
}
span.ui-datepicker-year {
	color: #000;
}

.sn_heading_map {
	margin-top: 13px;
	margin-left: 20px;
}

.sn_heading_info {
	margin-top: 13px;
	margin-left: 20px;
}

button#clear-destination {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    background-color: transparent;
    color: #6d6767;
    border: 0px solid #fff;
    cursor: pointer;
    padding: 0;
    font-size: 1.2em;
}

.no_results {
	font-size: 20px;
	color: #0dcdc2;
	font-weight: 600;
	background-color: #fff;
	border-radius: 10px;
	padding: 22px;
}

/* STOCK LAYOUT */
.stock_item_header {
	display: flex;
	flex-wrap: wrap;
}

.stock_image {
	flex: 0 0 25%;
	max-width: 25%;
}

.stock_image img {
	width: 100%;
	height: auto;
}

.stock_details {
	flex: 1;
	padding-left: 0px;
}

/* For mobile responsiveness */
@media only screen and (max-width: 768px) {
	.stock_image {
		flex: 0 0 100%;
		max-width: 100%;
		margin-bottom: 15px;
	}
	
	.stock_details {
		flex: 0 0 100%;
		padding-left: 0;
	}
}

/* Add styles for multiple unit types within a resort */
.stock_availability {
    margin-top: 15px;
}

.sn_list_item_details {
    background-color: #f9f9f9;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 3px solid #0dcdc2;
}

.sn_list_item_details:last-child {
    margin-bottom: 0;
}


        /* Voucher form specific styles */
        .voucher-form-container form {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            width: 100%;
        }

        /* Regular fields (voucher code, full name, email, cellphone) */
        .input_container_voucher {
            flex: 1 1 22%;
            min-width: 180px;
        }

        /* Amount field - half width */
        .input_container_voucher.half-width {
            flex: 0 1 11%;
            min-width: 100px;
        }

        .input_container_voucher input {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }

        /* Submit button - half width */
        .voucher-form-container input[type="submit"] {
            flex: 0 1 11%;
            min-width: 100px;
        }

        /* Mobile styles */
        @media (max-width: 768px) {

            .input_container_voucher,
            .input_container_voucher.half-width,
            .voucher-form-container input[type="submit"] {
                flex: 1 1 100%;
            }
        }

/* Styles moved from query-stock-plugin.php */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    color: #333;
    border: 2px solid #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    z-index: 10001;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.show-more-container {
    text-align: center;
    margin: 10px 0;
}

.show-more-button {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9em;
    color: #333;
}

.show-more-button:hover {
    background-color: #e9e9e9;
}

.hidden_units {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.debug-info {
    font-size: 0.8em;
    color: #888;
}

.resort-info-link,
.unit-info-link {
    margin-right: 8px;
}

.unit-info-link svg {
    vertical-align: middle;
}

.stock_external.open-modal-button span {
    color: #fff;
    font-size: 0.6em;
}

.location-icon {
    color: #666;
	margin-bottom: -2px;
}

.stock_location {
    margin-bottom: 13px;
    text-transform: uppercase;
    font-size: 14px;
}