/* Event catalog / single / my-events styles ------------------------*/

/* Maps */
.fs-events-map {
	height: 400px;
	margin-bottom: 20px;
}
.fs-map-popup {
	margin: 0;
	padding-left: 18px;
}
.fs-map-popup li {
	margin: 2px 0;
}
#fs-address-map {
	height: 300px;
	max-width: 600px;
	margin-bottom: 8px;
}

/* Filter form */
.fs-event-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
	margin-bottom: 20px;
}
.fs-event-filters p {
	margin: 0;
}
.fs-event-filters select,
.fs-event-filters input[type="text"] {
	min-width: 180px;
}

/* Event list — cards inherit Flatsome's product grid (.products .box).   */
/* Only complementary tweaks live here.                                   */

/* Square thumbnail wrapper; image fits inside without cropping           */
/* (the larger dimension is scaled down to fit, letterboxed).             */
.fs-event-card .box-image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.fs-event-card .box-image > div,
.fs-event-card .box-image > a,
.fs-event-card .box-image .image-zoom_in,
.fs-event-card .box-image .image-zoom_in > a {
	display: block;
	width: 100%;
	height: 100%;
}
.fs-event-card .box-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}
/* Equalize the text area below the image: make the box a flex column and   */
/* let .box-text grow to fill, so all .box-text.box-text-products are the    */
/* same height across a row (Flatsome's flex .row stretches the columns).    */
.fs-event-card .col-inner,
.fs-event-card .product-small.box {
	height: 100%;
}
.fs-event-card .product-small.box {
	display: flex;
	flex-direction: column;
}
.fs-event-card .box-image {
	flex: 0 0 auto;
}
.fs-event-card .box-text.box-text-products {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
/* Push the registration block to the bottom of the equalized text area. */
.fs-event-card .fs-event-card-actions {
	margin-top: auto;
}

.fs-event-meta {
	color: #666;
	font-size: 0.9em;
	margin-bottom: 0.5em;
}
.fs-event-meta-item {
	display: block;
}
.fs-event-meta a:hover {
	text-decoration: none;
}

/* Registration box */
.fs-event-registration {
	margin-top: 12px;
}
.fs-event-capacity {
	font-size: 0.9em;
	margin-bottom: 8px;
}
.fs-event-message {
	display: inline-block;
	margin-left: 8px;
	font-size: 0.9em;
}
.fs-event-empty {
	color: #666;
}