/* Travel section — map (≥70%) + trip cards sidebar */

.travel-panel-title {
	font-family: 'Roboto Mono', sans-serif;
	font-size: 0.95rem;
	color: #333;
	margin: 0 0 0.75rem;
	font-weight: 500;
	flex-shrink: 0;
}

.travel-panel-title i {
	color: var(--accent, #303F9F);
	margin-right: 0.4rem;
}

.travel-panel-hint {
	font-family: Lora, serif;
	font-size: 0.78rem;
	color: #999;
	font-weight: 400;
	margin-left: 0.35rem;
}

/* Fit map + cards inside the blue page frame (main-content inset + section chrome) */
.travel-section .section-block {
	padding-right: 44px;
}

.travel-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 24%);
	gap: 0.75rem;
	margin-top: 1rem;
	align-items: stretch;
}

.travel-map-panel {
	min-width: 0;
}

.travel-map-wrap {
	position: relative;
	width: 100%;
	height: clamp(300px, calc(100vh - 340px), 520px);
	background: #e8eaf6;
	border: 1px solid #d0d0d0;
}

#travel-map {
	width: 100%;
	height: 100%;
	z-index: 1;
}

.travel-map-legend {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 500;
	background: rgba(255, 255, 255, 0.92);
	padding: 0.5rem 0.75rem;
	font-size: 0.78rem;
	font-family: 'Roboto Mono', sans-serif;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.travel-map-legend span {
	display: inline-block;
	margin-right: 0.75rem;
}

.legend-home::before,
.legend-visit::before {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 4px;
	vertical-align: middle;
}

.legend-home::before {
	background: #303F9F;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #303F9F;
}

.legend-heat {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.legend-heat .heat-gradient {
	display: inline-block;
	width: 52px;
	height: 8px;
	border-radius: 4px;
	background: linear-gradient(to right, #FFE082, #BF360C);
	vertical-align: middle;
}

.legend-route::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 3px;
	background: #303F9F;
	margin-right: 4px;
	vertical-align: middle;
	border-radius: 1px;
}

.travel-hover-card {
	position: absolute;
	top: 12px;
	left: 12px;
	right: auto;
	z-index: 600;
	width: 280px;
	max-width: calc(100% - 24px);
	background: #fff;
	border-left: 4px solid var(--accent, #303F9F);
	padding: 1rem 1.1rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.travel-hover-card.visible {
	opacity: 1;
}

.travel-hover-card.interactive {
	pointer-events: auto;
}

.travel-hover-card.home-card {
	border-left-color: #303F9F;
}

.travel-hover-card h5 {
	font-family: 'Roboto Mono', sans-serif;
	font-size: 0.95rem;
	margin: 0 0 0.35rem;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.travel-hover-card .meta {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 0.5rem;
}

.travel-hover-card p {
	font-size: 0.85rem;
	margin: 0;
	color: #444;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.travel-hover-card .city-trips-label {
	margin-top: 0.5rem;
	font-size: 0.82rem;
	color: #444;
}

.travel-hover-card .city-trips-list {
	margin: 0.2rem 0 0;
	padding-left: 1.1rem;
	font-size: 0.82rem;
	color: #555;
}

.travel-hover-card .city-trips-more {
	display: none;
}

.travel-hover-card .city-trips-more.visible {
	display: block;
}

.travel-hover-card .city-trips-expand {
	margin-top: 0.35rem;
	padding: 0;
	border: none;
	background: none;
	font-family: 'Roboto Mono', sans-serif;
	font-size: 0.75rem;
	color: var(--accent, #303F9F);
	cursor: pointer;
	text-decoration: underline;
}

.travel-hover-card .city-trips-expand:hover {
	color: #1a237e;
}

.travel-cards-sidebar {
	min-width: 0;
	height: clamp(300px, calc(100vh - 340px), 520px);
	display: flex;
	flex-direction: column;
	padding: 0;
}

.travel-stats {
	margin: 1rem 0 0.5rem;
	font-family: 'Roboto Mono', sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	color: #333;
	letter-spacing: 0.02em;
}

.travel-cards-panel {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 0.35rem;
}

.trip-card {
	background: #fff;
	border-left: 4px solid var(--accent, #303F9F);
	padding: 1.1rem 1.15rem;
	margin-bottom: 1rem;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.trip-card:hover,
.trip-card.active {
	transform: translateX(4px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
	border-left-color: #FFC72C;
}

.trip-card h4 {
	font-family: 'Roboto Mono', sans-serif;
	font-size: 1.05rem;
	margin: 0 0 0.45rem;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
}

.trip-card .meta {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 0.5rem;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.trip-card .meta i {
	margin-right: 0.3rem;
	color: var(--accent, #303F9F);
}

.trip-card p {
	font-size: 0.88rem;
	margin: 0;
	color: #555;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
}

.trip-card .trip-counts {
	margin-top: 0.35rem;
	font-family: 'Roboto Mono', sans-serif;
	font-size: 0.85rem;
	color: var(--accent, #303F9F);
	letter-spacing: 0.02em;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
}

.trip-card .cities {
	margin-top: 0.5rem;
	font-size: 0.92rem;
	color: #777;
	line-height: 1.45;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
}

.travel-notice {
	background: #fff8e1;
	border-left: 4px solid #FFC72C;
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.88rem;
	color: #665500;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.travel-city-marker {
	background: transparent;
	border: none;
}

.travel-city-marker .dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #FFC72C;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #c9a000, 0 2px 6px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.travel-city-marker .heat-spot {
	position: relative;
	width: var(--heat-glow);
	height: var(--heat-glow);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}

.travel-city-marker .heat-glow {
	position: absolute;
	width: var(--heat-glow);
	height: var(--heat-glow);
	border-radius: 50%;
	background: var(--heat-color);
	opacity: calc(var(--heat-opacity) * 0.4);
	filter: blur(3px);
}

.travel-city-marker .heat-core {
	position: relative;
	z-index: 1;
	width: var(--heat-core);
	height: var(--heat-core);
	border-radius: 50%;
	background: var(--heat-color);
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.travel-city-marker.home .dot {
	width: 16px;
	height: 16px;
	background: #303F9F;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #303F9F, 0 2px 8px rgba(0, 0, 0, 0.3);
}

.travel-city-marker:hover .dot,
.travel-city-marker.highlight .dot,
.travel-city-marker:hover .heat-spot,
.travel-city-marker.highlight .heat-spot {
	transform: scale(1.2);
}

.travel-city-marker.dimmed .dot,
.travel-city-marker.dimmed .heat-spot {
	opacity: 0.25;
	transform: scale(0.85);
}

@media (max-width: 991px) {
	.travel-section .section-block {
		padding-right: 110px;
	}

	.travel-layout {
		grid-template-columns: 1fr;
	}

	.travel-map-wrap {
		height: 50vh;
		min-height: 300px;
	}

	.travel-cards-sidebar {
		height: auto;
	}

	.travel-hover-card {
		width: calc(100% - 24px);
		left: 12px;
		right: 12px;
	}
}