/*!
 * Iconic Travel — UI Polish layer
 * Loaded AFTER all other stylesheets via the `iconic-ui-polish` handle.
 * Surgical visual upgrades only. Palette: Premium navy + gold.
 */

/* =========================================================================
   0. Container refinement for very wide screens
   ========================================================================= */
@media (min-width: 1400px) {
	.container {
		max-width: 1280px;
	}
}

/* =========================================================================
   1. Section rhythm utilities (dashboard-style, denser)
   ========================================================================= */
.section--lg {
	padding-block: 88px;
}
.section--xl {
	padding-block: 112px;
}

/* =========================================================================
   2. Decorative blobs — heavily restrained (dashboard style)
   ========================================================================= */
.deco-blob {
	position: absolute;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.12;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(circle at center, var(--deco-color, var(--primary)) 0%, transparent 70%);
	will-change: transform, opacity;
}
.deco-blob--primary {
	--deco-color: var(--primary);
}
.deco-blob--accent {
	/* Gold blob too garish — hide */
	display: none;
}
.deco-blob--primary-dark {
	--deco-color: var(--primary-dark);
}
.deco-blob--top-left {
	top: -120px;
	left: -120px;
}
.deco-blob--top-right {
	top: -120px;
	right: -120px;
}
.deco-blob--bottom-left {
	bottom: -120px;
	left: -120px;
}
.deco-blob--bottom-right {
	bottom: -120px;
	right: -120px;
}
.deco-blob--sm {
	width: 240px;
	height: 240px;
	filter: blur(60px);
}

/* =========================================================================
   3. Hero refinements — premium navy with subtle gold orb
   ========================================================================= */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 600px 400px at 90% 10%, rgba(212, 162, 76, 0.10) 0%, transparent 60%),
		linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.04;
	pointer-events: none;
	z-index: 1;
}
.hero .hero__inner,
.hero > .container {
	position: relative;
	z-index: 3;
}
.hero-decorations {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	overflow: hidden;
}
.hero-deco {
	display: none; /* Less decoration — dashboard style */
}
.hero-pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: 0.05;
}

.hero h1,
.hero .hero__headline {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.025em;
}
.hero h1 em,
.hero .hero__headline em {
	font-style: italic;
	color: var(--accent);
	font-weight: 600;
}

.hero .hero__subheadline,
.hero p.hero__subheadline {
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	opacity: 0.92;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
}

.hero__ctas,
.hero .hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

/* Brighter outline CTA for hero */
.hero .btn--outline-white,
.hero .btn-outline,
.hero .btn-outline--light {
	border-width: 1.5px;
	border-color: rgba(255, 255, 255, 0.92);
	color: #fff;
	background: transparent;
	transition: transform 0.2s var(--ease),
		background-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease;
}
.hero .btn--outline-white:hover,
.hero .btn-outline:hover,
.hero .btn-outline--light:hover {
	background: #fff;
	color: var(--primary);
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* Hero stats — refined inline row */
.hero__stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	flex-wrap: wrap;
	margin-top: 28px;
	padding: 0;
	list-style: none;
}
.hero__stat,
.hero .stat-pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}
.hero__stat strong,
.hero .stat-pill strong {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 700;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--accent-light);
	text-transform: none;
}
.hero__stat-sep {
	width: 1px;
	height: 32px;
	background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.35), transparent);
	display: block;
}
.hero__stats--inline {
	gap: 28px;
}
@media (max-width: 640px) {
	.hero__stats {
		gap: 14px;
	}
	.hero__stat-sep {
		height: 26px;
	}
}

/* =========================================================================
   4. Section dividers (wave / tilt)
   ========================================================================= */
.section-divider {
	display: block;
	width: 100%;
	height: clamp(36px, 5vw, 64px);
	line-height: 0;
	pointer-events: none;
}
.section-divider svg {
	display: block;
	width: 100%;
	height: 100%;
}
.section-divider--flip {
	transform: scaleY(-1);
}
.section-divider-tilt {
	position: relative;
}
.section-divider-tilt::before {
	content: "";
	position: absolute;
	inset: -1px 0 auto 0;
	height: 50px;
	background: inherit;
	transform-origin: top left;
	transform: skewY(-1deg);
	z-index: -1;
}

.section-divider-wave {
	position: relative;
}
.section-divider-wave::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: clamp(36px, 5vw, 64px);
	background-color: var(--bg, #fff);
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0 40 C 240 80 480 0 720 40 C 960 80 1200 0 1440 40 L 1440 0 L 0 0 Z' fill='black'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0 40 C 240 80 480 0 720 40 C 960 80 1200 0 1440 40 L 1440 0 L 0 0 Z' fill='black'/></svg>");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	pointer-events: none;
}

/* =========================================================================
   5. Section heading refinement
   ========================================================================= */
.eyebrow,
.section-header .eyebrow {
	display: inline-block;
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--primary);
	margin-bottom: 8px;
}

.section .section-title,
.section h2.section-title,
h2.section-title {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.section-title em,
h2.section-title em {
	font-style: italic;
	color: var(--accent);
	font-weight: 600;
}

/* Decorative underline below section titles — navy → gold */
.section-title--underline,
.section-header--centered .section-title {
	position: relative;
}
.section-title--underline::after,
.section-header--centered .section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 14px;
	margin-inline: auto;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	border-radius: 999px;
}
.section-header:not(.section-header--centered) .section-title--underline::after {
	margin-inline: 0;
}

/* =========================================================================
   6. Card refinements (restrained hover)
   ========================================================================= */
.visa-card,
.tour-card,
.blog-card,
.stat-item {
	position: relative;
	transition: transform 0.25s var(--ease),
		box-shadow 0.25s var(--ease),
		border-color 0.25s ease;
	overflow: hidden;
}
.visa-card:hover,
.tour-card:hover,
.blog-card:hover,
.stat-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px -14px rgba(10, 37, 64, 0.22);
}

/* Subtle gradient border on hover (masked) — navy→gold */
.visa-card::before,
.tour-card::before,
.blog-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(10, 37, 64, 0.45), rgba(212, 162, 76, 0.45));
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	z-index: 2;
}
.visa-card:hover::before,
.tour-card:hover::before,
.blog-card:hover::before {
	opacity: 1;
}

/* Top accent strip (animated on hover) — navy → gold */
.card-accent-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.35s var(--ease);
	z-index: 3;
	pointer-events: none;
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
}
.visa-card:hover .card-accent-bar,
.tour-card:hover .card-accent-bar,
.blog-card:hover .card-accent-bar {
	transform: scaleX(1);
}

/* Card images */
.tour-card__media,
.blog-card__media,
.visa-card__media {
	overflow: hidden;
}
.tour-card__img,
.blog-card__img,
.visa-card__img,
.tour-card .wp-post-image,
.blog-card .wp-post-image {
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}
.tour-card:hover .tour-card__img,
.tour-card:hover .wp-post-image,
.blog-card:hover .blog-card__img,
.blog-card:hover .wp-post-image,
.visa-card:hover .visa-card__img {
	transform: scale(1.04);
}

/* Card title hover → primary */
.tour-card__title a,
.visa-card__title a,
.blog-card__title a {
	transition: color 0.2s ease;
}
.tour-card:hover .tour-card__title a,
.visa-card:hover .visa-card__title a,
.blog-card:hover .blog-card__title a {
	color: var(--primary);
}

/* Visa card — quick apply badge & price eyebrow */
.card-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--text);
	box-shadow: 0 4px 12px rgba(10, 37, 64, 0.10);
	z-index: 4;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.card-badge--accent {
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: var(--primary);
	box-shadow: 0 6px 16px rgba(212, 162, 76, 0.32);
}
.card-badge--primary {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff;
	box-shadow: 0 6px 16px rgba(10, 37, 64, 0.32);
}
.card-badge--top-left {
	left: 12px;
	right: auto;
}

.card-price-eyebrow {
	display: block;
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
	margin-bottom: 2px;
}

/* Tour card — emphasised price (gold) */
.tour-card__price-amount {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 700;
	font-size: 1.4rem;
	letter-spacing: -0.01em;
	color: var(--accent-dark);
}

/* Tour duration badge polish — gold gradient */
.tour-card__badge {
	border-radius: 999px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: linear-gradient(135deg, rgba(212, 162, 76, 0.95), rgba(184, 134, 46, 0.95));
	color: var(--primary);
	font-weight: 700;
	letter-spacing: 0.03em;
	box-shadow: 0 6px 18px rgba(212, 162, 76, 0.32);
	padding: 6px 12px;
}

/* =========================================================================
   7. Air-ticket section refresh — dashboard focal point
   ========================================================================= */
.air-ticket-section {
	position: relative;
	overflow: hidden;
}
.air-ticket-decorations {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.air-ticket-section > .container {
	position: relative;
	z-index: 1;
}

.air-ticket-card {
	border-radius: 16px;
	border: 1px solid rgba(10, 37, 64, 0.10);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 20px 60px -10px rgba(10, 37, 64, 0.18);
}

/* Tab pills */
.flight-tab,
.trip-tab.flight-tab {
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.flight-tab.is-active,
.trip-tab.flight-tab.is-active,
.trip-tab.flight-tab[aria-selected="true"] {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff;
	box-shadow: 0 6px 18px rgba(10, 37, 64, 0.28);
}

/* Form inputs */
.flight-search-form .form-field input,
.flight-search-form .form-field select {
	padding: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.flight-search-form .form-field input:hover,
.flight-search-form .form-field select:hover {
	border-color: rgba(10, 37, 64, 0.30);
}
.flight-search-form .form-field label {
	font-size: 0.82rem;
	font-weight: 600;
}

/* Submit button — bold gold */
.flight-submit,
.air-ticket-card .btn-gradient {
	min-height: 52px;
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	border: none;
	color: var(--primary);
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
	box-shadow: 0 6px 18px rgba(212, 162, 76, 0.36);
}
.flight-submit:hover,
.air-ticket-card .btn-gradient:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(212, 162, 76, 0.45);
	color: var(--primary);
}

/* Popular route pills hover */
.route-pill {
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.route-pill:hover {
	border-color: var(--accent);
	background-color: rgba(212, 162, 76, 0.10);
	color: var(--accent-dark);
}

/* Trust badges — checkmark inside navy circle */
.trust-badge__inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.trust-badge__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: var(--accent-light);
	flex-shrink: 0;
	box-shadow: 0 4px 10px rgba(10, 37, 64, 0.22);
}
.trust-badge__check svg {
	width: 14px;
	height: 14px;
}

/* =========================================================================
   8. Buttons refinement (.btn family + restrained shimmer)
   ========================================================================= */
.btn,
a.btn,
button.btn {
	position: relative;
	overflow: hidden;
	transition: transform 0.2s var(--ease),
		box-shadow 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}
.btn-primary:hover,
.btn--primary:hover {
	box-shadow: 0 8px 22px rgba(10, 37, 64, 0.35);
}
.btn-accent:hover,
.btn--accent:hover {
	box-shadow: 0 8px 22px rgba(212, 162, 76, 0.40);
}

/* Gradient variant — navy → gold diagonal */
.btn-gradient {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	border: none;
}
.btn-gradient:hover {
	box-shadow: 0 8px 22px rgba(10, 37, 64, 0.30);
	transform: translateY(-2px);
}

/* Shimmer sweep ::after — restrained */
.btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 35%;
	height: 100%;
	background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
	transform: translateX(-200%) skewX(-20deg);
	transition: transform 0.55s ease;
	pointer-events: none;
	mix-blend-mode: overlay;
	z-index: 1;
}
.btn:hover::after {
	transform: translateX(300%) skewX(-20deg);
}

/* =========================================================================
   9. Contact section icon — navy gradient bg
   ========================================================================= */
.contact-list__icon--gradient,
.contact-section .contact-list__item .contact-list__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: var(--accent-light);
	flex-shrink: 0;
	box-shadow: 0 6px 16px rgba(10, 37, 64, 0.22);
}
.contact-list__icon--gradient svg,
.contact-section .contact-list__icon svg {
	color: var(--accent-light);
}
.contact-section {
	position: relative;
	overflow: hidden;
}
.contact-section > .container {
	position: relative;
	z-index: 1;
}

/* =========================================================================
   10. Dark-mode harmonisation
   ========================================================================= */
@media (prefers-color-scheme: dark) {
	.deco-blob {
		opacity: 0.15;
	}
	.visa-card::before,
	.tour-card::before,
	.blog-card::before {
		background: linear-gradient(135deg, rgba(74, 124, 199, 0.22), rgba(232, 193, 118, 0.22));
	}
	.glass-card {
		background: rgba(20, 25, 35, 0.55);
		border-color: rgba(255, 255, 255, 0.06);
		backdrop-filter: blur(28px);
		-webkit-backdrop-filter: blur(28px);
	}
	.air-ticket-card {
		background: rgba(20, 25, 35, 0.55);
		border-color: rgba(255, 255, 255, 0.06);
	}
}

[data-theme="dark"] .deco-blob,
.theme-dark .deco-blob {
	opacity: 0.15;
}
[data-theme="dark"] .visa-card::before,
[data-theme="dark"] .tour-card::before,
[data-theme="dark"] .blog-card::before,
.theme-dark .visa-card::before,
.theme-dark .tour-card::before,
.theme-dark .blog-card::before {
	background: linear-gradient(135deg, rgba(74, 124, 199, 0.22), rgba(232, 193, 118, 0.22));
}
[data-theme="dark"] .glass-card,
[data-theme="dark"] .air-ticket-card,
.theme-dark .glass-card,
.theme-dark .air-ticket-card {
	background: rgba(20, 25, 35, 0.55);
	border-color: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(28px);
	-webkit-backdrop-filter: blur(28px);
}

/* =========================================================================
   11. Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	.btn::after {
		display: none !important;
	}
	.visa-card,
	.tour-card,
	.blog-card,
	.stat-item,
	.visa-card:hover,
	.tour-card:hover,
	.blog-card:hover,
	.stat-item:hover,
	.flight-submit:hover,
	.btn-gradient:hover,
	.hero .btn--outline-white:hover,
	.hero .btn-outline:hover {
		transform: none !important;
	}
	.tour-card__img,
	.blog-card__img,
	.visa-card__img,
	.tour-card .wp-post-image,
	.blog-card .wp-post-image {
		transition: none !important;
	}
	.tour-card:hover .tour-card__img,
	.tour-card:hover .wp-post-image,
	.blog-card:hover .blog-card__img,
	.blog-card:hover .wp-post-image,
	.visa-card:hover .visa-card__img {
		transform: none !important;
	}
	.card-accent-bar {
		transition: none !important;
	}
	.float-anim,
	.hero-deco.float-anim {
		animation: none !important;
	}
	[data-parallax] {
		transform: none !important;
	}
}
