html,
body {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #f5f7fb;
	color: #0f172a;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
	width: 100%;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.top-bar {
	height: 72px;
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: 1fr minmax(0, 1fr) 1fr;
	align-items: center;
	gap: 16px;
	padding: 0 20px;
	background: #5b7fa5;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	z-index: 1001;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	justify-self: start;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #ffffff;
}

.brand-icon {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	object-fit: contain;
}

.search-wrap {
	display: flex;
	justify-content: center;
	position: relative;
}

.search-form {
	width: min(100%, 560px);
	position: relative;
}

.search-input {
	width: 100%;
	height: 46px;
	border: 1px solid #dbe3f0;
	border-radius: 999px;
	padding: 0 18px;
	background: #f8fafc;
	font: inherit;
	outline: none;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.search-input::placeholder {
	color: #94a3b8;
}

.top-bar-actions {
	display: flex;
	align-items: center;
	justify-self: end;
	position: relative;
}

.auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	padding: 10px 16px;
	border-radius: 999px;
	min-width: 130px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.auth-button:hover,
.auth-button:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.48);
	outline: none;
}

.auth-avatar {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #ffffff;
	color: #3d5f7e;
	font-size: 0.85rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.auth-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.auth-name {
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.auth-caret {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.auth-button[aria-expanded="true"] .auth-caret {
	transform: rotate(180deg);
}

/* ── Auth Modal (login / signup) ── */

.auth-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 2000;
	animation: auth-backdrop-in 0.2s ease-out;
}

@keyframes auth-backdrop-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.auth-modal {
	width: min(100%, 400px);
	max-width: 400px;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	overflow: hidden;
	font-family: Inter, system-ui, sans-serif;
	animation: auth-modal-in 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-modal-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.auth-modal-header {
	position: relative;
	padding: 26px 28px 6px;
}

.auth-modal-title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.auth-modal-subtitle {
	margin: 6px 0 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: #64748b;
	line-height: 1.45;
}

.auth-close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.auth-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.auth-close:focus-visible {
	outline: 2px solid #5b7fa5;
	outline-offset: 2px;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 18px 28px 28px;
	width: 100%;
	box-sizing: border-box;
}

.auth-form-body {
	display: grid;
	gap: 16px;
}

.auth-label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #334155;
	width: 100%;
}

.auth-field {
	position: relative;
}

.auth-field-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #94a3b8;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
	transition: stroke 0.2s ease;
}

.auth-input {
	width: 100%;
	height: 48px;
	padding: 0 14px 0 44px;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	background: #f8fafc;
	font: inherit;
	font-size: 0.925rem;
	color: #0f172a;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input::placeholder {
	color: #a3b0c2;
}

.auth-input:hover {
	border-color: #b3c2d4;
}

.auth-field:focus-within .auth-field-icon {
	stroke: #5b7fa5;
}

.auth-input:focus {
	border-color: #5b7fa5;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(91, 127, 165, 0.14);
}

.auth-error {
	display: none;
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fdf0ee;
	border: 1px solid #f3c9c2;
	color: #b33a26;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.4;
}

.auth-error:not(:empty) {
	display: block;
}

.auth-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.auth-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 999px;
	padding: 12px 20px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn:focus-visible {
	outline: 2px solid #5b7fa5;
	outline-offset: 2px;
}

.auth-btn.cancel {
	background: #f1f5f9;
	color: #475569;
}

.auth-btn.cancel:hover {
	background: #e2e8f0;
	color: #334155;
}

.auth-btn.submit {
	flex: 1;
	min-width: 140px;
	background: #5b7fa5;
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(91, 127, 165, 0.28);
}

.auth-btn.submit:hover {
	background: #3d5f7e;
	transform: translateY(-1px);
}

.auth-btn.submit:active {
	transform: translateY(0);
}

.auth-btn.submit:disabled {
	cursor: not-allowed;
	box-shadow: none;
	opacity: 0.75;
}

.auth-btn.submit:disabled::before {
	content: '';
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
	to { transform: rotate(360deg); }
}

.auth-switch-wrap {
	font-size: 0.875rem;
	color: #64748b;
	text-align: center;
}

.auth-switch {
	border: none;
	background: none;
	color: #5b7fa5;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
}

.auth-switch:hover,
.auth-switch:focus-visible {
	text-decoration: underline;
}

/* ── User menu (signed-in dropdown) ── */

.user-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 250px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
	padding: 8px;
	z-index: 1002;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.user-menu.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.user-menu-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px 12px;
	margin-bottom: 6px;
	border-bottom: 1px solid #f1f4f9;
}

.user-menu-avatar {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #e8eff6;
	color: #3d5f7e;
	font-size: 1rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.user-menu-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.user-menu-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.user-menu-name {
	font-size: 0.9rem;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-menu-username {
	font-size: 0.78rem;
	font-weight: 500;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: none;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.user-menu-item:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.user-menu-item:focus-visible {
	outline: 2px solid #5b7fa5;
	outline-offset: -2px;
}

.user-menu-item svg {
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.user-menu-item.logout {
	color: #b33a26;
}

.user-menu-item.logout:hover {
	background: #fdf0ee;
	color: #a32d1d;
}

/* ── Change-password success state ── */

.auth-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 30px 28px 28px;
	text-align: center;
}

.auth-success-check {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e4f3ea;
	color: #2f8f5c;
}

.auth-success-check svg {
	display: block;
}

.auth-success-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 800;
	color: #0f172a;
}

.auth-success-text {
	margin: 0;
	font-size: 0.8rem;
	color: #64748b;
}

.auth-success .auth-btn.submit {
	margin: 6px 0 0 auto;
}

.search-results {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	width: min(100%, 560px);
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid #dbe3f0;
	border-radius: 22px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
	overflow: hidden;
	z-index: 1000;
	padding: 8px;
}

.search-result-item {
	width: 100%;
	border: 0;
	background: transparent;
	padding: 12px 14px;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.search-result-item:hover,
.search-result-item:focus-visible {
	background: #eff6ff;
	outline: none;
	transform: translateY(-1px);
}

.search-result-name {
	font-weight: 700;
	color: #0f172a;
}

.search-result-address {
	font-size: 0.8rem;
	font-weight: 500;
	color: #64748b;
	opacity: 0.6;
}

.search-loading {
	padding: 12px 14px;
	font-size: 0.925rem;
	color: #64748b;
}

.layout {
	flex: 1;
	min-height: 0;
	display: flex;
	background: #eef2f7;
}

.map-panel {
	flex: 2;
	min-width: 0;
	min-height: 0;
	position: relative;
	background: #e8eef6;
}

.menu-panel {
	flex: 1;
	min-width: 320px;
	min-height: 0;
	background: #f7f9fc;
	border-left: 1px solid #e2e8f0;
	box-shadow: -10px 0 30px rgba(15, 23, 42, 0.06);
	padding: 20px 16px;
	overflow-y: auto;
}

/* ── POI Popup ── */

.poi-popup .leaflet-popup-content-wrapper {
	border-radius: 20px;
	padding: 6px 0;
	border: 1px solid #e8eef6;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.24);
}

.poi-popup .leaflet-popup-content {
	margin: 18px 20px;
	font-family: Inter, system-ui, sans-serif;
	width: 400px; /* fixed — Leaflet would otherwise vary the popup width per POI */
	min-width: 0;
	max-width: none;
	max-height: 640px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.poi-popup .popup-header {
	position: relative;
	padding: 2px 0 6px;
	flex-shrink: 0;
}

/* Facilities-only scroll region; flex + min-height: 0 keeps it shrinkable. */
.poi-popup .popup-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #c3cede transparent;
	padding-right: 14px;
	border-top: 1px solid #eef2f8;
}

.poi-popup .popup-scroll::-webkit-scrollbar {
	width: 8px;
}

.poi-popup .popup-scroll::-webkit-scrollbar-thumb {
	background: #c3cede;
	border-radius: 999px;
}

.poi-popup .popup-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.poi-popup .leaflet-popup-tip {
	box-shadow: none;
}



.poi-popup-name {
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.3;
}

.poi-popup-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.poi-category-text {
	font-size: 0.8rem;
	font-weight: 500;
	color: #64748b;
	opacity: 0.6;
}

.poi-popup-address {
	font-size: 0.8rem;
	font-weight: 500;
	color: #64748b;
}  


/* ── Toilet popup sections ── */

.toilet-section {
	margin-top: 26px;
}

.toilet-section-title {
	margin: 0 0 10px 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.66rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #8aa0b8;
}

.toilet-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px 0 4px;
}

/* Shown in place of the facility sections until a toilet's first rating
   comes in — a short muted line, not a full empty state. */

.no-facilities-note {
	margin: 0;
	padding: 2px 4px 10px;
	font-size: 0.82rem;
	font-weight: 500;
	color: #94a3b8;
}

.cleanliness-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.stars {
	position: relative;
	font-size: 1.55rem;
	line-height: 1;
	letter-spacing: 4px;
}

.stars-bg {
	color: #dfe6f0;
}

.stars.blank .stars-bg {
	color: #e2e8f0;
}

.stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f6b73c;
}

.cleanliness-pct {
	font-size: 0.95rem;
	font-weight: 800;
	color: #0f172a;
	min-width: 4ch;
	text-align: right;
}

.cleanliness-pct.blank {
	color: #b6c2d4;
}

.conf-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.conf-bar {
	display: block;
	width: 110px;
	height: 8px;
	border-radius: 999px;
	background: #edf1f7;
	border: 1px solid #e2e8f0;
	overflow: hidden;
}

.conf-bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #5b7fa5, #3d5f7e);
}

.conf-bar.blank {
	background: #edf1f7;
	border-color: #e2e8f0;
}

.conf-pct {
	font-size: 0.8rem;
	font-weight: 800;
	color: #0f172a;
	min-width: 3.5ch;
	text-align: right;
}

.conf-pct.blank {
	color: #b6c2d4;
}

.conf-votes {
	font-size: 0.72rem;
	font-weight: 500;
	color: #94a3b8;
	white-space: nowrap;
}

.conf-votes.blank {
	color: #b6c2d4;
}

.access-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.access-label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.access-pin {
	flex-shrink: 0;
	display: block;
	filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.25));
}

.access-row .facility-name {
	font-size: 0.9rem;
	font-weight: 700;
	color: #0f172a;
}

.facility-list {
	display: flex;
	flex-direction: column;
}

.facility-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid #f1f4f9;
}

.facility-row:last-child {
	border-bottom: 0;
}

/* "More" rows continue the list — divider on the first revealed row. */
.facilities-extra .facility-row:first-child {
	border-top: 1px solid #f1f4f9;
}

.facility-name {
	display: inline-flex;
	align-items: center;
	font-size: 0.88rem;
	font-weight: 600;
	color: #334155;
}

.popup-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 14px 4px 0;
	flex-shrink: 0;
}

.popup-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 14px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.popup-action svg {
	display: block;
}

.action-text {
	display: flex;
	align-items: baseline;
	gap: 6px;
	line-height: 1.2;
}

.action-title {
	font-size: 0.78rem;
	font-weight: 700;
}

.action-sub {
	font-size: 0.68rem;
	font-weight: 600;
	opacity: 0.6;
}

.popup-action.rate {
	background: #5b7fa5;
	color: #ffffff;
}

.popup-action.rate svg {
	fill: #ffffff;
}

.popup-action.rate:hover {
	background: #3d5f7e;
	transform: translateY(-1px);
}

.popup-action.no-toilet {
	background: #e6ebf3;
	color: #64748b;
}

.popup-action.no-toilet:hover {
	background: #dbe3ee;
	transform: translateY(-1px);
}

/* ── Rating Form Modal ── */

.rate-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(3px);
}

.rate-modal {
	width: min(100%, 440px);
	max-height: min(92dvh, 700px);
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
	overflow: hidden;
}

.rate-modal-header {
	display: flex;
	align-items: center;
	padding: 16px 18px;
	background: #5b7fa5;
	flex-shrink: 0;
}

.rate-modal-title {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
	opacity: 0.92;
}

.rate-modal-titleblock {
	padding: 16px 20px 14px;
	border-bottom: 1px solid #eef2f8;
	flex-shrink: 0;
}

.rate-modal-poi-name {
	font-size: 1.02rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.3;
}

.rate-modal-poi-type {
	margin-top: 6px;
	font-size: 0.8rem;
	font-weight: 500;
	color: #64748b;
	opacity: 0.6;
}

.rate-modal-form {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.rate-modal-body {
	padding: 6px 20px 20px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #c3cede transparent;
}

.rate-modal-body::-webkit-scrollbar {
	width: 8px;
}

.rate-modal-body::-webkit-scrollbar-thumb {
	background: #c3cede;
	border-radius: 999px;
}

.rate-modal-body::-webkit-scrollbar-track {
	background: transparent;
}

.rate-section {
	margin-top: 18px;
}

.rate-section-title {
	margin: 0 0 10px 0;
	font-size: 0.66rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #8aa0b8;
}

.rate-req {
	color: #e0533d;
}

.rate-stars {
	display: flex;
	gap: 6px;
}

.rate-star {
	position: relative;
}

.rate-star input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.rate-star-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	border-radius: 10px;
	cursor: pointer;
	line-height: 0;
	transition: background-color 0.15s ease;
}

.rate-star-label svg {
	display: block;
	fill: #dbe3f0;
	transition: fill 0.2s ease, transform 0.15s ease;
}

.rate-star-label:hover svg {
	transform: scale(1.12);
}

.rate-star.active .rate-star-label svg {
	fill: #5b7fa5;
}

.rate-star input:focus-visible + .rate-star-label {
	outline: 2px solid #5b7fa5;
	outline-offset: 2px;
}

.rate-facility-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px 12px;
}

.rate-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 6px;
	border-radius: 10px;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.15s ease;
}

.rate-check:hover {
	background: #f1f5f9;
}

.rate-check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.rate-check-box {
	position: relative;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 2px solid #cbd5e1;
	border-radius: 5px;
	background: #f8fafc;
	transition: all 0.2s ease;
}

.rate-check-box::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	opacity: 0;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.rate-check input:checked + .rate-check-box {
	background: #5b7fa5;
	border-color: #5b7fa5;
}

.rate-check input:checked + .rate-check-box::after {
	transform: rotate(45deg) scale(1);
	opacity: 1;
}

.rate-check input:focus-visible + .rate-check-box {
	outline: 2px solid #5b7fa5;
	outline-offset: 2px;
}

.rate-check-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #334155;
	transition: color 0.2s ease;
}

.rate-check input:checked ~ .rate-check-label {
	color: #3d5f7e;
	font-weight: 600;
}

.rate-form-error {
	margin: 12px 20px 0;
	padding: 9px 12px;
	border-radius: 10px;
	background: #fdf0ee;
	border: 1px solid #f3c9c2;
	color: #b33a26;
	font-size: 0.8rem;
	font-weight: 600;
}

.rate-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid #eef2f8;
	flex-shrink: 0;
	background: #ffffff;
}

.rate-modal-btn {
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rate-modal-btn:focus-visible {
	outline: 2px solid #5b7fa5;
	outline-offset: 2px;
}

.rate-modal-btn.cancel {
	background: #eef2f8;
	color: #64748b;
}

.rate-modal-btn.cancel:hover {
	background: #e2e8f0;
	color: #334155;
}

.rate-modal-btn.submit {
	background: #5b7fa5;
	color: #ffffff;
}

.rate-modal-btn.submit:hover {
	background: #3d5f7e;
	transform: translateY(-1px);
}

.rate-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 22px 24px;
	text-align: center;
}

.rate-success-check {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e4f3ea;
	color: #2f8f5c;
}

.rate-success-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 800;
	color: #0f172a;
}

.rate-success-text {
	margin: 0;
	font-size: 0.8rem;
	color: #64748b;
}

.rate-success .rate-modal-btn.submit {
	margin: 6px 0 0 auto;
}

.rate-failure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 22px 24px;
	text-align: center;
}

.rate-failure-mark {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fef3e7;
	color: #c56a1d;
}

.rate-failure-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 800;
	color: #0f172a;
}

.rate-failure-text {
	margin: 0;
	font-size: 0.8rem;
	color: #64748b;
}

.rate-failure .rate-modal-btn.submit {
	margin: 6px 0 0 auto;
	background: #e0533d;
}

.rate-failure .rate-modal-btn.submit:hover {
	background: #bf412e;
}


.facilities-more {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 2px 4px;
	border: 0;
	background: none;
	color: #94a3b8;
	font-family: inherit;
	font-size: 0.8rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease;
}

.more-label {
	font-weight: 700;
}

.more-count {
	font-weight: 600;
	opacity: 0.75;
}

.facilities-more:hover {
	color: #3d5f7e;
}

.facilities-more.open {
	color: #3d5f7e;
}

.more-chevron {
	font-size: inherit;
	line-height: 1;
}

/* ── POI Markers ── */

.poi-marker-wrap {
	background: transparent;
	border: none;
}

.poi-marker {
	cursor: pointer;
	filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.35));
	transition: transform 0.15s ease;
	transform-origin: 50% 100%;
}

.poi-marker:hover {
	transform: scale(1.15);
}

.poi-marker svg {
	display: block;
}

.poi-tooltip {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
	font-size: 0.8rem;
	font-weight: 600;
}

/* ── Locate button (bottom-left of the map) ── */

.locate-btn {
	position: absolute;
	left: 18px;
	bottom: 18px;
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 0;
	border-radius: 18px;
	background: #5b7fa5;
	color: #ffffff;
	box-shadow: 0 10px 26px rgba(61, 95, 126, 0.42);
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.locate-btn:hover {
	background: #3d5f7e;
	transform: translateY(-1px);
}

.locate-btn:focus-visible {
	outline: 2px solid #5b7fa5;
	outline-offset: 2px;
}

.locate-btn svg {
	display: block;
}

.locate-btn.is-locating {
	background: #3d5f7e;
	animation: locate-pulse 1s ease-in-out infinite;
}

@keyframes locate-pulse {
	0%, 100% {
		box-shadow: 0 10px 26px rgba(61, 95, 126, 0.42);
	}
	50% {
		box-shadow: 0 0 0 10px rgba(91, 127, 165, 0.3);
	}
}

/* ── Status Indicator ── */

.status-indicator {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: min(90%, 420px);
	padding: 9px 16px;
	background: rgba(15, 23, 42, 0.88);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	z-index: 1000;
}

.status-indicator.visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.status-indicator::before {
	content: '';
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #ffffff;
	opacity: 0.85;
	animation: status-pulse 1s ease-in-out infinite;
}

.status-indicator.error::before {
	background: #fbbf24;
}

@keyframes status-pulse {
	0%, 100% { opacity: 0.25; }
	50% { opacity: 1; }
}

/* ── Map ── */

#map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.menu-shell {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Filter Sections ── */

.filter-section {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.filter-title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #5b7fa5;
	margin: 0 0 12px 0;
}

/* ── Radio Pills ── */

.radio-pills {
	display: flex;
	gap: 8px;
}

.pill-option {
	flex: 1;
	position: relative;
	cursor: pointer;
}

.pill-option input, .sub-check input, .toggle-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.pill-label {
	display: block;
	text-align: center;
	padding: 8px 6px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #64748b;
	background: #f1f4f9;
	border: 1.5px solid transparent;
	border-radius: 10px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.pill-option input:checked + .pill-label {
	background: #e8eff6;
	border-color: #5b7fa5;
	color: #3d5f7e;
	box-shadow: 0 0 0 1px #5b7fa5;
}

.pill-option:hover .pill-label:not(:has(~ input:checked)) {
	background: #eef2f8;
	color: #4a6d91;
}

.pill-option input:focus-visible + .pill-label {
	outline: 2px solid #5b7fa5;
	outline-offset: 2px;
}

/* ── Sub Checkbox (Unverified, Hidden) ── */

.sub-check-group {
	display: flex;
	gap: 20px;
	margin-top: 12px;
}

.sub-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	cursor: pointer;
	user-select: none;
}

.sub-check-mark {
	position: relative;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 2px solid #cbd5e1;
	border-radius: 5px;
	background: #f8fafc;
	transition: all 0.2s ease;
}

.sub-check-mark::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	opacity: 0;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.sub-check input:checked + .sub-check-mark {
	background: #5b7fa5;
	border-color: #5b7fa5;
}

.sub-check input:checked + .sub-check-mark::after {
	transform: rotate(45deg) scale(1);
	opacity: 1;
}

.sub-check:hover .sub-check-mark {
	border-color: #94a3b8;
}

.sub-check input:focus-visible + .sub-check-mark,
.toggle-switch input:focus-visible + .toggle-slider {
	outline: 2px solid #5b7fa5;
	outline-offset: 2px;
}

.sub-check-label {
	font-size: 0.8rem;
	font-weight: 500;
	color: #64748b;
	transition: color 0.2s ease;
}

.sub-check input:checked ~ .sub-check-label {
	color: #3d5f7e;
	font-weight: 600;
}

/* ── Star Rating ── */

.star-rating-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 4px 0;
}

.star-rating {
	display: flex;
	gap: 4px;
}

.star-btn {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	line-height: 0;
	border-radius: 6px;
	transition: transform 0.15s ease;
}

.star-btn svg {
	display: block;
	fill: #cbd5e1;
	transition: fill 0.2s ease, transform 0.15s ease;
}

.star-btn.active svg {
	fill: #5b7fa5;
}

.star-btn:hover svg {
	transform: scale(1.2);
}

.star-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: #94a3b8;
	min-width: 4ch;
	transition: color 0.2s ease;
	user-select: none;
}

.star-rating-wrap.has-value .star-label {
	color: #5b7fa5;
}

/* ── Toggle List ── */

.toggle-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 8px;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.toggle-row:hover {
	background: #f1f5f9;
}

.toggle-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #334155;
	user-select: none;
}

.toggle-switch {
	position: relative;
	width: 40px;
	height: 22px;
	flex-shrink: 0;
}

.toggle-slider {
	position: absolute;
	inset: 0;
	background: #cbd5e1;
	border-radius: 999px;
	transition: background-color 0.25s ease;
	cursor: pointer;
}

.toggle-slider::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch input:checked + .toggle-slider {
	background: #5b7fa5;
}

.toggle-switch input:checked + .toggle-slider::before {
	transform: translateX(18px);
}

.toggle-switch input:active + .toggle-slider::before {
	width: 20px;
	transform: translateX(0);
}

.toggle-switch input:checked:active + .toggle-slider::before {
	transform: translateX(14px);
}

@media (max-width: 768px) {
	.app-shell {
		height: 100dvh;
	}

	.top-bar {
		height: 68px;
		padding: 0 16px;
		grid-template-columns: auto minmax(0, 1fr) auto;
		z-index: 1001;
	}

	.search-form {
		width: 100%;
	}

	.search-results {
		top: calc(100% + 8px);
		width: 100%;
	}

	.layout {
		flex-direction: column;
	}

	.map-panel {
		flex: 2;
		order: 1;
	}

	.menu-panel {
		flex: 1;
		order: 2;
		min-width: 0;
		border-left: 0;
		border-top: 1px solid #e6ebf3;
		box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
		padding: 16px 12px;
	}

	/* Keep the locate button clear of the centered status pill on small screens. */
	.locate-btn {
		bottom: 84px;
	}
}