#walk-toggle-btn, #walk-locate-btn  {
	position: absolute;
	z-index: 200;
	width: 44px;
	height: 44px;
	background: var(--primary-red);
	border: 2px solid var(--primary-red);
	border-radius: var(--border-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	color: var(--dark-gray);
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}
#walk-toggle-btn {
	bottom: 12px;
	left: 8px;
}
#walk-locate-btn {
	bottom: 60px;
	left: 8px;
}
#walk-toggle-btn:hover, #walk-locate-btn:hover {
	background: var(--accent);
	border-color: var(--white);
	color: white;
}
#walk-toggle-btn.has-items, #walk-toggle-btn.active {
	background: var(--primary-red);
	border-color: var(--primary-red);
	color: white;
}
#walk-locate-btn.located {
	background: var(--primary-red);
	border-color:var(--accent);
	color: white;
}
#walk-locate-btn.locating .locate-icon { display: none; }
#walk-locate-btn.locating .locate-spin { display: block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#walk-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 20px;
	height: 20px;
	background: var(--accent);
	color: white;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	align-items: center;
	border:1px solid var(--primary-red);
	justify-content: center;
	display: none;
	box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
/* ── Walk drawer ─────────────────────────────────────── */
#walk-drawer {
	position: absolute;
	top: 0;
	right: 0;
	width: 320px;
	height: 100%;
	background: #f4f4f4;
	z-index: 150;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
}
#walk-drawer.open {
	transform: translateX(0);right: 0; /* Slide in */
	box-shadow: -6px 0 32px rgba(0,0,0,0.18);
}
.walk-drawer-head {
 display: flex;
  align-items: center;
  justify-content: start;
  padding: 16px 20px 16px;
  position: relative;
}
.walk-drawer-title {
 font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
	gap: 12px;
}
.walk-drawer-title  path {
	fill: var(--mid-gray);
}
#walk-drawer-close {
 position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #555;
  transition: background 0.2s ease;
}
#walk-drawer-close svg {
	color: var(--primary-red) !important;
	height: 24px !important;
	width: 24px !important
}
#walk-drawer-close:hover { background: rgba(255,255,255,0.32); }
.walk-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--medium-gray)
}
#walk-empty-state {
	text-align: center;
	padding: 32px 16px;
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
#walk-empty-state p {
	font-size: 13px;
	line-height: 1.6;
	margin: 0;
}
#walk-empty-state strong { 
	color: var(--primary-red); 
}
#walk-save-form {
	padding: 8px;
	background: #eee;
	border-radius: 4px;
}
#walk-save-form-btns button {
	color:  var(--primary-red);
	margin-right: 12px
}
#walk-save-btn:hover, #walk-save-form-btns button:hover {
	color: var(--accent)
}
.walk-login-prompt {
	font-size: 12px;
	padding: 12px;
	text-align: center;
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--medium-gray);
}
.walk-login-prompt:hover {
	background:black;
	color: #fff
}
/* ── Walk stop items ─────────────────────────────────── */
#walk-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.walk-item {
	background: white;
	border-radius: var(--border-radius);
	padding: 8px 10px;
	display: flex;
	margin-bottom: 8px;
	align-items: center;
	gap: 7px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	border: 2px solid transparent;
	transition: border-color 0.15s, opacity 0.15s, box-shadow 0.15s;
	cursor: default;
}
.walk-item-info {
	overflow: hidden
}
.walk-item-address {
	font-size: 12px;
	color: var(--mid-gray)
}


/* SortableJS state classes */
.walk-item--ghost   { opacity: 0.4; }
.walk-item--chosen  { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.walk-item--drag    { opacity: 0.9; }

.walk-drag-handle {
	cursor: grab;
	color: #ccc;
	flex-shrink: 0;
	flex-grow: 0;
	line-height: 0;
	padding:20px  2px;
	transition: color 0.15s;
	touch-action: none; /* required for SortableJS touch */
}
.walk-drag-handle:hover  { color: var(--primary-red); }
.walk-drag-handle:active { cursor: grabbing; }

.walk-stop-num {
	width: 22px;
	height: 22px;
	background: var(--primary-red);
	color: white;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	font-family: "Roboto Condensed", sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.walk-item-content {
	display: flex;
	flex-direction: row;
	flex-grow: 1;
	gap: 8px;
	overflow:hidden
}
.walk-item-content img {
	width: 40px;
	height: 40px;
	border-radius: calc(var(--border-radius) - 1px);
	background-size: cover;
	background-position: center;
}
.walk-thumb--empty { 
	background: var(--medium-gray); 
}
.walk-item-meta { 
	flex: 1; min-width: 0; 
}
h4.walk-item-title {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.walk-item-artist {
	font-size: 11px;
	color: #999;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 2px;
}
.walk-remove-btn {
	width: 24px;
	height: 24px;
	background: none;
	border: none;
	border-radius: 50%;
	color: #ccc;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s, color 0.15s;
}
.walk-remove-btn:hover { background: #fee; color: var(--primary-red); }

/* ── Drawer footer ───────────────────────────────────── */
.walk-drawer-foot {
	flex-shrink: 0;
	padding: 14px 14px;
	background: white;
	border-top: 1px solid var(--medium-gray);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
#walk-stats-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	padding: 8px 0 2px;
}
.walk-stat { 
	text-align: center; 
}

.walk-stat-val {
	font-family: "Roboto Condensed", sans-serif;
	font-weight: 700;
	font-size: 22px;
	color: var(--primary-red);
	line-height: 1;
}

.walk-stat-lbl {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #aaa;
	margin-top: 3px;
}

.walk-stat-sep {
	width: 1px;
	height: 32px;
	background: var(--medium-gray);
}

#walk-route-btn,
#walk-share-btn,
#walk-navigate-btn {
	width: 100%;
	padding: 11px 14px;
	border-radius: var(--border-radius);
	font-family: "Roboto Condensed", sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	transition: background 0.2s, opacity 0.2s;
	border: none;
}

#walk-route-btn {
	background: var(--primary-red);
	color: white;
}
#walk-route-btn:hover:not(:disabled) { background: var(--dark-red); }
#walk-route-btn:disabled             { opacity: 0.38; cursor: not-allowed; }

#walk-share-btn {
	background: white;
	color: var(--primary-red);
	border: 2px solid var(--primary-red);
}
#walk-share-btn:hover:not(:disabled) { background: #fff5f5; }
#walk-share-btn:disabled             { opacity: 0.38; cursor: not-allowed; }

#walk-navigate-btn {
	background: #1a1a1a;
	color: white;
}
#walk-navigate-btn:hover:not(:disabled) { background: #333; }
#walk-navigate-btn:disabled             { opacity: 0.38; cursor: not-allowed; }

#walk-share-row {
	display: flex;
	gap: 6px;
	align-items: center;
}

#walk-share-url {
	flex: 1;
	padding: 7px 10px;
	border: 1px solid var(--medium-gray);
	border-radius: var(--border-radius);
	font-size: 11px;
	background: var(--light-gray);
	color: var(--text-color);
	outline: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#walk-copy-btn {
	padding: 7px 12px;
	background: var(--primary-red);
	color: white;
	border: none;
	border-radius: var(--border-radius);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}
#walk-copy-btn:hover { background: var(--dark-red); }

#walk-clear-btn {
	background: none;
	border: none;
	font-size: 12px;
	color:  var(--dark-gray);
	cursor: pointer;
	text-align: center;
	transition: color 0.2s;
}
#walk-clear-btn:hover { color: var(--primary-red); }

/* ── Card "Add to Walk" button ───────────────────────── */
.card-add-to-walk, .popup-add-to-walk {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px 4px 6px;
	background: none;
	border: 1.5px solid var(--mid-gray);
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	font-family: "Roboto Condensed", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #777;
	cursor: pointer;
	transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.popup-add-to-walk:hover, .card-add-to-walk:hover {
	background: var(--primary-red);
	border-color: var(--primary-red);
	color: white;
}
.popup-add-to-walk.in-walk, .card-add-to-walk.in-walk {
	background-color: var(--accent);
	color: white;
	border: 1.5px solid var(--medium-gray);
	
}
/* ── Numbered stop markers on map ────────────────────── */
.walk-stop-marker {
	width: 30px;
	height: 30px;
	background: var(--primary-red);
	border: 3px solid white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	pointer-events: none;
}

.walk-stop-marker span {
	color: white;
	font-size: 12px;
	font-weight: 700;
	font-family: "Roboto Condensed", sans-serif;
	line-height: 1;
}

/* ── User location dot ───────────────────────────────── */
.user-location-dot {
	width: 16px;
	height: 16px;
	background: #4A90D9;
	border: 3px solid white;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.25);
	animation: location-pulse 2s ease-in-out infinite;
}

@keyframes location-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.25); }
	50%       { box-shadow: 0 0 0 10px rgba(74, 144, 217, 0.08); }
}

/* ── Navigation app chooser ──────────────────────────── */
#nav-chooser {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

#nav-chooser-panel {
	background: white;
	width: 100%;
	max-width: 480px;
	border-radius: 20px 20px 0 0;
	padding: 24px 20px 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	animation: chooser-up 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes chooser-up {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

.nav-chooser-title {
	font-family: "Roboto Condensed", sans-serif;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #999;
	text-align: center;
}

.nav-chooser-note {
	font-size: 12px;
	color: #888;
	text-align: center;
	line-height: 1.5;
}

.nav-chooser-btns {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nav-chooser-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s;
}
.nav-chooser-btn:hover { opacity: 0.85; }

.nav-apple  { background: #f0f0f0; color: #1a1a1a; }
.nav-google { background: #f8f8f8; color: #1a1a1a; border: 1px solid #e0e0e0; }

#nav-chooser-close {
	background: none;
	border: none;
	font-size: 15px;
	font-weight: 600;
	color: var(--primary-red);
	cursor: pointer;
	padding: 10px;
	text-align: center;
	transition: opacity 0.15s;
}
#nav-chooser-close:hover { opacity: 0.7; }

/* ===================================
   Toast Notifications
   =================================== */

.walk-toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: #2c2c2c;
	color: white;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	z-index: 999999;
	opacity: 0;
	transition: all 0.3s ease;
	max-width: 90%;
	text-align: center;
}

.walk-toast.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.walk-toast-success {
	background: var(--green);
}

.walk-toast-info {
	background: #00a8ff;
}

.walk-toast-error {
	background: #d63031;
}


/* ── Mobile: drawer becomes bottom sheet ─────────────── */
@media (max-width: 1024px) {
	#walk-drawer {
		width: 100%;
		height: calc(100vh - 40px);
		top: auto;
		bottom: 0;
		right: 0;
		transform: translateY(110%);
		border-radius: 18px 18px 0 0;
	}
	#walk-drawer.open { 
		transform: translateY(0);z-index:10000;
		box-shadow: 0 -6px 32px rgba(0,0,0,0.2);
	}
	.walk-drawer-head {
		padding: 20px;
	}
	.walk-drawer-title {
		padding: 0px;
	}
	#walk-drawer-close {
		border-radius:50%;
	}
	#walk-toggle-btn, #walk-locate-btn {
		top: auto;
	}
	#walk-toggle-btn  { 
		bottom: 14px; right: 14px;
	}
	#walk-locate-btn  { 
		bottom: 68px; right: 8px; 
	}
}

@media (max-width: 768px) {
	.art-index-container #walk-toggle-btn {
		bottom: 14px;
		left: 8px;
	}
	.map-fullscreen .map-panel {
		visibility: visible !important;
		pointer-events: auto !important;
	}
	.fullscreen-toggle {
		position: fixed;
		bottom: 14px;
		right: 8px;
		background-color: var(--primary-red);
		color: white;
		padding: 12px 24px;
		border-radius: 30px;
		font-weight: bold;
		box-shadow: 0 4px 12px rgba(0,0,0,0.3);
		z-index: 10000;
		display: flex;
		align-items: center;
		gap: 8px;
		width: auto;
		border: none;
		justify-content: center;
	}
	.fullscreen-toggle::after {
	  	content: "Map View";
	}
	.fullscreen-toggle svg {
		bottom: 14px;
		right: 14px;
		color: #fff
	}
	.walk-toast {
		bottom: 80px;
		font-size: 13px;
		padding: 10px 20px;
	}
	.art-index-container .map-panel #walk-drawer {
		border-radius: 20px 20px 0 0;
		overflow: hidden;
	}
	#walk-drawer {
		border-radius: 20px 20px 0 0;
		overflow: hidden;
		z-index: 100000;
	}
	#walk-drawer.open {
		box-shadow: 0px -90px 0px 0px #0000008f;
	}

/* ── Fullscreen state ────────────────────────────────── */
/* JS adds map-fullscreen to <body>, so selectors must start with body.map-fullscreen */
body.map-fullscreen .artwork-list-panel {
	display: none;
}
body.map-fullscreen .map-panel {
	width: 100%;
}