/**
 * Frontend styles for Kash Atalaya Rentals.
 */

.atalaya-reserva-btn {
	display: inline-block;
	padding: 14px 22px;
	background: #AC9B58;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	line-height: 1;
}

.atalaya-reserva-btn:hover {
	opacity: .92;
}

.atalaya-reserva-error {
	color: #3a3325;
	font-size: 13px;
	background: #fbfaf4;
	border-left: 3px solid #AC9B58;
	padding: 10px 12px;
	line-height: 1.45;
}

.atalaya-reserva-error--unavailable {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 10px 0;
}

.atalaya-reserva-alt-btn,
.atalaya-reserva-alt-btn:visited {
	display: inline-block;
	padding: 9px 14px;
	background: #AC9B58;
	color: #fff !important;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
}

.atalaya-reserva-alt-btn:hover {
	opacity: .92;
}

.elementor-form .elementor-message,
.elementor-form .elementor-message-danger,
.elementor-widget-form .elementor-message,
.elementor-widget-form .elementor-message-danger {
	background: #fbfaf4 !important;
	border: 1px solid #e4dcc2 !important;
	border-left: 3px solid #AC9B58 !important;
	color: #2f2f2f !important;
	display: block;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.45 !important;
	margin: 12px 0 0 0 !important;
	padding: 10px 12px !important;
	text-align: left !important;
}

.elementor-form .elementor-message:before,
.elementor-form .elementor-message-danger:before,
.elementor-widget-form .elementor-message:before,
.elementor-widget-form .elementor-message-danger:before,
.elementor-form .elementor-field-group .elementor-message:before,
.elementor-form .elementor-field-group .elementor-message-danger:before {
	content: none !important;
	display: none !important;
}

.elementor-form .elementor-field-group.elementor-error input,
.elementor-form .elementor-field-group.elementor-error textarea,
.elementor-form .elementor-field-group.elementor-error select,
.elementor-form .elementor-field-group input.elementor-error,
.elementor-form .elementor-field-group textarea.elementor-error,
.elementor-form .elementor-field-group select.elementor-error {
	border-color: #AC9B58 !important;
	box-shadow: 0 0 0 1px rgba(172, 155, 88, .16) !important;
}

.elementor-form .elementor-field-group .elementor-message,
.elementor-form .elementor-field-group .elementor-message-danger,
.elementor-form .elementor-field-group .elementor-error {
	color: #3a3325 !important;
	font-size: 12px !important;
	line-height: 1.4 !important;
	margin-top: 6px !important;
}

.elementor-form .elementor-field-group .elementor-message,
.elementor-form .elementor-field-group .elementor-message-danger {
	background: #fbfaf4 !important;
	border: 0 !important;
	border-left: 2px solid #AC9B58 !important;
	padding: 7px 9px !important;
}

/*
 * Houzez listing cards: unavailable properties.
 *
 * The plugin adds stable status classes to the property wrapper
 * through post_class so Elementor/Houzez grids can be styled without editing
 * the widget or the theme templates manually.
 */
.kash-atalaya-property-is-reserved .listing-image-wrap,
.kash-atalaya-property-is-leased .listing-image-wrap,
.kash-atalaya-property-is-reserved .listing-image-wrap .listing-gallery-wrap,
.kash-atalaya-property-is-leased .listing-image-wrap .listing-gallery-wrap,
.kash-atalaya-property-is-reserved .listing-image-wrap .hover-effect,
.kash-atalaya-property-is-leased .listing-image-wrap .hover-effect,
.kash-atalaya-property-is-reserved .listing-image-wrap .hover-effect img,
.kash-atalaya-property-is-leased .listing-image-wrap .hover-effect img {
	position: relative;
}

.kash-atalaya-property-is-reserved .listing-image-wrap,
.kash-atalaya-property-is-leased .listing-image-wrap {
	overflow: hidden;
}

.kash-atalaya-property-is-reserved .listing-image-wrap img,
.kash-atalaya-property-is-leased .listing-image-wrap img {
	filter: grayscale(55%) brightness(.68);
	transform: scale(1.01);
	transition: filter .25s ease, transform .25s ease, opacity .25s ease;
}

.kash-atalaya-property-is-reserved .listing-image-wrap::after,
.kash-atalaya-property-is-leased .listing-image-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 20, 20, .10) 0%, rgba(20, 20, 20, .22) 100%);
	pointer-events: none;
	z-index: 2;
}

.kash-atalaya-property-is-leased .listing-image-wrap::after,
.kash-atalaya-property-is-rented .listing-image-wrap::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .56) 100%);
}

.kash-atalaya-listing-status-badge,
.kash-atalaya-listing-reserved-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	background: rgba(17, 24, 39, .88);
	color: #fff;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	box-shadow: 0 8px 20px rgba(17, 24, 39, .18);
	pointer-events: none;
}

.kash-atalaya-listing-status-badge--leased {
	background: #b3261e !important;
	box-shadow: 0 8px 20px rgba(179, 38, 30, .24);
}

.kash-atalaya-listing-status-badge--reserved {
	background: rgba(17, 24, 39, .88);
}

/* Hide duplicated status text rendered above the image in some Houzez cards. */
.kash-atalaya-property-is-leased > .labels-wrap,
.kash-atalaya-property-is-rented > .labels-wrap,
.kash-atalaya-property-is-leased > .label-status,
.kash-atalaya-property-is-rented > .label-status,
.kash-atalaya-property-is-leased > .hz-status,
.kash-atalaya-property-is-rented > .hz-status,
.kash-atalaya-property-is-leased > .item-status,
.kash-atalaya-property-is-rented > .item-status,
.kash-atalaya-property-is-leased > .property-status,
.kash-atalaya-property-is-rented > .property-status,
.kash-atalaya-property-is-leased > [class*="property-status"],
.kash-atalaya-property-is-rented > [class*="property-status"] {
	display: none !important;
}

.kash-atalaya-property-is-reserved .labels-wrap [class*="status"],
.kash-atalaya-property-is-leased .labels-wrap [class*="status"],
.kash-atalaya-property-is-reserved .labels-wrap .hz-status,
.kash-atalaya-property-is-leased .labels-wrap .hz-status,
.kash-atalaya-property-is-reserved .labels-wrap .label-status,
.kash-atalaya-property-is-leased .labels-wrap .label-status,
.kash-atalaya-property-is-reserved .labels-wrap .item-status,
.kash-atalaya-property-is-leased .labels-wrap .item-status,
.kash-atalaya-property-is-reserved .labels-wrap li:not(.label-featured):not(.label-hot),
.kash-atalaya-property-is-leased .labels-wrap li:not(.label-featured):not(.label-hot),
.kash-atalaya-property-is-reserved .labels-wrap .label,
.kash-atalaya-property-is-leased .labels-wrap .label {
	opacity: .35;
}

.kash-atalaya-property-is-reserved .labels-wrap [class*="status"] + [class*="status"],
.kash-atalaya-property-is-leased .labels-wrap [class*="status"] + [class*="status"],
.kash-atalaya-property-is-reserved .labels-wrap .hz-status + .hz-status,
.kash-atalaya-property-is-leased .labels-wrap .hz-status + .hz-status,
.kash-atalaya-property-is-reserved .labels-wrap .label-status + .label-status,
.kash-atalaya-property-is-leased .labels-wrap .label-status + .label-status {
	display: none !important;
}

.kash-atalaya-property-is-reserved .labels-wrap [class*="label"],
.kash-atalaya-property-is-leased .labels-wrap [class*="label"],
.kash-atalaya-property-is-reserved .labels-wrap .label,
.kash-atalaya-property-is-leased .labels-wrap .label,
.kash-atalaya-property-is-reserved .labels-wrap .item-label,
.kash-atalaya-property-is-leased .labels-wrap .item-label {
	background: #AC9B58 !important;
	color: #fff !important;
	border-color: #AC9B58 !important;
}

.kash-atalaya-property-is-reserved .item-title a,
.kash-atalaya-property-is-leased .item-title a,
.kash-atalaya-property-is-reserved .item-body,
.kash-atalaya-property-is-leased .item-body,
.kash-atalaya-property-is-reserved .item-footer,
.kash-atalaya-property-is-leased .item-footer {
	opacity: .88;
}

.kash-atalaya-property-is-reserved .item-tools a,
.kash-atalaya-property-is-leased .item-tools a,
.kash-atalaya-property-is-reserved .btn,
.kash-atalaya-property-is-leased .btn,
.kash-atalaya-property-is-reserved .houzez-slick-carousel-nav,
.kash-atalaya-property-is-leased .houzez-slick-carousel-nav,
.kash-atalaya-property-is-reserved .item-footer a,
.kash-atalaya-property-is-leased .item-footer a {
	opacity: .62;
}

.kash-atalaya-property-is-reserved .item-tools a:hover,
.kash-atalaya-property-is-leased .item-tools a:hover,
.kash-atalaya-property-is-reserved .btn:hover,
.kash-atalaya-property-is-leased .btn:hover,
.kash-atalaya-property-is-reserved .item-footer a:hover,
.kash-atalaya-property-is-leased .item-footer a:hover {
	opacity: .78;
}

.kash-atalaya-property-is-reserved .kash-atalaya-reserved-cta,
.kash-atalaya-property-is-leased .kash-atalaya-reserved-cta {
	background: #b3261e !important;
	border-color: #9f2019 !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(179, 38, 30, .18) !important;
}

.kash-atalaya-property-is-reserved .kash-atalaya-reserved-cta:hover,
.kash-atalaya-property-is-leased .kash-atalaya-reserved-cta:hover {
	background: #8f1d17 !important;
	border-color: #7f1914 !important;
	color: #fff !important;
}

a.kash-atalaya-reserved-cta,
button.kash-atalaya-reserved-cta,
.btn.kash-atalaya-reserved-cta,
.item-footer a.kash-atalaya-reserved-cta,
.item-footer .btn.kash-atalaya-reserved-cta {
	background: #b3261e !important;
	background-color: #b3261e !important;
	background-image: none !important;
	border-color: #9f2019 !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(179, 38, 30, .18) !important;
}

a.kash-atalaya-reserved-cta:hover,
a.kash-atalaya-reserved-cta:focus,
button.kash-atalaya-reserved-cta:hover,
button.kash-atalaya-reserved-cta:focus,
.btn.kash-atalaya-reserved-cta:hover,
.btn.kash-atalaya-reserved-cta:focus,
.item-footer a.kash-atalaya-reserved-cta:hover,
.item-footer a.kash-atalaya-reserved-cta:focus,
.item-footer .btn.kash-atalaya-reserved-cta:hover,
.item-footer .btn.kash-atalaya-reserved-cta:focus {
	background: #8f1d17 !important;
	background-color: #8f1d17 !important;
	background-image: none !important;
	border-color: #7f1914 !important;
	color: #fff !important;
}

a.kash-atalaya-reserved-cta::before,
a.kash-atalaya-reserved-cta::after,
button.kash-atalaya-reserved-cta::before,
button.kash-atalaya-reserved-cta::after,
.btn.kash-atalaya-reserved-cta::before,
.btn.kash-atalaya-reserved-cta::after {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

/*
 * Resume property card shortcode.
 *
 * Scoped under .kash-atalaya-resume-property-card to avoid side effects on
 * Houzez listing cards that may also use .kash-atalaya-property-card.
 */
.kash-atalaya-resume-property-card.kash-atalaya-property-card {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: 16px;
	padding: 14px;
	border: 1px solid #e2e0d6;
	border-radius: 6px;
	background: #fff;
	max-width: 860px;
	width: 100%;
}

.kash-atalaya-resume-property-card .kash-atalaya-property-card-media {
	min-width: 0;
}

body.atalaya-form-pending .atalaya-section-submitted {
	display: none !important;
}

body.atalaya-form-submitted .atalaya-section-pending {
	display: none !important;
}

.kash-atalaya-resume-property-card .kash-atalaya-property-card-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	background: #f6f6f6;
}

.kash-atalaya-resume-property-card .kash-atalaya-property-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.kash-atalaya-resume-property-card .kash-atalaya-property-card-ref {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
}

.kash-atalaya-resume-property-card .kash-atalaya-property-card-title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	color: #1d2327;
}

.kash-atalaya-resume-property-card .kash-atalaya-property-card-actions {
	margin-top: 4px;
}

@media (max-width: 767px) {
	.kash-atalaya-resume-property-card.kash-atalaya-property-card {
		grid-template-columns: 1fr;
	}
}
