/* =========================================================================
   Visa Countries — page-visa-countries.php
   Standalone styles. Mirrors the brand palette of page-govr-redesign.css.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
	--vc-gold: #C08B0D;
	--vc-gold-hover: #82592d;
	--vc-gold-soft: #B98E3A;
	--vc-gold-tint: rgba(192, 139, 13, 0.18);
	--vc-text: #1A1A1A;
	--vc-text-muted: #5C5C5C;
	--vc-text-faint: #8a8a8a;
	--vc-border: #e8e6e1;
	--vc-bg: #ffffff;
	--vc-bg-soft: #fafaf8;
	--vc-free-bg: #e6f4ea;
	--vc-free-text: #1e7e34;
	--vc-free-icon: #2ea83a;
	--vc-required-bg: #fdecec;
	--vc-required-text: #c92a2a;
	--vc-required-icon: #e63946;
	--vc-radius: 10px;
	--vc-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ---------- Resets + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
.vc-page { background: var(--vc-bg); color: var(--vc-text); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Mobile menu (shared nav fallback) ---------- */
.mobile-menu {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 12px 15px;
	background: #fff;
	border-top: 1px solid var(--vc-border);
}
.mobile-menu[aria-hidden="false"],
.mobile-menu.is-open { display: flex; }
.mobile-menu-link {
	display: block;
	padding: 10px 12px;
	text-decoration: none;
	color: var(--vc-text-muted);
	font-size: 15px;
	font-weight: 500;
	border-radius: 8px;
}
.mobile-menu-link.active { color: #8B7209; background: rgba(192, 139, 13, 0.08); }

/* ---------- Breadcrumb ---------- */
.vc-breadcrumb {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 3px;
	font-size: 14px;
	color: #5c5c5c;
}
/* Link must be distinguishable without colour — keep underline by default
   so the WCAG "links rely on colour" warning is satisfied, and bump the
   colour from #8B7209 → #735C00 for a stronger 4.5:1+ contrast on white. */
.vc-breadcrumb a {
	color: #735C00;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.vc-breadcrumb a:hover { text-decoration: none; }
.vc-breadcrumb .sep { margin: 0 6px; color: #bbb; }
.vc-breadcrumb .current { color: var(--vc-text); font-weight: 600; }

/* ---------- Hero banner ---------- */
.vc-hero {
	background: #B98E3A;
	color: #fff;
	padding: 60px 20px;
	text-align: center;
	border-radius: 8px;
	max-width: 1200px;
	margin: 40px auto 50px;
	width: calc(100% - 40px);
}
.vc-hero h1 {
	font-size: 48px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0;
	letter-spacing: -0.5px;
}

/* ---------- Layout (single column) ---------- */
.vc-layout {
	max-width: 1200px;
	margin: 0 auto 80px;
	padding: 0 20px;
}

/* ---------- Search card ---------- */
.vc-search-card {
	background: #fff;
	border-radius: 16px;
	padding: 28px 28px 24px;
	margin: 0 0 32px;
	border: 1px solid var(--vc-gold-tint);
	box-shadow: 0 4px 24px rgba(192, 139, 13, 0.08);
}
.vc-search-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--vc-text-muted);
	margin: 0 0 12px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.vc-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.vc-search {
	width: 100%;
	font: inherit;
	font-size: 17px;
	color: var(--vc-text);
	background: var(--vc-bg-soft);
	border: 1.5px solid transparent;
	border-radius: 12px;
	padding: 18px 52px 18px 54px;
	outline: none;
	transition: border-color .18s, background .18s, box-shadow .18s;
	-webkit-appearance: none;
	appearance: none;
}
.vc-search::placeholder { color: #b3b3b3; }
.vc-search:focus {
	background: #fff;
	border-color: var(--vc-gold);
	box-shadow: 0 0 0 4px rgba(192, 139, 13, 0.14);
}
.vc-search::-webkit-search-cancel-button,
.vc-search::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}
.vc-search-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: var(--vc-gold);
	pointer-events: none;
}
.vc-search-clear {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ece8df;
	color: var(--vc-text-muted);
	cursor: pointer;
	display: inline-grid;
	place-content: center;
	transition: background .15s, color .15s;
}
.vc-search-clear svg { width: 14px; height: 14px; }
.vc-search-clear:hover,
.vc-search-clear:focus-visible {
	background: var(--vc-gold);
	color: #fff;
	outline: none;
}
.vc-search-clear[hidden] { display: none; }

/* ---------- Result count ---------- */
.vc-count {
	font-size: 14px;
	color: var(--vc-text-muted);
	margin: 0 0 20px;
}
.vc-count strong { color: var(--vc-text); font-weight: 700; }

/* ---------- Country cards grid ---------- */
.vc-countries-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.vc-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: #fff;
	border: 1.5px solid var(--vc-gold-tint);
	border-radius: var(--vc-radius);
	padding: 20px;
	transition: border-color .18s, box-shadow .18s, transform .18s;
	will-change: transform;
}
.vc-card:hover {
	border-color: var(--vc-gold);
	box-shadow: var(--vc-shadow);
}
.vc-card[hidden] { display: none; }

.vc-card-flag {
	flex-shrink: 0;
	width: 44px;
	height: 32px;
	border-radius: 4px;
	overflow: hidden;
	background: #f4f4f4;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vc-card-flag img,
.vc-card-flag .emoji {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vc-card-body {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vc-card-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--vc-text);
	margin: 0;
	letter-spacing: -0.1px;
	word-break: break-word;
}

/* ---------- Badges ---------- */
.vc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px 4px 8px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	width: max-content;
	max-width: 100%;
	line-height: 1.2;
}
.vc-badge-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.vc-badge--free {
	background: var(--vc-free-bg);
	color: var(--vc-free-text);
}
.vc-badge--free .vc-badge-icon { color: var(--vc-free-icon); }
.vc-badge--required {
	background: var(--vc-required-bg);
	color: var(--vc-required-text);
}
.vc-badge--required .vc-badge-icon { color: var(--vc-required-icon); }

/* ---------- Empty state ---------- */
.vc-empty {
	margin: 32px 0 0;
	padding: 48px 20px;
	text-align: center;
	font-size: 16px;
	color: var(--vc-text-muted);
	background: var(--vc-bg-soft);
	border: 1px dashed var(--vc-border);
	border-radius: var(--vc-radius);
}

/* ---------- Footer ---------- */
footer {
	background: #f6f4ef;
	padding: 56px 20px 24px;
	margin-top: 40px;
	border-top: 1px solid var(--vc-border);
}
.footer-inner {
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 56px;
}
.footer-inner > div:first-child { max-width: 520px; }
.logo-footer .logo-img { display: block; height: 44px; width: auto; }
.footer-brand-text {
	margin-top: 16px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--vc-text-muted);
}
.footer-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.footer-col h4 {
	font-size: 14px;
	font-weight: 700;
	color: var(--vc-text);
	margin: 0 0 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.footer-col a {
	font-size: 14px;
	color: var(--vc-text-muted);
	text-decoration: none;
	transition: color .15s;
}
.footer-col a:hover { color: var(--vc-gold-hover); }

.footer-bottom {
	max-width: 1240px;
	margin: 40px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--vc-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: var(--vc-text-muted);
}
.footer-bottom p { margin: 0; }
.footer-platform {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.footer-platform-icon { width: 14px; height: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.vc-countries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.vc-hero { padding: 48px 20px; }
	.vc-hero h1 { font-size: 32px; }
	.vc-layout { margin: 0 auto 60px; }
	.vc-search-card { padding: 22px 20px 20px; border-radius: 14px; }
	.footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
	.footer-inner > div:first-child { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 600px) {
	.vc-hero { padding: 36px 18px; }
	.vc-hero h1 { font-size: 24px; }
	.vc-search { font-size: 16px; padding: 16px 48px 16px 48px; }
	.vc-search-icon { left: 16px; width: 18px; height: 18px; }
	.vc-countries-grid { grid-template-columns: 1fr; gap: 14px; }
	.vc-card { padding: 16px; gap: 14px; }
	.vc-card-name { font-size: 15px; }
	.footer-inner { grid-template-columns: 1fr; gap: 28px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Print ---------- */
@media print {
	nav, .vc-search-card, footer { display: none; }
	.vc-card { break-inside: avoid; }
}

/* ---------- Weglot language switcher ----------
   Visually hide the plugin's checkbox toggle + current-language indicator.
   We keep them in the DOM (no display:none on `.weglot_choice` would have
   broken its CSS-only dropdown — but on this page we hide both because the
   custom list is always visible), and we enlarge the language link so it
   meets the 24×24 PSI touch-target rule. */
.weglot_choice,
.wgcurrent.wg-li.weglot-lang {
	display: none;
}
li.wg-li.weglot-lang.weglot-language {
	font-family: 'Tajawal';
	list-style: none;
}
li.wg-li.weglot-lang.weglot-language a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 6px 10px;
	text-decoration: none;
	font-weight: 400;
}
