/**
 * Front-end for the trip single/archive pages + homepage carousel
 * (includes/trip-templates.php). Same brand tokens as the rest of the
 * site (--gotur-black navy, --gotur-base teal, --gotur-primary coral),
 * read live via var() so a future brand-color change in the Customizer
 * still reaches this page with zero edits here.
 */

.agz-trip-page,
.agz-trips-archive,
.agz-trips-carousel-section {
	--agz-t-navy: var(--gotur-black, #001142);
	--agz-t-teal: var(--gotur-base, #24c0d8);
	--agz-t-coral: var(--gotur-primary, #f0486c);
	--agz-t-ink: #1a2233;
	--agz-t-muted: #626c82;
	--agz-t-border: #e7edf3;
	--agz-t-bg: #f7fbfc;
	font-family: 'Tajawal', sans-serif;
	color: var(--agz-t-ink);
}

/* ---------- Quick-facts + CTA bar ----------
   Sits right after the theme's own ".page-header" title banner (see the
   PHP function's own comment for why there's no separate custom hero
   here) - destination/dates/duration for context on the right, price
   and the WhatsApp CTA on the left, sticky so the action stays reachable
   while reading the rest of the page. */
.agz-trip-quickfacts {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #fff;
	border-bottom: 1px solid var(--agz-t-border);
	box-shadow: 0 6px 20px rgba(0, 17, 66, 0.06);
}
.agz-trip-quickfacts__inner {
	width: min(1140px, 92%);
	margin: 0 auto;
	padding: 16px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.agz-trip-quickfacts__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.agz-trip-quickfacts__fact {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--agz-t-navy);
	background: var(--agz-t-bg);
	padding: 8px 14px;
	border-radius: 10px;
}
.agz-trip-quickfacts__fact--dest {
	background: var(--agz-t-navy);
	color: #fff;
}
.agz-trip-quickfacts__seats {
	background: #fff3e0;
	color: #b8590b;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 10px;
}
.agz-trip-quickfacts__action {
	display: flex;
	align-items: center;
	gap: 18px;
}
.agz-trip-quickfacts__price-label {
	display: block;
	font-size: 11.5px;
	color: var(--agz-t-muted);
	font-weight: 700;
}
.agz-trip-quickfacts__price-value {
	font-size: 19px;
	font-weight: 800;
	color: var(--agz-t-navy);
	white-space: nowrap;
}
.agz-trip-quickfacts__price-value small {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--agz-t-muted);
}
.agz-trip-quickfacts__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25D366;
	color: #fff;
	font-weight: 700;
	font-size: 14.5px;
	padding: 12px 22px;
	border-radius: 12px;
	text-decoration: none;
	white-space: nowrap;
	transition: filter 0.2s ease, transform 0.15s ease;
}
.agz-trip-quickfacts__cta:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	color: #fff;
}

/* ---------- Body / sections ---------- */
.agz-trip-body {
	width: min(1140px, 92%);
	margin: 0 auto;
	padding-block: 10px 60px;
}
.agz-trip-section {
	margin-top: 46px;
}
.agz-trip-section__title {
	font-size: 24px;
	font-weight: 800;
	color: var(--agz-t-navy);
	margin: 0 0 22px;
	position: relative;
	padding-inline-start: 16px;
	border-inline-start: 4px solid var(--agz-t-teal);
}

/* ---------- Notes / disclaimer ---------- */
.agz-trip-notes {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fff7e6;
	border: 1px solid #f4dfa6;
	color: #7a5b12;
	padding: 16px 18px;
	border-radius: 14px;
	margin-top: 30px;
}
.agz-trip-notes svg { flex-shrink: 0; margin-top: 2px; color: #b8860b; }
.agz-trip-notes p { margin: 0; font-size: 14px; line-height: 1.8; }

/* ---------- Inclusions ---------- */
.agz-trip-inclusions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 24px;
}
.agz-trip-inclusions li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.7;
}
.agz-trip-inclusions svg {
	flex-shrink: 0;
	margin-top: 3px;
	color: #fff;
	background: var(--agz-t-teal);
	border-radius: 50%;
	padding: 3px;
	width: 20px;
	height: 20px;
	box-sizing: border-box;
}

/* ---------- Accommodation cards ---------- */
.agz-trip-acc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}
.agz-trip-acc-card {
	background: #fff;
	border: 1px solid var(--agz-t-border);
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 10px 30px rgba(0, 17, 66, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.agz-trip-acc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(0, 17, 66, 0.1);
}
.agz-trip-acc-card__hotel {
	font-size: 17px;
	font-weight: 800;
	color: var(--agz-t-navy);
	margin: 0 0 8px;
}
.agz-trip-acc-card__area {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--agz-t-muted);
	font-size: 13px;
	margin-bottom: 14px;
}
.agz-trip-acc-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.agz-trip-acc-card__specs span {
	background: var(--agz-t-bg);
	color: var(--agz-t-navy);
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
}
.agz-trip-acc-card__price {
	font-size: 20px;
	font-weight: 800;
	color: var(--agz-t-coral);
	padding-top: 14px;
	border-top: 1px dashed var(--agz-t-border);
}
.agz-trip-acc-card__price small {
	font-size: 12px;
	font-weight: 600;
	color: var(--agz-t-muted);
}

/* ---------- Flights ---------- */
.agz-trip-flights {
	display: grid;
	gap: 14px;
}
.agz-trip-flight-card {
	display: flex;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--agz-t-border);
	border-radius: 16px;
	padding: 18px 20px;
	align-items: flex-start;
}
.agz-trip-flight-card__icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--agz-t-bg);
	color: var(--agz-t-teal);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scaleX(-1); /* plane glyph points the natural reading direction in RTL */
}
.agz-trip-flight-card__route {
	font-weight: 800;
	font-size: 16px;
	color: var(--agz-t-navy);
	margin-bottom: 6px;
}
.agz-trip-flight-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13.5px;
	color: var(--agz-t-muted);
	font-variant-numeric: tabular-nums;
}
.agz-trip-flight-card__meta span:not(:last-child)::after {
	content: '·';
	margin-inline-start: 10px;
	color: var(--agz-t-border);
}
.agz-trip-flight-card__baggage {
	margin-top: 8px;
	font-size: 13px;
	color: var(--agz-t-muted);
}
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Visa accordion ---------- */
.agz-trip-visa__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--agz-t-navy);
	color: #fff;
	border: none;
	border-radius: 16px;
	padding: 18px 22px;
	cursor: pointer;
	font-family: inherit;
}
.agz-trip-visa__toggle-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 800;
}
.agz-trip-visa__chevron { transition: transform 0.25s ease; }
.agz-trip-visa__toggle[aria-expanded="false"] .agz-trip-visa__chevron { transform: rotate(-90deg); }
.agz-trip-visa__body {
	overflow: hidden;
	max-height: 4000px;
	transition: max-height 0.35s ease;
}
.agz-trip-visa__toggle[aria-expanded="false"] + .agz-trip-visa__body {
	max-height: 0;
}
.agz-trip-visa__content {
	background: #fff;
	border: 1px solid var(--agz-t-border);
	border-top: none;
	border-radius: 0 0 16px 16px;
	padding: 24px;
	font-size: 14.5px;
	line-height: 1.9;
}
.agz-trip-visa__content ul { padding-inline-start: 20px; margin: 10px 0; }
.agz-trip-visa__content li { margin-bottom: 8px; }
.agz-trip-visa__content p:first-child { margin-top: 0; }

/* ---------- Final CTA ---------- */
.agz-trip-final-cta {
	margin-top: 56px;
	text-align: center;
	background: linear-gradient(135deg, var(--agz-t-navy), #0d2a6b);
	border-radius: 24px;
	padding: 48px 24px;
	color: #fff;
}
.agz-trip-final-cta h2 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.agz-trip-final-cta p { margin: 0 0 24px; color: rgba(255,255,255,0.75); }
.agz-trip-final-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #25D366;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 32px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 0.15s ease;
}
.agz-trip-final-cta__btn:hover { transform: translateY(-2px); color: #fff; }

/* ---------- Archive page ---------- */
.agz-trips-archive__header {
	width: min(1140px, 92%);
	margin: 0 auto;
	text-align: center;
	padding: 60px 0 30px;
}
.agz-trips-archive__eyebrow {
	display: inline-block;
	color: var(--agz-t-coral);
	background: #fde7ec;
	font-weight: 700;
	font-size: 13px;
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.agz-trips-archive__header h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--agz-t-navy); margin: 0 0 12px; }
.agz-trips-archive__header p { color: var(--agz-t-muted); max-width: 60ch; margin: 0 auto; }

.agz-trips-archive__filters {
	width: min(1140px, 92%);
	margin: 0 auto 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}
.agz-trips-archive__filter {
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid var(--agz-t-border);
	color: var(--agz-t-navy);
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none;
	background: #fff;
	transition: all 0.2s ease;
}
.agz-trips-archive__filter:hover { border-color: var(--agz-t-teal); color: var(--agz-t-teal); }
.agz-trips-archive__filter.is-active { background: var(--agz-t-navy); border-color: var(--agz-t-navy); color: #fff; }
.agz-trips-archive__filters--secondary { margin-top: -18px; }
.agz-trips-archive__filters--secondary .agz-trips-archive__filter {
	padding: 6px 16px;
	font-size: 12.5px;
	color: var(--agz-t-muted);
}
.agz-trips-archive__filters--secondary .agz-trips-archive__filter.is-active { background: var(--agz-t-teal); border-color: var(--agz-t-teal); }

.agz-trips-archive__grid {
	width: min(1140px, 92%);
	margin: 0 auto;
	padding-bottom: 70px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 26px;
}
.agz-trips-archive__empty {
	width: min(600px, 92%);
	margin: 0 auto 80px;
	text-align: center;
	background: var(--agz-t-bg);
	border: 1px dashed var(--agz-t-border);
	border-radius: 18px;
	padding: 40px 24px;
	color: var(--agz-t-muted);
}
.agz-trips-archive__whatsapp {
	display: inline-block;
	margin-top: 16px;
	background: #25D366;
	color: #fff;
	font-weight: 700;
	padding: 11px 26px;
	border-radius: 999px;
	text-decoration: none;
}

/* ---------- Trip card (archive grid + homepage carousel) ---------- */
.agz-trip-card {
	background: #fff;
	border: 1px solid var(--agz-t-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 17, 66, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.agz-trip-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 17, 66, 0.12); }
.agz-trip-card__image {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--agz-t-bg);
}
.agz-trip-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agz-trip-card__badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(0, 17, 66, 0.75);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
}
.agz-trip-card__seats {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #fff3e0;
	color: #b8590b;
	font-size: 11.5px;
	font-weight: 800;
	padding: 5px 12px;
	border-radius: 999px;
}
.agz-trip-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.agz-trip-card__title { font-size: 17px; font-weight: 800; margin: 0 0 10px; line-height: 1.4; }
.agz-trip-card__title a { color: var(--agz-t-navy); text-decoration: none; }
.agz-trip-card__meta {
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: var(--agz-t-muted);
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.agz-trip-card__footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px dashed var(--agz-t-border);
}
.agz-trip-card__price { font-weight: 800; color: var(--agz-t-coral); font-size: 15px; }
.agz-trip-card__price small { font-weight: 600; color: var(--agz-t-muted); font-size: 11.5px; }
.agz-trip-card__price--inquire { color: var(--agz-t-muted); font-size: 13px; font-weight: 700; }
.agz-trip-card__link { color: var(--agz-t-teal); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; }

/* ---------- Homepage carousel ---------- */
.agz-trips-carousel-section { padding-block: 60px; width: min(1200px, 94%); margin: 0 auto; }
.agz-trips-carousel-section__intro { text-align: center; margin-bottom: 34px; }
.agz-trips-carousel { position: relative; padding: 4px 4px 10px; }
.agz-trips-carousel .swiper-slide { height: auto; }
.agz-trips-carousel__nav {
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 8px 20px rgba(0, 17, 66, 0.14);
	color: var(--agz-t-navy);
}
.agz-trips-carousel__nav::after { font-size: 14px; }

@media (max-width: 780px) {
	.agz-trip-quickfacts__inner { justify-content: center; text-align: center; }
	.agz-trip-quickfacts__action { width: 100%; justify-content: space-between; }
	.agz-trip-inclusions { grid-template-columns: 1fr; }
	.agz-trip-flight-card { flex-direction: column; }
}
