/* HHM Custom: Content Engine Kickoff, 15 Sept 2026 — shared styling for
   area guides (page-area-guide.php) and the MM2H/Visa Resources pages.
   Plain editorial content on the theme's normal chrome, not a standalone
   template — this only styles the content area itself. */

.hhm-area-guide .container,
.hhm-mm2h-page .container {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

.hhm-area-guide__header h1,
.hhm-mm2h-page__header h1 {
	font-size: 2rem;
	margin-bottom: 8px;
}

.hhm-mm2h-page__header {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hhm-mm2h-page__header-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hhm-mm2h-page__header-icon svg {
	width: 24px;
	height: 24px;
	color: #B8860B;
}

@media (max-width: 480px) {
	.hhm-mm2h-page__header-icon {
		width: 36px;
		height: 36px;
	}

	.hhm-mm2h-page__header-icon svg {
		width: 20px;
		height: 20px;
	}
}

.hhm-area-guide__intro,
.hhm-mm2h-page__intro {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #374151;
	margin-bottom: 28px;
}

.hhm-area-guide__section,
.hhm-mm2h-page__section {
	margin-bottom: 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid #e5e7eb;
}

.hhm-area-guide__section:last-of-type,
.hhm-mm2h-page__section:last-of-type {
	border-bottom: none;
}

.hhm-area-guide__section h2,
.hhm-mm2h-page__section h2 {
	font-size: 1.3rem;
	margin-bottom: 10px;
	color: #1a1a1a;
}

.hhm-area-guide__section p,
.hhm-mm2h-page__section p {
	line-height: 1.6;
	color: #374151;
}

.hhm-area-guide__source,
.hhm-mm2h-page__source {
	font-size: 0.85rem;
	color: #6b7280;
	margin-top: 8px;
}

.hhm-area-guide__source a,
.hhm-mm2h-page__source a {
	color: #B8860B;
	text-decoration: underline;
}

.hhm-area-guide__disclaimer,
.hhm-mm2h-page__disclaimer {
	font-size: 0.8rem;
	color: #6b7280;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 14px 16px;
	margin-top: 32px;
	line-height: 1.5;
}

.hhm-area-guide__photo {
	margin: 20px 0 28px;
}

.hhm-area-guide__photo img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.hhm-area-guide__photo-credit {
	font-size: 0.75rem;
	color: #9ca3af;
	margin-top: 6px;
}

.hhm-area-guide__photo-credit a {
	color: #9ca3af;
	text-decoration: underline;
}

/* Reusable photo carousel — Content Engine Fixes batch, 15 Sept 2026.
   Native scroll-snap track: swipeable on touch with no extra JS needed
   for the gesture itself; hhm-area-carousel.js only adds auto-advance,
   arrows, and dot sync. Same markup/classes on every area guide. */
.hhm-carousel {
	position: relative;
	margin: 20px 0 12px;
}

.hhm-carousel__viewport {
	overflow: hidden;
	border-radius: 10px;
}

.hhm-carousel__track {
	display: flex;
	transition: transform 0.4s ease;
	will-change: transform;
}

.hhm-carousel__slide {
	flex: 0 0 100%;
	min-width: 100%;
	margin: 0;
}

.hhm-carousel__slide img {
	width: 100%;
	height: 380px;
	object-fit: cover;
	display: block;
}

.hhm-carousel__slide figcaption {
	font-size: 0.75rem;
	color: #9ca3af;
	margin-top: 6px;
}

.hhm-carousel__slide figcaption a {
	color: #9ca3af;
	text-decoration: underline;
}

.hhm-carousel__arrow {
	position: absolute;
	top: 190px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hhm-carousel__arrow--prev {
	left: 10px;
}

.hhm-carousel__arrow--next {
	right: 10px;
}

.hhm-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.hhm-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #d1d5db;
	cursor: pointer;
	padding: 0;
}

.hhm-carousel__dot.is-active {
	background: #B8860B;
}

@media (max-width: 480px) {
	.hhm-carousel__slide img {
		height: 240px;
	}

	.hhm-carousel__arrow {
		top: 120px;
	}
}

/* Walkable neighbourhood view (Mapillary embed) — Content Engine batch,
   17 Sept 2026. Fixed-ratio responsive container so the iframe never
   collapses or overflows regardless of viewport width; iframe itself is
   absolutely positioned to fill it (the standard responsive-iframe pattern,
   no aspect-ratio CSS property needed for older-browser safety). */
.hhm-area-guide__mapillary-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	border-radius: 10px;
	overflow: hidden;
	background: #111;
	margin: 4px 0 6px;
}

.hhm-area-guide__mapillary-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 480px) {
	.hhm-area-guide__mapillary-embed {
		padding-top: 75%; /* taller 4:3-ish ratio — easier to use on a narrow phone screen */
		border-radius: 8px;
	}
}

/* MM2H hub — simple 3-icon visual aid next to the linked pages */
.hhm-mm2h-hub__icons {
	display: flex;
	gap: 20px;
	margin: 24px 0 32px;
	flex-wrap: wrap;
}

.hhm-mm2h-hub__icon {
	flex: 1 1 160px;
	text-align: center;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px 12px;
}

.hhm-mm2h-hub__icon svg {
	width: 36px;
	height: 36px;
	color: #B8860B;
	margin-bottom: 10px;
}

.hhm-mm2h-hub__icon-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a1a;
}

.hhm-mm2h-page__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin: 12px 0;
}

.hhm-mm2h-page__table th,
.hhm-mm2h-page__table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
	line-height: 1.5;
}

.hhm-mm2h-page__table th {
	color: #6b7280;
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.hhm-mm2h-page__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
	.hhm-mm2h-page__table {
		min-width: 640px;
	}

	.hhm-mm2h-page__table th,
	.hhm-mm2h-page__table td {
		white-space: normal;
	}
}

@media (max-width: 480px) {
	.hhm-area-guide__header h1,
	.hhm-mm2h-page__header h1 {
		font-size: 1.6rem;
	}

	.hhm-mm2h-hub__icons {
		flex-direction: column;
	}
}
