/* ============================================
   Itinerary view (view/plans) — Japan Royal Service
   Quiet-luxury design language: ivory paper,
   charcoal ink, champagne-gold accents, serif display.
   Loaded on top of Bootstrap 3.
   ============================================ */

:root {
	--jrs-ink:      #17140f;
	--jrs-paper:    #f7f5f0;
	--jrs-card:     #fffefb;
	--jrs-text:     #2b2620;
	--jrs-muted:    #877e70;
	--jrs-hairline: #e5ded0;
	--jrs-gold:     #a8834b;
	--jrs-gold-dk:  #8c6a35;
	--jrs-gold-bg:  #f4ede0;
	--jrs-serif:    Georgia, "Times New Roman", "Yu Mincho", serif;
	--jrs-sans:     -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
	                Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

html {
	background: #f7f5f0;
	background: var(--jrs-paper);
}
body.pv {
	background: transparent;
	color: var(--jrs-text);
	font-family: var(--jrs-sans);
	-webkit-font-smoothing: antialiased;
	font-size: 15px;
	line-height: 1.75;
}

/* ---------- Header ---------- */
.pv-navbar {
	background: var(--jrs-ink);
	padding: 18px 0;
	margin-bottom: 0;
	text-align: center;
}
.pv-navbar .pv-brand {
	font-family: var(--jrs-serif);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: .38em;
	text-indent: .38em; /* 中央揃え時の letter-spacing 右余白を相殺 */
	text-transform: uppercase;
	color: #f3ead9;
	text-decoration: none;
}
.pv-navbar .pv-brand:hover,
.pv-navbar .pv-brand:focus {
	color: var(--jrs-gold);
	text-decoration: none;
}

/* ---------- Hero ---------- */
.pv-hero {
	text-align: center;
	padding: 52px 16px 40px;
}
.pv-hero .pv-eyebrow {
	display: block;
	font-size: 11px;
	letter-spacing: .32em;
	text-indent: .32em;
	text-transform: uppercase;
	color: var(--jrs-gold);
	margin-bottom: 14px;
}
.pv-hero h1 {
	margin: 0 0 18px;
	font-family: var(--jrs-serif);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.3;
	color: var(--jrs-ink);
}
.pv-hero .pv-rule {
	width: 56px;
	height: 1px;
	background: var(--jrs-gold);
	border: 0;
	margin: 0 auto 16px;
}
.pv-hero .pv-dates {
	font-size: 12.5px;
	letter-spacing: .18em;
	text-indent: .18em;
	text-transform: uppercase;
	color: var(--jrs-muted);
}

/* ---------- Day tabs ---------- */
.pv-tabs {
	border-bottom: 1px solid var(--jrs-hairline);
	margin-bottom: 44px;
	text-align: center;
}
.pv-tabs > li {
	float: none;
	display: inline-block;
	margin: 0 6px -1px;
}
.pv-tabs > li > a {
	border: 0 !important;
	border-bottom: 1px solid transparent !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--jrs-muted);
	padding: 10px 18px 16px;
	margin: 0;
	transition: color .15s ease;
	line-height: 1.4;
}
.pv-tabs .pv-tab-day {
	display: block;
	font-size: 11px;
	letter-spacing: .26em;
	text-indent: .26em;
	text-transform: uppercase;
}
.pv-tabs .pv-tab-date {
	display: block;
	font-family: var(--jrs-serif);
	font-size: 15px;
	margin-top: 3px;
}
.pv-tabs > li > a:hover { color: var(--jrs-gold-dk); }
.pv-tabs > li.active > a,
.pv-tabs > li.active > a:hover,
.pv-tabs > li.active > a:focus {
	color: var(--jrs-ink) !important;
	border-bottom: 2px solid var(--jrs-gold) !important;
}

/* ---------- Timeline ---------- */
.pv-timeline {
	position: relative;
	max-width: 860px;
	margin: 0 auto;
	padding-left: 118px;
	padding-bottom: 8px;
}
.pv-timeline::before {
	content: "";
	position: absolute;
	left: 96px;
	top: 10px;
	bottom: 0;
	width: 1px;
	background: var(--jrs-hairline);
}
.pv-item {
	position: relative;
	margin-bottom: 44px;
}
/* 菱形のゴールドマーカー */
.pv-item::before {
	content: "";
	position: absolute;
	left: -26px;
	top: 10px;
	width: 9px;
	height: 9px;
	background: var(--jrs-gold);
	transform: rotate(45deg);
	box-shadow: 0 0 0 4px var(--jrs-paper);
}
.pv-time {
	position: absolute;
	left: -118px;
	top: 3px;
	width: 78px;
	text-align: right;
	font-family: var(--jrs-serif);
	font-size: 17px;
	color: var(--jrs-ink);
	font-variant-numeric: tabular-nums;
}

/* ---------- Card ---------- */
.pv-card {
	background: var(--jrs-card);
	border: 1px solid var(--jrs-hairline);
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(23, 20, 15, .04), 0 12px 32px rgba(23, 20, 15, .05);
	overflow: hidden;
}
.pv-card-body { padding: 26px 30px 30px; }
.pv-title {
	margin: 0 0 6px;
	font-family: var(--jrs-serif);
	font-weight: 400;
	font-size: 25px;
	line-height: 1.4;
	color: var(--jrs-ink);
}
.pv-place {
	color: var(--jrs-muted);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 20px;
}
.pv-place .fa { color: var(--jrs-gold); margin-right: 6px; }

/* ---------- Gallery (fixed 16:9, Flickity) ---------- */
.pv-gallery {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 — 画像読込前から高さを確保しレイアウト崩れを防ぐ */
	background: #ece7dd;
	border-bottom: 1px solid var(--jrs-hairline);
}
.pv-gallery .flickity-viewport {
	position: absolute !important;
	top: 0; left: 0;
	width: 100%;
	height: 100% !important;
}
/* Flickity初期化前もセルを16:9の箱内に重ねて配置し、縦積みによるレイアウト崩れを防ぐ */
.pv-cell {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.pv-cell img,
img.pv-cell {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .45s ease;
}
.pv-cell img.flickity-lazyloaded,
img.pv-cell.flickity-lazyloaded { opacity: 1; }
.pv-gallery .flickity-prev-next-button {
	width: 40px;
	height: 40px;
	border-radius: 0;
	background: rgba(23, 20, 15, .55);
}
.pv-gallery .flickity-prev-next-button:hover { background: rgba(23, 20, 15, .8); }
.pv-gallery .flickity-prev-next-button .arrow { fill: #f3ead9; }
.pv-gallery .flickity-page-dots { bottom: 12px; }
.pv-gallery .flickity-page-dots .dot {
	background: #fff;
	opacity: .5;
	width: 7px;
	height: 7px;
	margin: 0 5px;
}
.pv-gallery .flickity-page-dots .dot.is-selected {
	background: var(--jrs-gold);
	opacity: 1;
}

/* ---------- Action buttons ---------- */
.pv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.pv-btn {
	flex: 1 1 200px;
	border-radius: 0;
	border: 1px solid var(--jrs-ink);
	background: transparent;
	color: var(--jrs-ink);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .22em;
	text-indent: .22em;
	text-transform: uppercase;
	padding: 11px 18px;
	transition: all .18s ease;
}
.pv-btn:hover, .pv-btn:focus {
	border-color: var(--jrs-gold-dk);
	color: var(--jrs-gold-dk);
	background: var(--jrs-gold-bg);
	text-decoration: none;
}
.pv-btn .fa { margin-right: 8px; }

/* ---------- Notes ---------- */
.pv-notes {
	margin-top: 22px;
	background: var(--jrs-gold-bg);
	border-left: 2px solid var(--jrs-gold);
	padding: 16px 20px;
	font-size: 14px;
}
.pv-notes b {
	display: block;
	font-size: 10.5px;
	letter-spacing: .26em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--jrs-gold-dk);
	margin-bottom: 4px;
}

/* ---------- Interval (transfer / in-between) ---------- */
.pv-interval {
	position: relative;
	margin-bottom: 44px;
	padding: 4px 20px 4px 24px;
	border-left: 1px solid var(--jrs-hairline);
	color: var(--jrs-muted);
	font-size: 13.5px;
	font-style: italic;
	font-family: var(--jrs-serif);
}
.pv-interval::before {
	content: "\f018"; /* fa-road */
	font-family: FontAwesome;
	font-style: normal;
	position: absolute;
	left: -31px;
	top: 6px;
	color: var(--jrs-gold);
	background: var(--jrs-paper);
	padding: 2px 0;
	font-size: 12px;
}

/* ---------- Empty day ---------- */
.pv-empty {
	max-width: 860px;
	margin: 0 auto;
	padding: 64px 16px 72px;
	text-align: center;
	font-family: var(--jrs-serif);
	font-style: italic;
	font-size: 15px;
	color: var(--jrs-muted);
}

/* ---------- Plans list page (view/) ---------- */
.pv-planlist {
	max-width: 860px;
	margin: 0 auto 24px;
	border-bottom: 1px solid var(--jrs-hairline);
}
.pv-plan-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	border-top: 1px solid var(--jrs-hairline);
	padding: 28px 8px;
	text-decoration: none;
	color: inherit;
	transition: background .15s ease;
}
.pv-plan-row:hover,
.pv-plan-row:focus {
	background: var(--jrs-gold-bg);
	text-decoration: none;
	color: inherit;
}
.pv-plan-info { min-width: 0; }
.pv-plan-name {
	margin: 0 0 6px;
	font-family: var(--jrs-serif);
	font-weight: 400;
	font-size: 23px;
	line-height: 1.4;
	color: var(--jrs-ink);
}
.pv-plan-row:hover .pv-plan-name { color: var(--jrs-gold-dk); }
.pv-plan-notes {
	margin: 0;
	font-size: 13.5px;
	color: var(--jrs-muted);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.pv-plan-side {
	flex-shrink: 0;
	text-align: right;
}
.pv-plan-dates {
	display: block;
	font-size: 11.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--jrs-muted);
	margin-bottom: 8px;
	white-space: nowrap;
}
.pv-plan-view {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--jrs-gold-dk);
}
.pv-plan-view .fa { margin-left: 4px; }

@media (max-width: 640px) {
	.pv-plan-row { display: block; padding: 22px 4px; }
	.pv-plan-side { text-align: left; margin-top: 12px; }
	.pv-plan-dates { white-space: normal; }
}

/* 画像が画面幅を超えないための安全策(公開ページ全体) */
.pv img { max-width: 100%; }
.pv-placepage,
.pv-placepage * { box-sizing: border-box; }

/* ---------- Place details page (view/places) ---------- */
.pv-placepage {
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 20px 64px;
}
.pv-placepage-embed { padding: 22px 20px 36px; }
.pv-place-photo {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding-top: 46%;
	background: #ece7dd;
	margin-bottom: 26px;
	overflow: hidden;
	border-radius: 3px;
}
.pv-place-photo img {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pv-place-head { margin-bottom: 22px; }
.pv-place-name {
	margin: 0 0 8px;
	font-family: var(--jrs-serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.35;
	color: var(--jrs-ink);
}
.pv-place-rating {
	font-size: 14px;
	color: var(--jrs-ink);
}
.pv-place-rating .fa { color: var(--jrs-gold); margin-right: 4px; }
.pv-place-rating-count { color: var(--jrs-muted); margin-left: 6px; font-size: 12.5px; }

.pv-dl { margin: 0 0 24px; }
.pv-dl-row {
	display: flex;
	border-top: 1px solid var(--jrs-hairline);
	padding: 12px 0;
}
.pv-dl-row:last-child { border-bottom: 1px solid var(--jrs-hairline); }
.pv-dl dt {
	flex: 0 0 120px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--jrs-muted);
	padding-top: 4px;
}
.pv-dl dd {
	flex: 1;
	margin: 0;
	font-size: 14px;
	word-break: break-word;
}
.pv-dl dd a { color: var(--jrs-gold-dk); text-decoration: none; }
.pv-dl dd a:hover { text-decoration: underline; }

.pv-place-actions { margin-bottom: 8px; }

.pv-reviews { margin-top: 40px; }
.pv-section-title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--jrs-ink);
	border-bottom: 1px solid var(--jrs-hairline);
	padding-bottom: 12px;
	margin: 0 0 20px;
}

/* レビューを「アバター + 吹き出し」形式で表示 */
.pv-review {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 4px 0 22px;
}
.pv-review-avatar {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--jrs-gold-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--jrs-hairline);
}
.pv-review-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pv-review-initial {
	font-family: var(--jrs-serif);
	font-size: 19px;
	color: var(--jrs-gold-dk);
	text-transform: uppercase;
	line-height: 1;
}
.pv-review-bubble {
	position: relative;
	flex: 1;
	min-width: 0;
	background: var(--jrs-card);
	border: 1px solid var(--jrs-hairline);
	border-radius: 3px 12px 12px 12px;
	padding: 14px 18px 12px;
	box-shadow: 0 1px 2px rgba(23, 20, 15, .04);
}
/* 吹き出しの三角(アバター側を指す) */
.pv-review-bubble::before {
	content: "";
	position: absolute;
	top: 15px;
	left: -8px;
	width: 14px;
	height: 14px;
	background: var(--jrs-card);
	border-left: 1px solid var(--jrs-hairline);
	border-bottom: 1px solid var(--jrs-hairline);
	transform: rotate(45deg);
}
.pv-review-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 6px;
}
.pv-review-author {
	font-family: var(--jrs-serif);
	font-size: 16px;
	color: var(--jrs-ink);
}
.pv-review-stars { font-size: 12px; color: var(--jrs-ink); white-space: nowrap; letter-spacing: 1px; }
.pv-review-stars .fa { color: var(--jrs-gold); }
.pv-review-stars .fa-star-o { color: var(--jrs-hairline); }
.pv-review-meta {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jrs-muted);
	margin: 10px 0 0;
}
.pv-review-text {
	margin: 0;
	font-size: 14px;
	color: var(--jrs-text);
}

@media (max-width: 480px) {
	.pv-dl-row { display: block; }
	.pv-dl dt { margin-bottom: 4px; }
	.pv-review { gap: 10px; }
	.pv-review-avatar { flex-basis: 38px; width: 38px; height: 38px; }
	.pv-review-bubble { padding: 12px 14px 10px; }
	.pv-review-head { flex-wrap: wrap; }
}

/* ---------- Modal ---------- */
.pv .modal-content {
	border-radius: 0;
	border: 1px solid var(--jrs-hairline);
	box-shadow: 0 24px 64px rgba(23, 20, 15, .25);
}
.pv .modal-header {
	background: var(--jrs-ink);
	color: #f3ead9;
	border-bottom: 0;
}
.pv .modal-header .close { color: #f3ead9; opacity: .7; }
.pv .modal-title {
	font-family: var(--jrs-serif);
	font-weight: 400;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-size: 15px;
}

/* ---------- Footer ---------- */
.pv-footer {
	background: var(--jrs-ink);
	margin-top: 72px;
	padding: 34px 16px;
	text-align: center;
}
.pv-footer .pv-footer-brand {
	font-family: var(--jrs-serif);
	font-size: 12px;
	letter-spacing: .34em;
	text-indent: .34em;
	text-transform: uppercase;
	color: #f3ead9;
}

/* コンテンツ幅は控えめに絞って余白を活かす */
.pv-container {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.pv-hero { padding: 36px 16px 28px; }
	.pv-hero h1 { font-size: 28px; }
	.pv-timeline { padding-left: 0; }
	.pv-timeline::before { display: none; }
	.pv-item::before { display: none; }
	.pv-time {
		position: static;
		width: auto;
		text-align: left;
		margin-bottom: 10px;
		font-size: 15px;
	}
	.pv-time::before {
		content: "\f017"; /* fa-clock-o */
		font-family: FontAwesome;
		color: var(--jrs-gold);
		margin-right: 8px;
	}
	.pv-interval { border-left: 0; padding-left: 4px; }
	.pv-interval::before { display: none; }
	.pv-card-body { padding: 18px 18px 22px; }
	.pv-tabs > li > a { padding: 8px 10px 12px; }
}
