/* Default CSS variables; admin can override via Display settings. */
.adexp-experiences {
	--adexp-primary: #333;
	--adexp-text: #1a1a1a;
	--adexp-text-muted: #555;
	--adexp-border: #ddd;
	--adexp-bg: #fff;
	--adexp-today-bg: rgba(0, 0, 0, 0.04);
	--adexp-error: #b32d2e;
	--adexp-overlay: rgba(255, 255, 255, 0.7);
	--adexp-backdrop: rgba(0, 0, 0, 0.5);
	--adexp-font-sans: 'Inter Tight', sans-serif;
	--adexp-font-serif: 'Lora', serif;
	font-family: var(--adexp-font-sans);
}

/*
 * Border radius: 4px for small controls (filter toggle, buttons, inputs, badges);
 * 6px for cards, panels, view switcher, modal image, summary groups.
 * Breakpoints: 360px (narrow grid), 480px (view switcher full width, card image height),
 * 640px (cards layout column / image stack). Avoid introducing layout gaps between these.
 */

/* Filter bar and drawer */
.adexp-experiences-filters {
	margin-bottom: 1rem;
}

.adexp-filters-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

.adexp-filter-toggle {
	min-height: 44px;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--adexp-primary, #333);
	background: var(--adexp-bg, #fff);
	border: 1px solid var(--adexp-border, #ddd);
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.adexp-filter-toggle:hover {
	background: var(--adexp-today-bg, rgba(0, 0, 0, 0.04));
}

.adexp-filter-toggle:focus,
.adexp-filter-toggle:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
}

.adexp-filter-toggle[aria-expanded="true"] {
	background: var(--adexp-primary, #333);
	color: #fff;
	border-color: var(--adexp-primary, #333);
}

.adexp-filter-summary {
	font-size: 0.8125rem;
	color: var(--adexp-text-muted, #555);
	margin-left: 0.25rem;
}

.adexp-filter-panel[hidden] {
	display: none !important;
}

.adexp-filter-panel:not([hidden]) {
	display: block;
	overflow: hidden;
	animation: adexp-filter-panel-open 0.2s ease-out;
}

@keyframes adexp-filter-panel-open {
	from {
		opacity: 0;
		max-height: 0;
	}
	to {
		opacity: 1;
		max-height: 320px;
	}
}

.adexp-filter-panel-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	padding: 1rem 0 0;
	border-top: 1px solid var(--adexp-border, #ddd);
	margin-top: 0.5rem;
}

.adexp-date-range-fields {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	width: 100%;
}

.adexp-date-range-fields .adexp-filter-date-from,
.adexp-date-range-fields .adexp-filter-date-to {
	padding: 0.5rem 0.6rem;
	min-height: 44px;
	box-sizing: border-box;
	font-size: 0.9375rem;
}

.adexp-date-range-fields .adexp-filter-date-from:focus,
.adexp-date-range-fields .adexp-filter-date-to:focus,
.adexp-date-range-fields .adexp-filter-date-from:focus-visible,
.adexp-date-range-fields .adexp-filter-date-to:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
}

.adexp-filter-preset-next7 {
	min-height: 44px;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	border: 1px solid var(--adexp-border, #ddd);
	background: var(--adexp-bg, #fff);
	color: var(--adexp-text, #1a1a1a);
	border-radius: 4px;
	cursor: pointer;
}

.adexp-filter-preset-next7:hover {
	background: var(--adexp-today-bg, rgba(0, 0, 0, 0.04));
	border-color: var(--adexp-primary, #333);
}

.adexp-filter-type-row {
	width: 100%;
}

.adexp-filter-type-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	margin-top: 0.25rem;
}

.adexp-filter-type-chip {
	padding: 0.35rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 500;
	border: 1px solid var(--adexp-border, #ddd);
	background: var(--adexp-bg, #fff);
	color: var(--adexp-text, #1a1a1a);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.adexp-filter-type-chip:hover {
	background: var(--adexp-today-bg, rgba(0, 0, 0, 0.04));
	border-color: var(--adexp-primary, #333);
}

.adexp-filter-type-chip-active,
.adexp-filter-type-chip[aria-pressed="true"] {
	background: var(--adexp-primary, #333);
	color: #fff;
	border-color: var(--adexp-primary, #333);
}

.adexp-experiences-filter-type-sync {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.adexp-experiences-filters .adexp-filter-label,
.adexp-filter-panel-inner .adexp-filter-label {
	font-size: 0.875rem;
	font-weight: 500;
	margin: 0;
}

.adexp-experiences-filters .adexp-experiences-filter-type,
.adexp-experiences-filters .adexp-experiences-filter-search {
	padding: 0.5rem 0.6rem;
	min-height: 44px;
	box-sizing: border-box;
	font-size: 0.9375rem;
}

.adexp-experiences-filters .adexp-experiences-filter-type:focus,
.adexp-experiences-filters .adexp-experiences-filter-type:focus-visible,
.adexp-experiences-filters .adexp-experiences-filter-search:focus,
.adexp-experiences-filters .adexp-experiences-filter-search:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
}

.adexp-experiences-filters .adexp-experiences-filter-search {
	min-width: 160px;
}

.adexp-experiences-filters input::placeholder {
	font-family: var(--adexp-font-sans);
	font-style: italic;
}

.adexp-experiences-filters .adexp-filter-clear:focus,
.adexp-experiences-filters .adexp-filter-clear:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
}

.adexp-experiences-filters .adexp-filter-find {
	min-height: 44px;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	background: var(--adexp-primary, #333);
	color: #fff;
	border: 1px solid var(--adexp-primary, #333);
	border-radius: 4px;
	cursor: pointer;
}
.adexp-experiences-filters .adexp-filter-find:hover {
	opacity: 0.9;
}
.adexp-experiences-filters .adexp-filter-find:focus,
.adexp-experiences-filters .adexp-filter-find:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
}

.adexp-experiences-filters .adexp-filter-clear {
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	border: 1px solid var(--adexp-border, #ddd);
	background: var(--adexp-bg, #fff);
	color: var(--adexp-text, #1a1a1a);
	cursor: pointer;
	border-radius: 4px;
}

.adexp-experiences-filters .adexp-filter-clear:hover {
	background: var(--adexp-border, #eee);
}

.adexp-search-loading {
	font-size: 0.8125rem;
	color: var(--adexp-text-muted, #555);
}

.adexp-search-loading[hidden] {
	display: none !important;
}

.adexp-result-count {
	font-size: 0.875rem;
	color: var(--adexp-text-muted, #555);
	margin-left: 0.25rem;
}

/* View switcher: single dropdown (Calendar / List / Cards / Photo / Summary) */
.adexp-experiences-view-switcher {
	position: relative;
	display: inline-block;
	margin-bottom: 1rem;
}

.adexp-view-switcher-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 44px;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--adexp-text, #1a1a1a);
	background: var(--adexp-bg, #fff);
	border: 1px solid var(--adexp-border, #ddd);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.adexp-view-switcher-trigger:hover {
	background: var(--adexp-today-bg, rgba(0, 0, 0, 0.04));
}

.adexp-view-switcher-trigger[aria-expanded="true"] {
	background: var(--adexp-primary, #333);
	color: #fff;
	border-color: var(--adexp-primary, #333);
}

.adexp-view-switcher-trigger:focus,
.adexp-view-switcher-trigger:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
}

.adexp-view-switcher-trigger-chevron {
	font-size: 0.65em;
	opacity: 0.9;
}

.adexp-view-switcher-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	min-width: 100%;
	margin-top: 2px;
	padding: 0.25rem 0;
	background: var(--adexp-bg, #fff);
	border: 1px solid var(--adexp-border, #ddd);
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	max-height: 280px;
	overflow-y: auto;
}

.adexp-view-switcher-dropdown[hidden] {
	display: none !important;
}

.adexp-view-switcher-option {
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--adexp-text, #1a1a1a);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.adexp-view-switcher-option:hover {
	background: var(--adexp-today-bg, rgba(0, 0, 0, 0.06));
}

.adexp-view-switcher-option[aria-selected="true"] {
	background: var(--adexp-today-bg, rgba(0, 0, 0, 0.08));
}

.adexp-view-switcher-option:focus,
.adexp-view-switcher-option:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: -2px;
}

@media (max-width: 480px) {
	.adexp-experiences-view-switcher {
		display: block;
		width: 100%;
	}
	.adexp-view-switcher-trigger {
		width: 100%;
		justify-content: space-between;
	}
	.adexp-view-switcher-dropdown {
		left: 0;
		right: 0;
		min-width: 100%;
	}
}

/* Pane visibility when view switcher is active */
.adexp-experiences .adexp-view-pane.adexp-view-pane-hidden {
	display: none !important;
}

/* Cards loading / error / empty */
.adexp-cards-empty-wrap {
	margin: 1rem 0;
	padding: 1rem 0;
}

.adexp-cards-empty-wrap .adexp-cards-empty-msg {
	margin: 0 0 0.5rem;
	color: var(--adexp-text-muted, #555);
	font-size: 0.9375rem;
}

.adexp-cards-loading .adexp-cards-loading-msg,
.adexp-cards-error .adexp-cards-error-msg,
.adexp-cards-empty .adexp-cards-empty-msg {
	margin: 1rem 0;
	color: var(--adexp-text-muted, #555);
	font-size: 0.9375rem;
}

.adexp-cards-error .adexp-cards-error-msg {
	color: var(--adexp-error, #b32d2e);
}

.adexp-cards-retry {
	margin-top: 0.5rem;
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
	cursor: pointer;
}

.adexp-experiences-calendar-wrap {
	position: relative;
}

.adexp-calendar-error {
	margin: 1rem 0;
	color: var(--adexp-text-muted, #555);
	font-size: 0.9375rem;
}

.adexp-experiences-empty-wrap {
	margin: 1rem 0;
}

.adexp-experiences-calendar-wrap .adexp-experiences-empty-wrap .adexp-experiences-empty,
.adexp-experiences-calendar-wrap .adexp-experiences-empty {
	margin: 0 0 0.5rem;
	color: var(--adexp-text-muted, #555);
	font-size: 0.9375rem;
}

/* Month view: event count badge in day cells */
.adexp-day-cell-count {
	display: inline-block;
	min-width: 1.25em;
	margin-left: 0.2em;
	padding: 0.1em 0.35em;
	font-size: 0.7em;
	font-weight: 600;
	line-height: 1.2;
	background: var(--adexp-primary, #333);
	color: #fff;
	border-radius: 999px;
	vertical-align: middle;
}

/* Skeleton loading */
.adexp-card-skeleton,
.adexp-photo-skeleton {
	border-radius: 6px;
	overflow: hidden;
	background: var(--adexp-bg, #fff);
	border: 1px solid var(--adexp-border, #ddd);
}

.adexp-card-skeleton {
	display: flex;
	flex-direction: column;
}

.adexp-card-skeleton .adexp-skeleton-image,
.adexp-photo-skeleton .adexp-skeleton-image {
	width: 100%;
	padding-bottom: 60%;
	background: var(--adexp-border, #eee);
}

.adexp-photo-skeleton .adexp-skeleton-image {
	padding-bottom: 75%;
}

.adexp-skeleton-body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.adexp-skeleton-line {
	display: block;
	height: 0.875rem;
	background: linear-gradient(90deg, var(--adexp-border, #eee) 25%, var(--adexp-today-bg, rgba(0,0,0,0.06)) 50%, var(--adexp-border, #eee) 75%);
	background-size: 200% 100%;
	animation: adexp-skeleton-shimmer 1s ease-in-out infinite;
	border-radius: 4px;
}

.adexp-skeleton-line-short {
	max-width: 60%;
}

.adexp-skeleton-title {
	height: 1.125rem;
}

.adexp-summary-skeleton {
	padding: 1rem;
}

.adexp-summary-skeleton .adexp-skeleton-line {
	margin-bottom: 0.5rem;
}

@keyframes adexp-skeleton-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.adexp-experiences-calendar {
	min-height: clamp(280px, 50vh, 600px);
	border: 1px solid var(--adexp-border, #ddd);
	padding: 0.5rem;
}

.adexp-experiences .fc-day-today {
	background: var(--adexp-today-bg, rgba(0, 0, 0, 0.04));
}

/* FullCalendar toolbar title: Lora to match other titles (e.g. "Mar 1 – 7, 2026"). */
.adexp-experiences .fc-toolbar-title {
	font-family: var(--adexp-font-serif);
}

/* FullCalendar day/column headers: Lora as secondary heading with size/weight hierarchy. */
.adexp-experiences .fc-col-header-cell,
.adexp-experiences .fc-col-header-cell-cushion {
	font-family: var(--adexp-font-serif);
	font-size: 0.875rem;
	font-weight: 600;
}

/* FullCalendar event blocks: align with plugin theme variables */
.adexp-experiences .fc-event {
	background: var(--adexp-primary, #333);
	border-color: var(--adexp-primary, #333);
	color: #fff;
}

.adexp-experiences .fc-event:hover {
	opacity: 0.9;
}

.adexp-experiences .fc-event .fc-event-main {
	font-family: var(--adexp-font-sans);
	font-weight: 500;
	color: inherit;
}

.adexp-experiences-calendar-wrap.adexp-loading {
	position: relative;
}

.adexp-experiences-calendar-wrap.adexp-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--adexp-overlay, rgba(255, 255, 255, 0.7));
	pointer-events: none;
	z-index: 1;
}

.adexp-loading-msg {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	margin: 0;
	color: var(--adexp-text-muted, #555);
	font-size: 0.9375rem;
	pointer-events: none;
}

.adexp-loading-msg[hidden] {
	display: none !important;
}

.adexp-experiences-calendar-wrap.adexp-loading .adexp-loading-msg:not([hidden]) {
	display: block;
}

.adexp-experiences-calendar-error {
	margin: 1rem 0;
	color: var(--adexp-text-muted, #555);
	font-size: 0.9375rem;
}

.adexp-experiences-calendar-error[hidden] {
	display: none !important;
}

.adexp-experiences-calendar-error .adexp-calendar-error-msg {
	margin: 0 0 0.5rem;
	color: var(--adexp-error, #b32d2e);
}

.adexp-experiences-calendar-error .adexp-calendar-retry {
	margin-top: 0.5rem;
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
	cursor: pointer;
}

/* Modal hidden by default; only show when opened (JS removes [hidden]). */
/* Screen-reader-only description for dialog aria-describedby */
.adexp-experiences-modal-desc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.adexp-experiences-modal-backdrop[hidden] {
	display: none !important;
}

.adexp-experiences-modal-backdrop {
	position: fixed;
	inset: 0;
	background: var(--adexp-backdrop, rgba(0, 0, 0, 0.5));
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 1.5rem;
	box-sizing: border-box;
}

.adexp-experiences-modal {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--adexp-bg, #fff);
	max-width: 600px;
	width: 100%;
	max-height: calc(100vh - 3rem);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	font-family: 'Inter Tight', sans-serif;
	overflow: hidden;
	border-radius: 6px;
	box-sizing: border-box;
}

.adexp-experiences-modal-content {
	display: block;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: none;
	position: relative;
}

.adexp-experiences-modal-content::-webkit-scrollbar {
	display: none;
}

/* Scrollable cue: subtle bottom fade when content overflows and scrollbar is hidden. */
.adexp-experiences-modal-content.adexp-modal-content-scrollable::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 24px;
	pointer-events: none;
	background: linear-gradient( to bottom, transparent, var( --adexp-bg, #fff ) );
	opacity: 1;
	transition: opacity 0.15s ease;
}

.adexp-experiences-modal-content.adexp-modal-content-scrollable.adexp-modal-content-at-bottom::after {
	opacity: 0;
}

.adexp-experiences-modal-image-wrap {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--adexp-border, #eee);
}

.adexp-experiences-modal-image-wrap .adexp-experiences-modal-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	overflow: hidden;
	background: var(--adexp-border, #eee);
}

.adexp-experiences-modal-image.adexp-card-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	color: var(--adexp-text-muted, #555);
	font-size: 0.875rem;
}

.adexp-experiences-modal-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.adexp-experiences-modal-inner {
	padding: 1.25rem 1.5rem 1.5rem;
}

.adexp-modal-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 1rem;
	margin: 0.75rem 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.adexp-modal-facts .adexp-modal-fact-label {
	margin: 0;
	font-weight: 500;
	color: var(--adexp-text-muted, #555);
}

.adexp-modal-facts .adexp-modal-fact-value {
	margin: 0;
	color: var(--adexp-text, #1a1a1a);
}

.adexp-experiences-modal-content h2,
#adexp-experiences-modal-title {
	font-family: 'Lora', serif;
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 1.3;
	margin: 0 2rem 0 0;
	margin-bottom: 0.25rem;
	color: var(--adexp-text, #1a1a1a);
}

.adexp-experiences-modal-excerpt-wrap {
	margin-bottom: 1rem;
}

/* Excerpt collapse: ~3 lines when collapsed; full when expanded. */
.adexp-experiences-modal-excerpt-wrap.adexp-excerpt-collapsed .adexp-experiences-modal-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.adexp-excerpt-toggle {
	display: none;
	margin: 0.25rem 0 0;
	padding: 0;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--adexp-primary, #333);
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.adexp-excerpt-toggle:hover {
	opacity: 0.85;
}

.adexp-excerpt-toggle:focus,
.adexp-excerpt-toggle:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
}

.adexp-excerpt-toggle.adexp-excerpt-toggle-visible {
	display: inline-block;
}

.adexp-modal-add-to-calendar {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--adexp-primary, #333);
	border: 1px solid var(--adexp-primary, #333);
	background: transparent;
	border-radius: 4px;
	padding: 0.5rem 1rem;
	font-size: inherit;
	font-weight: 500;
}

.adexp-modal-add-to-calendar:hover {
	background: var(--adexp-primary, #333);
	color: #fff;
}


.adexp-experiences-modal-inner .adexp-experiences-modal-type {
	font-family: 'Inter Tight', sans-serif;
	font-size: 0.8125rem;
	margin: 0 0 0.35rem;
}

.adexp-experiences-modal-type .adexp-type-badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	background: var(--adexp-primary, #333);
	color: #fff;
}

/* Higher specificity than the rule above so the Wine Club Exclusive badge keeps its
   own color in the modal instead of inheriting the primary theme color. */
.adexp-experiences-modal-type .adexp-type-badge.adexp-card-members-only {
	background: var(--adexp-members-only-bg, #6c2eb9);
	color: var(--adexp-members-only-text, #fff);
}

.adexp-experiences-modal-datetime,
.adexp-experiences-modal-location,
.adexp-experiences-modal-venue,
.adexp-experiences-modal-organizer,
.adexp-experiences-modal-price,
.adexp-experiences-modal-excerpt,
.adexp-experiences-modal-content > p {
	font-family: 'Inter Tight', sans-serif;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--adexp-text, #333);
	margin: 0 0 0.5rem;
}

/* Event mode badge: secondary detail — lighter than type badge and Reserve CTA. */
.adexp-experiences-modal-event-mode.adexp-event-mode-badge {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	border: 1px solid var(--adexp-border, #ddd);
	background: transparent;
	color: var(--adexp-text-muted, #666);
	margin: 0 0 0.5rem;
}

.adexp-experiences-modal-excerpt {
	margin: 0 0 0.25rem;
	white-space: pre-line;
}

.adexp-experiences-modal-close {
	font-family: 'Inter Tight', sans-serif;
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	color: var(--adexp-text, #1a1a1a);
	font-size: 1.5rem;
	cursor: pointer;
}
.adexp-experiences-modal-close:hover {
	color: var(--adexp-primary, #333);
}

.adexp-experiences-modal-close:focus,
.adexp-experiences-modal-close:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
}

.adexp-experiences-modal-actions {
	margin-top: 1.25rem;
	display: flex;
	gap: 0.5rem;
}

.adexp-experiences-modal-actions .adexp-modal-action-link {
	font-family: 'Inter Tight', sans-serif;
	font-weight: 500;
	padding: 0.5rem 1rem;
	text-decoration: none;
	cursor: pointer;
	font-size: inherit;
}

.adexp-experiences-modal-actions .adexp-modal-action-primary {
	background: var(--adexp-primary, #333);
	color: #fff;
	border: 1px solid var(--adexp-primary, #333);
	padding: 0.6rem 1.25rem;
	font-weight: 600;
	min-height: 44px;
}

.adexp-experiences-modal-actions .adexp-modal-action-primary:hover,
.adexp-experiences-modal-actions .adexp-modal-action-primary:focus {
	opacity: 0.9;
	filter: brightness(1.05);
}

.adexp-experiences-modal-actions .adexp-modal-action-secondary {
	border: 1px solid var(--adexp-primary, #333);
	color: var(--adexp-primary, #333);
	background: transparent;
}

.adexp-experiences-modal-actions .adexp-modal-action-secondary:hover,
.adexp-experiences-modal-actions .adexp-modal-action-secondary:focus {
	background: var(--adexp-primary, #333);
	color: #fff;
}

.adexp-experiences-modal-actions .adexp-modal-no-actions-msg {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	color: var(--adexp-text-muted, #555);
	width: 100%;
}

/* Card-style list (when style="cards" on shortcode) */
.adexp-experiences-cards .fc-list-event {
	font-family: 'Inter Tight', sans-serif;
}

.adexp-experiences-cards .adexp-fc-card {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	border: 1px solid var(--adexp-border, #ddd);
	border-radius: 6px;
	padding: 0.75rem 1rem;
	margin: 0.25rem 0;
	background: var(--adexp-bg, #fff);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.adexp-experiences-cards .adexp-fc-card-image,
.adexp-experiences-cards .adexp-card-image-placeholder {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--adexp-border, #eee);
}

.adexp-experiences-cards .adexp-card-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	color: var(--adexp-text-muted, #555);
}

.adexp-experiences-cards .adexp-card-image-placeholder .adexp-card-image-placeholder-text,
.adexp-standalone-card .adexp-card-image-placeholder .adexp-card-image-placeholder-text {
	text-align: center;
	padding: 0.25rem;
}

.adexp-experiences-cards .adexp-fc-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.adexp-experiences-cards .adexp-fc-card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.adexp-experiences-cards .adexp-fc-card-title {
	font-family: 'Lora', serif;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
	color: var(--adexp-text, #1a1a1a);
}

.adexp-experiences-cards .adexp-fc-card-type {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	background: var(--adexp-primary, #333);
	color: #fff;
	font-size: 0.75rem;
	margin-bottom: 0.25rem;
}

.adexp-experiences-cards .adexp-fc-card-datetime {
	font-family: 'Inter Tight', sans-serif;
	font-size: 0.875rem;
	color: var(--adexp-text-muted, #555);
}

.adexp-experiences-cards .adexp-fc-card-price {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--adexp-primary, #333);
}

.adexp-experiences-cards .adexp-fc-card-body .adexp-card-venue,
.adexp-experiences-cards .adexp-fc-card-body .adexp-card-organizer {
	font-size: 0.75rem;
	color: var(--adexp-text-muted, #555);
}

.adexp-experiences-cards .adexp-fc-card-body .adexp-card-event-mode {
	font-size: 0.625rem;
}

@media (max-width: 640px) {
	.adexp-experiences-cards .adexp-fc-card {
		flex-direction: column;
	}
	.adexp-experiences-cards .adexp-fc-card-image,
	.adexp-experiences-cards .adexp-card-image-placeholder {
		width: 100%;
		height: 120px;
	}
}

@media (max-width: 480px) {
	.adexp-experiences-cards .adexp-fc-card-image,
	.adexp-experiences-cards .adexp-card-image-placeholder {
		height: 100px;
	}
}

@media (max-width: 360px) {
	.adexp-experiences-standalone-cards {
		grid-template-columns: 1fr;
	}
}

/* Type color: only the experience-type banner/badge background uses the assigned color (inline style from JS). Button, text, border, and shadow are unchanged. */

/* Standalone cards grid (view="cards") — columns from shortcode data-cards-per-row / --adexp-cards-per-row */
.adexp-experiences-standalone-cards {
	--adexp-cards-per-row: 3;
	display: grid;
	grid-template-columns: repeat(var(--adexp-cards-per-row), 1fr);
	gap: 1rem;
}

@media (max-width: 640px) {
	.adexp-experiences-standalone-cards {
		grid-template-columns: 1fr;
	}
}

.adexp-standalone-card {
	border: 1px solid var(--adexp-border, #ddd);
	border-radius: 6px;
	overflow: hidden;
	background: var(--adexp-bg, #fff);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	font-family: 'Inter Tight', sans-serif;
	display: flex;
	flex-direction: column;
}

.adexp-standalone-card:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.adexp-standalone-card:focus,
.adexp-standalone-card:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Photo-first: image ~60% of card height; type badge over image */
.adexp-standalone-card-image-wrap {
	position: relative;
	width: 100%;
	flex: 0 0 auto;
	height: 0;
	padding-bottom: 60%;
	background: var(--adexp-border, #eee);
	overflow: hidden;
}

.adexp-standalone-card-image,
.adexp-standalone-card .adexp-card-image-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: var(--adexp-border, #eee);
	overflow: hidden;
}

.adexp-standalone-card-type.adexp-card-type-over-image {
	position: absolute;
	left: 0.5rem;
	bottom: 0.5rem;
	z-index: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Featured/Members-Only row over the image: absolutely positioned (like the type badge above) so
   it isn't clipped by the image-wrap's zero-height aspect-ratio box, which only lays out
   absolutely-positioned children. Flex row keeps both badges inline side-by-side. */
.adexp-standalone-card-badges {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}
.adexp-standalone-card-badges .adexp-card-members-only {
	margin-top: 0;
}

.adexp-standalone-card .adexp-card-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	color: var(--adexp-text-muted, #555);
}

.adexp-standalone-card-type {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	background: var(--adexp-primary, #333);
	color: #fff;
	font-size: 0.75rem;
	margin-bottom: 0.25rem;
}

.adexp-standalone-card-location {
	font-family: 'Inter Tight', sans-serif;
	font-size: 0.875rem;
	color: var(--adexp-text-muted, #555);
}

.adexp-card-venue,
.adexp-standalone-card-body .adexp-card-venue {
	font-family: 'Inter Tight', sans-serif;
	font-size: 0.875rem;
	color: var(--adexp-text-muted, #555);
	display: block;
}

.adexp-card-organizer,
.adexp-standalone-card-body .adexp-card-organizer {
	font-family: 'Inter Tight', sans-serif;
	font-size: 0.875rem;
	color: var(--adexp-text-muted, #555);
	display: block;
}

.adexp-card-event-mode {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	background: var(--adexp-primary, #333);
	color: #fff;
	margin-top: 0.15rem;
}

.adexp-standalone-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.adexp-standalone-card-body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
	min-height: 0;
}

.adexp-standalone-card-title {
	font-family: 'Lora', serif;
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--adexp-text, #1a1a1a);
}

.adexp-standalone-card-meta-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	font-size: 0.875rem;
	color: var(--adexp-text-muted, #555);
}

.adexp-standalone-card-meta-line .adexp-standalone-card-datetime {
	font-family: 'Inter Tight', sans-serif;
}

.adexp-standalone-card-meta-line .adexp-standalone-card-price {
	font-weight: 600;
	color: var(--adexp-primary, #333);
}

.adexp-standalone-card-cta {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--adexp-primary, #333);
	margin-top: 0.25rem;
}

.adexp-standalone-card-datetime {
	font-family: 'Inter Tight', sans-serif;
	font-size: 0.875rem;
	color: var(--adexp-text-muted, #555);
}

.adexp-standalone-card-price {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--adexp-primary, #333);
}

.adexp-standalone-card-excerpt {
	font-family: 'Inter Tight', sans-serif;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--adexp-text-muted, #555);
	margin: 0.25rem 0 0;
}

/* Card CTA prominence: clearer click affordance */
.adexp-standalone-card:hover .adexp-standalone-card-title {
	color: var(--adexp-primary, #333);
}

/* Photo view: image-heavy grid (view="photo" or Photo tab) */
.adexp-experiences-standalone-photo {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.adexp-photo-card {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	background: var(--adexp-bg, #fff);
	border: 1px solid var(--adexp-border, #ddd);
	cursor: pointer;
	transition: box-shadow 0.2s ease;
	font-family: 'Inter Tight', sans-serif;
}

.adexp-photo-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.adexp-photo-card:focus,
.adexp-photo-card:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.adexp-photo-card-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--adexp-border, #eee);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.adexp-photo-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.adexp-photo-card-placeholder .adexp-card-image-placeholder-text {
	font-size: 0.875rem;
	color: var(--adexp-text-muted, #555);
}

.adexp-photo-card-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.adexp-photo-card-title {
	font-family: 'Lora', serif;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
}

.adexp-photo-card-datetime {
	font-size: 0.8125rem;
	opacity: 0.95;
}

.adexp-photo-card-overlay .adexp-card-venue,
.adexp-photo-card-overlay .adexp-card-organizer {
	font-size: 0.75rem;
	opacity: 0.9;
}

.adexp-photo-card-overlay .adexp-card-event-mode {
	font-size: 0.625rem;
	opacity: 0.95;
	background: rgba(255, 255, 255, 0.25);
}

.adexp-photo-card-price {
	font-size: 0.75rem;
	font-weight: 500;
	opacity: 0.95;
}

.adexp-photo-loading .adexp-photo-loading-msg,
.adexp-photo-error .adexp-photo-error-msg,
.adexp-photo-empty .adexp-photo-empty-msg {
	margin: 1rem 0;
	color: var(--adexp-text-muted, #555);
	font-size: 0.9375rem;
}

.adexp-photo-error .adexp-photo-error-msg {
	color: var(--adexp-error, #b32d2e);
}

.adexp-photo-retry {
	margin-top: 0.5rem;
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
	cursor: pointer;
}

/* Summary view: grouped by week (view="summary" or Summary tab) */
.adexp-experiences-standalone-summary {
	display: block;
}

.adexp-summary-group {
	margin-bottom: 1.5rem;
	border: 1px solid var(--adexp-border, #ddd);
	border-radius: 6px;
	padding: 1rem 1.25rem;
	background: var(--adexp-bg, #fff);
	font-family: 'Inter Tight', sans-serif;
}

.adexp-summary-group-title {
	font-family: 'Lora', serif;
	font-weight: 600;
	font-size: 1.125rem;
	margin: 0 0 0.75rem;
	color: var(--adexp-text, #1a1a1a);
}

.adexp-summary-event-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.adexp-summary-event-list li {
	margin: 0.25rem 0 0;
	/* When type color is set, JS adds border-left and padding-left inline. */
}

.adexp-summary-event-link {
	display: inline-block;
	background: none;
	border: none;
	padding: 0;
	font-size: 0.9375rem;
	color: var(--adexp-primary, #333);
	text-align: left;
	cursor: pointer;
	text-decoration: underline;
	font-family: inherit;
}

.adexp-summary-event-link:hover {
	opacity: 0.85;
}

.adexp-summary-event-link:focus,
.adexp-summary-event-link:focus-visible {
	outline: 2px solid var(--adexp-primary, #333);
	outline-offset: 2px;
}

.adexp-summary-event-meta {
	display: block;
	font-size: 0.8125rem;
	color: var(--adexp-text-muted, #555);
	margin-top: 0.15rem;
	margin-left: 0;
}

.adexp-summary-loading .adexp-summary-loading-msg,
.adexp-summary-error .adexp-summary-error-msg,
.adexp-summary-empty .adexp-summary-empty-msg {
	margin: 1rem 0;
	color: var(--adexp-text-muted, #555);
	font-size: 0.9375rem;
}

.adexp-summary-error .adexp-summary-error-msg {
	color: var(--adexp-error, #b32d2e);
}

.adexp-summary-retry {
	margin-top: 0.5rem;
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
	cursor: pointer;
}

/* Availability badges (sold out / limited). */
.adexp-card-availability {
	display: inline-block;
	margin-top: 0.25rem;
	padding: 0.1rem 0.45rem;
	border-radius: 3px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
}
.adexp-availability-sold_out {
	background: #d63638;
	color: #fff;
}
.adexp-availability-limited {
	background: #b26a00;
	color: #fff;
}
.adexp-experiences-modal-availability {
	margin: 0.25rem 0 0.5rem;
	font-weight: 600;
}
.adexp-experiences-modal-availability.adexp-availability-sold_out {
	color: #d63638;
	background: none;
}
.adexp-experiences-modal-availability.adexp-availability-limited {
	color: #b26a00;
	background: none;
}
.adexp-cta-sold-out {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Featured / pinned badge. */
.adexp-card-featured {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	color: #8a6d00;
	letter-spacing: 0.02em;
}
.adexp-photo-card-overlay .adexp-card-featured,
.adexp-standalone-card-image-wrap .adexp-card-featured {
	color: #ffd35a;
}
.adexp-card-is-featured {
	outline: 2px solid #ffd35a;
	outline-offset: -2px;
}
/* Wine Club Exclusive badge (members-only flag imported from Commerce7). */
.adexp-card-members-only {
	display: inline-block;
	margin-top: 0.25rem;
	padding: 0.1rem 0.45rem;
	border-radius: 3px;
	background: var(--adexp-members-only-bg, #6c2eb9);
	color: var(--adexp-members-only-text, #fff);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Weekly schedule view. */
.adexp-experiences-standalone-schedule {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.75rem;
}
.adexp-schedule-day {
	border: 1px solid var(--adexp-border, #e2e2e2);
	border-radius: 6px;
	padding: 0.6rem 0.75rem;
}
.adexp-schedule-day-title {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
}
.adexp-schedule-standing,
.adexp-schedule-events {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}
.adexp-schedule-standing li {
	margin-bottom: 0.4rem;
	padding-left: 0.5rem;
	border-left: 3px solid var(--adexp-primary, #8a6d00);
}
.adexp-schedule-standing-title { display: block; font-weight: 600; }
.adexp-schedule-standing-time,
.adexp-schedule-standing-note { display: block; font-size: 0.8rem; color: var(--adexp-text-muted, #666); }
.adexp-schedule-events li { margin-bottom: 0.25rem; }
.adexp-schedule-event-link {
	background: none;
	border: none;
	padding: 0;
	text-align: left;
	cursor: pointer;
	color: var(--adexp-primary, #333);
	font: inherit;
}
.adexp-schedule-event-link:hover { text-decoration: underline; }
.adexp-schedule-empty { color: var(--adexp-text-muted, #999); margin: 0; }
.adexp-schedule-loading { opacity: 0.6; }
