/*
 * Link RSVP Event Directory (1.37.0, November 2026). Designed with Claude Design; Peter's rules: a section shows
 * only when it has content, every search has its own address, fully responsive.
 * Phone < 640px (cards become rows, filters in a bottom sheet), tablet 640–1023px, desktop 1024px and up.
 * Everything is scoped to .yed; the theme's navbar and global footer are untouched.
 */
.yed {
	--yed-bg: #f5f6f8;
	--yed-ink: #111827;
	--yed-text: #374151;
	--yed-muted: #4b5563;
	--yed-line: #e5e7eb;
	--yed-field: #d1d5db;
	--yed-blue: #2563eb;
	--yed-blue-ink: #1d4ed8;
	--yed-radius: 16px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	background: var(--yed-bg);
	color: var(--yed-ink) !important;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	-webkit-text-size-adjust: 100%;
}
.yed *, .yed *::before, .yed *::after { box-sizing: border-box; }
/* yeap-core's color schemes force `body * { color: … !important }` (white on LinkRSVP's dark scheme). */
.yed * { color: inherit !important; }
/* The band carries the page's title; the theme's own "Event Directory" heading would repeat it. */
body.yei-event-directory-page .entry-header { display: none !important; }
/* The theme frames page content in a padded, rounded box; the directory runs edge to edge under the navbar. */
body.yei-event-directory-page .entry-content:has(> .yed),
body.yei-event-directory-page article:has(.yed) {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
body.yei-event-directory-page .content-section-bg:has(.yed) { margin-bottom: 0 !important; }
/* As the homepage, the theme's front-page template puts content in a 1,200 px rounded box (inline styles). */
body.yei-event-directory-page #front-page-content:has(.yed) {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.yed [hidden] { display: none !important; }
.yed a { color: var(--yed-blue-ink) !important; }
.yed a:focus-visible, .yed button:focus-visible, .yed input:focus-visible, .yed select:focus-visible, .yed .yed-opt input:focus-visible + span {
	outline: 3px solid #93c5fd;
	outline-offset: 2px;
}
.yed h1, .yed h2, .yed h3 { color: inherit !important; margin: 0; letter-spacing: normal; text-transform: none; background: none; -webkit-text-fill-color: currentColor; filter: none; } /* the theme paints h1 with a gradient fill */
.yed p { margin: 0; }
.yed ul { list-style: none; margin: 0; padding: 0; }
.yed .yed-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons (the theme styles bare buttons, so every property is set here) */
.yed .yed-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	white-space: nowrap;
}
.yed .yed-btn-primary { background: var(--yed-blue); color: #fff !important; border-color: var(--yed-blue); }
.yed .yed-btn-primary:hover { background: #1d4ed8; color: #fff !important; }
.yed .yed-btn-light { background: #fff; color: var(--yed-ink) !important; border-color: var(--yed-field); }
.yed .yed-btn-light:hover { background: #f9fafb; color: var(--yed-ink) !important; }
.yed .yed-btn-gold { background: transparent; color: #fde68a !important; border-color: #c9a227; }
.yed .yed-btn-gold:hover { background: rgba(201, 162, 39, 0.15); color: #fde68a !important; }

/* Search band: the admin's hero image, title and description */
.yed-band { position: relative; overflow: hidden; background: #1f2937; color: #fff !important; }
.yed-band-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 0.9s ease; }
.yed-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 24, 39, 0.55) 0%, rgba(17, 24, 39, 0.82) 100%); }
.yed-band-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 32px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.yed-band-compact .yed-band-inner { padding: 16px 24px; }
/* The theme's navbar is fixed (70px) and this page's wrapper rule removes the content's top padding,
   so the band starts under the navbar and carries that space itself (its dark color runs behind the bar). */
body.yei-event-directory-page .yed-band-inner { padding-top: calc(102px + env(safe-area-inset-top, 0px)); }
body.yei-event-directory-page .yed-band-compact .yed-band-inner { padding-top: calc(86px + env(safe-area-inset-top, 0px)); }
.yed-band-copy { display: flex; flex-direction: column; gap: 4px; }
.yed .yed-band-copy .yed-h1 { color: #fff !important; font-size: 30px; line-height: 1.2; font-weight: 700; }
.yed-band-copy p { color: #e5e7eb !important; font-size: 16px; max-width: 760px; }
.yed .yed-band-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: #fff !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.yed .yed-band-link:hover { color: #dbeafe !important; }
/* Under the search: Browse all on the left, the organizer line on the right (stacked on phones). */
.yed-band-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.yed-band-host { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 44px; color: #e5e7eb !important; font-size: 15px; }
.yed .yed-band-host a { display: inline-flex; align-items: center; min-height: 44px; color: #fff !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.yed .yed-band-host a:hover { color: #dbeafe !important; }

.yed .yed-summary { display: none; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin: 0; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; color: var(--yed-ink) !important; font: inherit; font-size: 15px; text-align: left; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.yed-summary-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.yed .yed-summary-edit { flex: 0 0 auto; color: var(--yed-blue-ink) !important; font-size: 14px; font-weight: 600; }
.yed-search { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border-radius: 14px; padding: 8px; color: var(--yed-ink) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.yed .yed-field { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 52px; margin: 0; padding: 6px 12px; border: 1px solid var(--yed-field); border-radius: 10px; background: #fff; cursor: text; }
.yed .yed-field-what { flex: 2 1 260px; }
.yed .yed-field-where { flex: 1 1 200px; }
.yed .yed-field-when { flex: 1 1 170px; cursor: pointer; }
.yed .yed-field > span { font-size: 12px; font-weight: 600; color: var(--yed-muted) !important; line-height: 1.3; }
.yed .yed-field input, .yed .yed-field select {
	width: 100%;
	min-width: 0;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--yed-ink) !important;
	font: inherit;
	font-size: 16px; /* 16px keeps iOS from zooming into the field */
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
}
.yed .yed-field select { cursor: pointer; padding-right: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; }
.yed .yed-field:focus-within { border-color: var(--yed-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.yed .yed-field input:focus-visible, .yed .yed-field select:focus-visible { outline: 0; }
.yed .yed-dates { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.yed .yed-dates .yed-field { flex: 1 1 160px; }
.yed .yed-search-btn { flex: 1 1 120px; min-height: 52px; }

/* Main column */
.yed-main { max-width: 1240px; margin: 0 auto; padding: 40px 24px 56px; display: flex; flex-direction: column; gap: 48px; }
.yed-results { gap: 16px; padding-top: 12px; }
.yed-section { display: flex; flex-direction: column; gap: 16px; }
.yed-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 16px; }
.yed .yed-head h2 { font-size: 24px; line-height: 1.25; font-weight: 700; }
.yed-head p { margin-top: 2px; color: var(--yed-muted) !important; }
.yed .yed-more-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.yed .yed-more-link:hover { text-decoration: underline; }
.yed-center { display: flex; justify-content: center; margin-top: 16px; }

/* Date tabs */
.yed-tabs { display: flex; flex-wrap: wrap; gap: 4px; align-self: flex-start; max-width: 100%; padding: 4px; background: #fff; border: 1px solid var(--yed-line); border-radius: 12px; }
.yed .yed-tab { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--yed-text) !important; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; }
.yed .yed-tab:hover { background: #f3f4f6; color: var(--yed-ink) !important; }
.yed .yed-tab[aria-selected="true"] { background: var(--yed-ink); color: #fff !important; }

/* Card grid */
.yed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.yed-grid-featured { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.yed-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--yed-line); border-radius: var(--yed-radius); overflow: hidden; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.yed-card:hover { box-shadow: 0 6px 20px rgba(17, 24, 39, 0.1); }
.yed-card:focus-within { box-shadow: 0 0 0 3px #93c5fd; }
/* The whole card opens the event (a big target on phones); the ticket button and the heart sit above it. */
.yed .yed-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.yed .yed-card-title a:focus-visible { outline: 0; }
.yed .yed-card-cta { position: relative; z-index: 2; }
.yed-card-featured { border-color: #e9c75a; }
.yed .yed-card-media { position: relative; display: flex; align-items: center; justify-content: center; height: 156px; padding: 0 60px 70px; overflow: hidden; background: var(--yed-tint, #374151); color: #fff !important; text-decoration: none; text-align: center; }
.yed .yed-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; margin: 0; box-shadow: none; }
/* The 70 px bottom padding keeps the category name in the space above the date badge (12 px + the badge). */
.yed-card-cat-art { position: relative; font-size: 20px; font-weight: 700; line-height: 1.2; color: #fff !important; overflow-wrap: anywhere; }
.yed-date { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 10px; background: #fff; color: var(--yed-ink) !important; border-radius: 10px; line-height: 1.1; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.yed-date span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.yed-date span:last-child { font-weight: 600; color: var(--yed-muted) !important; }
.yed-date strong { font-size: 20px; font-weight: 700; }
.yed .yed-save { position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: #fff; color: var(--yed-text) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); cursor: pointer; }
.yed .yed-save svg { fill: none; stroke: currentColor; }
.yed .yed-save:hover { color: #e11d48 !important; }
.yed .yed-save.is-saved, .yed .yed-save[aria-pressed="true"] { color: #e11d48 !important; }
.yed .yed-save.is-saved svg, .yed .yed-save[aria-pressed="true"] svg { fill: currentColor; }

.yed-card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; min-width: 0; }
.yed-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.yed-flags:empty { display: none; }
.yed-badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #f3f4f6; color: var(--yed-text) !important; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.4; }
.yed-badge-gold { background: #fef3c7; color: #92400e !important; text-transform: uppercase; }
.yed-badge-blue { background: #dbeafe; color: #1e3a8a !important; }
.yed-badge-green { background: #dcfce7; color: #166534 !important; }
.yed-card-cat { font-size: 12px; font-weight: 600; color: var(--yed-muted) !important; text-transform: uppercase; letter-spacing: 0.05em; }
/* No picture: the colored block already names the category, so the small label stays for screen readers only. */
.yed .yed-grid-featured .yed-card:not(:has(.yed-card-media img)) .yed-card-cat { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 640px) {
	.yed .yed-grid:not(.yed-grid-rows) .yed-card:not(:has(.yed-card-media img)) .yed-card-cat { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.yed .yed-card-title { font-size: 17px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.yed .yed-card-title a { color: var(--yed-ink) !important; text-decoration: none; }
.yed .yed-card-title a:hover { color: var(--yed-blue-ink) !important; text-decoration: underline; }
.yed-card-when { color: var(--yed-text) !important; font-size: 14px; }
.yed-card-where { color: var(--yed-muted) !important; font-size: 14px; overflow-wrap: anywhere; }
.yed-card-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.yed-card-price { font-weight: 700; font-size: 15px; }
.yed .yed-card-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; margin-left: auto; border: 1px solid var(--yed-blue); border-radius: 10px; color: var(--yed-blue-ink) !important; background: #fff; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.yed .yed-card-cta:hover { background: var(--yed-blue); color: #fff !important; }

/* Rows: phones, and the list beside the map */
.yed-grid-rows { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.yed-grid-rows .yed-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 52px 10px 10px; border-radius: 14px; }
.yed .yed-grid-rows .yed-card-media { height: 96px; padding: 0; border-radius: 10px; }
.yed-grid-rows .yed-card-cat-art { display: none; }
.yed-grid-rows .yed-date { position: relative; left: auto; bottom: auto; min-width: 0; padding: 0; background: transparent; color: #fff !important; box-shadow: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.yed-grid-rows .yed-card-media img + .yed-date { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 3px 0; background: rgba(17, 24, 39, 0.72); border-radius: 8px; text-shadow: none; }
.yed-grid-rows .yed-date span:last-child { color: inherit !important; }
.yed-grid-rows .yed-date strong { font-size: 22px; }
.yed-grid-rows .yed-card-media img + .yed-date strong { font-size: 16px; }
.yed-grid-rows .yed-card-body { padding: 0; gap: 2px; }
.yed-grid-rows .yed-card-title { font-size: 15px; }
.yed-grid-rows .yed-card-when, .yed-grid-rows .yed-card-where { font-size: 13px; }
.yed-grid-rows .yed-card-foot { padding-top: 0; gap: 4px 8px; }
.yed-grid-rows .yed-card-price { font-size: 14px; }
.yed .yed-grid-rows .yed-card-cta { min-height: 44px; padding: 0; border: 0; background: transparent; }
.yed .yed-grid-rows .yed-card-cta:hover { background: transparent; color: var(--yed-blue) !important; text-decoration: underline; }
.yed .yed-grid-rows .yed-save { top: 4px; right: 4px; box-shadow: none; background: transparent; }

/* Categories and cities */
.yed-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.yed .yed-tile { display: flex; align-items: center; gap: 10px; min-height: 60px; height: 100%; padding: 8px 12px; background: #fff; border: 1px solid var(--yed-line); border-radius: 12px; color: var(--yed-ink) !important; text-decoration: none; }
.yed .yed-tile:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06); }
.yed-tile-bar { flex: 0 0 auto; width: 12px; height: 32px; border-radius: 4px; }
.yed-tile-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.yed-tile-text strong { font-size: 14px; font-weight: 600; }
.yed-tile-text span { color: var(--yed-muted) !important; font-size: 13px; }
.yed-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.yed .yed-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--yed-field); border-radius: 999px; color: var(--yed-ink) !important; font-size: 14px; text-decoration: none; }
.yed .yed-pill strong { font-weight: 600; }
.yed .yed-pill span { color: var(--yed-muted) !important; }
.yed .yed-pill:hover { border-color: var(--yed-blue); }

/* Organizer call to action and empty states */
.yed-host { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 36px; background: var(--yed-ink); color: #fff !important; border-radius: 20px; }
.yed-host > div:first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.yed-host-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 14px !important; }
.yed-host-points li { display: flex; align-items: flex-start; gap: 10px; color: #e5e7eb !important; font-size: 15px; line-height: 1.4; }
.yed-host-points svg { flex: 0 0 auto; margin-top: 1px; color: #93c5fd !important; }
.yed .yed-host h2 { font-size: 24px; font-weight: 700; color: #fff !important; }
.yed-host p { color: #d1d5db !important; }
.yed-host-actions { flex: 0 1 280px; display: flex; flex-direction: column; gap: 10px; }
.yed-host-actions .yed-btn { width: 100%; }
.yed .yed-btn-outline { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, 0.55); }
.yed .yed-btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; }
.yed .yed-host-video { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: #bfdbfe !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.yed .yed-host-video:hover { color: #fff !important; }
.yed-disclosure { margin-top: 12px !important; color: var(--yed-muted) !important; font-size: 13px; line-height: 1.45; }
.yed-results .yed-disclosure { margin-top: 0 !important; }
.yed-head .yed-disclosure { margin-top: 4px !important; }
.yed-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; text-align: center; background: #fff; border: 1px solid var(--yed-line); border-radius: 20px; }
.yed-empty svg { color: var(--yed-blue) !important; }
.yed .yed-empty h2 { font-size: 24px; font-weight: 700; }
.yed-empty p { max-width: 480px; color: var(--yed-muted) !important; }
.yed-empty .yed-btn { margin-top: 8px; }

/* Results */
.yed .yed-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 14px; text-decoration: none; }
.yed .yed-back:hover { text-decoration: underline; }
.yed-results-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.yed .yed-results-head .yed-h1 { flex: 1 1 420px; min-width: 0; font-size: 30px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.yed .yed-share { min-height: 44px; padding: 0 16px; }
.yed .yed-share .yed-done-icon, .yed .yed-share .yed-sheet-icon { display: none; }
/* Where the button opens the phone's share sheet it shows the share icon, not the link icon. */
.yed .yed-share.can-share .yed-sheet-icon { display: inline; }
.yed .yed-share.can-share .yed-share-icon { display: none; }
.yed .yed-share.is-copied { background: #dcfce7; border-color: #86efac; color: #166534 !important; }
.yed .yed-share.is-copied .yed-done-icon { display: inline; }
.yed .yed-share.is-copied .yed-share-icon { display: none; }
.yed-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yed .yed-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 14px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; color: #1e3a8a !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.yed .yed-chip:hover { background: #dbeafe; color: #1e3a8a !important; }
.yed .yed-clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.yed-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--yed-line); border-bottom: 1px solid var(--yed-line); }
.yed-toolbar-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.yed .yed-select { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 12px; background: #fff; border: 1px solid var(--yed-field); border-radius: 10px; }
.yed .yed-select > span { font-size: 13px; font-weight: 600; color: var(--yed-muted) !important; }
.yed .yed-select select { min-height: 0; height: auto; margin: 0; padding: 0 18px 0 0; border: 0; outline: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; box-shadow: none; color: var(--yed-ink) !important; font: inherit; font-size: 14px; cursor: pointer; -webkit-appearance: none; appearance: none; max-width: 230px; }
.yed .yed-select:focus-within { border-color: var(--yed-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.yed .yed-filters-btn { display: none; min-height: 44px; padding: 0 14px; font-size: 14px; }
.yed-views { display: inline-flex; gap: 4px; padding: 3px; background: #fff; border: 1px solid var(--yed-field); border-radius: 10px; }
.yed .yed-view { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; min-width: 72px; padding: 0 12px; border-radius: 8px; color: var(--yed-text) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.yed .yed-view:hover { background: #f3f4f6; color: var(--yed-ink) !important; }
.yed .yed-view[aria-current="true"] { background: var(--yed-ink); color: #fff !important; }

.yed-results-body { min-width: 0; }
.yed-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.yed-map { position: sticky; top: 90px; height: 680px; max-height: calc(100vh - 110px); background: #e3e9ee; border: 1px solid var(--yed-field); border-radius: var(--yed-radius); overflow: hidden; z-index: 0; }
/* The page's own wrapper rule sets overflow:visible on every [class*="container"], which includes .leaflet-container. */
body.yei-event-directory-page .yed .yed-map { overflow: hidden !important; }
.yed-map-note { position: absolute; inset: auto 12px 12px 12px; z-index: 500; padding: 8px 12px; background: #fff; border-radius: 8px; color: var(--yed-text) !important; font-size: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.yed .yed-map .leaflet-container { font: inherit; }
.yed-pin { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 3px solid #fff; border-radius: 999px; background: var(--yed-blue); color: #fff !important; font-size: 13px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.yed-pop { display: flex; flex-direction: column; gap: 6px; max-width: 240px; font-size: 14px; }
.yed-pop strong { font-size: 14px; }
.yed-pop a { font-weight: 600; }

.yed-more { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 8px; color: var(--yed-muted) !important; font-size: 14px; }
.yed-more .yed-btn { min-width: 160px; }
.yed-more .yed-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.yed-skeleton { pointer-events: none; }
.yed-skeleton .yed-card-media { background: #e5e7eb; }
.yed-skeleton i { display: block; height: 12px; border-radius: 6px; background: #e5e7eb; }
.yed-skeleton i + i { margin-top: 8px; background: #eceef1; }
.yed-load-error { color: #b91c1c !important; font-weight: 600; text-align: center; }

/* Phone filters: bottom sheet (moved to the end of <body> by the script, above the theme's bars at 99999) */
.yed.yed-sheet-host { position: static; width: 0; height: 0; background: none; }
.yed-sheet { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; }
.yed-sheet-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, 0.55); }
.yed-sheet-panel { position: relative; width: 100%; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; margin: 0; background: #fff; color: var(--yed-ink) !important; border-radius: 20px 20px 0 0; overflow: hidden; }
.yed-sheet-grip { width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--yed-field); }
.yed-sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 4px 20px; }
.yed .yed-sheet-top h2 { font-size: 20px; font-weight: 700; }
.yed .yed-icon-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--yed-ink) !important; box-shadow: none; cursor: pointer; }
.yed-sheet-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 22px; }
.yed-sheet-body fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.yed-sheet-body legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.yed-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.yed .yed-opt { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.yed .yed-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.yed .yed-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--yed-field); border-radius: 999px; background: #fff; color: var(--yed-ink) !important; font-size: 14px; font-weight: 600; }
.yed .yed-opt input:checked + span { background: var(--yed-ink); border-color: var(--yed-ink); color: #fff !important; }
.yed .yed-sheet-where { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.yed .yed-sheet-where span { font-weight: 700; }
.yed .yed-sheet-where input { min-height: 48px; width: 100%; margin: 0; padding: 0 14px; border: 1px solid var(--yed-field); border-radius: 10px; background: #fff; color: var(--yed-ink) !important; font: inherit; font-size: 16px; box-shadow: none; }
.yed-sheet-actions { display: flex; gap: 10px; padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--yed-line); background: #fff; }
.yed-sheet-actions .yed-btn-primary { flex: 1 1 auto; }
html.yed-locked, html.yed-locked body { overflow: hidden !important; }

/* Tablet */
@media (max-width: 1023.98px) {
	.yed .yed-results-head .yed-h1 { font-size: 26px; }
	.yed .yed-band-copy .yed-h1 { font-size: 28px; }
	.yed-map-layout { grid-template-columns: minmax(0, 1fr); }
	.yed-map { order: -1; position: relative; top: auto; height: 420px; }
	.yed-main { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

/* Phone */
@media (max-width: 639.98px) {
	.yed-band-inner { padding: 20px 16px 24px; }
	.yed-band-compact .yed-band-inner { padding: 12px 16px; }
	body.yei-event-directory-page .yed-band-inner { padding-top: calc(90px + env(safe-area-inset-top, 0px)); }
	body.yei-event-directory-page .yed-band-compact .yed-band-inner { padding-top: calc(82px + env(safe-area-inset-top, 0px)); }
	.yed .yed-band-copy .yed-h1 { font-size: 24px; }
	.yed-band-copy p { font-size: 15px; }
	.yed .yed-field, .yed .yed-field-what, .yed .yed-field-where, .yed .yed-field-when, .yed .yed-search-btn { flex: 1 1 100%; }
	.yed-main { padding: 28px 16px 40px; gap: 36px; }
	.yed-results { padding-top: 8px; gap: 14px; }
	.yed .yed-head h2 { font-size: 21px; }
	.yed-results-head { flex-wrap: nowrap; align-items: center; gap: 12px; }
	.yed .yed-results-head .yed-h1 { flex: 1 1 auto; font-size: 20px; }
	.yed .yed-share { flex: 0 0 44px; width: 44px; padding: 0; }
	.yed .yed-share [data-yed-share-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.yed-results .yed-chips, .yed-results .yed-back { display: none; }
	/* The search as one line; tapping it opens the form (only with the script, which does the opening) */
	.yed.yed-js .yed-band-compact .yed-summary { display: flex; }
	.yed.yed-js .yed-band-compact .yed-search:not(.is-open) { display: none; }
	.yed.yed-js .yed-band-compact .yed-search.is-open { margin-top: 8px; }

	.yed-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.yed-grid-featured { gap: 16px; }
	/* Cards become rows (except Featured, which keeps its picture) */
	.yed-grid:not(.yed-grid-featured) .yed-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 52px 10px 10px; border-radius: 14px; }
	.yed .yed-grid:not(.yed-grid-featured) .yed-card-media { height: 96px; padding: 0; border-radius: 10px; }
	.yed-grid:not(.yed-grid-featured) .yed-card-cat-art { display: none; }
	.yed-grid:not(.yed-grid-featured) .yed-date { position: relative; left: auto; bottom: auto; min-width: 0; padding: 0; background: transparent; color: #fff !important; box-shadow: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
	.yed-grid:not(.yed-grid-featured) .yed-card-media img + .yed-date { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 3px 0; background: rgba(17, 24, 39, 0.72); border-radius: 8px; text-shadow: none; }
	.yed-grid:not(.yed-grid-featured) .yed-date span:last-child { color: inherit !important; }
	.yed-grid:not(.yed-grid-featured) .yed-date strong { font-size: 22px; }
	.yed-grid:not(.yed-grid-featured) .yed-card-media img + .yed-date strong { font-size: 16px; }
	.yed-grid:not(.yed-grid-featured) .yed-card-body { padding: 0; gap: 2px; }
	.yed .yed-grid:not(.yed-grid-featured) .yed-card-title { font-size: 15px; }
	.yed-grid:not(.yed-grid-featured) .yed-card-when, .yed-grid:not(.yed-grid-featured) .yed-card-where { font-size: 13px; }
	.yed-grid:not(.yed-grid-featured) .yed-card-foot { padding-top: 0; gap: 4px 8px; }
	.yed-grid:not(.yed-grid-featured) .yed-card-price { font-size: 14px; }
	.yed .yed-grid:not(.yed-grid-featured) .yed-card-cta { padding: 0; border: 0; background: transparent; }
	.yed .yed-grid:not(.yed-grid-featured) .yed-card-cta:hover { background: transparent; color: var(--yed-blue) !important; text-decoration: underline; }
	.yed .yed-grid:not(.yed-grid-featured) .yed-save { top: 4px; right: 4px; box-shadow: none; background: transparent; }
	/* The sections show four events on a phone; "See all" opens the rest */
	.yed-is-landing .yed-grid:not(.yed-grid-featured) > .yed-card:nth-child(n+5) { display: none; }

	.yed-tabs { align-self: stretch; }
	.yed .yed-tab { flex: 1 1 auto; padding: 0 12px; }
	.yed-center .yed-btn { width: 100%; white-space: normal; }
	.yed-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yed-host { padding: 24px 20px; }
	.yed-host-actions { flex-basis: 100%; }
	.yed-host-points { grid-template-columns: minmax(0, 1fr); }

	.yed-toolbar { border-top: 0; padding-top: 0; gap: 8px; }
	.yed-toolbar-filters { flex: 1 1 200px; flex-wrap: nowrap; gap: 8px; min-width: 0; }
	.yed .yed-filters-btn { display: inline-flex; flex: 0 0 auto; padding: 0 12px; }
	.yed .yed-wide-only { display: none; }
	.yed-toolbar-filters .yed-select { flex: 1 1 auto; min-width: 0; padding: 0 10px; }
	.yed .yed-toolbar-filters .yed-select > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.yed .yed-select select { flex: 1 1 auto; min-width: 0; max-width: none; }
	.yed-views { flex: 0 0 auto; }
	.yed .yed-view { min-width: 44px; padding: 0 10px; }
	.yed .yed-view-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.yed-map { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
	.yed-band-bg, .yed-card { transition: none; }
}
