/* Simple Tour Manager — default styles
   Palette: deep expedition-navy (#1B2A32), warm brass (#C08A34), parchment (#F4EDE1), ink (#22201C)
   Display face: Fraunces-style contrast serif fallback / body: system sans
   Signature: itinerary rendered as a connected route line (map-trail motif) — justified because
   the itinerary IS a real ordered sequence of stops. */

.stm-tour, .stm-archive {
	--stm-navy: #1B2A32;
	--stm-brass: #C08A34;
	--stm-parchment: #F4EDE1;
	--stm-ink: #22201C;
	--stm-muted: #6B6455;
	--stm-line: #E4DBC9;
	color: var(--stm-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
}

.stm-tour h1, .stm-tour h2, .stm-tour h3,
.stm-archive h1, .stm-archive h2 {
	font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
	font-weight: 700;
	color: var(--stm-navy);
	letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.stm-hero {
	position: relative;
	min-height: 420px;
	background-color: var(--stm-navy);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
}
.stm-hero-overlay {
	width: 100%;
	padding: 48px 6vw 40px;
	background: linear-gradient(180deg, rgba(27,42,50,0) 0%, rgba(27,42,50,0.85) 75%);
}
.stm-hero-title {
	color: #ffffff;
	font-size: clamp(28px, 4vw, 48px);
	margin: 0 0 8px;
	-webkit-text-stroke: 1.5px #000;
	text-shadow:
		-2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000,
		-2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000,
		0 4px 16px rgba(0,0,0,0.6);
}
.stm-hero-location {
	color: #ffffff;
	font-weight: 600;
	margin: 0;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 8px rgba(0,0,0,0.6);
}

/* Hero gallery preview: thumbnails + "View all photos", bottom-right of the hero. */
.stm-hero-gallery-preview {
	position: absolute;
	right: 20px;
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 2;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.stm-hero-thumbs { display: flex; gap: 6px; }
.stm-hero-thumb {
	width: 56px;
	height: 56px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	box-shadow: 0 2px 8px rgba(0,0,0,0.35);
	transition: transform 0.15s ease;
}
.stm-hero-thumb:hover { transform: translateY(-2px); }
.stm-hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stm-view-all-photos {
	background: rgba(0,0,0,0.55);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.7);
	border-radius: 4px;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
}
.stm-view-all-photos:hover { background: rgba(0,0,0,0.8); }
@media (max-width: 640px) {
	.stm-hero-gallery-preview { right: 12px; bottom: 12px; }
	.stm-hero-thumb { width: 44px; height: 44px; }
}

/* Lightbox popup gallery */
.stm-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.92);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}
.stm-lightbox.is-open { display: flex; }
.stm-lightbox-img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.stm-lightbox-close,
.stm-lightbox-prev,
.stm-lightbox-next {
	position: absolute;
	background: rgba(255,255,255,0.12);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.stm-lightbox-close:hover,
.stm-lightbox-prev:hover,
.stm-lightbox-next:hover { background: rgba(255,255,255,0.28); }
.stm-lightbox-close { top: 20px; right: 20px; }
.stm-lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.stm-lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.stm-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 13px;
	background: rgba(255,255,255,0.15);
	padding: 5px 12px;
	border-radius: 12px;
}

/* ---------- Layout ---------- */
.stm-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 48px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 48px 6vw;
}
@media (max-width: 860px) {
	.stm-layout { grid-template-columns: 1fr; padding: 32px 5vw; }
}

.stm-quickfacts {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--stm-line);
}
.stm-fact { display: flex; flex-direction: column; }
.stm-fact-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--stm-muted);
}
.stm-fact-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--stm-navy);
}
.stm-fact-rating { display: flex; align-items: center; gap: 8px; }
.stm-stars {
	position: relative;
	display: inline-block;
	font-size: 18px;
	line-height: 1;
	white-space: nowrap;
}
.stm-stars-bg { color: var(--stm-line); letter-spacing: 2px; }
.stm-stars-fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--stm-brass);
	white-space: nowrap;
	letter-spacing: 2px;
}
.stm-rating-text { font-size: 13px; color: var(--stm-muted); font-weight: 400; }

.stm-section { margin-top: 40px; }
.stm-section h2 { font-size: 22px; margin-bottom: 16px; }

.stm-highlights { padding-left: 20px; }
.stm-highlights li { margin-bottom: 8px; }

/* Itinerary as a connected route/trail — each stop is a waypoint on a line. */
.stm-itinerary {
	list-style: none;
	margin: 0;
	padding: 0 0 0 28px;
	position: relative;
}
.stm-itinerary::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: repeating-linear-gradient(180deg, var(--stm-brass) 0 6px, transparent 6px 12px);
}
.stm-itinerary li {
	position: relative;
	padding: 0 0 22px 16px;
}
.stm-itinerary li::before {
	content: "";
	position: absolute;
	left: -28px;
	top: 5px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--stm-parchment);
	border: 2px solid var(--stm-brass);
}

.stm-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}
.stm-gallery-img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }

/* ---------- Enquiry sidebar ---------- */
.stm-enquiry-box {
	background: var(--stm-parchment);
	border: 1px solid var(--stm-line);
	border-radius: 6px;
	padding: 28px 24px;
	position: sticky;
	top: 24px;
}
.stm-price { font-size: 28px; font-weight: 700; color: var(--stm-navy); margin-bottom: 4px; }
.stm-price span { font-size: 13px; font-weight: 400; color: var(--stm-muted); }
.stm-price-from { font-size: 14px; font-weight: 600; color: var(--stm-brass); margin-right: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.stm-private-note {
	font-size: 13px;
	background: #fff;
	border: 1px solid var(--stm-line);
	border-left: 3px solid var(--stm-brass);
	padding: 8px 10px;
	border-radius: 3px;
	color: var(--stm-navy);
	margin: 0 0 16px;
}
.stm-enquiry-box h3 { font-size: 18px; margin: 12px 0 6px; }
.stm-enquiry-sub { font-size: 14px; color: var(--stm-muted); margin-bottom: 18px; }

.stm-enquiry-form-el { display: flex; flex-direction: column; gap: 12px; }
.stm-enquiry-form-el label {
	font-size: 13px;
	font-weight: 600;
	color: var(--stm-navy);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.stm-enquiry-form-el input,
.stm-enquiry-form-el textarea {
	font-size: 14px;
	padding: 9px 10px;
	border: 1px solid var(--stm-line);
	border-radius: 4px;
	font-family: inherit;
	background: #fff;
}
.stm-enquiry-submit {
	margin-top: 6px;
	background: var(--stm-navy);
	color: #fff;
	border: none;
	padding: 12px 16px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.stm-enquiry-submit:hover { background: var(--stm-brass); }

.stm-notice { padding: 10px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }
.stm-notice-success { background: #e4f3e6; color: #276b32; }
.stm-notice-error { background: #fbe6e4; color: #a43326; }

/* ---------- Archive / grid ---------- */
.stm-archive { max-width: 1140px; margin: 0 auto; padding: 48px 6vw; }
.stm-archive-title { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 4px; }
.stm-archive-brand { color: var(--stm-brass); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; margin: 0 0 32px; }
.stm-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}
.stm-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--stm-line);
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.stm-card:hover { box-shadow: 0 8px 24px rgba(27,42,50,0.12); transform: translateY(-2px); }
.stm-card-image { aspect-ratio: 4/3; background: var(--stm-line); overflow: hidden; }
.stm-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stm-card-body { padding: 16px; }
.stm-card-title { font-size: 17px; margin: 0 0 6px; }
.stm-card-location { font-size: 13px; color: var(--stm-muted); margin: 0 0 10px; }
.stm-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.stm-card-price { font-weight: 700; color: var(--stm-brass); }
