/*
 * Bali Visa Checker — country grid + virtual country page styles.
 * Self-contained, theme-agnostic, mobile-first.
 */

.bvc-country-grid-section {
	max-width: 1080px;
	margin: 0 auto;
	padding: 32px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
	color: #1a2540;
}
.bvc-country-grid-head {
	text-align: center;
	margin-bottom: 24px;
}
.bvc-country-grid-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1ea07a;
	margin-bottom: 8px;
}
.bvc-country-grid-title {
	font-size: clamp(1.6rem, 3.2vw, 2.2rem);
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.2;
}
.bvc-country-grid-intro {
	max-width: 620px;
	margin: 0 auto;
	color: #5a6c83;
	line-height: 1.55;
}

.bvc-flag-grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 10px;
	margin-top: 24px;
}
.bvc-flag-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #f5f7fb;
	border: 1px solid #e3e9f1;
	padding: 14px 6px;
	border-radius: 12px;
	color: #1a2540;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
	min-height: 76px;
}
.bvc-flag-tile:hover,
.bvc-flag-tile:focus {
	background: rgba(30, 160, 122, 0.08);
	border-color: #1ea07a;
	transform: translateY(-2px);
	text-decoration: none;
	color: #1a2540;
}
.bvc-flag-emoji {
	font-size: 1.7rem;
	line-height: 1;
}
.bvc-flag-name {
	font-size: 0.74rem;
	font-weight: 500;
	text-align: center;
	opacity: 0.85;
}
.bvc-flag-tile-more {
	font-weight: 600;
	color: #1ea07a;
}
.bvc-flag-tile-more .bvc-flag-name {
	color: #1ea07a;
	opacity: 1;
}

@media (max-width: 880px) {
	.bvc-flag-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 480px) {
	.bvc-flag-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ========== Virtual country page ========== */

.bvc-country-page {
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
	color: #1a2540;
}
.bvc-breadcrumb {
	font-size: 0.85rem;
	color: #5a6c83;
	margin-bottom: 12px;
}
.bvc-breadcrumb a {
	color: #1ea07a;
	text-decoration: none;
}
.bvc-breadcrumb a:hover {
	text-decoration: underline;
}
.bvc-country-hero {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 20px;
	background: linear-gradient(135deg, #1a2540 0%, #233454 100%);
	color: #fff;
	border-radius: 16px;
	margin-bottom: 24px;
}
.bvc-country-hero .bvc-flag-emoji {
	font-size: 3.4rem;
}
.bvc-country-hero h1 {
	font-size: clamp(1.6rem, 3.4vw, 2.4rem);
	margin: 0 0 6px;
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
}
.bvc-country-hero p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
	line-height: 1.55;
}

.bvc-visa-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
	margin-top: 16px;
}
.bvc-visa-card {
	background: #fff;
	border: 1px solid #e3e9f1;
	border-radius: 14px;
	padding: 22px 22px 20px;
	display: flex;
	flex-direction: column;
}
.bvc-visa-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eef2f7;
}
.bvc-visa-card h3 {
	font-size: 1.15rem;
	margin: 0;
	font-weight: 700;
	line-height: 1.25;
	color: #1a2540;
}
.bvc-visa-code {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	background: #eef9f3;
	color: #1ea07a;
	padding: 4px 8px;
	border-radius: 6px;
	white-space: nowrap;
	flex-shrink: 0;
}
.bvc-visa-meta {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	font-size: 0.88rem;
	color: #4a5b75;
	line-height: 1.55;
}
.bvc-visa-meta li {
	padding: 4px 0;
	display: flex;
	gap: 6px;
}
.bvc-visa-meta li strong {
	color: #1a2540;
	font-weight: 600;
	min-width: 100px;
}
.bvc-visa-notes {
	font-size: 0.88rem;
	color: #5a6c83;
	line-height: 1.55;
	margin: 0 0 14px;
}
.bvc-visa-cta {
	display: inline-block;
	margin-top: auto;
	font-size: 0.88rem;
	font-weight: 600;
	color: #1ea07a;
	text-decoration: none;
	align-self: flex-start;
}
.bvc-visa-cta:hover {
	text-decoration: underline;
}

.bvc-country-cta {
	margin-top: 32px;
	padding: 24px 20px;
	background: #f5f7fb;
	border-radius: 14px;
	text-align: center;
}
.bvc-country-cta h2 {
	font-size: 1.3rem;
	margin: 0 0 8px;
	color: #1a2540;
	font-weight: 700;
}
.bvc-country-cta p {
	margin: 0 0 16px;
	color: #5a6c83;
	font-size: 0.95rem;
}
.bvc-country-cta a {
	display: inline-block;
	background: #1ea07a;
	color: #fff;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
}
.bvc-country-cta a:hover {
	background: #178861;
}

/* All-countries index */
.bvc-countries-index {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
	margin-top: 20px;
}
.bvc-countries-index a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: #f5f7fb;
	border: 1px solid #e3e9f1;
	border-radius: 8px;
	color: #1a2540;
	text-decoration: none;
	font-size: 0.92rem;
}
.bvc-countries-index a:hover {
	background: rgba(30, 160, 122, 0.08);
	border-color: #1ea07a;
	color: #1a2540;
}
