﻿* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: #C9A227;
  color: white;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.3);
}

.legend-color.free { background: #2e7d32; }
.legend-color.evisa { background: #f57c00; }
.legend-color.required { background: #c62828; }

.main {
  flex: 1;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 1rem;
}

#map {
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: #e0e0e0;
}

.tooltip {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  z-index: 1000;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 220px;
  max-width: 300px;
  border: 1px solid #e0e0e0;
  animation: tooltipFade 0.15s ease-out;
  transition: box-shadow 0.2s;
}

.tooltip:hover {
  box-shadow: 0 8px 28px rgba(201,162,39,0.35);
  border-color: #C9A227;
}

@keyframes tooltipFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tooltip.hidden { display: none; }

.tooltip-flag {
  width: 40px;
  height: 27px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.tooltip-flag img {
  width: 40px;
  height: 27px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.tooltip-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.tooltip-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.tooltip-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  align-self: flex-start;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.tooltip-status.free { background: #e8f5e9; color: #2e7d32; }
.tooltip-status.evisa { background: #fff3e0; color: #f57c00; }
.tooltip-status.required { background: #fdeaea; color: #c62828; }
.tooltip-status.unknown { background: #eeeeee; color: #616161; }

.tooltip-desc {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tooltip-desc .tooltip-place {
  display: block;
  font-weight: 600;
  color: #C9A227;
  margin-bottom: 0.1rem;
}

.tooltip-cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #C9A227;
  margin-top: 0.1rem;
  text-decoration: none;
}

.footer {
  background: #000;
  border-top: 3px solid #c9a227;
  color: #c9a227;
  margin-top: auto;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.footer-brand img {
  max-width: 150px;
  filter: brightness(0) invert(1);
}

.footer-disclaimer {
  color: rgba(242, 241, 239, 0.7);
  margin: 1rem auto 0;
  max-width: 720px;
}

.footer-legal {
  color: #c9a227;
  margin: 1rem 0 0;
}

.footer-legal a {
  color: #c9a227;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #c9a227;
}

.footer-bar p {
  margin: 0;
  color: #c9a227;
}

.footer-bar a {
  color: #c9a227;
  font-weight: 600;
  text-decoration: none;
}

.footer-bar a:hover {
  color: #fff;
}

/* Country detail page styles */
.detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a { color: #C9A227; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-separator { color: #ccc; }
.breadcrumb-current { color: #1a1a1a; font-weight: 500; }

.breadcrumb-flag {
  width: 28px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  vertical-align: middle;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.detail-flag {
  width: 80px;
  height: 53px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.detail-title h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
}

.detail-status.free { background: #e8f5e9; color: #2e7d32; }
.detail-status.evisa { background: #fff3e0; color: #f57c00; }
.detail-status.required { background: #fdeaea; color: #c62828; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.detail-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.detail-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child { border-bottom: none; }

.detail-label { color: #666; font-size: 0.9rem; }
.detail-value { font-weight: 500; color: #1a1a1a; text-align: right; max-width: 60%; word-break: break-word; }

.visa-types {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.visa-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.85rem;
}

.visa-type-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary { background: #C9A227; color: white; }
.btn-primary:hover { background: #A8840F; }
.btn-secondary { background: #fff; color: #C9A227; border: 1px solid #C9A227; }
.btn-secondary:hover { background: #FBF3D9; }

.embassy-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.embassy-info strong { color: #C9A227; }

/* ============ Country page hero ============ */
.hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,30,0.55) 0%, rgba(10,10,30,0.15) 45%, rgba(10,10,30,0.7) 100%);
}

.hero-content {
  position: relative;
  padding: 1.5rem 1.5rem 2rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: auto;
  color: rgba(255,255,255,0.9);
}

.hero-breadcrumb a { color: #fff; text-decoration: none; font-weight: 500; }
.hero-breadcrumb a:hover { text-decoration: underline; }
.hero-breadcrumb-sep { color: rgba(255,255,255,0.5); }
.hero-breadcrumb-current { color: #fff; font-weight: 700; }

.hero-breadcrumb-landmark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  flex: none;
}

.hero-flags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.flag-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.92);
  color: #1a1a1a;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.flag-tag img {
  width: 30px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.flag-tag .flag-plus { color: #666; font-weight: 700; }

.hero-title-flag {
  width: 64px;
  height: 43px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  margin: 0.5rem 0 0.9rem;
  flex: none;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0.5rem 0 0.35rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-desc {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  max-width: 640px;
}

/* ============ Visa info sections ============ */
.visa-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.visa-section-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f0f0f0;
}

.visa-section-num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #C9A227;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visa-section-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 0;
  border: none;
}

.visa-section-head .section-sub {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #333;
}

.req-list li::before {
  content: '\2713';
  flex-shrink: 0;
  color: #2e7d32;
  font-weight: 700;
}

.req-list li.note::before { content: '\26A0'; color: #f57c00; }

.req-list li.no::before { content: '\2715'; color: #c62828; }

.interview-box {
  margin-top: 1rem;
  background: #fdf4f4;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #7a1a1a;
}

.interview-box.soft {
  background: #fff8e1;
  border-color: #ffe082;
  color: #6d4c00;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.1rem 2.4rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #333;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #C9A227;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.steps li strong { color: #1a1a1a; }

.vh-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.vh-offer {
  background: #f5f7ff;
  border: 1px solid #dfe4ff;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #C9A227;
}

.vh-offer strong { display: block; margin-bottom: 0.15rem; font-size: 0.9rem; }

/* ============ Apply CTA ============ */
.apply-cta {
  text-align: center;
  background: linear-gradient(135deg, #C9A227 0%, #A8840F 100%);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  color: white;
  box-shadow: 0 6px 24px rgba(201,162,39,0.3);
}

.apply-cta h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.apply-cta p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}

.apply-cta .btn-primary {
  background: white;
  color: #C9A227;
  font-size: 1.05rem;
  padding: 0.9rem 2.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.apply-cta .btn-primary:hover { background: #FBF3D9; }

@media (max-width: 768px) {
  .header h1 { font-size: 1.2rem; }
  .legend { gap: 0.5rem; font-size: 0.75rem; }
  .legend-color { width: 10px; height: 10px; }
  #map { height: calc(100vh - 180px); }
  .detail-header { flex-direction: column; align-items: flex-start; }
  .hero-content { min-height: 220px; }
  .hero-title { font-size: 1.8rem; }
  .tooltip { min-width: 190px; max-width: 230px; }
}

/* Static site shell — content wrapper next to the fixed side menu */
.vh-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Dark mode — static country/apply pages
   ========================================================================== */
html[data-theme="dark"] body { background: #121316; }

html[data-theme="dark"] .visa-section {
  background: #1A1C20;
  border-color: #2A2D33;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .visa-section-head { border-bottom-color: #2A2D33; }
html[data-theme="dark"] .visa-section-head h2 { color: #F2F1EF; }
html[data-theme="dark"] .visa-section-head .section-sub { color: #6F747D; }

html[data-theme="dark"] .req-list li { color: #D8DAE0; }
html[data-theme="dark"] .steps li { color: #D8DAE0; }
html[data-theme="dark"] .steps li strong { color: #F2F1EF; }
html[data-theme="dark"] .steps li:not(:last-child)::after { background: #2A2D33; }

html[data-theme="dark"] .embassy-info { background: #202329; }
html[data-theme="dark"] .embassy-info a { color: #E8C955; }

html[data-theme="dark"] .interview-box {
  background: rgba(198, 40, 40, 0.16);
  border-color: rgba(198, 40, 40, 0.4);
  color: #FF9A92;
}
html[data-theme="dark"] .interview-box.soft {
  background: rgba(201, 162, 39, 0.14);
  border-color: rgba(201, 162, 39, 0.4);
  color: #E8C955;
}

html[data-theme="dark"] .vh-offer {
  background: #202329;
  border-color: #2A2D33;
  color: #E8C955;
}
html[data-theme="dark"] .vh-offer strong { color: #F2F1EF; }

html[data-theme="dark"] .detail-status.free { background: rgba(46, 125, 50, 0.22); color: #7BD38B; }
html[data-theme="dark"] .detail-status.evisa { background: rgba(245, 124, 0, 0.2); color: #FFC47F; }
html[data-theme="dark"] .detail-status.required { background: rgba(198, 40, 40, 0.24); color: #FF8A80; }

html[data-theme="dark"] .visa-section p { color: #A7ABB3 !important; }
html[data-theme="dark"] hr { border-color: #2A2D33 !important; }

/* ==========================================================================
   Unified footer (same as homepage footer) — static pages
   ========================================================================== */
.vh-footer__inner {
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}
.vh-footer__logo {
  display: inline-block;
  max-width: 220px;
}
.vh-footer__disclaimer {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.vh-footer-legal { text-align: center; }
.vh-footer-bar {
  text-align: center;
  padding: 0.75rem 1.5rem;
}
.vh-footer-bar p { margin: 0; }

