/* Controls and hint of the MapLibre maps (ЖК page and single property map): 2D/3D button, rotation hint, popup. */
.rh-np-view-btn{width:auto !important;min-width:29px;padding:0 6px;font-size:13px;font-weight:700;color:#0f997f;cursor:pointer}
.rh-np-map-hint{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);padding:10px 16px;border-radius:999px;background:rgba(17,24,39,.78);color:#fff;font-size:14px;line-height:1.3;pointer-events:none;transition:opacity .5s ease,transform .5s ease;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.rh-np-map-hint.is-hidden{opacity:0;transform:translateX(-50%) translateY(10px)}
.rh-np-map-hint__icon{flex:none;width:22px;height:22px;border:2px solid #fff;border-radius:50%;border-top-color:transparent;animation:rhNpSpin 1.8s linear infinite}
@keyframes rhNpSpin{to{transform:rotate(360deg)}}
.maplibregl-ctrl-attrib-button:focus-visible{outline:2px solid #0f997f}

/* Marker popup card: a compact horizontal card (works in 2D and 3D, on desktop and on mobile) */
.rh-np-map-label{z-index:6}
.rh-np-map-label .maplibregl-popup-content{width:340px;max-width:calc(100vw - 56px);padding:0;border-radius:16px;background:#fff;color:#1d2330;font-family:inherit;box-shadow:0 14px 36px rgba(16,24,40,.28),0 2px 6px rgba(16,24,40,.12)}
.rh-np-map-label .maplibregl-popup-tip{border-width:9px}
.rh-pm-card{display:flex;flex-direction:row;align-items:stretch;min-height:112px;border-radius:16px;overflow:hidden;text-align:left}
.rh-pm-card__img{display:block;width:124px;height:auto;min-height:112px;flex:none;object-fit:cover;background:#e9edf2;margin:0;border:0;border-radius:0}
.rh-pm-card__body{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;flex:1;min-width:0;padding:12px 44px 12px 14px}
.rh-pm-card__type{font-size:11px;font-weight:700;letter-spacing:.04em;line-height:1;text-transform:uppercase;color:#0b7a65;background:#e7f6f2;border-radius:20px;padding:5px 10px}
.rh-pm-card__title{margin:0;font-size:15px;font-weight:700;line-height:1.3;color:#1d2330;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.rh-pm-card__price{font-size:18px;font-weight:700;line-height:1.2;color:#0f997f}

/* Close button: a round button with a thin cross */
.rh-np-map-label .maplibregl-popup-close-button{position:absolute;top:8px;right:8px;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:rgba(17,24,39,.07);color:transparent;font-size:0;line-height:0;cursor:pointer;box-shadow:none;transition:background .2s}
.rh-np-map-label .maplibregl-popup-close-button:before,
.rh-np-map-label .maplibregl-popup-close-button:after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;border-radius:2px;background:#1d2330;transform:translate(-50%,-50%) rotate(45deg);transition:background .2s}
.rh-np-map-label .maplibregl-popup-close-button:after{transform:translate(-50%,-50%) rotate(-45deg)}
.rh-np-map-label .maplibregl-popup-close-button:hover{background:#0f997f}
.rh-np-map-label .maplibregl-popup-close-button:hover:before,
.rh-np-map-label .maplibregl-popup-close-button:hover:after{background:#fff}
.rh-np-map-label .maplibregl-popup-close-button:focus{outline:none}
.rh-np-map-label .maplibregl-popup-close-button:focus-visible{box-shadow:0 0 0 2px #0f997f}

@media (max-width:600px){
	.rh-np-map-label .maplibregl-popup-content{width:265px;max-width:calc(100vw - 48px);border-radius:14px}
	.rh-pm-card{min-height:92px;border-radius:14px}
	.rh-pm-card__img{width:88px;min-height:92px}
	.rh-pm-card__body{padding:10px 38px 10px 12px;gap:4px}
	.rh-pm-card__title{font-size:14px}
	.rh-pm-card__price{font-size:16px}
	.rh-np-map-label .maplibregl-popup-close-button{top:6px;right:6px}
}
