/* ============================================================
   Pépite Travel — V2 Country Detail CSS
   ============================================================ */

/* Override home-v2.css html overflow: hidden for scrollable country pages */
html:has(body.v2-country-body) { overflow: visible; overflow-y: auto; }

body.v2-country-body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: #f9f8f6;
  color: var(--v2-earth);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

/* ── V2 Shell overrides for country page ─────────────── */
body.v2-country-body .v2-shell {
  position: static;
  inset: auto;
  overflow: visible;
  display: block;
  flex-direction: column;
  padding-bottom: calc(var(--v2-bottomnav-h) + var(--v2-safe-bottom));
}

/* Sticky topbar on country page */
body.v2-country-body .v2-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Country content ─────────────────────────────────── */
.v2-country-content {
  min-height: 100vh;
}

/* ── Hero ────────────────────────────────────────────── */
.v2-country-hero {
  position: relative;
  height: 38vh;
  min-height: 240px;
  max-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--v2-sand);
}

.v2-country-hero--flag {
  background-color: var(--v2-sage);
}

.v2-country-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 1;
}

.v2-country-hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v2-country-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.v2-country-iso {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
}

.v2-country-name {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.v2-country-location {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
}

.v2-country-tagline {
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 4px;
  max-width: 100%;
}

/* ── Facts strip ────────────────────────────────────── */
.v2-country-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--v2-white);
  margin: 0;
  border-bottom: 1px solid var(--v2-border);
}

.v2-country-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--v2-border);
  color: var(--v2-sage);
}
.v2-country-fact:last-child { border-bottom: none; }

.v2-country-fact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(26,26,26,0.45);
  margin-bottom: 2px;
}

.v2-country-fact-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--v2-earth);
  line-height: 1.4;
}

/* ── Region / spot body ─────────────────────────────── */
.v2-country-body {
  padding: 24px 20px;
}

.v2-country-empty {
  text-align: center;
  color: rgba(26,26,26,0.55);
  font-size: 0.92rem;
  padding: 24px 0 12px;
}

.v2-country-empty-region {
  color: rgba(26,26,26,0.5);
  font-size: 0.85rem;
  padding: 8px 4px 4px;
}

.v2-country-section {
  margin-bottom: 28px;
}

.v2-country-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.v2-country-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--v2-earth);
}
.v2-country-section-title svg { color: var(--v2-sage); }

.v2-country-section-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(26,26,26,0.5);
  margin-left: 4px;
}

/* ── Country card discover link ─────────────────────── */
.v2-country-card-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #C96A3D;
  text-decoration: none;
  font-weight: 600;
}
.v2-country-card-link:hover { text-decoration: underline; }
