/**
 * Office Map — front-end map styles.
 */

.office-map {
	position: relative;
	background: #e9e9e9;
	border-radius: 8px;
	overflow: hidden;
	width: 100%;
}

.office-map .maplibregl-map {
	border-radius: 8px;
}

/* Full-width mode (spanning the window) */
.office-map--full {
	border-radius: 0;
}

.office-map--full .maplibregl-map {
	border-radius: 0;
}

/* Marker popup */
.office-map__popup {
	font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #222;
	max-width: 260px;
}

.office-map__popup a {
	color: #1a73e8;
	text-decoration: none;
}

.office-map__popup-address p,
.office-map__popup-address ul,
.office-map__popup-address ol {
	margin: 4px 0;
}

.office-map__popup a:hover {
	text-decoration: underline;
}

.maplibregl-popup-content {
	padding: 10px 12px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Custom marker image */
.office-map__marker {
	height: 44px;
	width: auto;
	display: block;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* Fallback if the map failed to load */
.office-map__fallback {
	padding: 16px;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #333;
}

.office-map__fallback a {
	color: #1a73e8;
}

/* Address search on the map (field and button on one line) */
.office-map-search {
	position: relative;
	width: 280px;
	max-width: 70vw;
	padding: 4px !important;
	background: var(--om-search-bg, #fff);
	border-radius: var(--om-search-radius, 6px);
}

.office-map-search .office-map-search__row {
	display: flex;
	align-items: stretch;
}

.office-map-search .office-map-search-input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 32px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--om-search-border, #ccc);
	border-right: 0;
	border-radius: var(--om-search-radius, 6px) 0 0 var(--om-search-radius, 6px);
	background: var(--om-search-bg, #fff);
	color: var(--om-search-text, #333);
	font-size: 13px;
	box-sizing: border-box;
	outline: none;
}

.office-map-search .office-map-search-btn {
	flex: 0 0 auto;
	width: auto;
	height: 32px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--om-search-border, #ccc);
	border-radius: 0 var(--om-search-radius, 6px) var(--om-search-radius, 6px) 0;
	background: var(--om-search-btn-bg, #1a73e8);
	background-image: none;
	color: var(--om-search-btn-text, #fff);
	cursor: pointer;
	font-size: 13px;
	box-sizing: border-box;
	white-space: nowrap;
}

.office-map-search .office-map-search-btn:hover {
	filter: brightness(0.94);
}

.office-map-search-results--map {
	position: absolute;
	z-index: 5;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	max-height: 260px;
	overflow-y: auto;
}

.office-map-search-result {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.35;
	color: #222;
}

.office-map-search-result:hover {
	background: #f3f6fb;
}

.office-map-search-hint {
	padding: 8px 10px;
	font-size: 13px;
	color: #777;
}
