/**
 * Venue template styles.
 * Desktop values come from the old Elementor template (post-54.css); mobile is mobile-first friendly.
 */

@font-face {
	font-family: "segoe ui";
	font-style: normal;
	font-weight: normal;
	font-display: swap;
	src: url("../../../../uploads/2022/12/Segoe-UI.ttf") format("truetype");
}

.esny-venue {
	--esny-red: #ca3a3a;
	--esny-red-dark: #a32b2b;
	--esny-pin: #b22210;
	--esny-ink: #1d1d1d;
	--esny-gutter: 16px;
	--esny-heading: "segoe ui", Sans-serif;
	color: #000;
	background: #fff;
	overflow-wrap: break-word;
}

.esny-venue *,
.esny-venue *::before,
.esny-venue *::after {
	box-sizing: border-box;
}

.esny-venue img,
.esny-venue iframe,
.esny-venue video,
.esny-venue table {
	max-width: 100%;
}

.esny-venue h1,
.esny-venue h2,
.esny-venue h4 {
	margin: 0;
	line-height: 1.2;
}

.esny-icon {
	width: 1em;
	height: 1em;
	flex: none;
	fill: currentColor;
}

.esny-anchor {
	scroll-margin-top: 80px;
}

/* "Read more" for the About text exists on mobile only (see venue.js). */
@media (min-width: 768px) {
	.esny-readmore {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
 * Gallery — mobile/tablet: swipe carousel. Desktop: 1 large + 4 small photos.
 * ------------------------------------------------------------------------ */

.esny-gallery {
	position: relative;
	margin: 0 auto;
}

.esny-gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.esny-gallery__track::-webkit-scrollbar {
	display: none;
}

.esny-gallery__item {
	position: relative; /* keeps the hidden caption inside its photo (no sideways page scroll) */
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
	aspect-ratio: 3 / 2;
	background: #f2f2f2;
	cursor: zoom-in;
}

.esny-gallery__link {
	display: block;
	width: 100%;
	height: 100%;
}

.esny-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Portrait photos: whole picture in the centre, white on the left and right (no cropping). */
.esny-gallery__item.is-portrait {
	background: #fff;
}

.esny-gallery__item.is-portrait .esny-gallery__img {
	object-fit: contain;
}

/* Captions stay in the HTML (as before) but only show in the photo viewer. */
.esny-gallery__caption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.esny-gallery__count {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font: 600 13px/1.4 var(--esny-heading);
	pointer-events: none;
}

.esny-gallery__more {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 0;
	border-radius: 5px;
	background: #fff;
	color: #000;
	font: 600 13px/1.2 var(--esny-heading);
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.esny-gallery__more:hover,
.esny-gallery__more:focus,
.esny-gallery__more:active {
	background: #f2f2f2;
	color: #000;
}

@media (min-width: 1025px) {
	.esny-gallery {
		max-width: 1600px;
		padding: 29px 5px 0;
	}

	.esny-gallery__track {
		display: grid;
		grid-template-columns: 2fr 1fr 1fr;
		grid-template-rows: 1fr 1fr;
		gap: 18px;
		overflow: visible;
	}

	.esny-gallery__item {
		aspect-ratio: 3 / 2;
		min-height: 0;
		border-radius: 5px;
		overflow: hidden;
	}

	/* The large photo fills both rows of small photos exactly; its own shape (landscape or portrait)
	   never changes the grid, because the photo is laid over the cell instead of sizing it. */
	.esny-gallery__item:first-child {
		grid-row: 1 / 3;
		aspect-ratio: auto;
	}

	.esny-gallery__item:first-child .esny-gallery__link {
		position: absolute;
		inset: 0;
	}

	.esny-gallery__item:nth-child(n + 6) {
		display: none;
	}

	.esny-gallery__count {
		display: none;
	}

	.esny-gallery__more {
		right: 35px;
		bottom: 15px;
	}
}

/* ---------------------------------------------------------------------------
 * Main area: details (left 65%) + inquiry form and map (right 34%)
 * ------------------------------------------------------------------------ */

.esny-venue__main {
	max-width: 1600px;
	margin: 0 auto;
	padding: 20px var(--esny-gutter) 0;
}

.esny-venue__headline {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.esny-venue__title {
	color: var(--esny-ink);
	font-family: var(--esny-heading);
	font-size: 23px;
	font-weight: 700;
	letter-spacing: 1px;
}

.esny-venue .esny-venue__price {
	color: #000;
	font-family: var(--esny-heading);
	font-size: 22px;
	font-weight: 700;
}

.esny-venue__address {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--esny-pin);
	font-size: 14px;
}

.esny-venue .esny-venue__address h2 {
	color: #000;
	font-family: var(--esny-heading);
	font-size: 14px;
	font-weight: 700;
}

/* Facts + tour button wrapper: no box of its own except on mobile. */
.esny-venue__actions {
	display: contents;
}

.esny-venue__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--esny-ink);
	font-family: "Helvetica", Sans-serif;
	font-size: 14px;
	font-weight: 500;
}

.esny-venue__facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 8px;
}

.esny-venue__facts li:first-child {
	padding-left: 0;
}

.esny-venue__facts li + li {
	border-left: 1px solid var(--esny-ink);
	line-height: 1.1;
}

.esny-venue__facts .esny-icon {
	color: var(--esny-pin);
	font-size: 14px;
}

.esny-button,
.esny-venue a.esny-button {
	display: block;
	padding: 12px 24px;
	border-radius: 3px;
	background: var(--esny-red);
	color: #fff;
	font-family: var(--esny-heading);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1.4px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
}

.esny-button:hover,
.esny-button:focus-visible,
.esny-venue a.esny-button:hover {
	background: var(--esny-red-dark);
	color: #fff;
}

.esny-venue__tour {
	margin-top: 8px;
}

.esny-venue__manager {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 20px;
	text-align: center;
}

.esny-venue__manager-img {
	width: 38%;
	height: auto;
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
}

.esny-venue__manager-name {
	margin-top: 10px;
	color: #000;
	font-family: var(--esny-heading);
	font-size: 21px;
	font-weight: 600;
}

.esny-venue__manager-role {
	font-family: var(--esny-heading);
}

.esny-venue__about {
	margin-top: 24px;
}

.esny-venue .esny-venue__about-title {
	margin-bottom: 16px;
	color: var(--esny-ink);
	font-family: var(--esny-heading);
	font-size: 20px;
	font-weight: 600;
}

.esny-venue__about-text {
	color: #000;
	font-family: "Arial", Sans-serif;
	font-size: 15px;
}

.esny-venue__about-text * {
	max-width: 100%;
}

.esny-venue__form {
	color: #000;
	font-family: "Inter", Sans-serif;
	font-weight: 500;
}

/* A form chosen in the "Inquiry Form" box gets the same look as the old Elementor form widget. */
.esny-venue__form-chosen {
	--wpforms-field-border-color: #000000eb;
	--wpforms-field-border-color-spare: #000000eb;
	--wpforms-button-background-color: #ca3a3a;
	--wpforms-container-padding: 35px;
	--wpforms-container-border-style: solid;
	--wpforms-container-border-color: #0000002b;
	--wpforms-page-break-color: #ca3a3a;
	--wpforms-container-shadow-size-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.1);
}

.esny-venue__map {
	margin-top: 24px;
}

.esny-venue .esny-venue__section-title {
	color: #000;
	font-family: var(--esny-heading);
	font-size: 22px;
	font-weight: 600;
}

.esny-venue .esny-venue__map-title {
	margin-bottom: 16px;
	color: var(--esny-ink);
	font-size: 20px;
}

.esny-venue__embed iframe {
	display: block;
	width: 100%;
	border: 0;
}

.esny-venue__embed p {
	margin: 0;
}

.esny-venue__divider {
	max-width: 1120px;
	margin: 40px auto;
	border: 0;
	border-top: 1px solid #d3d3d3;
}

.esny-venue__section {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 var(--esny-gutter);
}

.esny-venue__360-embed,
.esny-venue__videos,
.esny-venue__booking {
	margin-bottom: 40px;
}

.esny-venue__videos .esny-venue__section-title,
.esny-venue__floorplan .esny-venue__section-title {
	margin-bottom: 20px;
}

.esny-venue__video-grid {
	display: grid;
	gap: 20px;
}

.esny-venue__video .elementor-wrapper,
.esny-venue__video iframe,
.esny-venue__video .rll-youtube-player {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

.esny-venue__floorplan {
	padding-bottom: 60px;
}

.esny-venue__floorplan-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.esny-venue__floorplan-item {
	margin: 0;
}

.esny-venue__floorplan-item a {
	display: block;
	cursor: zoom-in;
}

.esny-venue__floorplan-item img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------------------
 * Mobile design (below 768px). HTML order is unchanged; CSS only re-orders and restyles.
 * Order on screen: photos → name/price/facts → Schedule a Tour → inquiry form → host → About → map …
 * ------------------------------------------------------------------------ */

@media (max-width: 767px) {
	.esny-venue {
		--esny-gutter: 16px;
		--esny-line: #e6e8ec;
		--esny-muted: #6b7280;
		--esny-soft: #f3f4f6;
	}

	/* Order: a grid lets the host photo sit right of name/price/area (HTML unchanged).
	   The inquiry form comes after About + FAQs; the bottom bar's Inquire button scrolls to it. */
	.esny-venue__main {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"title host"
			"price host"
			"addr  host"
			"actions actions"
			"about about"
			"form  form"
			"map   map";
		align-items: start;
		padding: 18px var(--esny-gutter) 0;
	}

	.esny-venue__left,
	.esny-venue__right,
	.esny-venue__summary,
	.esny-venue__headline {
		display: contents;
	}

	.esny-venue__title { grid-area: title; }
	.esny-venue .esny-venue__price { grid-area: price; margin-top: 4px; }
	.esny-venue__address { grid-area: addr; margin-top: 6px; }
	.esny-venue__actions {
		grid-area: actions;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
		margin-top: 14px;
	}
	.esny-venue__manager { grid-area: host; }
	.esny-venue__form { grid-area: form; }
	.esny-venue__about { grid-area: about; }
	.esny-venue__map { grid-area: map; }

	/* Photos */
	.esny-gallery__item {
		aspect-ratio: 4 / 3;
	}

	.esny-gallery__count {
		font-size: 12px;
	}

	.esny-gallery__more {
		padding: 8px 12px;
		border-radius: 999px;
	}

	/* Name, price, area, facts */
	.esny-venue__title {
		font-size: 24px;
		line-height: 1.25;
		letter-spacing: 0;
	}

	.esny-venue .esny-venue__price {
		font-size: 20px;
	}

	.esny-venue__address {
		font-size: 15px;
	}

	.esny-venue .esny-venue__address h2 {
		color: #333;
		font-size: 15px;
		font-weight: 600;
	}

	.esny-venue__facts {
		flex: 0 1 auto;
		gap: 6px;
	}

	.esny-venue__facts li,
	.esny-venue__facts li:first-child,
	.esny-venue__facts li + li {
		gap: 5px;
		padding: 8px 10px;
		border: 0;
		border-radius: 999px;
		background: var(--esny-soft);
		line-height: 1;
	}

	/* Sits right after the chips when there is room; on narrow phones it wraps below as a small pill. */
	.esny-venue a.esny-venue__tour {
		flex: 0 0 auto;
		margin: 0;
		padding: 8px 12px;
		border: 1.5px solid var(--esny-red);
		border-radius: 999px;
		background: #fff;
		color: var(--esny-red);
		font-size: 14px;
		line-height: 1.15;
		letter-spacing: 0.3px;
		white-space: nowrap;
	}

	.esny-venue a.esny-venue__tour:hover,
	.esny-venue a.esny-venue__tour:focus-visible {
		background: var(--esny-red);
		color: #fff;
	}

	/* Inquiry form: the original WPForms look (black borders, square corners, framed box, no title). */
	.esny-venue__form {
		margin-top: 24px;
		scroll-margin-top: 90px;
	}

	.esny-venue__form .elementor-section .elementor-container,
	.esny-venue__form .elementor-column > .elementor-element-populated,
	.esny-venue__form .elementor-widget-container {
		padding: 0;
	}

	.esny-venue__form .wpforms-field-medium,
	.esny-venue__form .wpforms-field input,
	.esny-venue__form .wpforms-field select,
	.esny-venue__form .wpforms-field textarea {
		max-width: 100% !important;
	}

	.esny-venue__form .wpforms-submit-container button[type="submit"] {
		width: 100%;
	}

	/* Start Time + End Time stay side by side on phones (WPForms stacks every 2-column row below 600px).
	   Only rows holding time fields; other 2-column rows keep stacking so they never get too narrow. */
	.esny-venue div.wpforms-container .wpforms-form .wpforms-field-layout .wpforms-layout-row:has(.wpforms-field-date-time) {
		flex-direction: row;
	}

	.esny-venue div.wpforms-container .wpforms-form .wpforms-field-layout .wpforms-layout-row:has(.wpforms-field-date-time) > .wpforms-layout-column-50 {
		width: 50%;
		padding: 0 10px;
	}

	/* Host: small photo with name, to the right of the venue name */
	.esny-venue__manager {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 84px;
		margin: 0 0 0 12px;
		padding: 0;
		text-align: center;
	}

	.esny-venue__manager-img {
		width: 56px;
	}

	.esny-venue__manager-name {
		margin-top: 6px;
		color: #111;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.2;
	}

	.esny-venue__manager-role {
		margin-top: 2px;
		color: var(--esny-muted);
		font-size: 11px;
		line-height: 1.2;
	}

	/* About + Read more */
	.esny-venue__about {
		margin-top: 26px;
	}

	.esny-venue .esny-venue__about-title {
		margin-bottom: 12px;
		color: #111;
		font-size: 20px;
		font-weight: 700;
	}

	.esny-venue__about-text {
		position: relative;
		color: #222;
		font-size: 15px;
		line-height: 1.65;
	}

	.esny-venue__about-text p {
		margin: 0 0 12px;
	}

	.esny-venue__about-text.is-collapsed {
		max-height: 230px;
		overflow: hidden;
	}

	.esny-venue__about-text.is-collapsed::after {
		content: "";
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 90px;
		background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	}

	.esny-readmore {
		margin: 6px 0 0;
		padding: 0;
		border: 0;
		background: none;
		color: #111;
		font: 700 15px/1.4 var(--esny-heading);
		text-decoration: underline;
		cursor: pointer;
	}

	.esny-readmore:hover,
	.esny-readmore:focus,
	.esny-readmore:active {
		background: none;
		color: var(--esny-red);
	}

	/* Accordions as cards */
	.esny-venue .venue-faq-wrapper {
		margin: 20px 0 0;
	}

	.esny-venue .faq-item {
		margin-bottom: 10px;
		border: 1px solid var(--esny-line);
		border-radius: 12px;
	}

	.esny-venue .faq-trigger {
		padding: 15px 16px;
		background: #fff !important;
		color: #111 !important;
		font-size: 15px;
		font-weight: 600;
	}

	.esny-venue .faq-trigger:hover,
	.esny-venue .faq-item.active .faq-trigger {
		background: #fff !important;
		color: var(--esny-red) !important;
	}

	.esny-venue .faq-icon {
		display: flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		border-radius: 50%;
		background: var(--esny-soft);
		color: #111;
		font-size: 18px;
		line-height: 1;
	}

	.esny-venue .faq-item.active .faq-icon {
		background: var(--esny-red);
		color: #fff;
	}

	.esny-venue .faq-inner {
		padding: 2px 16px 18px;
	}

	/* Map, 360, video, floor plan */
	.esny-venue__map {
		margin-top: 28px;
	}

	.esny-venue .esny-venue__map-title,
	.esny-venue .esny-venue__section-title {
		margin-bottom: 12px;
		color: #111;
		font-size: 20px;
		font-weight: 700;
		text-align: left;
	}

	.esny-venue__map-embed,
	.esny-venue__360-embed,
	.esny-venue__video {
		overflow: hidden;
		border-radius: 12px;
	}

	.esny-venue__map-embed iframe {
		height: 260px;
	}

	.esny-venue__360-embed iframe {
		height: 420px;
	}

	.esny-venue__divider {
		display: none;
	}

	.esny-venue__section {
		margin-top: 28px;
	}

	.esny-venue__360-embed,
	.esny-venue__videos,
	.esny-venue__booking {
		margin-bottom: 0;
	}

	.esny-venue__floorplan-grid {
		grid-template-columns: 1fr;
	}

	.esny-venue__floorplan {
		padding-bottom: 100px; /* room for the bottom bar */
	}

	/* Bottom bar: price + Inquire — visible from page load, hidden while the form itself is on screen */
	body.esny-venue-template {
		padding-bottom: calc(76px + env(safe-area-inset-bottom));
	}

	.esny-sticky-cta {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 999;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 12px var(--esny-gutter) calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--esny-line);
		background: #fff;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
		transform: translateY(110%);
		transition: transform 0.25s ease;
	}

	.esny-sticky-cta.is-visible {
		transform: none;
	}

	/* "Find a venue" AI bot (esny-venue-bot plugin): sit above the bottom bar while the bar is showing. */
	body.esny-venue-template.esny-bar-visible .esny-bot .esny-bot__launcher {
		bottom: calc(88px + env(safe-area-inset-bottom));
	}

	.esny-sticky-cta__info::before {
		content: attr(data-info);
		color: #111;
		font: 700 15px/1.3 var(--esny-heading);
	}

	.esny-venue a.esny-sticky-cta__btn {
		flex: none;
		padding: 14px 28px;
		border-radius: 10px;
		background: var(--esny-red);
		color: #fff;
		font: 700 16px/1 var(--esny-heading);
		letter-spacing: 0.5px;
		text-decoration: none;
	}

	.esny-venue a.esny-sticky-cta__btn:hover,
	.esny-venue a.esny-sticky-cta__btn:focus-visible {
		background: var(--esny-red-dark);
		color: #fff;
	}
}

@media (min-width: 768px) {
	.esny-venue__main {
		display: flex;
		align-items: flex-start;
		gap: 1.13%;
		padding: 20px 10px 0;
	}

	.esny-venue__left {
		width: 65%;
		padding: 10px;
	}

	.esny-venue__right {
		width: 33.87%;
		padding: 10px;
	}

	.esny-venue__summary {
		display: flex;
		align-items: flex-start;
	}

	.esny-venue__headline {
		width: 75.74%;
		padding-right: 10px;
	}

	.esny-venue__manager {
		width: 24.04%;
		margin-top: 0;
		padding: 0 10px;
	}

	.esny-venue__manager-img {
		width: 50%;
	}

	.esny-venue__title {
		font-size: 34px;
	}

	.esny-venue .esny-venue__price {
		font-size: 24px;
	}

	.esny-venue .esny-venue__address h2,
	.esny-venue__address {
		font-size: 16px;
	}

	.esny-venue .esny-venue__about-title {
		font-size: 24px;
	}

	.esny-venue__form {
		padding: 20px;
	}

	.esny-venue__map {
		padding-top: 15px;
	}

	.esny-venue .esny-venue__map-title {
		font-size: 24px;
		text-align: center;
	}

	.esny-venue__map-embed {
		padding: 0 50px;
	}

	.esny-venue .esny-venue__section-title {
		font-size: 32px;
	}

	.esny-venue__section {
		padding: 0 20px;
	}

	.esny-venue__360-embed {
		width: 86%;
		padding-right: 50px;
	}

	.esny-venue__video-grid {
		grid-template-columns: 1fr 1fr;
	}

	.esny-venue__floorplan-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.esny-sticky-cta {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.esny-venue__summary {
		flex-direction: column;
	}

	.esny-venue__headline,
	.esny-venue__manager {
		width: 100%;
		padding: 0;
	}

	.esny-venue__manager {
		margin-top: 20px;
	}

	.esny-venue__manager-img {
		width: 30%;
	}

	.esny-venue__map-embed {
		padding: 0;
	}
}

/* ---------------------------------------------------------------------------
 * Accordions — same styles as the old "Accordians For listing page" snippet
 * ------------------------------------------------------------------------ */

.venue-faq-wrapper { margin: 20px 0; width: 100%; clear: both; }
.faq-item { margin-bottom: 8px; border: none; overflow: hidden; }
.faq-trigger {
	width: 100%; padding: 12px 20px; display: flex; justify-content: space-between;
	align-items: center; background: #EDF1F7 !important; border: none; cursor: pointer;
	font-size: 16px; font-weight: 700; color: #000 !important; text-align: left; transition: 0.2s ease;
}
.faq-trigger:hover, .faq-item.active .faq-trigger { background-color: #ca3a3a !important; color: #ffffff !important; }
.faq-icon { font-size: 24px; font-weight: 900; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); }
.faq-item.active .faq-content { max-height: 9999px; transition: max-height 1s ease-in-out; }
.faq-inner { padding: 25px 20px; color: #333; font-size: 15px; }
.faq-inner p { margin: 0 0 12px 0 !important; line-height: 1.6; }
.faq-inner p:last-child { margin-bottom: 0 !important; }
.faq-inner ul {
	margin: 5px 0 15px 20px !important;
	padding: 0 !important;
	list-style-type: disc !important;
	list-style-position: outside !important;
}
.faq-inner li {
	margin: 0 0 6px 0 !important;
	padding: 0 !important;
	display: list-item !important;
}
.faq-inner strong, .faq-inner b { color: #000; font-weight: 800; }
@media (max-width: 480px) { .faq-trigger { font-size: 15px; padding: 10px 15px; } }

/* ---------------------------------------------------------------------------
 * Photo viewer (opened by "More Photos", a photo, or a floor plan)
 * ------------------------------------------------------------------------ */

/* Fixed + inset so it always covers the whole screen, in every browser. */
.esny-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: #000 !important;
	color: #fff;
	opacity: 1;
}

.esny-lightbox:not([open]) {
	display: none;
}

.esny-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.9);
}

.esny-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 56px 0;
	touch-action: pan-y;
}

.esny-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	user-select: none;
}

.esny-lightbox__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font: 400 28px/1 Arial, sans-serif;
	cursor: pointer;
}

.esny-lightbox__btn:hover,
.esny-lightbox__btn:focus,
.esny-lightbox__btn:active {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.esny-lightbox__close {
	top: 8px;
	right: 8px;
}

.esny-lightbox__prev {
	top: 50%;
	left: 8px;
	transform: translateY(-50%);
}

.esny-lightbox__next {
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
}

.esny-lightbox__count {
	position: absolute;
	top: 18px;
	left: 16px;
	font: 600 14px/1 var(--esny-heading, sans-serif);
}

body.esny-lightbox-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * "More Photos" popup: every photo as a thumbnail; a click opens it in the viewer above.
 * ------------------------------------------------------------------------ */

/* The whole popup scrolls (the bar stays on top); the grid keeps its natural height so rows never overlap. */
.esny-photogrid {
	position: fixed;
	inset: 0;
	z-index: 99999;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: #fff !important;
	color: #111;
}

.esny-photogrid:not([open]) {
	display: none;
}

.esny-photogrid[open] {
	display: flex;
	flex-direction: column;
}

.esny-photogrid::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

.esny-photogrid__bar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #e6e8ec;
	background: #fff;
}

.esny-photogrid__title {
	font: 700 17px/1.3 "segoe ui", Sans-serif;
}

.esny-photogrid__close,
.esny-photogrid__close:hover,
.esny-photogrid__close:focus,
.esny-photogrid__close:active {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #111;
	font: 400 26px/1 Arial, sans-serif;
	cursor: pointer;
}

.esny-photogrid__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	padding: 12px 16px 24px;
}

.esny-photogrid__item,
.esny-photogrid__item:hover,
.esny-photogrid__item:focus,
.esny-photogrid__item:active {
	display: block;
	aspect-ratio: 3 / 2;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 6px;
	background: #f2f2f2;
	cursor: zoom-in;
}

.esny-photogrid__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.esny-photogrid__item:hover img {
	transform: scale(1.03);
}

.esny-photogrid__item.is-portrait {
	background: #fff;
}

.esny-photogrid__item.is-portrait img {
	object-fit: contain;
}

@media (min-width: 768px) {
	.esny-photogrid__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
		padding: 16px 24px 32px;
	}
}

@media (min-width: 1025px) {
	.esny-photogrid__grid {
		grid-template-columns: repeat(4, 1fr);
		max-width: 1400px;
		width: 100%;
		margin: 0 auto;
	}

	.esny-photogrid__bar {
		padding: 14px 24px;
	}
}

/* Mobile: the 3 fact chips + "Schedule a Tour" on one line (wraps only on very narrow phones). */
@media (max-width: 767px) {
	.esny-venue .esny-venue__actions { gap: 5px; }
	.esny-venue .esny-venue__facts { gap: 5px; font-size: 13px; }
	.esny-venue .esny-venue__facts li,
	.esny-venue .esny-venue__facts li:first-child,
	.esny-venue .esny-venue__facts li + li { gap: 4px; padding: 7px 8px; }
	.esny-venue .esny-venue__facts .esny-icon { font-size: 12px; }
	.esny-venue a.esny-venue__tour { padding: 7px 10px; font-size: 13px; letter-spacing: 0; }
}

@media (max-width: 419px) {
	.esny-venue .esny-venue__actions,
	.esny-venue .esny-venue__facts { gap: 4px; }
	.esny-venue .esny-venue__facts { font-size: 12.5px; }
	.esny-venue .esny-venue__facts li,
	.esny-venue .esny-venue__facts li:first-child,
	.esny-venue .esny-venue__facts li + li { gap: 3px; padding: 6px 7px; }
	.esny-venue .esny-venue__facts .esny-icon { font-size: 11px; }
	.esny-venue a.esny-venue__tour { padding: 6px 9px; font-size: 12.5px; }
}

/* ---------------------------------------------------------------------------
 * Mobile: the inquiry form lives in a bottom sheet. The always-visible "Inquire" bar slides it up.
 * The form stays in the same place in the HTML; only its presentation changes on phones.
 * ------------------------------------------------------------------------ */

.esny-sheet-head,
.esny-sheet-backdrop {
	display: none;
}

@media (max-width: 767px) {
	.esny-venue .esny-venue__form {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 2147483000; /* above Pinterest/chat/bot widgets */
		max-height: 88vh;
		max-height: 88dvh;
		margin: 0;
		padding: 0 16px calc(20px + env(safe-area-inset-bottom));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		border-radius: 18px 18px 0 0;
		background: #fff;
		box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
		transform: translateY(105%);
		transition: transform 0.3s ease;
	}

	body.esny-sheet-open .esny-venue .esny-venue__form {
		transform: none;
	}

	body.esny-sheet-open {
		overflow: hidden;
	}

	.esny-sheet-backdrop {
		position: fixed;
		inset: 0;
		z-index: 2147482999;
		display: block;
		background: rgba(0, 0, 0, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}

	body.esny-sheet-open .esny-sheet-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	/* Sticky top of the sheet: grab handle + close button. */
	.esny-sheet-head {
		position: sticky;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		height: 48px;
		margin: 0 -16px;
		padding: 0 10px;
		background: #fff;
	}

	.esny-sheet-head::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 2px;
		background: #d1d5db;
	}

	.esny-sheet-close,
	.esny-sheet-close:hover,
	.esny-sheet-close:focus,
	.esny-sheet-close:active {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #f3f4f6;
		color: #111;
		font: 400 24px/1 Arial, sans-serif;
		cursor: pointer;
	}

	/* Inside the sheet the form has no box of its own: no frame, shadow or inner padding. */
	.esny-venue .esny-venue__form .elementor-widget-wpforms,
	.esny-venue .esny-venue__form-chosen {
		--wpforms-container-padding: 0;
		--wpforms-container-border-style: none;
		--wpforms-container-shadow-size-box-shadow: none;
	}

	.esny-venue__form .wpforms-container {
		margin-top: 0;
	}

	/* While the sheet is open, floating widgets stay out of the way. */
	body.esny-sheet-open [data-pin-log^="button_pinit"],
	body.esny-sheet-open .esny-bot__launcher {
		visibility: hidden !important;
	}
}

/* WPForms date/time pickers open on top of the inquiry sheet (they are attached to <body>). */
body.esny-sheet-open .flatpickr-calendar,
body.esny-sheet-open .ui-timepicker-wrapper {
	z-index: 2147483001 !important;
}

/* ---------------------------------------------------------------------------
 * Photos window tabs (Photos / Floor Plan / Video / 360°) and video/360° slides in the viewer
 * ------------------------------------------------------------------------ */

.esny-photogrid__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.esny-photogrid__tabs {
	display: flex;
	flex: none;
	gap: 8px;
	padding: 10px 16px;
	overflow-x: auto;
	border-bottom: 1px solid #e6e8ec;
	scrollbar-width: none;
}

.esny-photogrid__tabs[hidden] {
	display: none;
}

.esny-photogrid__tabs::-webkit-scrollbar {
	display: none;
}

.esny-photogrid__tab,
.esny-photogrid__tab:hover,
.esny-photogrid__tab:focus,
.esny-photogrid__tab:active {
	flex: none;
	padding: 8px 14px;
	border: 1px solid #e6e8ec;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font: 600 14px/1.2 "segoe ui", Sans-serif;
	white-space: nowrap;
	cursor: pointer;
}

.esny-photogrid__tab.is-active,
.esny-photogrid__tab.is-active:hover,
.esny-photogrid__tab.is-active:focus {
	border-color: #ca3a3a;
	background: #ca3a3a;
	color: #fff;
}

.esny-photogrid__panel {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.esny-photogrid__panel.is-videos {
	display: grid;
	align-content: start;
	gap: 16px;
	padding: 16px;
}

.esny-photogrid__embed {
	width: 100%;
	overflow: hidden;
	background: #000;
}

.esny-photogrid__embed.is-video {
	max-width: 1100px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
}

.esny-photogrid__embed.is-tour {
	height: 100%;
	min-height: 360px;
}

.esny-photogrid__embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (min-width: 768px) {
	.esny-photogrid__body {
		flex-direction: row;
	}

	.esny-photogrid__tabs {
		flex-direction: column;
		width: 200px;
		padding: 16px;
		overflow: visible;
		border-right: 1px solid #e6e8ec;
		border-bottom: 0;
	}

	.esny-photogrid__tab,
	.esny-photogrid__tab:hover,
	.esny-photogrid__tab:focus,
	.esny-photogrid__tab:active {
		width: 100%;
		border-radius: 8px;
		text-align: left;
	}

	.esny-photogrid__panel.is-videos {
		padding: 24px;
	}
}

/* Viewer: a video or 360° slide */
.esny-lightbox__img[hidden],
.esny-lightbox__frame[hidden] {
	display: none;
}

.esny-lightbox__frame {
	width: 100%;
	max-width: 1200px;
	aspect-ratio: 16 / 9;
	background: #000;
}

.esny-lightbox__frame.is-tour {
	max-width: none;
	height: 100%;
	aspect-ratio: auto;
}

.esny-lightbox__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Hero buttons: [▶ Video] [360° View] [More Photos] */
.esny-gallery__actions {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	max-width: calc(100% - 90px);
}

.esny-gallery__actions .esny-gallery__more {
	position: static;
}

.esny-gallery__media .esny-icon {
	width: 12px;
	height: 12px;
}

@media (min-width: 1025px) {
	.esny-gallery__actions {
		right: 35px;
		bottom: 15px;
	}
}
