
/* Transition classes for Alpine.js */
[x-cloak] {
	display: none;
}

.enter {
	opacity: 0;
	transform: scale(0.9);
}

.enter-active {
	transition: all 0.3s ease-in-out;
}

.leave {
	opacity: 1;
	transform: scale(1);
}

.leave-active {
	opacity: 0;
	transform: scale(0.9);
	transition: all 0.3s ease-in-out;
}

.aanbod-laden-wrapper,
.geen-aanbod-wrapper {
	width: 100%;
	height: 40vh;
  	display: flex;
  	flex-flow: wrap;
  	align-items: center;
  	justify-content: center;
	font-weight: var(--e-global-typography-primary-font-weight);
	font-family: var(--e-global-typography-primary-font-family);
	font-size: var(--e-global-typography-primary-font-size);
	color: var(--e-global-color-primary);
}

/* Laadscherm (pre-loader) — animated trailing dots, opt-in via peer_listing_preloader_animate_dots.
   Real <span> dots (see peer_listing_render_preloader_text() in shortcodes.php) with staggered
   opacity animation — animating the CSS `content` property directly isn't reliably supported and
   made the dots disappear instead of animate. Used by both the inline loader and the full-screen
   overlay, since both render via the same PHP helper. */
.peer-preloader-dots {
	display: inline-block;
}
.peer-preloader-dots .peer-preloader-dot {
	opacity: 0.2;
	animation: peer-preloader-dot-fade 1.4s infinite;
}
.peer-preloader-dots .peer-preloader-dot:nth-child(1) { animation-delay: 0s; }
.peer-preloader-dots .peer-preloader-dot:nth-child(2) { animation-delay: 0.2s; }
.peer-preloader-dots .peer-preloader-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes peer-preloader-dot-fade {
	0%, 80%, 100% { opacity: 0.2; }
	40% { opacity: 1; }
}

/* Laadscherm — hide independent filter shortcodes until listings have loaded, opt-in via
   peer_listing_preloader_hide_filters (body class added in shortcodes.php, removed by
   listing-page.js once fetchListingsData() settles). */
body.peer-preloader-hide-filters [x-data="filterComponent()"] {
	display: none;
}

/* Laadscherm — full-screen overlay, opt-in via peer_listing_preloader_fullscreen. Printed once
   per page via wp_footer (peer_listing_render_preloader_overlay() in shortcodes.php) and faded
   out by listing-page.js once fetchListingsData() settles. */
#peer-listing-preloader-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	text-align: center;
	opacity: 1;
	transition-property: opacity;
	transition-timing-function: ease;
}
#peer-listing-preloader-overlay.peer-preloader-hidden {
	opacity: 0;
	pointer-events: none;
}

.asset-cards {
	display: flex;
	flex-flow: wrap; /* Allows wrapping to the next row */
	gap: 20px;
	justify-content: flex-start; /* Evenly spaces the items */
}

.asset-card-link {
	flex-basis: calc(33.333333% - 13.333333px);
	box-sizing: border-box;
	text-decoration: none;
	color: inherit;
	display: flex;
	cursor: pointer;
}

.asset-card-link:hover .asset-card {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
	transition: all 0.3s ease;
}

.asset-card {
	flex-basis: calc(33.333333% - 13.333333px); /* Makes each card take up roughly 1/3 of the row minus the gap */
	box-sizing: border-box; /* Ensures padding and border are included in the width */
	border-radius: 8px;
	text-align: center;
	margin-bottom: 20px;
	/* transition: opacity 0.2s ease-in-out, transform 0.8s ease-in-out, visibility 0.2s ease-in-out, position 0.5s ease-in-out; */
}

.peer-card-info-wrapper,
.peer-card-info {
    display: flex;
    flex-flow: wrap;
    justify-content: flex-start;
}
.peer-card-info-wrapper {
	font-family: var(--e-global-typography-text-font-family);
	font-weight: var(--e-global-typography-text-font-weight);
	font-size: var(--e-global-typography-text-font-size);
	/* gap: 20px; */
}

/* elementor voegt hinderlijke margins toe */
.peer-card-info-wrapper p {
	margin-block-end: 0 !important;
}

.peer-card-title,
.peer-card-info,
.peer-card-pricing,
.peer-card-button {
	flex-basis: 100%;
	text-align: left;
}

.peer-card-title {
	padding: 10px 0 0 10px;
}
.peer-card-title p {
	font-size: 18px;
	color: var(--e-global-color-primary);
}

/* Custom Template Styling */
.peer-card-custom-template {
	flex-basis: 100%;
	padding: 5px 10px;
	text-align: left;
	font-family: var(--e-global-typography-text-font-family);
	font-weight: var(--e-global-typography-text-font-weight);
	font-size: var(--e-global-typography-text-font-size);
}

.peer-card-custom-template p {
	margin-block-end: 0;
	padding: 0;
}

.peer-card-custom-template span {
	display: inline;
}

/* Custom Fields Styling (deprecated, kept for backward compat) */
.peer-card-custom-fields {
	flex-basis: 100%;
	padding: 0 10px;
}

.peer-card-custom-field {
	flex-basis: 100%;
	padding: 5px 0;
	text-align: left;
}

.peer-card-custom-field p {
	margin-block-end: 0;
	font-size: 14px;
	color: var(--e-global-color-text);
}

.peer-card-pricing {
	padding: 5px 10px;
}
.peer-card-pricing p {
	margin: 0;
	font-weight: bold;
}
.peer-card-info p {
	margin-block-end: 0;
	padding: 0 10px 5px;
}
.peer-card-info p .peer-label {
	width: 100%;
	margin-right: 4px;
}
.peer-tag {
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: 8px;
	color: #fff;
	background-color: var(--e-global-color-text);
	vertical-align: middle;
}
.peer-card-button {
	display: flex;
	flex-flow: wrap;
	justify-content: flex-end;
}
.peer-card-button a {
	background: var(--e-global-color-accent);
	text-align: center;
	color: #fff;
	padding: 5px 10px;
	transition: background .5s ease;
}
.peer-card-button a:hover {
	background: var(--e-global-color-secondary);
}

@media (max-width: 1024px) {
	.asset-card {
		flex-basis:100%; /* Reduces to 2 columns on smaller screens */
	}
}
@media (max-width: 767px) {
	.asset-card {
		flex-basis:100%; /* Reduces to 2 columns on smaller screens */
	}
}


.asset-image-container {
	position: relative;
	width: 100%;
	padding-top: 66.666%; /* 3:2 aspect ratio (2/3 * 100%) */
	overflow: hidden;
	/*border-radius: 8px;*/
}

.asset-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover; /* Ensures the image fills the container while maintaining aspect ratio */
	/*border-radius: 8px; !* Match the container’s rounded corners *!*/
}

/* .show_asset {
	opacity: 1;
	transform: scale(1);
	visibility: visible;
	position: relative;
} */

/* .hide_asset {
	opacity: 0;
	transform: scale(0.5);
	visibility: hidden;
	position: absolute;
	left:     -10000px;
	top:      auto;
	width:    1px;
	height:   1px;
	overflow: hidden;
} */

/* Filters */
.peer-filters {
	/* Neem Elementor :root als standaard */
	font-family: var(--e-global-typography-text-font-family);
	font-weight: var(--e-global-typography-text-font-weight);
	font-size: var(--e-global-typography-text-font-size);
    color: var(--e-global-color-text);
	/* Einde :root */
    margin-bottom: 24px;
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    gap: 20px;
}
/* div wrapper om individuele types divs. */
.peer-filters-sales-rent-wrapper,
.peer-filters-input-wrapper,
.peer-filters-city-wrapper,
.peer-filters-type-wrapper {
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
	padding-bottom: 20px;
}

.peer-filters-sales-rent-wrapper,
.peer-filters-city-wrapper,
.peer-filters-type-wrapper,
.peer-filters-input-wrapper {
	width: 100%;
	border-bottom: 1px solid rgba(88, 88, 90, 0.2);
}

.peer-filters-select,
.peer-filters-input,
.peer-filters-city-autocomplete {
    border-radius: 0;
    border: 1px solid rgba(88, 88, 90, 0.2);
    padding: 10px;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: #fff;
    width: 100%;
}

/* Specific styling for the autocomplete input - removing arrow to avoid confusion with native selects */
.peer-filters-city-autocomplete {
    appearance: none;
    -webkit-appearance: none;
}

/* Remove default datalist arrow in Chrome/Safari */
.peer-filters-city-autocomplete::-webkit-calendar-picker-indicator {
    display: none !important;
}

.peer-filters button,
.peer-filters-select-button {
	background: var(--e-global-color-accent);
	color: #fff;
	border: none;
	border-radius: 0;
	width: calc(50% - 10px);
	transition: background .5s ease;
}

.peer-filters button:hover,
.peer-filters button.active,
.peer-filters-select-button:hover,
.peer-filters-select-button.active {
	background: var(--e-global-color-secondary);
}

.peer-filters-empty_filters {
	cursor: pointer;
}

/* Mobile-only "show results" button (see [peer_listing_results_button]) */
.peer-listing-results-button-wrapper {
	display: none;
}
.peer-listing-results-button {
	width: 100%;
	padding: 10px;
	cursor: pointer;
	text-align: center;
}
@media (max-width: 1024px) {
	.peer-listing-results-button-wrapper {
		display: block;
	}
}

/* label van min surface en het label van max-surface */
.peer-filters-surface,
.peer-filters-in_units_from {
    width: calc(50% - 10px);
}




/* @keyframes slideaway {
  from { 
	display: block; 
}
  to { 
	transform: translateY(40px); 
	opacity: 0; 
	transform: scale(0.8);
}
} */
/* @keyframes slideaway {
  from { display: block; }
  to { transform: translateY(40px); opacity: 0; transform: scale(0.5)}
}
@keyframes slidein {
  from {
	display: none;
  }
  to { 
	transform: translateY(0px);
	opacity: 1; 
	transform: scale(1);
}
}

.hide_asset {
	animation: slideaway 800ms;
  	display: none;
}

.show_asset {
	animation: slidein 800ms ease 800ms;
	display: block;
} */


.asset-card {
	display: none;
}

.asset-card.hide_asset {
	display: none;
}

.asset-card.show_asset {
	display: block;
}

/* Featured cards (no Alpine filtering) */
.featured-card {
	opacity: 1;
	position: relative;
	animation: none;
}

.featured-cards {
	display: flex;
	flex-flow: wrap;
	gap: 20px;
	justify-content: flex-start;
}

/* Overlay card layout styles */
.peer-card-overlay-link {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	overflow: hidden;
	height: 100%;
}

.peer-card-overlay-link .asset-image-container {
	position: relative;
	width: 100%;
	padding-top: 66.666%; /* 3:2 aspect ratio */
	overflow: hidden;
	border-radius: 8px;
}

.peer-card-overlay-link .asset-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.peer-card-overlay-link:hover .asset-image {
	transform: scale(1.05);
}

.overlay-gradient {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top: 50%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
	pointer-events: none;
}

.peer-card-overlay-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 15px;
	color: white;
	z-index: 2;
}

.overlay-pricing {
	font-weight: bold;
	margin-bottom: 8px;
}

.overlay-title {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 8px;
	color: white;
}

/* Custom Template in Overlay */
.peer-card-overlay-info .peer-card-custom-template {
	padding: 0;
	margin-bottom: 8px;
	font-size: 13px;
}

.peer-card-overlay-info .peer-card-custom-template p,
.peer-card-overlay-info .peer-card-custom-template span {
	color: rgba(255, 255, 255, 0.95);
	margin: 0;
}

/* Custom Fields in Overlay (deprecated) */
.peer-card-overlay-info .peer-card-custom-fields {
	padding: 0;
	margin-bottom: 8px;
}

.peer-card-overlay-info .peer-card-custom-field {
	padding: 0;
}

.peer-card-overlay-info .peer-card-custom-field p {
	color: rgba(255, 255, 255, 0.95);
	font-size: 12px;
}

.overlay-details {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.95);
}

.overlay-details span {
	display: inline-flex;
    align-items: center;
}

.peer-card-info-wrapper .peer-label {
	width: 100%;
}

.overlay-details .peer-tag {
	font-size: 10px;
	padding: 1px 5px;
	margin: 0;
	background-color: rgba(255,255,255,0.8);
    color: #000;
}

.overlay-details span:not(:last-child)::after {
	content: '•';
	margin-left: 8px;
}

.overlay-details span:last-child::after {
	content: '';
}

/* Mobile dropdown fallback for button-mode filters */
.peer-filter-mobile-only {
	display: none;
	width: 100%;
}
@media (max-width: 767px) {
	.peer-filter-desktop-only {
		display: none !important;
	}
	.peer-filter-mobile-only {
		display: block;
	}
	.peer-filter-mobile-only .peer-filters-select {
		width: 100%;
	}
}

/* Dual-handle range slider */
.peer-filters-slider-wrapper {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    margin: 22px 0 8px;
    background: var(--peer-slider-track, #e0e0e0);
}

.peer-filters-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    margin: 0;
    transform: translateY(-50%);
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    outline: none;
}

.peer-filters-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--peer-slider-handle, var(--e-global-color-accent));
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    cursor: pointer;
    pointer-events: all;
}

.peer-filters-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--peer-slider-handle, var(--e-global-color-accent));
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    cursor: pointer;
    pointer-events: all;
    box-sizing: border-box;
}

.peer-filters-slider::-moz-range-track {
    background: transparent;
}

.peer-filters-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--e-global-color-text);
    margin-top: 6px;
}

.peer-filters-price-slider-wrapper {
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(88, 88, 90, 0.2);
}
