/* Peter Tours – tag pages (sights / topics). */

.pt-tag {
	--tag-navy: var(--pt-primary, #002D40);
	--tag-deep: var(--pt-dark, #011C27);
	--tag-accent: var(--pt-accent, #F48712);
	--tag-teal: var(--pt-secondary, #026874);
	--tag-ink: #1d2b36;
	--tag-muted: #5b6b77;
	--tag-line: #e3ebef;
	--tag-soft: #f3f8fa;
	--tag-radius: 16px;
	color: var(--tag-ink);
}

.pt-tag-container {
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ Hero */

.pt-tag-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(78vh, 720px);
	padding: 150px 0 190px;
	overflow: hidden;
	background: var(--tag-navy);
	color: #fff;
	isolation: isolate;
}

.pt-slideshow__slides,
.pt-slideshow__slide { position: absolute; inset: 0; }
.pt-slideshow__slides { z-index: -2; overflow: hidden; }
.pt-slideshow__slide { opacity: 0; transition: opacity 1s ease; }
.pt-slideshow__slide.is-active { opacity: 1; }
.pt-slideshow__image {
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: cover;
	transform: scale(1.02);
}
.pt-slideshow__slide.is-animating .pt-slideshow__image {
	transform: scale(1.12);
	transition: transform var(--pt-kb, 7s) linear;
}

/* Readable text on any photo: dark at the bottom-left, photo visible at the top-right. */
.pt-tag-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(1, 28, 39, .82) 0%, rgba(1, 28, 39, .55) 45%, rgba(1, 28, 39, .12) 100%),
		linear-gradient(0deg, rgba(1, 28, 39, .75) 0%, rgba(1, 28, 39, 0) 55%),
		linear-gradient(180deg, rgba(1, 28, 39, .55) 0%, rgba(1, 28, 39, 0) 22%);
}

.pt-tag-hero__inner {
	position: relative;
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.pt-tag-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	font-size: 14px;
	color: rgba(255, 255, 255, .78);
}
.pt-tag-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.pt-tag-crumbs a:hover, .pt-tag-crumbs a:focus-visible { color: #fff; text-decoration: underline; }
.pt-tag-crumbs [aria-current] { color: #fff; font-weight: 600; }

.pt-tag-hero__title {
	max-width: 820px;
	margin: 0 0 16px;
	font-family: var(--pt-font-heading, "Roboto", sans-serif);
	font-size: clamp(32px, 4.6vw, 58px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.01em;
	color: #fff;
	text-transform: none;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

.pt-tag-hero__intro {
	max-width: 640px;
	margin: 0 0 22px;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .9);
}

.pt-tag-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}
.pt-tag-hero__facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	backdrop-filter: blur(6px);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}
.pt-tag-hero__facts svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pt-tag-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------------- Buttons */

.pt-tag .pt-tag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 26px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pt-tag .pt-tag-btn:hover { transform: translateY(-2px); }
.pt-tag .pt-tag-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pt-tag .pt-tag-btn--primary { background: var(--tag-accent); color: #fff; box-shadow: 0 10px 24px rgba(244, 135, 18, .35); }
.pt-tag .pt-tag-btn--primary:hover { background: #e07506; color: #fff; }
.pt-tag .pt-tag-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.pt-tag .pt-tag-btn--ghost:hover { background: #fff; color: var(--tag-navy); }
.pt-tag .pt-tag-btn--whatsapp { width: 100%; background: #25d366; color: #fff; }
.pt-tag .pt-tag-btn--whatsapp:hover { background: #1ebe5a; color: #fff; }
.pt-tag .pt-tag-btn--outline { width: 100%; margin-top: 10px; border-color: var(--tag-navy); color: var(--tag-navy); background: transparent; }
.pt-tag .pt-tag-btn--outline:hover { background: var(--tag-navy); color: #fff; }

/* ------------------------------------------------------- Slider controls */

.pt-tag .pt-slideshow__nav {
	position: absolute;
	top: 46%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: rgba(1, 28, 39, .35);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background .2s ease, transform .2s ease;
}
.pt-tag .pt-slideshow__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pt-tag .pt-slideshow__nav:hover, .pt-tag .pt-slideshow__nav:focus-visible { background: var(--tag-accent); border-color: var(--tag-accent); color: #fff; }
.pt-tag .pt-slideshow__nav--prev { left: 24px; }
.pt-tag .pt-slideshow__nav--next { right: 24px; }

/* Thumbnails = slide picker. */
.pt-tag-thumbs {
	position: absolute;
	right: max(24px, calc((100vw - 1220px) / 2 + 24px));
	bottom: 120px;
	z-index: 3;
	display: flex;
	gap: 10px;
	max-width: calc(100% - 48px);
	overflow-x: auto;
	scrollbar-width: none;
}
.pt-tag-thumbs::-webkit-scrollbar { display: none; }
.pt-tag .pt-tag-thumbs__item {
	flex: 0 0 auto;
	width: 78px;
	height: 56px;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, .45);
	border-radius: 10px;
	background: rgba(255, 255, 255, .1);
	cursor: pointer;
	opacity: .7;
	transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.pt-tag .pt-tag-thumbs__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-tag .pt-tag-thumbs__item:hover { opacity: 1; transform: translateY(-2px); }
.pt-tag .pt-tag-thumbs__item.is-active { opacity: 1; border-color: var(--tag-accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.pt-tag .pt-tag-thumbs__item:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.pt-tag-hero__curve {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 1;
	width: 100%;
	height: 70px;
	fill: #fff;
}

/* ------------------------------------------------------------- Sections */

.pt-tag-section { padding: 56px 0; background: #fff; }
.pt-tag-tours { padding-top: 40px; }

.pt-tag-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.pt-tag-eyebrow {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #a85400; /* darker orange: 4.9:1 on white (brand orange is 2.5:1) */
}
.pt-tag-section__title {
	margin: 0;
	font-family: var(--pt-font-heading, "Roboto", sans-serif);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--tag-navy);
}
.pt-tag .woocommerce-ordering { margin: 0; float: none; }
.pt-tag .woocommerce-ordering select {
	height: 44px;
	padding: 0 38px 0 14px;
	border: 1px solid var(--tag-line);
	border-radius: 10px;
	background-color: #fff;
	color: var(--tag-ink);
}

/* Tour grid (same cards as the category pages). */
.pt-tag .woocommerce ul.products.pt-tag-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
}
.pt-tag .woocommerce ul.products.pt-tag-grid::before,
.pt-tag .woocommerce ul.products.pt-tag-grid::after { display: none; }
.pt-tag .woocommerce ul.products.pt-tag-grid > .ova-product {
	float: none;
	width: auto !important;
	margin: 0 !important;
	transition: transform .25s ease, box-shadow .25s ease;
}
.pt-tag .woocommerce ul.products.pt-tag-grid > .ova-product:hover { transform: translateY(-4px); }

/* -------------------------------------------------------------- Article */

.pt-tag-about { background: var(--tag-soft); }
.pt-tag-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
}
.pt-tag-article {
	padding: 40px 44px 32px;
	border-radius: var(--tag-radius);
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 45, 64, .06);
}
.pt-tag-article__body {
	position: relative;
	font-size: 17px;
	line-height: 1.75;
	color: var(--tag-ink);
}
.pt-tag-article__body.is-collapsed { max-height: 560px; overflow: hidden; }
.pt-tag-article__body.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 140px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}
.pt-tag-article__body h2,
.pt-tag-article__body h3,
.pt-tag-article__body h4 {
	margin: 1.6em 0 .5em;
	font-family: var(--pt-font-heading, "Roboto", sans-serif);
	font-weight: 700;
	line-height: 1.3;
	color: var(--tag-navy);
}
.pt-tag-article__body > :first-child,
.pt-tag-article__body > :first-child > :first-child { margin-top: 0; }
.pt-tag-article__body h2 { font-size: 26px; }
.pt-tag-article__body h3 { font-size: 21px; color: var(--tag-teal); }
.pt-tag-article__body h4 { font-size: 18px; }
.pt-tag-article__body p { margin: 0 0 1em; }
.pt-tag-article__body a { color: var(--tag-teal); text-decoration: underline; text-underline-offset: 3px; }
.pt-tag-article__body img { max-width: 100%; height: auto; border-radius: 12px; }
.pt-tag-article__body ul, .pt-tag-article__body ol { margin: 0 0 1em 1.2em; }
.pt-tag-article__body span[style] { font-weight: inherit !important; }

.pt-tag .pt-tag-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tag-accent);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.pt-tag .pt-tag-more::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform .2s ease;
}
.pt-tag .pt-tag-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.pt-tag .pt-tag-more:hover { color: #e07506; }
.pt-tag .pt-tag-more[hidden] { display: none; }

.pt-tag-aside { position: sticky; top: 110px; }
.pt-tag-card {
	padding: 30px 28px;
	border-radius: var(--tag-radius);
	background: var(--tag-navy);
	color: #fff;
	box-shadow: 0 18px 40px rgba(0, 45, 64, .18);
}
.pt-tag-card__title {
	margin: 0 0 18px;
	font-family: var(--pt-font-heading, "Roboto", sans-serif);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}
.pt-tag-card__list { margin: 0 0 24px; padding: 0; list-style: none; }
.pt-tag-card__list li {
	position: relative;
	margin: 0 0 14px;
	padding-left: 30px;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .88);
}
.pt-tag-card__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--tag-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
	.pt-tag .woocommerce ul.products.pt-tag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.pt-tag-about__grid { grid-template-columns: minmax(0, 1fr); }
	.pt-tag-aside { position: static; }
	.pt-tag-thumbs { left: 24px; right: 24px; justify-content: flex-start; }
}

@media (max-width: 767px) {
	.pt-tag-hero { min-height: 0; padding: 120px 0 150px; }
	.pt-tag-hero__inner, .pt-tag-container { padding: 0 16px; }
	.pt-tag-hero__intro { font-size: 16px; }
	.pt-tag-hero__facts li { padding: 6px 12px; font-size: 13px; }
	.pt-tag .pt-tag-btn { flex: 1 1 100%; min-height: 48px; }
	.pt-tag .pt-slideshow__nav { display: none; }
	.pt-tag-thumbs { left: 16px; right: 16px; bottom: 74px; max-width: none; gap: 8px; }
	.pt-tag .pt-tag-thumbs__item { width: 62px; height: 44px; border-radius: 8px; }
	.pt-tag-hero__curve { height: 40px; }
	.pt-tag-section { padding: 40px 0; }
	.pt-tag .woocommerce ul.products.pt-tag-grid { grid-template-columns: minmax(0, 1fr); }
	.pt-tag-article { padding: 26px 20px 22px; }
	.pt-tag-article__body { font-size: 16px; }
	.pt-tag-article__body h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.pt-slideshow__slide,
	.pt-slideshow__slide.is-animating .pt-slideshow__image { transition: none; transform: none; }
	.pt-tag .pt-tag-btn, .pt-tag .pt-tag-thumbs__item { transition: none; }
}

/* Fits under the header like the former tag template; theme heading colours
   must not win over the page's own. */
.pt-tag { margin-top: -49px; }
.pt-tag .pt-tag-hero h1.pt-tag-hero__title { color: #fff !important; }
.pt-tag h2.pt-tag-section__title { color: var(--tag-navy) !important; }
.pt-tag .pt-tag-card h3.pt-tag-card__title { color: #fff !important; }
.pt-tag .pt-tag-card .pt-tag-btn--outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.pt-tag .pt-tag-card .pt-tag-btn--outline:hover { background: #fff; color: var(--tag-navy); }
.pt-tag-thumbs { bottom: 100px; }
@media (max-width: 767px) { .pt-tag-thumbs { bottom: 64px; } }

/* Equal card heights in a row, price + button at the bottom. */
.pt-tag .woocommerce ul.products.pt-tag-grid > .ova-product { display: flex; flex-direction: column; height: 100%; }
.pt-tag .pt-tag-grid .ova_foot_product { display: flex; flex-direction: column; flex: 1 1 auto; }
.pt-tag .pt-tag-grid .ova-product-review-and-price { margin-top: auto; }
