/* Restart Home: home map and the full map page (/xartis/). */

/* ---------- Home map card ---------- */
.rth-map { position: relative; padding: 14px; border: 1px solid #e3e8f1; border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(15, 31, 61, .06), 0 18px 44px rgba(15, 31, 61, .1); }
.rth-map__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.rth-map__filters { flex: 1; min-width: 0; justify-content: flex-start; margin: 0 !important; }
.rth .rth-map__filters .rth-pill { padding: 8px 14px; font-size: 13.5px; }
.rth .rth-map__open { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #0b1f3a; color: #fff !important; font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(11, 31, 58, .25); transition: background .15s, transform .15s; }
.rth .rth-map__open:hover, .rth .rth-map__open:focus { background: #1450e6; transform: translateY(-1px); }
.rth-map__frame { position: relative; overflow: hidden; border-radius: 18px; }
.rth-map__canvas { height: 580px; background: #e8eef6; z-index: 0; }
.rth-map__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 31, 61, .06), inset 0 -60px 80px -60px rgba(11, 31, 58, .18); pointer-events: none; z-index: 400; }
.rth-map__legend { position: absolute; left: 16px; bottom: 16px; z-index: 500; display: grid; gap: 6px; width: 200px; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 14px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 22px rgba(15, 31, 61, .14); font-family: var(--rt-font, "Geologica", sans-serif); font-size: 11.5px; }
.rth-map__legend strong { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0f1f3d; }
.rth-map__scale { height: 7px; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #14b8a6, #f59e0b, #e11d48); }
.rth-map__ends { display: flex; justify-content: space-between; color: #64748b; }
.rth-top__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: #1450e6 !important; font-size: 13.5px; font-weight: 700; }

/* Leaflet chrome */
.rth-map .leaflet-control-zoom, .rth-mapapp .leaflet-control-zoom { overflow: hidden; border: 0 !important; border-radius: 12px !important; box-shadow: 0 6px 18px rgba(15, 31, 61, .16) !important; }
.rth-map .leaflet-control-zoom a, .rth-mapapp .leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; border-color: #eef2f7 !important; color: #0f1f3d !important; font-size: 18px !important; }
.leaflet-container .leaflet-control-attribution { padding: 2px 8px; border-radius: 8px 0 0 0; background: rgba(255, 255, 255, .75); font-size: 10px; }
.rth .rth-mapbtn, .rth-mapapp .rth-mapbtn { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 13px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .92); color: #0f1f3d; font: 600 13px/1 var(--rt-font, "Geologica", sans-serif); text-transform: none; box-shadow: 0 6px 18px rgba(15, 31, 61, .16); cursor: pointer; backdrop-filter: blur(8px); transition: background .15s, color .15s; }
.rth .rth-mapbtn:hover, .rth-mapapp .rth-mapbtn:hover, .rth .rth-mapbtn:focus, .rth-mapapp .rth-mapbtn:focus { background: #fff; color: #1450e6; }
.rth-mapbtn.is-on, .rth .rth-mapbtn.is-on, .rth-mapapp .rth-mapbtn.is-on { background: #eef3ff; color: #1450e6; }
/* Map buttons on the right: one under the other, same width, with space between */
.leaflet-top.leaflet-right .rth-mapbtn { clear: both; margin: 0 12px 8px 0 !important; min-width: 204px; justify-content: flex-start; }
.leaflet-top.leaflet-right .rth-mapbtn:first-child { margin-top: 12px !important; }
.leaflet-top.leaflet-right .leaflet-control-zoom { margin: 12px 12px 4px 0 !important; }
.leaflet-bottom.leaflet-right .rth-mapbtn { margin: 0 12px 26px 0 !important; }

/* Destination circles */
.rth-pin { background: none; border: 0; }
.rth-pin__glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 66%); opacity: .32; pointer-events: none; animation: rth-breathe 3.6s ease-in-out infinite; }
.no-heat .rth-pin__glow { display: none; }
@keyframes rth-breathe { 0%, 100% { opacity: .26; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: .4; transform: translate(-50%, -50%) scale(1.05); } }
.rth-pin__dot { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .35), transparent 55%), var(--c); color: #fff; font: 800 14px/1 var(--rt-font, "Geologica", sans-serif); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); box-shadow: 0 6px 16px rgba(15, 31, 61, .28), 0 0 0 1px rgba(15, 31, 61, .08); cursor: pointer; transition: transform .18s ease; }
.rth-pin--group .rth-pin__dot { box-shadow: 0 6px 16px rgba(15, 31, 61, .28), 0 0 0 5px rgba(255, 255, 255, .55); }
.rth-pin:hover .rth-pin__dot, .rth-pin:focus .rth-pin__dot, .rth-pin.is-hot .rth-pin__dot { transform: scale(1.12); }
.rth-pin__name { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, .9); color: #0f1f3d; font: 700 11px/1.2 var(--rt-font, "Geologica", sans-serif); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 3px 10px rgba(15, 31, 61, .12); backdrop-filter: blur(6px); pointer-events: none; }
.rth-tip { padding: 8px 10px; border: 0; border-radius: 10px; background: #0b1f3a; color: #fff; font: 500 12.5px/1.5 var(--rt-font, "Geologica", sans-serif); box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.rth-tip::before { border-top-color: #0b1f3a !important; }

/* Business pins (full page) */
.rth-bpin { background: none; border: 0; }
.rth-bpin__in { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 3px solid #fff; border-radius: 50% 50% 50% 6px; background: var(--c); color: #fff; box-shadow: 0 6px 14px rgba(15, 31, 61, .3); transform: rotate(-45deg); transition: transform .15s; }
.rth-bpin__in svg { transform: rotate(45deg); }
.rth-bpin:hover .rth-bpin__in, .rth-bpin.is-hot .rth-bpin__in { transform: rotate(-45deg) scale(1.15); }
.rth-bpin__price { position: absolute; left: 40px; top: 6px; padding: 3px 8px; border-radius: 8px; background: #fff; color: #0f1f3d; font: 800 11.5px/1.2 var(--rt-font, "Geologica", sans-serif); white-space: nowrap; box-shadow: 0 3px 10px rgba(15, 31, 61, .15); pointer-events: none; }

/* Popups */
.rth-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 18px; background: #fff; color: #0f1f3d; box-shadow: 0 22px 50px rgba(11, 31, 58, .28); }
.rth-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.rth-popup .leaflet-popup-tip { background: #fff; }
.rth-popup a.leaflet-popup-close-button { top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #0f1f3d; font: 18px/24px sans-serif; z-index: 2; }
.rth-pop { width: 290px; max-width: calc(100vw - 60px); font-family: var(--rt-font, "Geologica", sans-serif); }
.rth-pop__img { position: relative; height: 128px; background: linear-gradient(135deg, #cfe0ff, #f5d7b5); }
.rth-pop__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rth-pop__img em { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 7px; background: #2f7a1f; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }
.rth-pop__body { padding: 14px 16px 16px; }
.rth-pop strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
.rth-pop p { margin: 4px 0 0 !important; font-size: 12.5px; color: #475569; }
.rth-pop__save b { color: #15803d; }
.rth-pop__rate { display: flex; align-items: center; gap: 4px; }
.rth-pop__rate .rth-star, .rth-li .rth-star { color: #f0a92b; vertical-align: -1px; }
.rth-pop__price { font-weight: 700; color: #0f1f3d !important; }
.rth-pop ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.rth-pop li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; background: #f4f6fa; font-size: 11.5px; color: #0f1f3d; }
.rth-pop li svg { color: var(--c); }
.rth-pop li b { color: var(--c); }
.rth-pop__type { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 4px; color: var(--c); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rth-pop__type svg { width: 13px; height: 13px; }
.rth-pop__btn { display: inline-flex; margin-top: 12px; padding: 9px 15px; border-radius: 999px; background: #1450e6; color: #fff !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important; }
.rth-pop__btn:hover { background: #0f3fb8; }

.rth-toast { position: fixed; left: 50%; bottom: 28px; z-index: 3000; transform: translateX(-50%); padding: 11px 18px; border-radius: 12px; background: #0b1f3a; color: #fff; font: 600 14px/1.3 var(--rt-font, "Geologica", sans-serif); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: opacity .4s, transform .4s; }
.rth-toast.is-out { opacity: 0; transform: translate(-50%, 10px); }

/* ---------- Full map page ---------- */
body.rth-mapapp-body { margin: 0; overflow: hidden; background: #e8eef6; }
.rth-mapapp { --side: 400px; position: fixed; inset: 0; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); font-family: var(--rt-font, "Geologica", system-ui, sans-serif); color: #0f1f3d; }
.admin-bar .rth-mapapp { top: 32px; }
.rth-mapapp *, .rth-mapapp *::before, .rth-mapapp *::after { box-sizing: border-box; }
.rth-mapapp__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding: 12px 22px; background: linear-gradient(90deg, #071530, #0b2a5a); color: #fff; z-index: 2; box-shadow: 0 4px 20px rgba(0, 0, 0, .18); }
.rth-mapapp__brand { flex: none; display: flex; align-items: center; color: #fff !important; text-decoration: none; }
.rth-mapapp__brand img { max-height: 42px; width: auto; filter: brightness(0) invert(1); }
.rth-mapapp__name { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.rth-mapapp__title { flex: 1; min-width: 0; }
.rth-mapapp__title h1 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; color: #fff; }
.rth-mapapp__title p { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, .75); }
.rth-mapapp__stats { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rth-mapapp__stats li { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 12.5px; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.rth-mapapp__stats strong { color: #f2d792; }
.rth-mapapp__back { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: #fff; color: #0b1f3a !important; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.rth-mapapp__side { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid #e3e8f1; z-index: 1; }
.rth-mapapp__search { display: flex; align-items: center; gap: 10px; margin: 16px 16px 10px; padding: 0 14px; border: 1px solid #e3e8f1; border-radius: 14px; background: #f6f8fc; color: #64748b; }
.rth-mapapp__search:focus-within { border-color: #1450e6; background: #fff; box-shadow: 0 0 0 4px rgba(20, 80, 230, .1); }
.rth-mapapp__search input { flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 15px; color: #0f1f3d; outline: none; }
.rth-mapapp__filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.rth-mapapp__filters::-webkit-scrollbar { display: none; }
.rth-mapapp .rth-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border: 1px solid #e3e8f1; border-radius: 999px; background: #fff; color: #0f1f3d; font: 500 13px/1.1 var(--rt-font, "Geologica", sans-serif); text-transform: none; cursor: pointer; }
.rth-mapapp .rth-chip:hover { background: #eef3ff; }
.rth-mapapp .rth-chip.is-active { background: #0b1f3a; border-color: #0b1f3a; color: #fff; }
.rth-mapapp__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eef2f7; }
.rth-sort { position: relative; flex: 1 1 100%; display: flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #e3e8f1; border-radius: 12px; background: #fff; color: #64748b; font-size: 13px; cursor: pointer; }
.rth-sort:hover, .rth-sort:focus-within { border-color: #1450e6; }
.rth-sort > span { flex: none; font-weight: 600; }
.rth-sort > .rt-icon:last-child { flex: none; margin-left: auto; color: #0f1f3d; pointer-events: none; }
html body .rth-mapapp .rth-sort select { flex: 1; min-width: 0; width: 100%; height: 38px; margin: 0; padding: 0 4px; border: 0; background: transparent; box-shadow: none; outline: none; font: 700 13px var(--rt-font, "Geologica", sans-serif); color: #0f1f3d; -webkit-appearance: none; appearance: none; cursor: pointer; }
.rth-switch { flex: none; display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; white-space: nowrap; cursor: pointer; }
.rth-switch span { flex: none; }
.rth-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rth-switch span { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #d6deea; transition: background .15s; }
.rth-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.rth-switch input:checked + span { background: #15803d; }
.rth-switch input:checked + span::after { transform: translateX(16px); }
.rth-switch input:focus-visible + span { outline: 2px solid #1450e6; outline-offset: 2px; }
.rth-mapapp__head { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.rth-mapapp__head strong { color: #0f1f3d; }
.rth-mapapp__head span { padding: 1px 8px; border-radius: 999px; background: #eef2f7; font-weight: 700; }
.rth-mapapp__list { flex: 1; min-height: 0; margin: 0; padding: 0 10px 16px; overflow-y: auto; list-style: none; }
.rth-mapapp .rth-li { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 10px; border: 0; border-radius: 14px; background: transparent; color: #0f1f3d; font: inherit; text-align: left; text-transform: none; cursor: pointer; transition: background .12s; }
.rth-mapapp .rth-li:hover, .rth-mapapp .rth-li:focus { background: #f2f6ff; color: #0f1f3d; }
.rth-li__img { flex: none; width: 76px; height: 58px; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #cfe0ff, #f5d7b5); }
.rth-li__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rth-li__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rth-li__text strong { font-size: 15px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rth-li__text small { font-size: 12.5px; color: #64748b; }
.rth-li__save { color: #15803d !important; font-weight: 600; }
.rth-li__price b { color: #15803d; }
.rth-li__type { display: inline-flex; align-items: center; gap: 4px; color: var(--c); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rth-li__type svg { width: 12px; height: 12px; }
.rth-li__n { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--c); color: #fff; font-size: 13px; font-weight: 800; }
.rth-li__sep { padding: 14px 10px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.rth-li__none { padding: 24px 12px; color: #64748b; font-size: 14px; text-align: center; }
.rth-li__back button { margin: 4px 0 6px; padding: 6px 10px; border: 0; border-radius: 8px; background: #eef2f7; color: #0f1f3d; font: 600 12.5px/1.2 var(--rt-font, "Geologica", sans-serif); cursor: pointer; }
.rth-mapapp__map { position: relative; min-height: 0; }
.rth-mapapp__canvas { position: absolute; inset: 0; background: #e8eef6; }
.rth-mapapp__map .rth-map__legend { left: 16px; bottom: 26px; }
.rth-mapapp .rth-mapapp__toggle { display: none; }
.rth-mapapp .leaflet-top.leaflet-right { display: flex; flex-direction: column; align-items: flex-end; }

@media (max-width: 900px) {
	.rth-mapapp { --side: 0px; grid-template-columns: minmax(0, 1fr); }
	.rth-mapapp__top { gap: 12px; padding: 10px 14px; }
	.rth-mapapp__title p, .rth-mapapp__stats, .rth-mapapp__back span { display: none; }
	.rth-mapapp__title h1 { font-size: 16px; }
	.rth-mapapp__side { position: absolute; left: 0; right: 0; bottom: 0; top: 30%; z-index: 1001; border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .22); transform: translateY(105%); transition: transform .3s ease; }
	.rth-mapapp.is-list .rth-mapapp__side { transform: none; }
	.rth-mapapp__map { grid-row: 2; }
	.rth-mapapp button.rth-mapapp__toggle, .rth-mapapp button.rth-mapapp__toggle:hover, .rth-mapapp button.rth-mapapp__toggle:focus { background: #0b1f3a; color: #fff; }
	.rth-mapapp .rth-mapapp__toggle { position: absolute; left: 50%; bottom: 22px; z-index: 1002; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 999px; background: #0b1f3a; color: #fff; font: 700 14px/1 var(--rt-font, "Geologica", sans-serif); transform: translateX(-50%); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
	.rth-mapapp.is-list .rth-mapapp__toggle { position: fixed; bottom: 18px; }
	.rth-mapapp .rth-mapbtn span { display: none; }
	.leaflet-top.leaflet-right .rth-mapbtn { min-width: 0; }
	.rth-mapapp__map .rth-map__legend { display: none; }
}
@media (max-width: 700px) {
	.rth-map__bar { flex-direction: column; align-items: stretch; }
	.rth .rth-map__open { justify-content: center; }
	.rth-map__canvas { height: 440px; }
	.rth-map__legend { display: none; }
	.rth-pin__name { display: none; }
	.rth .rth-mapbtn span { display: none; }
	.leaflet-top.leaflet-right .rth-mapbtn { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.rth-pin__glow { animation: none; }
}

/* "Only with a saving": highlighted so the eye goes there first. */
.rth-switch--hot { padding: 7px 12px 7px 8px; border: 1.5px solid #fb923c; border-radius: 999px; background: #fff7ed; color: #c2410c; font-weight: 700; box-shadow: 0 2px 10px rgba(234, 88, 12, .14); transition: background .15s, color .15s, border-color .15s; }
.rth-switch--hot:hover { background: #ffedd5; }
.rth-switch--hot svg { flex: none; color: #ea580c; }
.rth-switch--hot input:checked + span { background: #ea580c; }
.rth-switch--hot:has(input:checked) { background: #ea580c; border-color: #ea580c; color: #fff; }
.rth-switch--hot:has(input:checked) svg { color: #fff; }
.rth-switch--hot:has(input:checked) span { background: rgba(255, 255, 255, .35); }

/* Bar: category pills on their own row, then "Go to an area" and the full-screen button. */
.rth-map__bar { flex-wrap: wrap; }
.rth-map__bar .rth-map__filters { flex: 1 1 100%; }
.rth-map__bar .rth-map__goto { margin-right: auto; }
@media (max-width: 700px) {
	.rth-map__bar .rth-map__goto { margin-right: 0; }
}
