.gig-osm-members-map {
	width: 100%;
	z-index: 1;
}

/* Font/text/link colour here come from the site's own theme, read at
   runtime into these custom properties (see applyThemeVars() in
   members-map.js) — never hardcoded, so it matches whatever theme is
   active. Deliberately scoped to the popup card only, not the map itself:
   Leaflet/MapLibre's own text (attribution, zoom controls) is untouched. */
.leaflet-popup-content-wrapper,
.leaflet-popup-content,
.gig-osm-popup {
	font-family: var( --gig-osm-font, inherit );
	color: var( --gig-osm-text-color, inherit );
}

.gig-osm-popup {
	max-width: 220px;
	overflow: hidden;
}

.gig-osm-popup a {
	color: var( --gig-osm-link-color, inherit );
}

.gig-osm-popup-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	float: left;
	margin-right: 8px;
}

.gig-osm-popup-address {
	color: var( --gig-osm-text-color, inherit );
	opacity: 0.7;
	font-size: 12px;
}

.gig-osm-map-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 24px;
	text-align: center;
	font: inherit;
	color: inherit;
	background: rgba(0, 0, 0, 0.04);
}

.gig-osm-search-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	margin-top: 12px;
	font: inherit;
}

.gig-osm-search-input {
	font: inherit;
	color: inherit;
	background: inherit;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	box-sizing: border-box;
	height: 42px;
	padding: 0 12px;
	width: 100%;
	max-width: 360px;
}

/* Deliberately no background/border/color here: .gig-osm-search-submit and
   .gig-osm-search-clear also carry the theme's own "button" class (the same
   one BuddyPress uses for Follow/Add Friend/etc.), so their colour comes
   from the site's own styling. Only match their box shape to the input. */
.gig-osm-search-submit,
.gig-osm-search-clear {
	box-sizing: border-box;
	height: 42px;
	line-height: 1;
	padding: 0 16px;
	cursor: pointer;
}

body.gig-osm-lightbox-open {
	overflow: hidden;
}

.gig-osm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.gig-osm-lightbox[hidden] {
	display: none;
}

.gig-osm-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.gig-osm-lightbox-panel {
	position: relative;
	background: #fff;
	color: inherit;
	font: inherit;
	width: 100%;
	max-width: 720px;
	height: 85vh;
	max-height: 800px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gig-osm-lightbox-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	width: 32px;
	height: 32px;
	line-height: 1;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	color: inherit;
	font-size: 20px;
	cursor: pointer;
}

.gig-osm-lightbox-close:hover {
	background: rgba(0, 0, 0, 0.12);
}

.gig-osm-lightbox-frame {
	width: 100%;
	height: 100%;
	border: 0;
}
