.wm-map-wrapper {
    width: 100%;
    position: relative;
	margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    background: #fff;
}

.wm-map-wrapper-embedded {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.wm-map-message {
    padding: 0.75rem 1rem;
    background: #fff3cd;
    color: #5c4300;
    border-top: 1px solid #e6d08a;
    font-size: 0.9rem;
}

#wm-geosites-map {
    width: 100%;
    height: 600px;
    border: 0;
    border-radius: 8px 8px 0 0;
	margin: 0;
}

/* =============================================================================
   1) Clusters
   ============================================================================= */

.marker-cluster-small {
    background: #1a373811;
}

.marker-cluster-small div {
    width: 28px;
    height: 28px;
    line-height: 28px;
    background: #1a3738aa;
	display: flex;
	align-items: center;
	justify-content: center;
}

.marker-cluster-medium {
    background: #34616317;
}

.marker-cluster-medium div {
    width: 33px;
    height: 33px;
    line-height: 33px;
    background: #346163aa;
}

.marker-cluster-large {
    background: #7ea6a844;
}

.marker-cluster-large div {
    width: 39px;
    height: 39px;
    line-height: 39px;
    background: #7ea6a8ee;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #fff;
	border-radius: 50%;
    box-shadow: 1px 4px 5px rgba(0, 0, 0, 0.23) inset, 0 5px 7px rgba(0, 0, 0, 0.4);
}

.marker-cluster-small span {
    line-height: 1;
}

.marker-cluster span {
    line-height: 2;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

/* =============================================================================
   2) Markers
   ============================================================================= */

.wm-marker {
    background: transparent;
    border: none;
}

.wm-marker-inner {
    width: 12px;
    height: 12px;
	transform: rotate(45deg);
    border-radius: 0;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) inset, 0 1px 2px 1px rgba(0, 0, 0, 0.8);
}

/* Biological */
.wm-marker-bio .wm-marker-inner {
    background: #00ff00dd;
}

/* Archaeological */
.wm-marker-archaeology .wm-marker-inner {
    background: #fcc201cc;
}

/* Architectural */
.wm-marker-architecture .wm-marker-inner {
    background: #d21f3caa;
}

/* Geological */
.wm-marker-geology .wm-marker-inner {
    background: #0000ff99;
}

/* Fallback */
.wm-marker-default .wm-marker-inner {
    background: rgba(0, 58, 69, 0.68);
}

/* =============================================================================
   3) Type controls
   ============================================================================= */

.wm-map-controls {
    margin-top: 0;
	border: 0;
  	border-top: 1px solid #e3e3e3;
	border-radius: 0 0 8px 8px;
  	padding: 1rem 1.25rem;
	background: #fff;
}

.wm-map-controls-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.mapblock { margin-top: 2px; padding: 10px 2px 0 2px; }

.wm-map-controls label {
    display: inline-flex;
    align-items: center;
	font-size: 0.9rem;
    gap: 0.35rem;
    margin: 0 1rem 1rem 0;
    cursor: pointer;
}

.wm-map-count {
    margin-top: 0.75rem;
    font-weight: 600;
	flex-basis: 100%;
}

.wm-map-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.wm-map-filter {
    display: inline-flex;
    align-items: center;
	white-space: nowrap;
}

.wm-map-filter-marker {
    width: 12px;
    height: 12px;
	transform: rotate(45deg);
    margin-right: 4px;
    border-radius: 0;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) inset, 0 1px 2px 1px rgba(0, 0, 0, 0.8);
}

/* Biological */
.wm-map-filter-marker-bio {
    background: #00ff00dd;
}

/* Archaeological */
.wm-map-filter-marker-archaeology {
    background: #fcc201cc;
}

/* Architectural */
.wm-map-filter-marker-architecture {
    background: #d21f3caa;
}

/* Geological */
.wm-map-filter-marker-geology {
    background: #0000ff99;
}

/* =============================================================================
   4) Value slider
   ============================================================================= */

.wm-map-value-filter {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    flex: 1 1 320px;
    min-width: 260px;
}

.wm-map-range-labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 620px;
    margin-bottom: 0.5rem;
    font-weight: 500;
	font-size: 0.9rem;
}

.wm-map-range-wrap {
    position: relative;
    max-width: 620px;
    height: 36px;
}

/* Our real visible grey track */
.wm-map-range-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 2px;
    height: 6px;
    background: #d5d5d5;
    border-radius: 999px;
    z-index: 1;
}

/* Both range inputs sit above the fake track */
.wm-map-range-wrap input[type="range"] {
    position: absolute;
    left: 0;
    top: 2px;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
}

/* Hide native WebKit track */
.wm-map-range-wrap input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border: 0;
}

/* Hide native Firefox track */
.wm-map-range-wrap input[type="range"]::-moz-range-track {
    height: 6px;
    background: transparent;
    border: 0;
}

/* WebKit thumb */
.wm-map-range-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #003A45;
    cursor: pointer;
    margin-top: -8px;
    pointer-events: auto;
    position: relative;
    z-index: 5;
}

/* Firefox thumb */
.wm-map-range-wrap input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #003A45;
    border: 0;
    cursor: pointer;
    pointer-events: auto;
	transform: translateY(-8px);
}

/* =============================================================================
   5) Map popups
   ============================================================================= */

.wm-map-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.wm-map-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: 260px !important;
    max-height: none;
    overflow: hidden;
}

.wm-map-popup {
    width: 260px;
    background: #fff;
}

.wm-map-popup-image-link {
    display: block;
    width: 100%;
}

.wm-map-popup-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wm-map-popup-body {
    padding: 0.65rem 0.75rem 0.75rem;
}

.wm-map-popup-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.2;
}

.wm-map-popup-title a {
    color: #003A45;
    text-decoration: none;
}

.wm-map-popup-title a:hover {
    color: var(--c-accent);
    text-decoration: underline;
}

.wm-map-popup-excerpt {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #333;
}

.wm-map-leaflet-popup .leaflet-popup-tip {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

/* =============================================================================
   6) Fullscreen button
   ============================================================================= */

.wm-map-fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 11px;
    z-index: 1000;
    background: #003A45;
    color: #fff !important;
    border: 0;
    border-radius: 3px;
    padding: 0.35rem 0.55rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.wm-map-fullscreen-btn:hover {
    background: var(--c-accent);
}

.wm-map-wrapper:fullscreen {
    background: #fff;
    padding: 1rem;
}

.wm-map-wrapper:fullscreen #wm-geosites-map {
    height: calc(100vh - 2rem);
}

/* Move Leaflet layer switcher lower */
.wm-map-wrapper .leaflet-top.leaflet-right {
    top: 96px;
}

/* For small maps rise it higher */
.wm-context-map-wrapper .leaflet-top.leaflet-right {
    top: 40px;
}

.leaflet-control-layers {
    border: 0 !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}

.leaflet-control-layers-toggle {
    background-color: #003A45 !important;
    border-radius: 3px !important;
}

.leaflet-control-layers-expanded {
    background: #ffffff !important;
    color: #003A45 !important;
    border-radius: 3px !important;
    padding: 0.6rem 0.75rem !important;
}

/* =============================================================================
   7) Leaflet zoom control
   ============================================================================= */

.leaflet-control-zoom {
    border: 0 !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    width: 34px !important;
    height: 34px !important;
    line-height: 32px !important;
    background: #003A45 !important;
    color: #fff !important;
    border: 0 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color .2s ease-in-out;
}

.leaflet-control-zoom a:hover {
    background: var(--c-accent) !important;
    color: #fff !important;
}

.leaflet-control-zoom-in {
    border-bottom: 1px solid rgba(255,255,255,0.25) !important;
}

.leaflet-control-zoom a.leaflet-disabled {
    background: #d9d9d9 !important;
    color: #999 !important;
    cursor: default;
}

/* =============================================================================
   8) Single geosite context map
   ============================================================================= */

.wm-context-map-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

#wm-geosite-context-map {
    width: 100%;
    height: 420px;
}

/* Current geosite marker */
.wm-context-marker-current .wm-marker-inner {
    width: 19px;
    height: 19px;
    border-width: 2px;
    box-shadow:
        0 0 0 3px rgba(255,255,255,0.7),
        0 3px 10px rgba(0,0,0,0.45);
}

/* Nearby geosite markers */
.wm-context-marker-other {
    background: transparent;
    border: none;
}

.wm-context-marker-other .wm-marker-inner {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background: rgba(90, 90, 90, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.18),
        0 1px 4px rgba(0,0,0,0.35);
}

/* Context map popup */
.wm-context-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
}

.wm-context-popup .leaflet-popup-content {
    margin: 0;
    width: 260px;
    max-width: 260px;
    min-width: 260px;
    overflow: hidden;
}

.wm-context-popup .wm-map-popup,
.wm-context-popup .wm-map-popup * {
    box-sizing: border-box;
}

.wm-context-popup .wm-map-popup {
    width: 260px;
    max-width: 260px;
    min-width: 260px;
}

.wm-context-popup .wm-map-popup-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wm-context-popup .wm-map-popup-body {
    padding: 0.65rem 0.75rem 0.75rem;
    margin: 0;
    text-align: left;
}

.wm-context-popup .wm-map-popup-title,
.wm-context-popup .wm-map-popup-title a,
.wm-context-popup .wm-map-popup-excerpt {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-indent: 0;
    text-align: left;
}

.wm-context-popup .wm-map-popup-title {
    display: block;
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    line-height: 1.2;
}

.wm-context-popup .wm-map-popup-excerpt {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 0.82rem;
    line-height: 1.35;
}

/* =============================================================================
   9) Vietu pieejamība
   ============================================================================= */

.wm-map-extra-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    margin-top: 0.75rem;
    align-items: center;
}

.wm-map-accessibility-filters,
.wm-map-free-access-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.wm-map-filter-label {
    font-weight: 400;
	font-size: 0.9rem;
    margin-right: 0.25rem;
}

/* =============================================================================
   10) Atrašanās vietas noteikšana
   ============================================================================= */

.wm-map-locate-btn {
    position: absolute;
    top: 49px;
    right: 11px;
    z-index: 1000;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
	padding: 0;
    background: #003A45;
    color: #fff;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: background-color .2s ease-in-out;
}

.wm-map-locate-btn-active {
    background: var(--c-accent);
}

.wm-map-locate-btn-active:hover {
    background: var(--c-accent);
}

.wm-map-locate-btn:hover {
    background: var(--c-accent);
}

/* outer ring */
.wm-map-locate-btn::before {
    content: '';

    width: 18px;
    height: 18px;

    border: 3px solid #fff;
    border-radius: 50%;

    position: absolute;
}

/* center dot */
.wm-map-locate-btn::after {
    content: '';

    width: 5px;
    height: 5px;

    background: #fff;
    border-radius: 50%;

    position: absolute;
}

.wm-user-location-marker {
    background: transparent;
    border: none;
}

.wm-user-location-dot {
    width: 16px;
    height: 16px;
    background: #1e88ff;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow:
        0 0 0 3px rgba(30,136,255,0.25),
        0 2px 8px rgba(0,0,0,0.35);
}