/**
 * Tour Archive CSS — 移植元 ../TourGatorProject/tours/tours.html の inline <style> を集約。
 */

/* グローバルトークン（style.css）への別名。
 * brand-dark は旧 #bc002d を共通 brand-dark(#b00000) に統一（info-bar 背景。差はほぼ視認不可）。 */
:root {
	--tg-archive-brand: var(--tg-color-brand);
	--tg-archive-brand-dark: var(--tg-color-brand-dark);
	--tg-archive-ink: var(--tg-color-ink);
	--tg-archive-muted: var(--tg-color-muted);
}

.page-composite-container {
	font-family: var(--wp--preset--font-family--montserrat, 'Montserrat', sans-serif);
}

/* ==== Hero ==== */
.custom-hero-container-v7 {
	margin: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	position: relative;
}

.hero-section-v7 {
	width: 100%;
	height: 500px;
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 40px 10%;
	box-sizing: border-box;
	position: relative;
}

.hero-section-v7::before {
	content: "";
	position: absolute;
	inset: 0;
	/* 見出しは下寄せ。下を暗く・上は写真をそのまま見せる縦グラデーションで、
	 * 明るい背景でも白文字が読めるようにする（旧: 一様 rgba(0,0,0,0.2) で薄すぎ）。 */
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.25) 45%,
		rgba(0, 0, 0, 0) 80%
	);
	z-index: 1;
}

.hero-title-text-v7 {
	position: relative;
	z-index: 2;
	margin-bottom: 20px;
	/* 親が flex(align-items:flex-start) のため、指定しないと見出しブロックが内容幅に
	 * 縮こまり、長い見出しが折り返さずヒーロー枠から溢れる。全幅にして枠内で折り返させる。 */
	width: 100%;
}

.single-title-tour {
	/* 旧: 5rem 固定 → コンテナ幅を超えて折り返していた。clamp でデスクトップは 1 行に収め、
	 * 狭い画面では vw 連動で縮小（最小 1.3rem）し枠内に余裕を持って折り返す。
	 * font-weight/影も読みやすさ優先に強化。 */
	font-size: clamp(1.3rem, 5.2vw, 3.75rem);
	font-weight: 600;
	color: var(--tg-color-white);
	line-height: 1.1;
	margin: 0;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
	letter-spacing: 1px;
}

@media (max-width: 768px) {
	.hero-section-v7 {
		height: 300px;
		padding: 20px;
	}
	/* .single-title-tour の font-size 上書きは clamp() に一本化したため削除 */
}

/* ==== Card grid ==== */
.custom-grid-container-v5-red {
	margin: 30px auto;
	max-width: 1200px;
	box-sizing: border-box;
	padding: 0 15px;
}

.card-grid-v5 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.grid-item-v5 {
	background-color: var(--tg-color-white);
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	position: relative;
	transition: box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.grid-item-v5:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.card-link-v5 {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	width: 100%;
	height: 100%;
}

.image-wrapper-v5 {
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
	flex-shrink: 0;
}

.grid-item-v5 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.card-content-v5 {
	padding: 15px 15px 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.header-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.location-name-v5 {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--tg-archive-ink);
	margin: 0;
}

.price-v5 {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--tg-archive-brand);
	white-space: nowrap;
	margin-bottom: 8px;
	display: inline-block;
}

.description-v5 {
	font-size: 0.9rem;
	color: var(--tg-archive-muted);
	line-height: 1.5;
	margin: 0 0 15px;
	font-weight: 400;
}

.info-bar-v5 {
	background-color: var(--tg-archive-brand-dark);
	padding: 10px 15px;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--tg-color-white);
	margin-top: auto;
}

.info-bar-v5 > div {
	display: flex;
	align-items: center;
	margin-right: 15px;
	color: var(--tg-color-white);
}

.info-icon {
	margin-right: 5px;
}

.pagination-v5 {
	text-align: center;
	margin-top: 30px;
}

.pagination-v5 a,
.pagination-v5 span {
	display: inline-block;
	padding: 5px 10px;
	text-decoration: none;
	color: var(--tg-archive-ink);
	font-weight: 700;
	border-radius: 3px;
	margin: 0 3px;
}

.pagination-v5 .current {
	color: var(--tg-archive-brand);
	border-bottom: 2px solid var(--tg-archive-brand);
}

.tg-tour-list__empty {
	text-align: center;
	color: var(--tg-archive-muted);
	padding: 40px 16px;
}

@media (max-width: 992px) {
	.card-grid-v5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.card-grid-v5 { grid-template-columns: 1fr; }
}
