:root {
	--florence: #C62828;
	--florence-light: #FFEBEE;
	--siena: #A0522D;
	--siena-light: #FBE9E7;
	--transport: #00838F;
	--transport-light: #E0F7FA;
	--acco: #D81B60;
	--acco-light: #FCE4EC;
	--bg: #F5F0EB;
	--card: #FFFFFF;
	--text: #2D2D2D;
	--text-light: #666666;
	--shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
	--radius: 12px;
	--radius-sm: 8px;
	--font-heading: 'DM Serif Display', Georgia, serif;
	--font-body: 'DM Sans', system-ui, sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 400;
}

.container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px;
}

.nav-wrapper {
	background: var(--card);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: box-shadow 0.2s;

	&.scrolled {
		box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
	}

	> .container {
		display: flex;
		align-items: center;
		gap: 8px;
	}
}

.nav {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	gap: 4px;
	padding: 8px 0;
	flex: 1;
	min-width: 0;

	&::-webkit-scrollbar {
		display: none;
	}
}

.nav-tab {
	flex-shrink: 0;
	border: none;
	background: transparent;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text-light);
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-height: 62px;
	justify-content: center;

	&:hover {
		background: rgba(0, 0, 0, 0.04);
		color: var(--text);
	}

	&.active {
		color: var(--text);
		background: rgba(0, 0, 0, 0.06);
		font-weight: 600;
	}

	.dot {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		display: inline-block;

		&.florence { background: var(--florence); }
		&.siena { background: var(--siena); }
		&.transport { background: var(--transport); }
		&.section { background: var(--text-light); }
	}

	.tab-icon {
		font-size: 1rem;
		line-height: 1;
	}

	.tab-label { white-space: nowrap; }

	.tab-date {
		font-size: 0.72rem;
		color: var(--text-light);
		white-space: nowrap;
	}
}

.content {
	padding: 20px 0 60px;
}

.panel {
	display: none;
	&.active { display: block; }
}

.day-header {
	margin-bottom: 24px;

	h2 {
		font-size: 1.6rem;
		margin-bottom: 4px;
	}

	.date-full {
		color: var(--text-light);
		font-size: 0.95rem;
	}
}

.city-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;

	&.florence { background: var(--florence-light); color: var(--florence); }
	&.siena { background: var(--siena-light); color: var(--siena); }
	&.transport { background: var(--transport-light); color: var(--transport); }
}

.day-map-wrapper {
	position: relative;
	margin-bottom: 24px;
	isolation: isolate;
	transition: none;

	&.sticky {
		position: sticky;
		top: 52px;
		z-index: 500;
	}

	&.expanded {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10000;
		margin: 0;
		padding: 0;
		background: var(--bg);
		animation: mapExpandIn 0.3s ease forwards;

		.day-map {
			height: 100vh;
			height: 100dvh;
			border-radius: 0;
			box-shadow: none;
		}

		.map-btn-group, .map-btn-group-right {
			bottom: 20px;
		}

		.map-btn-group { left: 16px; }
		.map-btn-group-right { right: 16px; }
	}
}

@keyframes mapExpandIn {
	from { opacity: 0.8; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.day-map {
	height: 300px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);

	.leaflet-popup-content-wrapper {
		border-radius: var(--radius-sm);
		font-family: var(--font-body);
		box-shadow: var(--shadow);
	}

	.leaflet-popup-content {
		margin: 10px 14px;
		font-size: 0.85rem;
		line-height: 1.4;
	}

	.leaflet-popup-tip-container {
		display: none;
	}
}

.map-btn-group {
	position: absolute;
	bottom: 10px;
	left: 10px;
	z-index: 600;
	display: flex;
	gap: 6px;
}

.map-btn-group-right {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 600;
	display: flex;
	gap: 6px;
}

.map-ctrl-btn {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	border: none;
	background: var(--card);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-light);
	transition: all 0.2s;

	&:hover {
		background: var(--bg);
		color: var(--text);
	}

	&.active {
		background: var(--text);
		color: white;
	}
}

.map-card-container {
	position: absolute;
	bottom: 50px;
	left: 10px;
	right: 10px;
	z-index: 700;
	pointer-events: none;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;

	&.visible {
		pointer-events: auto;
		opacity: 1;
		transform: translateY(0);
	}
}

.map-card {
	position: relative;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	max-width: 420px;
	max-height: 60vh;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.map-card-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	font-size: 0.85rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;

	&:hover { background: rgba(0, 0, 0, 0.7); }
}

.map-card-img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	border-radius: var(--radius) var(--radius) 0 0;
}

.map-card-body {
	padding: 14px 16px;

	.activity-time { margin-bottom: 2px; }
	.activity-title { font-size: 1rem; margin-bottom: 4px; }
	.activity-desc { font-size: 0.82rem; margin-bottom: 8px; }
	.activity-footer { gap: 6px; }
	.link-btn { font-size: 0.72rem; padding: 4px 10px; }
}

.expanded .map-card-container {
	bottom: 70px;
	left: 16px;
	right: auto;
	max-width: 440px;
}

.expanded .map-card {
	max-height: 70vh;
}

.map-marker {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 700;
	font-size: 0.7rem;
	font-family: var(--font-body);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	border: 2.5px solid white;

	&.florence { background: var(--florence); }
	&.siena { background: var(--siena); }
	&.transport { background: var(--transport); }
	&.accommodation { background: var(--acco); }
}

.timeline {
	position: relative;
	padding-left: 36px;

	&::before {
		content: '';
		position: absolute;
		left: 11px;
		top: 8px;
		bottom: 8px;
		width: 2px;
		background: rgba(0, 0, 0, 0.08);
		border-radius: 1px;
	}
}

.walk-indicator {
	display: flex;
	align-items: center;
	margin: -6px 0 -6px -36px;
	padding: 6px 0 6px 36px;
	position: relative;

	.walk-text {
		font-size: 0.72rem;
		color: var(--text-light);
		font-weight: 500;
		letter-spacing: 0.2px;
	}
}

.timeline-item {
	position: relative;
	margin-bottom: 20px;

	&.clickable {
		cursor: pointer;

		.activity-card::after {
			content: '';
			position: absolute;
			inset: 0;
			border-radius: var(--radius);
			border: 2px solid transparent;
			transition: border-color 0.2s;
			pointer-events: none;
		}
	}

	&.active .activity-card {
		box-shadow: var(--shadow-hover);
		transform: translateY(-1px);

		&::after {
			border-color: var(--text);
		}
	}

	&.active .step-num {
		transform: scale(1.25);
		box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
	}

	.step-num {
		position: absolute;
		left: -36px;
		top: 14px;
		width: 24px;
		height: 24px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		color: white;
		font-weight: 700;
		font-size: 0.65rem;
		font-family: var(--font-body);
		z-index: 1;
		transition: transform 0.2s, box-shadow 0.2s;

		&.florence { background: var(--florence); }
		&.siena { background: var(--siena); }
		&.transport { background: var(--transport); }
		&.accommodation { background: var(--acco); }
	}
}

.activity-card {
	position: relative;
	background: var(--card);
	border-radius: var(--radius);
	padding: 18px 20px;
	box-shadow: var(--shadow);
	transition: box-shadow 0.2s, transform 0.2s;

	&:hover {
		box-shadow: var(--shadow-hover);
		transform: translateY(-1px);
	}
}

.activity-image {
	margin: -18px -20px 14px;
	border-radius: var(--radius) var(--radius) 0 0;
	overflow: hidden;
	max-height: 200px;
	transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
	cursor: zoom-in;

	&.hidden {
		max-height: 0;
		opacity: 0;
		margin: 0 -20px;
	}

	&:hover {
		max-height: 320px;

		img {
			height: 320px;
			transform: scale(1.03);
			filter: saturate(1.15) brightness(1.02);
		}
	}

	img {
		width: 100%;
		height: 200px;
		object-fit: cover;
		display: block;
		transition: height 0.4s ease, transform 0.6s ease, filter 0.4s ease;
	}
}

.photo-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 6px 14px;
	border: 1.5px solid var(--border);
	border-radius: 20px;
	background: var(--card);
	color: var(--text-light);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;

	&:hover {
		border-color: var(--florence);
		color: var(--florence);
	}

	&.active {
		background: var(--florence);
		color: white;
		border-color: var(--florence);

		svg { stroke: white; }
	}
}

.activity-time {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-bottom: 4px;
}

.activity-title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	margin-bottom: 6px;
}

.activity-desc {
	font-size: 0.9rem;
	color: var(--text-light);
	margin-bottom: 10px;
	line-height: 1.5;

	a {
		color: var(--text);
		text-decoration: none;
		font-weight: 600;
		border-bottom: 1.5px solid rgba(0, 0, 0, 0.15);
		transition: border-color 0.2s;

		&:hover {
			border-color: var(--florence);
		}
	}

	ul {
		margin: 8px 0 0;
		padding: 0;
		list-style: none;
	}

	li {
		position: relative;
		padding-left: 16px;
		margin-bottom: 4px;

		&::before {
			content: '•';
			position: absolute;
			left: 0;
			color: inherit;
			font-weight: 700;
		}
	}
}

.activity-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.price-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #E8F5E9;
	color: #2E7D32;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
}

.link-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	color: white;
	transition: opacity 0.2s, transform 0.2s;

	&:hover {
		opacity: 0.85;
		transform: translateY(-1px);
	}

	&.florence { background: var(--florence); }
	&.siena { background: var(--siena); }
	&.transport { background: var(--transport); }
	&.accommodation { background: var(--acco); }
	&.wiki-link { background: #636978; }
}

.section-card {
	background: var(--card);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
	margin-bottom: 20px;
	border-left: 4px solid;
	transition: box-shadow 0.2s;

	&:hover { box-shadow: var(--shadow-hover); }
	&.florence { border-left-color: var(--florence); }
	&.siena { border-left-color: var(--siena); }
	&.transport { border-left-color: var(--transport); }

	h3 {
		font-size: 1.2rem;
		margin-bottom: 12px;
	}

	.info-row {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		margin-bottom: 8px;
		font-size: 0.9rem;
		color: var(--text-light);

		.label {
			font-weight: 600;
			color: var(--text);
			min-width: 80px;
			flex-shrink: 0;
		}
	}

	.card-links {
		margin-top: 14px;
		display: flex;
		gap: 8px;
		flex-wrap: wrap;
	}
}

.budget-table-wrap {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.budget-table {
	width: 100%;
	border-collapse: collapse;

	th {
		background: linear-gradient(135deg, var(--florence), var(--siena));
		color: white;
		padding: 14px 18px;
		text-align: left;
		font-family: var(--font-body);
		font-size: 0.85rem;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.3px;
	}

	td {
		padding: 14px 18px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
		font-size: 0.92rem;
	}

	tr:last-child td { border-bottom: none; }

	.total-row {
		background: rgba(0, 0, 0, 0.03);
		font-weight: 700;

		td {
			font-size: 1rem;
			padding: 16px 18px;
		}
	}
}

.budget-note {
	margin-top: 16px;
	padding: 14px 18px;
	background: var(--transport-light);
	border-radius: var(--radius-sm);
	font-size: 0.85rem;
	color: var(--transport);
	font-weight: 500;
}

.todo-progress {
	height: 6px;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 3px;
	margin-bottom: 24px;
	overflow: hidden;

	.todo-progress-bar {
		height: 100%;
		background: linear-gradient(135deg, var(--florence), var(--siena));
		border-radius: 3px;
		transition: width 0.4s ease;
	}
}

.todo-section-title {
	font-family: var(--font-heading);
	font-size: 1rem;
	margin-bottom: 10px;
	color: var(--text-light);
}

.todo-section + .todo-section {
	margin-top: 24px;
}

.todo-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--card);
	border-radius: var(--radius-sm);
	padding: 12px 16px;
	margin-bottom: 8px;
	box-shadow: var(--shadow);
	transition: opacity 0.2s;

	&.done {
		opacity: 0.5;

		.todo-name { text-decoration: line-through; }
	}

	.todo-check {
		flex-shrink: 0;
		width: 28px;
		height: 28px;
		border: none;
		background: none;
		cursor: pointer;
		font-size: 1.15rem;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.todo-body {
		flex: 1;
		min-width: 0;
	}

	.todo-label {
		display: flex;
		align-items: center;
		gap: 8px;
		flex-wrap: wrap;
	}

	.todo-name {
		font-weight: 600;
		font-size: 0.9rem;
	}

	.todo-day {
		font-size: 0.72rem;
		font-weight: 600;
		color: var(--text-light);
		background: var(--bg);
		padding: 2px 8px;
		border-radius: 10px;
	}

	.todo-priority {
		font-size: 0.65rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		padding: 2px 8px;
		border-radius: 10px;

		&.obligatoire { background: #FFEBEE; color: #C62828; }
		&.optionnel { background: #FFF8E1; color: #F57F17; }
	}

	.todo-note {
		font-size: 0.78rem;
		color: var(--text-light);
		margin-top: 2px;
	}

	.todo-link {
		flex-shrink: 0;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		background: var(--bg);
		display: flex;
		align-items: center;
		justify-content: center;
		text-decoration: none;
		color: var(--text-light);
		font-weight: 700;
		font-size: 0.9rem;
		transition: all 0.2s;

		&:hover {
			background: var(--transport);
			color: white;
		}
	}
}

.todo-all-done {
	text-align: center;
	padding: 32px;
	font-size: 1.1rem;
	color: var(--text-light);
}

.phrase-search-wrap {
	margin-bottom: 16px;
}

.phrase-search {
	width: 100%;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	border: 2px solid rgba(0, 0, 0, 0.08);
	background: var(--card);
	font-family: var(--font-body);
	font-size: 0.9rem;
	color: var(--text);
	outline: none;
	transition: border-color 0.2s;

	&::placeholder { color: var(--text-light); }
	&:focus { border-color: var(--transport); }
}

.phrases-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.phrase-category {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;

	.phrase-cat-header {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 14px 20px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);

		.phrase-cat-icon { font-size: 1.15rem; }

		.phrase-cat-title {
			font-family: var(--font-heading);
			font-size: 1.05rem;
		}
	}

	.phrase-list {
		padding: 4px 0;
	}

	.phrase-item {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2px 16px;
		padding: 10px 20px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.04);

		&:last-child { border-bottom: none; }

		.phrase-it {
			font-weight: 700;
			font-size: 0.92rem;
			color: var(--text);
		}

		.phrase-fr {
			font-size: 0.88rem;
			color: var(--text-light);
		}

		.phrase-note {
			grid-column: 1 / -1;
			font-size: 0.72rem;
			color: var(--transport);
			font-style: italic;
			font-weight: 500;
		}
	}

	.tip-block {
		padding: 10px 20px;
		font-size: 0.88rem;
		line-height: 1.55;
		color: var(--text);
		border-bottom: 1px solid rgba(0, 0, 0, 0.04);

		&:last-child { border-bottom: none; }
	}
}

.apps-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.app-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--card);
	border-radius: var(--radius);
	padding: 28px 20px 22px;
	box-shadow: var(--shadow);
	transition: box-shadow 0.2s, transform 0.2s;

	&:hover {
		box-shadow: var(--shadow-hover);
		transform: translateY(-2px);
	}

	.app-icon {
		font-size: 2.2rem;
		width: 56px;
		height: 56px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--bg);
		border-radius: 16px;
		margin-bottom: 14px;
	}

	.app-name {
		font-family: var(--font-heading);
		font-size: 1.1rem;
		margin-bottom: 8px;
	}

	.app-desc {
		font-size: 0.82rem;
		color: var(--text-light);
		line-height: 1.5;
		margin-bottom: 14px;
		flex: 1;
	}

	.app-links {
		display: flex;
		gap: 6px;
		flex-wrap: wrap;
		justify-content: center;
	}

	&.app-card-multi {
		grid-column: 1 / -1;
	}

	.app-sub-list {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.app-sub-item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 14px;
		background: var(--bg);
		border-radius: var(--radius-sm);
	}

	.app-sub-header {
		display: flex;
		flex-direction: column;
		gap: 2px;
		text-align: left;
	}

	.app-sub-name {
		font-weight: 600;
		font-size: 0.88rem;
	}

	.app-sub-note {
		font-size: 0.72rem;
		color: var(--text-light);
		text-transform: uppercase;
		letter-spacing: 0.3px;
		font-weight: 500;
	}
}

.tips-section {
	margin-top: 24px;
}

.tips-details {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;

	summary {
		padding: 16px 20px;
		font-family: var(--font-heading);
		font-size: 1.05rem;
		cursor: pointer;
		list-style: none;
		display: flex;
		align-items: center;
		justify-content: space-between;
		user-select: none;

		&::-webkit-details-marker { display: none; }

		&::after {
			content: '+';
			font-family: var(--font-body);
			font-size: 1.3rem;
			font-weight: 300;
			color: var(--text-light);
		}
	}

	&[open] summary::after {
		content: '\2212';
	}
}

.tips-content {
	padding: 0 20px 16px;
}

.tip-item {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 0.88rem;
	line-height: 1.5;

	.tip-icon {
		flex-shrink: 0;
		font-size: 1rem;
		margin-top: 1px;
	}
}

.transport-card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: 20px;
	overflow: hidden;
	transition: box-shadow 0.2s;

	&:hover { box-shadow: var(--shadow-hover); }

	.transport-header {
		padding: 14px 24px;
		color: white;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;

		&.flight { background: linear-gradient(135deg, #1565C0, #0D47A1); }
		&.train { background: linear-gradient(135deg, var(--transport), #006064); }

		.transport-type {
			font-family: var(--font-heading);
			font-size: 1.15rem;
		}

		.transport-airline {
			font-size: 0.82rem;
			opacity: 0.85;
			font-weight: 500;
		}
	}

	.transport-date {
		padding: 6px 24px 0;
		font-size: 0.82rem;
		color: var(--text-light);
		font-weight: 500;
	}

	.transport-route {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 24px 24px 20px;

		.route-point {
			text-align: center;
			flex: 1;
			min-width: 0;

			.route-code {
				font-size: 1.8rem;
				font-weight: 700;
				font-family: var(--font-body);
				color: var(--text);
				letter-spacing: 1px;
				line-height: 1;
			}

			.route-time {
				font-size: 2rem;
				font-weight: 700;
				font-family: var(--font-body);
				color: var(--text);
				line-height: 1;
				margin-top: 6px;
			}

			.route-city {
				font-size: 0.82rem;
				color: var(--text-light);
				margin-top: 6px;
			}

			.route-terminal {
				font-size: 0.75rem;
				color: var(--text-light);
				opacity: 0.7;
				margin-top: 1px;
			}
		}

		.route-center {
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 6px;
			flex-shrink: 0;
			padding: 0 8px;
			min-width: 100px;

			.route-duration-badge {
				background: var(--bg);
				padding: 6px 16px;
				border-radius: 20px;
				font-size: 0.85rem;
				font-weight: 700;
				color: var(--text);
				white-space: nowrap;
			}

			.route-line-wrap {
				width: 100%;
				height: 2px;
				background: rgba(0, 0, 0, 0.1);
				position: relative;
				border-radius: 1px;

				&::before {
					content: '';
					position: absolute;
					left: 0;
					top: -3px;
					width: 8px;
					height: 8px;
					border-radius: 50%;
					background: rgba(0, 0, 0, 0.15);
				}

				&::after {
					content: '';
					position: absolute;
					right: -1px;
					top: -4px;
					width: 0;
					height: 0;
					border-left: 8px solid rgba(0, 0, 0, 0.15);
					border-top: 5px solid transparent;
					border-bottom: 5px solid transparent;
				}
			}

			.route-type-label {
				font-size: 0.68rem;
				text-transform: uppercase;
				letter-spacing: 0.5px;
				color: var(--text-light);
				font-weight: 600;
			}
		}
	}

	.transport-divider {
		height: 1px;
		background: rgba(0, 0, 0, 0.06);
		margin: 0 24px;
	}

	.transport-details {
		padding: 16px 24px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px 24px;

		.detail-item {
			display: flex;
			flex-direction: column;
			gap: 1px;

			&.full-width { grid-column: 1 / -1; }

			.detail-label {
				font-size: 0.72rem;
				text-transform: uppercase;
				letter-spacing: 0.5px;
				color: var(--text-light);
				font-weight: 600;
			}

			.detail-value {
				font-size: 0.88rem;
				color: var(--text);

				&.highlight {
					font-weight: 700;
				}
			}
		}
	}

	.transport-footer {
		padding: 0 24px 16px;
		display: flex;
		gap: 8px;
		flex-wrap: wrap;
	}
}

.accommodation-card {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: 20px;
	overflow: hidden;
	transition: box-shadow 0.2s;

	&:hover { box-shadow: var(--shadow-hover); }

	.acco-header {
		padding: 16px 24px;
		color: white;
		display: flex;
		align-items: center;
		justify-content: space-between;

		&.florence { background: linear-gradient(135deg, var(--florence), #8E0000); }
		&.siena { background: linear-gradient(135deg, var(--siena), #6D3410); }

		.acco-city {
			font-family: var(--font-heading);
			font-size: 1.15rem;
		}

		.acco-dates-badge {
			font-size: 0.8rem;
			font-weight: 500;
			opacity: 0.9;
		}
	}

	.acco-body {
		padding: 20px 24px;

		.acco-address {
			font-size: 0.95rem;
			color: var(--text);
			margin-bottom: 14px;
			line-height: 1.5;
		}

		.acco-grid {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 10px 24px;
			margin-bottom: 16px;

			.acco-detail {
				display: flex;
				flex-direction: column;
				gap: 1px;

				.detail-label {
					font-size: 0.72rem;
					text-transform: uppercase;
					letter-spacing: 0.5px;
					color: var(--text-light);
					font-weight: 600;
				}

				.detail-value {
					font-size: 0.88rem;
					color: var(--text);
				}
			}
		}
	}

	.acco-footer {
		padding: 0 24px 20px;
		display: flex;
		gap: 8px;
	}
}

.activity-card.free-slot {
	background: repeating-linear-gradient(
		-45deg,
		var(--card),
		var(--card) 10px,
		rgba(0, 0, 0, 0.015) 10px,
		rgba(0, 0, 0, 0.015) 20px
	);
	border: 2px dashed rgba(0, 0, 0, 0.1);
	box-shadow: none;

	&:hover {
		box-shadow: none;
		transform: none;
	}

	.activity-title {
		color: var(--text-light);
		font-weight: 500;
	}

	.activity-desc {
		font-style: italic;

		ul { font-style: normal; }
	}
}

.step-num.free {
	background: rgba(0, 0, 0, 0.12) !important;
	color: var(--text-light) !important;
}

.day-header.header-locked {
	.city-badge, h2 {
		filter: blur(6px);
		user-select: none;
		pointer-events: none;
	}
}

.locked-card {
	position: relative;
	overflow: hidden;
}

.locked-content {
	filter: blur(8px);
	user-select: none;
	pointer-events: none;
}

.locked-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.6);
	border-radius: var(--radius);
	z-index: 1;

	.locked-icon {
		font-size: 1.5rem;
	}

	.locked-text {
		font-size: 0.82rem;
		font-weight: 600;
		color: var(--text-light);
	}
}

.step-num.locked-num {
	background: rgba(0, 0, 0, 0.12) !important;
	color: var(--text-light) !important;
	font-size: 0.8rem;
}

.tab-lock {
	font-size: 0.6rem;
	margin-left: 2px;
}

.theme-toggle {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: var(--bg);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-light);
	font-size: 1.05rem;
	transition: color 0.2s, background 0.2s, transform 0.2s;

	&:hover {
		color: var(--text);
		transform: scale(1.1);
	}
}

.geo-dot {
	width: 14px;
	height: 14px;
	background: #4285F4;
	border: 2.5px solid white;
	border-radius: 50%;
	position: relative;
	box-shadow: 0 0 6px rgba(66, 133, 244, 0.5);

	&::after {
		content: '';
		position: absolute;
		inset: -2.5px;
		border-radius: 50%;
		background: #4285F4;
		opacity: 1;
		animation: geo-pulse 2s ease-out infinite;
	}
}

@keyframes geo-pulse {
	0% { transform: scale(1); opacity: 0.6; }
	100% { transform: scale(2.5); opacity: 0; }
}

.now-past {
	opacity: 0.45;
}

.now-current > .activity-card {
	border-left: 3px solid #E53935;
}

.timeline-now {
	position: relative;
	display: flex;
	align-items: center;
	margin: 12px 0;
	padding-left: 0;

	&::before {
		content: '';
		position: absolute;
		left: -36px;
		right: 0;
		height: 2px;
		background: #E53935;
	}

	.now-pill {
		position: relative;
		left: -36px;
		background: #E53935;
		color: white;
		font-size: 0.7rem;
		font-weight: 700;
		padding: 3px 10px;
		border-radius: 12px;
		white-space: nowrap;
		z-index: 1;
		text-transform: uppercase;
		letter-spacing: 0.3px;
	}
}

.version-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 6px 16px;
	font-size: 0.72rem;
	color: var(--text-light);
	font-weight: 500;
	white-space: nowrap;
	margin: 0 auto 20px;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;

	.version-dot {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: #43A047;
		flex-shrink: 0;
	}

	&.update {
		position: fixed;
		bottom: 12px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 900;
		margin: 0;
		background: var(--text);
		color: var(--bg);
		border-radius: 20px;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
		font-size: 0.8rem;
		padding: 8px 12px 8px 18px;

		button {
			border: none;
			background: var(--florence);
			color: white;
			padding: 5px 14px;
			border-radius: 14px;
			font-family: var(--font-body);
			font-size: 0.78rem;
			font-weight: 700;
			cursor: pointer;
			transition: opacity 0.2s;

			&:hover { opacity: 0.85; }
		}
	}
}

[data-theme="dark"] {
	--bg: #1a1a2e;
	--card: #242438;
	--text: #e8e8f0;
	--text-light: #9898b0;
	--shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
	--shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.5);
	--florence-light: rgba(198, 40, 40, 0.18);
	--siena-light: rgba(160, 82, 45, 0.22);
	--transport-light: rgba(0, 131, 143, 0.15);
	--acco-light: rgba(216, 27, 96, 0.15);

	.nav-wrapper {
		border-bottom-color: rgba(255, 255, 255, 0.08);

		&.scrolled {
			box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
		}
	}

	.nav-tab {
		&:hover { background: rgba(255, 255, 255, 0.06); }
		&.active { background: rgba(255, 255, 255, 0.1); }
	}

	.theme-toggle {
		border-color: rgba(255, 255, 255, 0.1);
	}

	.version-bar {
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	}

	.timeline::before { background: rgba(255, 255, 255, 0.08); }

	.activity-desc a {
		border-bottom-color: rgba(255, 255, 255, 0.2);
	}

	.price-badge {
		background: rgba(46, 125, 50, 0.2);
		color: #81C784;
	}

	.activity-card.free-slot {
		background: repeating-linear-gradient(
			-45deg,
			var(--card),
			var(--card) 10px,
			rgba(255, 255, 255, 0.02) 10px,
			rgba(255, 255, 255, 0.02) 20px
		);
		border-color: rgba(255, 255, 255, 0.1);
	}

	.step-num.free {
		background: rgba(255, 255, 255, 0.12) !important;
	}

	.locked-overlay {
		background: rgba(26, 26, 46, 0.7);
	}

	.step-num.locked-num {
		background: rgba(255, 255, 255, 0.12) !important;
	}

	.day-map .leaflet-tile-pane {
		filter: brightness(0.75) contrast(1.1) saturate(0.8);
	}

	.map-marker { border-color: var(--card); }

	.map-ctrl-btn {
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

		&.active {
			background: var(--text);
			color: var(--card);
		}
	}

	.map-card {
		box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
	}

	.map-card-close {
		background: rgba(255, 255, 255, 0.2);

		&:hover { background: rgba(255, 255, 255, 0.35); }
	}

	.budget-table {
		td { border-bottom-color: rgba(255, 255, 255, 0.06); }
		.total-row { background: rgba(255, 255, 255, 0.05); }
	}

	.todo-progress { background: rgba(255, 255, 255, 0.08); }
	.todo-priority.obligatoire { background: rgba(198, 40, 40, 0.2); color: #EF5350; }
	.todo-priority.optionnel { background: rgba(230, 81, 0, 0.2); color: #FF9800; }

	.phrase-search { border-color: rgba(255, 255, 255, 0.1); }
	.phrase-category .phrase-cat-header { border-bottom-color: rgba(255, 255, 255, 0.06); }
	.phrase-item { border-bottom-color: rgba(255, 255, 255, 0.04) !important; }
	.tip-block { border-bottom-color: rgba(255, 255, 255, 0.04) !important; }

	.transport-card .transport-divider { background: rgba(255, 255, 255, 0.06); }

	.transport-card .route-line-wrap {
		background: rgba(255, 255, 255, 0.15);

		&::before { background: rgba(255, 255, 255, 0.2); }
		&::after { border-left-color: rgba(255, 255, 255, 0.2); }
	}

	.timeline-item.active .activity-card::after {
		border-color: var(--florence);
	}

	.timeline-item.active .step-num {
		box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
	}

	.geo-dot {
		border-color: var(--card);
	}

	.now-current > .activity-card {
		border-left-color: #EF5350;
	}

	.budget-note {
		background: rgba(0, 131, 143, 0.12);
	}

	.photo-toggle-btn {
		border-color: rgba(255, 255, 255, 0.12);

		&.active {
			background: var(--florence);
		}
	}
}

@media (max-width: 768px) {
	.container { padding: 0 14px; }
	.theme-toggle { width: 30px; height: 30px; font-size: 0.9rem; }
	.nav-tab { padding: 8px 10px; font-size: 0.76rem; min-height: 56px; }
	.day-header h2 { font-size: 1.3rem; }
	.day-map { height: 200px; }

	.locked-overlay {
		.locked-icon { font-size: 1.2rem; }
		.locked-text { font-size: 0.75rem; }
	}

	.day-map-wrapper.sticky {
		top: 46px;
	}
	.activity-card { padding: 14px 16px; }
	.activity-image {
		margin: -14px -16px 12px;
		max-height: 160px;

		&.hidden { margin: 0 -16px; }

		&:hover {
			max-height: 260px;

			img { height: 260px; }
		}

		img { height: 160px; }
	}

	.apps-grid { grid-template-columns: 1fr; }

	.map-card-container { bottom: 44px; left: 6px; right: 6px; }
	.map-card { max-width: none; }
	.map-card-img { height: 120px; }
	.expanded .map-card-container { left: 10px; right: 10px; max-width: none; }

	.phrase-item {
		grid-template-columns: 1fr !important;
		padding: 10px 16px !important;
	}

	.app-card {
		padding: 22px 16px 18px;

		.app-sub-item {
			flex-direction: column;
			align-items: center;
			text-align: center;

			.app-sub-header { text-align: center; }
		}
	}

	.section-card {
		padding: 18px;

		.info-row {
			flex-direction: column;
			gap: 2px;

			.label { min-width: auto; }
		}
	}

	.budget-table {
		th, td { padding: 10px 12px; font-size: 0.82rem; }
	}

	.transport-card {
		.transport-route {
			gap: 4px;
			padding: 18px 16px 14px;

			.route-point {
				.route-code { font-size: 1.4rem; }
				.route-time { font-size: 1.5rem; }
			}

			.route-center {
				min-width: 70px;
				padding: 0 4px;
			}
		}

		.transport-details {
			grid-template-columns: 1fr;
			padding: 14px 16px;
		}

		.transport-divider { margin: 0 16px; }
		.transport-footer { padding: 0 16px 14px; }
	}

	.accommodation-card {
		.acco-body {
			padding: 16px;

			.acco-grid { grid-template-columns: 1fr; }
		}

		.acco-footer { padding: 0 16px 16px; }
	}
}
