/* FindTheCity Interactive Tools Stylesheet */
.ftc-app-shell {
	margin: 18px 0 32px;
}

.ftc-app-controls {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 22px;
}

.ftc-inline-controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	align-items: end;
}

.ftc-ctrl-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 12px;
}

.ftc-ctrl-group {
	margin-bottom: 10px;
}

.ftc-inline-controls .ftc-ctrl-group {
	margin-bottom: 0;
}

.ftc-ctrl-group label {
	display: block;
	font-size: 0.84rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 5px;
}

.ftc-ctrl-group input[type="range"] {
	width: 100%;
	accent-color: #0f4c81;
}

.ftc-ctrl-group select,
.ftc-ctrl-group input[type="number"] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	font-size: 0.94rem;
}

.ftc-ctrl-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.ftc-results-bar,
.ftc-benchmark-bar {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 0.94rem;
}

.ftc-result-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ftc-city-card {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
}

.ftc-city-card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.ftc-city-card-top h3 {
	margin: 4px 0 0;
	font-size: 1.2rem;
}

.ftc-region-tag {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #0369a1;
}

.ftc-match-ring {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	border-radius: 8px;
	padding: 6px 12px;
	text-align: center;
	min-width: 72px;
}

.ftc-match-ring strong {
	display: block;
	font-size: 1.25rem;
	color: #065f46;
	line-height: 1.1;
}

.ftc-match-ring span {
	font-size: 0.68rem;
	text-transform: uppercase;
	color: #047857;
	font-weight: 700;
}

.ftc-city-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	background: #f8fafc;
	padding: 10px;
	border-radius: 6px;
	margin-bottom: 10px;
}

.ftc-city-stats-grid span {
	display: block;
	font-size: 0.72rem;
	color: #64748b;
	text-transform: uppercase;
}

.ftc-city-stats-grid strong {
	font-size: 0.92rem;
	color: #0f172a;
}

.ftc-cons-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.ftc-con-chip {
	background: #fef2f2;
	color: #991b1b;
	font-size: 0.76rem;
	padding: 3px 8px;
	border-radius: 4px;
}

.ftc-card-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 10px;
	border-top: 1px solid #e2e8f0;
	font-size: 0.88rem;
}

.ftc-embed-drawer {
	margin-top: 10px;
	font-size: 0.82rem;
	border-top: 1px dashed #e2e8f0;
	padding-top: 8px;
}

.ftc-embed-drawer summary {
	cursor: pointer;
	color: #0f4c81;
	font-weight: 600;
}

.ftc-embed-code {
	width: 100%;
	font-family: Consolas, monospace;
	font-size: 11.5px;
	margin: 6px 0 8px;
	padding: 8px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
}

.ftc-legend-item {
	margin-bottom: 8px;
	font-size: 0.95rem;
}

@media (max-width: 900px) {
	.ftc-ctrl-row,
	.ftc-result-grid {
		grid-template-columns: 1fr;
	}
}
