.adw-dwm-root {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	display: flex;
	font-family: 'Inter', -apple-system, sans-serif;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.adw-dwm-sidebar {
	width: 320px;
	flex-shrink: 0;
	background: #ffffff;
	overflow-y: auto;
	border-right: 1px solid #ddd;
	z-index: 2000;
	transition: transform 0.3s ease;
	scrollbar-width: thin;
	scrollbar-color: #c7c7c7 transparent;
}

.adw-dwm-sidebar::-webkit-scrollbar {
	width: 7px;
}

.adw-dwm-sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.adw-dwm-sidebar::-webkit-scrollbar-thumb {
	background-color: #c7c7c7;
	border-radius: 10px;
}

.adw-dwm-sidebar::-webkit-scrollbar-thumb:hover {
	background-color: #a3a3a3;
}

.adw-dwm-sidebar h2 {
	padding: 20px;
	background: #191919;
	color: #fff;
	margin: 0;
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.adw-dwm-menu-toggle {
	display: none;
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1500;
	background: #191919;
	color: #fff;
	border: none;
	padding: 10px 14px;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 11px;
	cursor: pointer;
	border-radius: 2px;
	letter-spacing: 1px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.adw-dwm-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.adw-dwm-search-toggle,
.adw-dwm-close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
	flex-shrink: 0;
}

.adw-dwm-search-toggle:hover,
.adw-dwm-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.adw-dwm-search-toggle svg,
.adw-dwm-close svg {
	display: block;
}

.adw-dwm-search-bar {
	display: none;
	padding: 12px 16px 0;
	background: #fafafa;
}

.adw-dwm-search-bar.open {
	display: block;
}

.adw-dwm-search-input {
	width: 100%;
	padding: 7px 10px;
	font-size: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #191919;
	font-family: inherit;
	box-sizing: border-box;
}

.adw-dwm-toggle-arrow {
	margin-left: 4px;
}

@media (max-width: 768px) {
	.adw-dwm-sidebar {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		transform: translateX(-100%);
	}
	.adw-dwm-sidebar.open {
		transform: translateX(0);
	}
	.adw-dwm-menu-toggle {
		display: block;
		top: 72px;
		left: 12px;
		z-index: 1900;
	}
	.adw-dwm-search-toggle,
	.adw-dwm-close {
		display: flex;
	}
}

.adw-dwm-map-filters {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2600;
	display: flex;
	flex-direction: row;
	gap: 8px;
}

.adw-dwm-filter-select,
.adw-dwm-discipline-select,
.adw-dwm-status-select {
	padding: 9px 32px 9px 14px;
	font-size: 12.5px;
	border: 1.5px solid #191919;
	border-radius: 3px;
	background: #fff;
	color: #191919;
	font-family: inherit;
	box-sizing: border-box;
	min-width: 130px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.adw-dwm-map-filters {
		top: auto;
		bottom: 60px;
		left: 16px;
		right: 16px;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 6px;
	}
	.adw-dwm-filter-select,
	.adw-dwm-discipline-select,
	.adw-dwm-status-select {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		padding: 9px 20px 9px 8px;
		font-size: 13px;
		border-width: 1.5px;
	}
	.adw-dwm-discipline-select {
		flex: 1.5 1 0;
	}
	.adw-dwm-filter-select {
		flex: 0.7 1 0;
	}
}

.adw-dwm-event-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 16px 22px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	transition: background 0.2s;
}

.adw-dwm-event-info {
	min-width: 0;
	flex: 1 1 auto;
}

.adw-dwm-event-thumb {
	width: 96px;
	height: 96px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 6px;
	background: #eee;
}

.adw-dwm-event-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background-color: #9299A6;
}

.adw-dwm-event-item--live::before {
	width: 9px;
	background-color: #00C875;
}

.adw-dwm-event-item--upcoming::before {
	width: 6px;
	background-color: #FFC400;
}

.adw-dwm-event-item--past::before {
	width: 3px;
	background-color: #9299A6;
}

.adw-dwm-event-item:hover {
	background: #f9f9f9;
}

.adw-dwm-event-item h3 {
	margin: 0 0 4px;
	font-size: 14px;
	color: #191919;
	font-weight: bold;
}

.adw-dwm-event-item p {
	margin: 0;
	font-size: 12px;
	color: #666;
}

.adw-dwm-event-item .adw-dwm-countdown {
	display: inline-block;
	margin-top: 6px;
}

.adw-dwm-map {
	flex-grow: 1;
	height: 100%;
	background: #f4f4f4;
	z-index: 1;
}

.adw-dwm-btns {
	display: flex;
	gap: 8px;
	margin-top: 0;
}

.adw-dwm-btn {
	background-color: #191919;
	color: #ffffff !important;
	text-decoration: none;
	padding: 8px 12px;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	border-radius: 2px;
	transition: opacity 0.2s;
}

.adw-dwm-btn:hover {
	opacity: 0.8;
}

/* Popup card: featured image up top (edge-to-edge), rest of the content padded below it */
.leaflet-popup-content-wrapper {
	border-radius: 10px;
	overflow: hidden;
}

.leaflet-popup-content {
	margin: 0;
}

.adw-dwm-popup-image {
	display: block;
	width: 100%;
	height: 120px;
	object-fit: cover;
	background: #eee;
}

.adw-dwm-popup-body {
	padding: 13px 19px 5px;
	min-width: 200px;
	box-sizing: border-box;
}

.adw-dwm-popup-status {
	margin-top: 6px;
}

/* Popup: status text, and the Learn More + Add to Calendar + Share row */
.adw-dwm-popup-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #eee;
}

.adw-dwm-countdown {
	font-size: 11px;
	font-weight: 700;
	color: #FFC400;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.adw-dwm-countdown--live {
	color: #00C875;
}

.adw-dwm-countdown--past {
	color: #9299A6;
}

.adw-dwm-popup-icons {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
	position: relative;
}

.adw-dwm-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: #f4f4f4;
	border: 1px solid #ddd;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
}

.adw-dwm-icon-btn:hover {
	background: #ececec;
}

.adw-dwm-toast {
	position: absolute;
	bottom: 100%;
	right: 0;
	margin-bottom: 6px;
	background: #191919;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 3px;
	white-space: nowrap;
	z-index: 10;
	animation: adw-dwm-toast-fade 1.6s ease forwards;
	pointer-events: none;
}

@keyframes adw-dwm-toast-fade {
	0% { opacity: 0; transform: translateY(4px); }
	15% { opacity: 1; transform: translateY(0); }
	80% { opacity: 1; }
	100% { opacity: 0; }
}

.adw-dwm-empty {
	padding: 40px;
	text-align: center;
	color: #888;
	font-size: 13px;
}

/* Marker cluster color reflects whichever status (Ongoing/Upcoming/Past) is most common among its markers */
.adw-dwm-cluster-live {
	background-color: rgba(0, 200, 117, 0.35);
}

.adw-dwm-pin--live {
	position: relative;
}

.adw-dwm-pin--live .adw-dwm-pulse {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: #00C875;
	opacity: 0.55;
	animation: adw-dwm-pulse-ring 2.4s ease-out infinite;
	pointer-events: none;
}

@keyframes adw-dwm-pulse-ring {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	100% {
		transform: scale(2.8);
		opacity: 0;
	}
}
.adw-dwm-cluster-live div {
	background-color: #00C875;
}
.adw-dwm-cluster-upcoming {
	background-color: rgba(255, 196, 0, 0.35);
}
.adw-dwm-cluster-upcoming div {
	background-color: #FFC400;
}
.adw-dwm-cluster-past {
	background-color: rgba(124, 130, 141, 0.35);
}
.adw-dwm-cluster-past div {
	background-color: #7C828D;
}
.marker-cluster span {
	color: #ffffff;
	font-weight: 700;
}

/* Full-bleed hero mode (used on the homepage): header stays visible, the map
   itself breaks out of the theme's boxed container and fills the rest of the
   screen edge-to-edge. The event list becomes an overlay drawer instead of
   sitting beside the map, at every screen size (not just mobile). */
.adw-dwm-fullbleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
	box-shadow: none;
}

.adw-dwm-fullbleed .adw-dwm-sidebar {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	max-width: 380px;
	height: 100%;
	transform: translateX(-100%);
	z-index: 2000;
	box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
}
.adw-dwm-fullbleed .adw-dwm-sidebar.open {
	transform: translateX(0);
}
.adw-dwm-fullbleed .adw-dwm-menu-toggle {
	display: block;
}
.adw-dwm-fullbleed .adw-dwm-search-toggle,
.adw-dwm-fullbleed .adw-dwm-close {
	display: flex;
}

.adw-dwm-scroll-arrow {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1500;
	width: 30px;
	height: 30px;
	padding: 0;
	border: none;
	background: #FFFFFF;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
	animation: adw-dwm-arrow-bounce 2s ease-in-out infinite;
}

.adw-dwm-scroll-arrow svg {
	display: block;
}

@keyframes adw-dwm-arrow-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(5px); }
}

@media (max-width: 768px) {
	.adw-dwm-scroll-arrow {
		bottom: 16px;
	}
}

.adw-dwm-discipline-select {
    display: none !important;
}

/* Mobile: keep Year and Status filters in a persistent bar above the map/sidebar. */
@media (max-width: 768px) {
	.adw-dwm-map-filters {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: auto;
		width: 100%;
		box-sizing: border-box;
		padding: 12px;
		background: #323232;
		gap: 8px;
		z-index: 2600;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	}

	.adw-dwm-sidebar h2 {
		margin-top: 0px;
	}

	.adw-dwm-map-filters .adw-dwm-filter-select,
	.adw-dwm-map-filters .adw-dwm-status-select {
		flex: 1 1 0;
		width: 0;
		min-width: 0;
		padding: 12px 20px 12px 8px;
		font-size: 14px;
		border-width: 1.5px;
	}
}

/* Keep the same arrow shape and color in every interaction state.
   This also prevents theme-wide button hover styles from recoloring the icon. */
.adw-dwm-root .adw-dwm-scroll-arrow,
.adw-dwm-root .adw-dwm-scroll-arrow:hover,
.adw-dwm-root .adw-dwm-scroll-arrow:focus,
.adw-dwm-root .adw-dwm-scroll-arrow:focus-visible,
.adw-dwm-root .adw-dwm-scroll-arrow:active {
	background: #ffffff !important;
	color: #191919 !important;
}

.adw-dwm-root .adw-dwm-scroll-arrow svg,
.adw-dwm-root .adw-dwm-scroll-arrow svg path {
	opacity: 1;
	fill: #191919;
	stroke: none;
}



.adw-dwm-ongoing-count {
	position: absolute;
	top: 61px;
	right: 16px;
	z-index: 1800;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	font-family: inherit;
	white-space: nowrap;
	text-align: right;
}

.adw-dwm-ongoing-count .adw-dwm-count-line {
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 5px rgba(255, 255, 255, 0.6);
}

.adw-dwm-ongoing-count .adw-dwm-count-line--ongoing {
	color: #00c875;
}

.adw-dwm-ongoing-count .adw-dwm-count-line--upcoming {
	color: #ffc400;
}

@media (max-width: 768px) {
	.adw-dwm-ongoing-count {
		top: 72px;
		right: 12px;
	}

	.adw-dwm-ongoing-count .adw-dwm-count-line {
		font-size: 12px;
	}
}
