/*
 * The Map — phone filter drawer. Every rule hangs off html.aa-fdrawer, which
 * drawer.js sets only at ≤767px, so desktop, tablet and no-JS phones render
 * exactly what Elementor ships. Palette: AA design system tokens
 * (orange #db680b, brown #6a3306, yellow #fae905, border #e8ddc4,
 * muted #8a7a63, cream #fdf6e8).
 *
 * Layers: pills 990 (over Leaflet's panes, under the fixed header's 999),
 * scrim 1100 and drawer 1101 (over the header and Leaflet's corners at 1000).
 */

/* Injected nodes never show outside drawer mode. */
.aa-fd-pills,
.aa-fd-scrim,
.aa-fd-head,
.aa-fd-foot,
.aa-fd-group {
	display: none;
}

/* ---------- map: fills the screen below the header ---------- */

html.aa-fdrawer .elementor-element-f10bf18 > .elementor-widget-container {
	position: relative;
}

html.aa-fdrawer .elementor-86547 .elementor-element.elementor-element-f10bf18 .jet-map-listing {
	height: calc(100vh - var(--aa-fd-maptop, 106px));
	height: calc(100svh - var(--aa-fd-maptop, 106px));
}

/* ---------- pills over the map's upper-left ---------- */

html.aa-fdrawer .aa-fd-pills {
	position: absolute;
	top: var(--aa-fd-pilltop, 20px);
	left: var(--aa-fd-pillleft, 12px);
	right: 12px;
	z-index: 990;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

html.aa-fdrawer .aa-fd-pills__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

html.aa-fdrawer .aa-fd-pills button,
html.aa-fdrawer .aa-fd-pills .aa-fd-count {
	pointer-events: auto;
}

/* The site's orange pill (.aa-points__cta) carries the look; this sizes it. */
html.aa-fdrawer .aa-fd-open.aa-points__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	height: 44px;
	padding: 0 16px;
	font-size: 16px;
	box-shadow: 0 4px 12px rgba(74, 36, 4, .25);
}

html.aa-fdrawer .aa-fd-badge {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 9999px;
	background: #fae905;
	color: #6a3306;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

html.aa-fdrawer .aa-fd-badge[hidden] {
	display: none;
}

html.aa-fdrawer .aa-fd-count {
	height: 44px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	border-radius: 9999px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(74, 36, 4, .2);
	font-family: 'Cartridge', var(--aa-display, sans-serif);
	font-size: 15px;
	color: #6a3306;
	white-space: nowrap;
}

html.aa-fdrawer .aa-fd-chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
	pointer-events: auto;
}

html.aa-fdrawer .aa-fd-chips::-webkit-scrollbar {
	display: none;
}

html.aa-fdrawer .aa-fd-chips:empty {
	display: none;
}

html.aa-fdrawer .aa-fd-chip {
	flex-shrink: 0;
	height: 32px;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0 12px;
	border: none;
	border-radius: 9999px;
	background: #fff;
	box-shadow: inset 0 0 0 2px #db680b;
	color: #6a3306;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
}

html.aa-fdrawer .aa-fd-chip:hover,
html.aa-fdrawer .aa-fd-chip:focus {
	background: #fff;
	color: #6a3306;
}

html.aa-fdrawer .aa-fd-chip i {
	color: #db680b;
	font-size: 11px;
}

/* ---------- scrim ---------- */

html.aa-fdrawer .aa-fd-scrim {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 1100;
	background: rgba(43, 26, 8, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}

html.aa-fdrawer.aa-fd-is-open .aa-fd-scrim {
	opacity: 1;
	pointer-events: auto;
}

/* ---------- the column, restyled as the drawer ---------- */

html.aa-fdrawer .elementor-86547 .elementor-element.elementor-element-af10c10 {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 1101;
	width: 86vw;
	max-width: 360px;
	--width: 86vw;
	gap: 0;
	--gap: 0px;
	--row-gap: 0px;
	padding: 0 16px;
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 16px;
	--padding-right: 16px;
	flex-wrap: nowrap;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	border-right: 0;
	box-shadow: 4px 0 24px rgba(74, 36, 4, .2);
	transform: translateX(-105%);
	visibility: hidden;
	transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .28s;
}

html.aa-fdrawer.aa-fd-is-open .elementor-86547 .elementor-element.elementor-element-af10c10 {
	transform: none;
	visibility: visible;
	transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
	html.aa-fdrawer .aa-fd-scrim,
	html.aa-fdrawer .elementor-86547 .elementor-element.elementor-element-af10c10 {
		transition: none;
	}
}

/* Drawer header: title + close, pinned with the search box under it. */
html.aa-fdrawer .aa-fd-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 2;
	margin: 0 -16px;
	padding: 20px 6px 8px 16px;
	background: #fff;
}

html.aa-fdrawer .aa-fd-head h2 {
	margin: 0;
	font-family: 'Cartridge', var(--aa-display, sans-serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	color: #6a3306;
}

html.aa-fdrawer .aa-fd-close {
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	color: #6a3306;
	font-size: 20px;
	cursor: pointer;
}

html.aa-fdrawer .aa-fd-close:hover,
html.aa-fdrawer .aa-fd-close:focus {
	background: transparent;
	color: #db680b;
}

html.aa-fdrawer .elementor-element-af10c10 > .elementor-element-c778213 {
	position: sticky;
	top: 72px;
	z-index: 2;
	/* Elementor sizes widgets to the container's content box; widen by the
	   negative margins so the divider runs edge to edge. */
	width: calc(100% + 32px);
	max-width: none;
	margin: 0 -16px;
	padding: 0 16px 12px;
	box-sizing: border-box;
	background: #fff;
	border-bottom: 1px solid #e8ddc4;
}

/* The pills replace the count, the chip row replaces the active-filters
   widget, and the footer's Clear replaces the native reset. */
html.aa-fdrawer .elementor-element-af10c10 > .elementor-element-dee024b,
html.aa-fdrawer .elementor-element-af10c10 > .elementor-element-af10c06,
html.aa-fdrawer .elementor-element-af10c10 > .elementor-element-af10c08 {
	display: none;
}

/* ---------- collapsible groups ---------- */

html.aa-fdrawer .aa-fd-group {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0;
	border: none;
	border-top: 1px solid #e8ddc4;
	border-radius: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

html.aa-fdrawer .aa-fd-group:hover,
html.aa-fdrawer .aa-fd-group:focus {
	background: transparent;
}

html.aa-fdrawer .aa-fd-group--first {
	border-top: 0;
}

html.aa-fdrawer .aa-fd-group__title {
	flex: 1;
	font-size: 12px;
	font-weight: 700;
	color: #8a7a63;
	text-transform: uppercase;
	letter-spacing: .6px;
}

html.aa-fdrawer .aa-fd-group__sel {
	font-size: 12px;
	font-weight: 700;
	color: #db680b;
	text-transform: none;
	letter-spacing: normal;
}

html.aa-fdrawer .aa-fd-group__sel:empty {
	display: none;
}

html.aa-fdrawer .aa-fd-group i {
	color: #6a3306;
	font-size: 12px;
	transition: transform .2s ease;
}

html.aa-fdrawer .aa-fd-group[aria-expanded="true"] i {
	transform: rotate(180deg);
}

/* The group button carries the title; each member's own label goes. */
html.aa-fdrawer .elementor-element-af10c10 .aa-fd-member .jet-filter-label {
	display: none;
}

html.aa-fdrawer .elementor-element-af10c10 > .aa-fd-member {
	padding-bottom: 12px;
}

html.aa-fdrawer .elementor-element-af10c10 > .aa-fd-member.aa-fd-collapsed {
	display: none;
}

/* ---------- footer ---------- */

html.aa-fdrawer .aa-fd-foot {
	display: flex;
	align-items: center;
	gap: 10px;
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin: auto -16px 0;
	padding: 12px 16px 20px;
	border-top: 1px solid #e8ddc4;
	background: #fff;
}

html.aa-fdrawer .aa-fd-clear {
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: none;
	border-radius: 9999px;
	background: transparent;
	box-shadow: inset 0 0 0 2px #6a3306;
	color: #6a3306;
	font-family: 'Cartridge', var(--aa-display, sans-serif);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: normal;
	cursor: pointer;
}

html.aa-fdrawer .aa-fd-clear:hover,
html.aa-fdrawer .aa-fd-clear:focus {
	background: transparent;
	color: #6a3306;
}

html.aa-fdrawer .aa-fd-clear[aria-disabled="true"] {
	opacity: .4;
	cursor: default;
}

html.aa-fdrawer .aa-fd-show.aa-points__cta {
	flex: 1;
	width: auto;
	height: 44px;
	padding: 0 12px;
	font-size: 15px;
	white-space: nowrap;
}

/* Page scroll lock while open (iOS-safe: body pinned at the saved offset). */
html.aa-fdrawer.aa-fd-is-open body {
	position: fixed;
	left: 0;
	right: 0;
	overflow: hidden;
}
