.ft-app {
	--ft-red: #8a2b2f;
	--ft-blue: #4e5f73;
	--ft-gold: #f0c94a;
	--ft-cream: #fdf8ec;
	font-family: 'Roboto', sans-serif;
	max-width: 900px;
	margin: 0 auto;
	color: var(--ft-cream);
	background: linear-gradient(160deg, var(--ft-red) 0%, var(--ft-blue) 100%);
	border-radius: 18px;
	padding: 28px 22px 34px;
	box-shadow: 0 12px 32px rgba(0,0,0,0.25);
	box-sizing: border-box;
	overflow-wrap: break-word;
	word-break: break-word;
}
.ft-app *, .ft-app *::before, .ft-app *::after { box-sizing: border-box; }

.ft-header { text-align: center; margin-bottom: 24px; }
.ft-header h2 {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 28px;
	margin: 0 0 6px;
	color: #fff;
}
.ft-subtitle { margin: 0; opacity: 0.85; font-size: 14px; }

.ft-home-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
@media (min-width: 560px) {
	.ft-home-grid { grid-template-columns: repeat(3, 1fr); }
}

.ft-home-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(255,255,255,0.08);
	border: 1.5px solid rgba(240,201,74,0.45);
	border-radius: 16px;
	padding: 22px 10px;
	cursor: pointer;
	color: var(--ft-cream);
	transition: transform .15s ease, background .15s ease;
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
}
.ft-home-btn:hover { transform: translateY(-3px); background: rgba(255,255,255,0.16); }
.ft-home-icon { width: 40px; height: 40px; color: var(--ft-gold); }
.ft-home-icon svg { width: 100%; height: 100%; }
.ft-home-label { font-size: 14px; text-align: center; line-height: 1.25; }
.ft-home-btn-fav .ft-home-icon { font-size: 30px; line-height: 40px; }

.ft-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ft-back {
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.3);
	color: #fff;
	padding: 8px 14px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 13px;
	flex-shrink: 0;
	white-space: nowrap;
}
.ft-section-title {
	font-family: 'Playfair Display', serif;
	font-size: 20px;
	margin: 0;
	color: #fff;
	text-align: right;
	flex: 1;
	min-width: 0;
}

.ft-tagbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ft-groupbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ft-group-pill {
	background: rgba(255,255,255,0.1);
	border: 1.5px solid var(--ft-gold);
	color: var(--ft-gold);
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	cursor: pointer;
}
.ft-group-pill:hover { background: var(--ft-gold); color: #4a2f0a; }
.ft-tag-pill {
	background: var(--ft-gold);
	color: #4a2f0a;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 999px;
	cursor: pointer;
	border: none;
	opacity: 0.85;
}
.ft-tag-pill.active { opacity: 1; box-shadow: 0 0 0 2px #fff inset; }

.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ft-grid.ft-grid--grouped { display: block; }
.ft-grid-nested { margin-bottom: 22px; }
.ft-recipe-group-title {
	font-family: 'Playfair Display', serif;
	font-size: 17px;
	color: var(--ft-gold);
	margin: 18px 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(240,201,74,0.35);
}
.ft-recipe-group-title:first-child { margin-top: 0; }
.ft-card {
	background: rgba(255,255,255,0.09);
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
	border: 1px solid rgba(255,255,255,0.15);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform .15s ease;
}
.ft-card:hover { transform: translateY(-2px); }
.ft-card-img { width: 100%; height: 110px; object-fit: cover; background: rgba(0,0,0,0.15); }
.ft-card-body { padding: 10px 12px 8px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ft-card-no-image .ft-card-body { padding-right: 42px; }
.ft-card-title { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.25; }
.ft-card-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 12px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: auto; }
.ft-card-tags .ft-tag-pill { font-size: 10px; padding: 2px 8px; cursor: default; }
.ft-card-fav {
	position: absolute; top: 8px; right: 8px;
	background: rgba(0,0,0,0.35); border: none; color: #fff;
	width: 30px; height: 30px; min-width: 30px; border-radius: 50%; font-size: 15px; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	line-height: 1; padding: 0; margin: 0;
}
.ft-card-fav.is-fav { color: #ff5a5a; }

.ft-detail-body {
	background: rgba(255,255,255,0.08);
	border-radius: 16px;
	padding: 20px;
}
.ft-detail-body img { width: 100%; border-radius: 12px; margin-bottom: 14px; max-height: 260px; object-fit: cover; }
.ft-detail-body h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 0 0 8px; color: #fff; }
.ft-detail-body .ft-meta-line { font-size: 13px; opacity: 0.85; margin-bottom: 10px; }
.ft-detail-body h4 { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--ft-gold); margin: 16px 0 6px; }
.ft-detail-body ul, .ft-detail-body ol { margin: 0; padding-left: 20px; }
.ft-detail-body li { margin-bottom: 6px; line-height: 1.4; }
.ft-detail-body p { line-height: 1.55; }
.ft-variant { background: rgba(0,0,0,0.15); border-left: 3px solid var(--ft-gold); padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.ft-variant strong { color: var(--ft-gold); }
.ft-dialetto { font-style: italic; white-space: pre-line; }
.ft-traduzione { white-space: pre-line; opacity: 0.9; }

.ft-fav-toggle {
	background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff;
	width: 40px; height: 40px; min-width: 40px; border-radius: 50%; font-size: 18px; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	line-height: 1; padding: 0; margin: 0; flex-shrink: 0;
}
.ft-fav-toggle.is-fav { color: #ff5a5a; border-color: #ff5a5a; }

.ft-detail-nav { display: flex; justify-content: space-between; margin-top: 16px; gap: 10px; }
.ft-detail-nav button {
	flex: 1;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.25);
	color: #fff;
	padding: 10px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 13px;
}
.ft-detail-nav button:disabled { opacity: 0.35; cursor: default; }

.ft-map { width: 100%; height: 420px; border-radius: 14px; overflow: hidden; margin-bottom: 14px; position: relative; z-index: 1; }
.ft-map-pin-inner {
	background: var(--ft-gold);
	color: #4a2f0a;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 12px;
	border: 2px solid var(--ft-red);
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.35);
	pointer-events: auto;
}
.leaflet-marker-icon.ft-map-pin { pointer-events: auto !important; }
.ft-poi-panel { background: rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; min-height: 60px; margin-bottom: 14px; }
.ft-poi-panel img { width: 100%; border-radius: 10px; max-height: 200px; object-fit: cover; margin-bottom: 10px; }
.ft-poi-panel h3 { font-family: 'Playfair Display', serif; margin: 0 0 6px; color: #fff; }
.ft-poi-empty { text-align: center; opacity: 0.75; font-size: 14px; }
.ft-poi-link {
	display: inline-block;
	margin-top: 10px;
	background: var(--ft-gold);
	color: #4a2f0a;
	font-weight: 700;
	font-size: 13px;
	padding: 8px 16px;
	border-radius: 999px;
	text-decoration: none;
}

.ft-poi-list { display: flex; flex-direction: column; gap: 16px; }
.ft-poi-group-title {
	font-family: 'Playfair Display', serif;
	font-size: 15px;
	color: var(--ft-gold);
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(240,201,74,0.35);
}
.ft-poi-group-count { color: rgba(255,255,255,0.6); font-family: 'Roboto', sans-serif; font-size: 12px; }
.ft-poi-list-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	color: var(--ft-cream);
	padding: 10px 12px;
	border-radius: 10px;
	margin-bottom: 6px;
	cursor: pointer;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	position: relative;
	z-index: 2;
	pointer-events: auto;
}
.ft-poi-list-item:hover { background: rgba(255,255,255,0.12); }
.ft-poi-list-item.active { background: var(--ft-gold); color: #4a2f0a; border-color: var(--ft-gold); font-weight: 700; }
.ft-poi-list-num {
	flex-shrink: 0;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
	display: flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 700;
}
.ft-poi-list-item.active .ft-poi-list-num { background: rgba(74,47,10,0.25); }
.ft-poi-list-title { flex: 1; min-width: 0; overflow-wrap: break-word; }

.ft-empty-state { text-align: center; padding: 30px 10px; opacity: 0.8; }

.leaflet-popup-content-wrapper { background: var(--ft-red, #8a2b2f); color: #fff; border-radius: 10px; }
.leaflet-popup-tip { background: var(--ft-red, #8a2b2f); }
