/* ============================================================
   atlas.css — Shared styles for myNaturevista SEO atlas pages
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #ff3d5d;
  --primary-dark: #00a884;
  --secondary: #667eea;
  --accent: #f59e0b;
  --dark: #1a1a2e;
  --light: #f8fafc;
  --gradient-1: linear-gradient(135deg, #00b894 0%, #ff3d5d 100%);
  --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ===== BASE RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  transition: color 0.2s ease;
}

/* ===== HEADER ===== */
.atlas-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.atlas-header.scrolled {
  box-shadow: var(--shadow-md);
}

.atlas-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.atlas-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  white-space: nowrap;
}

.atlas-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.atlas-nav-links li a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.atlas-nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.atlas-nav-links li a:hover::after,
.atlas-nav-links li a.active::after {
  transform: scaleX(1);
}

.atlas-nav-cta {
  background: var(--gradient-1);
  color: #fff !important;
  border-radius: 50px;
  padding: 0.6rem 1.4rem !important;
  font-weight: 600 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.atlas-nav-cta::after {
  display: none !important;
}

.atlas-nav-cta:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.atlas-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  padding: 4px;
  line-height: 0;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .atlas-mobile-toggle {
    display: block;
  }

  .atlas-nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  .atlas-nav-links.open {
    display: flex;
  }

  .atlas-nav-links li {
    width: 100%;
  }

  .atlas-nav-links li a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  .atlas-nav-links li a::after {
    display: none;
  }

  .atlas-nav-links li a:hover {
    background: var(--light);
    color: var(--primary-dark);
  }

  .atlas-nav-cta {
    margin: 0.5rem 2rem !important;
    padding: 0.7rem 1.5rem !important;
    display: inline-block !important;
    border-radius: 50px !important;
  }
}

/* ===== MAIN ===== */
.atlas-main {
  padding-top: 70px;
}

/* ===== CONTAINER ===== */
.atlas-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HERO ===== */
.atlas-hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.atlas-hero--home {
  min-height: 90vh;
}

.atlas-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.3) 100%);
  z-index: 0;
}

.atlas-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 700px;
  padding: 4rem 2rem;
  width: 100%;
}

.atlas-hero-badge {
  display: inline-block;
  background: var(--gradient-1);
  color: #fff;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* All text inside the hero gets a shadow for readability */
.atlas-hero-content a,
.atlas-hero-content span {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.atlas-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 12px rgb(0,0,0), 0 1px 3px rgba(0,0,0,0.4);
}

.atlas-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  max-width: 550px;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgb(0,0,0), 0 1px 3px rgba(0,0,0,0.4);
}

.atlas-hero-flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* ===== BUTTONS ===== */
.atlas-btn-primary {
  display: inline-block;
  background: var(--gradient-1);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.atlas-btn-primary:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.atlas-btn-secondary {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.atlas-btn-secondary:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

/* ===== BREADCRUMBS ===== */
.atlas-breadcrumbs {
  background: #f8fafc;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.atlas-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.atlas-breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.atlas-breadcrumb-item a {
  color: var(--primary-dark);
  text-decoration: none;
}

.atlas-breadcrumb-item a:hover {
  text-decoration: underline;
}

.atlas-breadcrumb-item:last-child span {
  color: var(--dark);
  font-weight: 500;
}

.atlas-breadcrumb-sep {
  color: #999;
  margin: 0 0.35rem;
}

/* ===== SECTION ===== */
.atlas-section {
  padding: 5rem 0;
}

.atlas-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.atlas-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.atlas-section-subtitle {
  color: #666;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.atlas-gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== PLACE CARDS ===== */
.atlas-place-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.atlas-place-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.atlas-place-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.atlas-place-card-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.atlas-place-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.atlas-place-card:hover .atlas-place-card-img {
  transform: scale(1.08);
}

.atlas-place-card-body {
  padding: 1.25rem;
}

.atlas-place-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.atlas-place-card-country {
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.atlas-place-card-country a {
  text-decoration: none;
  color: var(--primary-dark);
}

.atlas-place-card-country a:hover {
  text-decoration: underline;
}

.atlas-place-card-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.atlas-place-card-cta {
  display: block;
  margin-top: 0.75rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== TRY THE WIDGET BUTTON (homepage hero) ===== */
.atlas-btn-try-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.95);
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.atlas-btn-try-widget span {
  background: linear-gradient(135deg, #00b894, #ff3d5d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.atlas-btn-try-widget:hover {
  background: linear-gradient(135deg, #00b894, #ff3d5d);
}

.atlas-btn-try-widget:hover span {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

/* ===== WIDGET OPEN BUTTON (on country cards) ===== */
.atlas-widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #00b894 0%, #ff3d5d 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
}

.atlas-widget-btn:hover {
  opacity: 0.92;
  transform: scaleY(1.04);
}

/* ===== COUNTRY CARDS ===== */
.atlas-country-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.atlas-country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.atlas-country-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.atlas-country-card-img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.atlas-country-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.atlas-country-card:hover .atlas-country-card-img {
  transform: scale(1.05);
}

.atlas-country-card-body {
  padding: 1.2rem;
}

.atlas-country-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.atlas-country-card-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.atlas-country-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.atlas-country-card-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CONTINENT CARDS ===== */
.atlas-continent-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.atlas-continent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.atlas-continent-card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* ===== GRIDS ===== */
.atlas-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.atlas-grid-3 > * {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  min-width: 280px;
}

@media (max-width: 900px) {
  .atlas-grid-3 > * {
    flex: 1 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }
}

@media (max-width: 600px) {
  .atlas-grid-3 > * {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.atlas-grid-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.atlas-grid-4 > * {
  flex: 1 1 calc(25% - 1rem);
  max-width: calc(25% - 1rem);
  min-width: 220px;
}

@media (max-width: 1000px) {
  .atlas-grid-4 > * {
    flex: 1 1 calc(50% - 0.625rem);
    max-width: calc(50% - 0.625rem);
  }
}

@media (max-width: 600px) {
  .atlas-grid-4 > * {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.atlas-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .atlas-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== TYPE BADGES ===== */
.atlas-type-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  line-height: 1.4;
  white-space: nowrap;
}

.atlas-type-mountain       { background: #e8f5e9; color: #2e7d32; }
.atlas-type-lake           { background: #e3f2fd; color: #1565c0; }
.atlas-type-desert         { background: #fff3e0; color: #e65100; }
.atlas-type-waterfall      { background: #e0f7fa; color: #006064; }
.atlas-type-national-park  { background: #f3e5f5; color: #6a1b9a; }
.atlas-type-island         { background: #fff8e1; color: #f57f17; }
.atlas-type-canyon         { background: #fce4ec; color: #880e4f; }
.atlas-type-forest         { background: #e8f5e9; color: #1b5e20; }
.atlas-type-volcano        { background: #fbe9e7; color: #bf360c; }
.atlas-type-beach          { background: #fff9c4; color: #f9a825; }
.atlas-type-valley         { background: #e0f2f1; color: #004d40; }
.atlas-type-cave           { background: #eceff1; color: #37474f; }
.atlas-type-glacier        { background: #e3f2fd; color: #0d47a1; }
.atlas-type-river          { background: #e1f5fe; color: #01579b; }
.atlas-type-wetland        { background: #e8f5e9; color: #33691e; }
.atlas-type-fjord          { background: #e8eaf6; color: #1a237e; }
.atlas-type-lagoon         { background: #e0f7fa; color: #00695c; }
.atlas-type-reserve        { background: #f1f8e9; color: #558b2f; }
.atlas-type-rock-formation { background: #efebe9; color: #4e342e; }
.atlas-type-hot-spring     { background: #fff3e0; color: #bf360c; }
.atlas-type-reef           { background: #e0f7fa; color: #006064; }
.atlas-type-bay            { background: #e3f2fd; color: #0277bd; }
.atlas-type-coast          { background: #e8f5e9; color: #2e7d32; }

/* ===== CATEGORY LINKS ===== */
.atlas-cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.atlas-cat-link {
  display: inline-block;
  border: 1.5px solid var(--primary-dark);
  color: var(--primary-dark);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.atlas-cat-link:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

/* ===== PLACE ARTICLE / CONTENT ===== */
.atlas-place-article {
  max-width: 800px;
}

.atlas-place-section {
  margin-bottom: 2.5rem;
}

.atlas-place-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
  line-height: 1.3;
}

.atlas-place-section-content {
  line-height: 1.8;
  color: #444;
  font-size: 1rem;
}

.atlas-place-section-content p + p {
  margin-top: 0.75rem;
}

.atlas-place-section-list {
  margin-top: 1rem;
  padding-left: 1.5rem;
  line-height: 2;
  color: #444;
}

.atlas-place-section-list li {
  margin-bottom: 0.25rem;
}

.atlas-place-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.atlas-place-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* ===== PLACE LAYOUT (article + sidebar) ===== */
.atlas-place-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .atlas-place-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== MAP SECTION ===== */
.atlas-map-section {
  margin: 3rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.atlas-map-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
  font-family: inherit;
}

.atlas-map-toggle-btn:hover {
  opacity: 0.9;
}

.atlas-map-btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.atlas-map-container {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
}

.atlas-map-container.open {
  height: 450px;
}

#atlasMap,
[id^="atlasMap"] {
  width: 100%;
  height: 100%;
}

/* ===== CTA SECTION ===== */
.atlas-cta-section {
  background: var(--gradient-1);
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}

.atlas-cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.atlas-cta-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.atlas-cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.2;
}

.atlas-cta-content p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.atlas-cta-content .atlas-btn-primary {
  background: #fff;
  color: var(--primary-dark) !important;
  font-weight: 700;
  padding: 0.85rem 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.atlas-cta-content .atlas-btn-primary:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-xl);
}

/* ===== FOOTER ===== */
.atlas-footer {
  background: var(--dark);
  color: #ccc;
  padding: 4rem 2rem 2rem;
}

.atlas-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .atlas-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.atlas-footer-logo {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

.atlas-footer-brand p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.atlas-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.atlas-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.atlas-footer-social-link:hover {
  background: var(--gradient-1);
  color: #fff;
  transform: translateY(-2px);
}

.atlas-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 600px) {
  .atlas-footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.atlas-footer-col h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.atlas-footer-col ul {
  list-style: none;
}

.atlas-footer-col ul li {
  margin-bottom: 0.5rem;
}

.atlas-footer-col ul li a {
  color: #999;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.atlas-footer-col ul li a:hover {
  color: #fff;
}

.atlas-footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #666;
  font-size: 0.85rem;
}

/* ===== REVEAL ANIMATION ===== */
.atlas-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.atlas-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== INTRO BLOCK ===== */
.atlas-intro-block {
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  color: #444;
  border-left: 4px solid var(--primary-dark);
  font-size: 1rem;
}

/* ===== COUNTRY META ===== */
.atlas-country-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* Badge inside meta row must not have its own bottom margin */
.atlas-country-meta .atlas-hero-badge {
  margin-bottom: 0;
}

/* Type badge displayed in hero (place pages) — bigger and prominent */
.atlas-hero-type-badge {
  display: inline-block;
  margin-bottom: 1rem;
}
.atlas-hero-type-badge .atlas-type-badge {
  font-size: 1rem;
  padding: 0.45rem 1.1rem;
  text-shadow: none;
}

.atlas-country-flag {
  width: 48px;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

/* ===== RELATED SECTION ===== */
.atlas-related-section {
  padding: 3rem 0;
  background: #f8fafc;
}

.atlas-related-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

/* ===== CONTINENT DESCRIPTION ===== */
.atlas-continent-desc {
  text-align: center;
  color: #666;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .atlas-section {
    padding: 3rem 0;
  }

  .atlas-section-title {
    font-size: 1.6rem;
  }

  .atlas-hero-content {
    padding: 3rem 1.25rem;
  }

  .atlas-container {
    padding: 0 1.25rem;
  }

  .atlas-breadcrumb-list {
    padding: 0 1.25rem;
  }

  .atlas-cta-content h2 {
    font-size: 1.6rem;
  }

  .atlas-map-container.open {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .atlas-hero-title {
    font-size: 2rem;
  }

  .atlas-hero-subtitle {
    font-size: 0.95rem;
  }

  .atlas-section-title {
    font-size: 1.4rem;
  }
}

/* ===== LIGHTBOX ===== */
.atlas-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.atlas-lightbox.open {
  display: flex;
}

.atlas-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.atlas-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.atlas-lightbox-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.atlas-lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.atlas-lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  flex-shrink: 0;
}

.atlas-lightbox-btn:hover {
  background: rgba(255,255,255,0.3);
}

.atlas-lightbox-prev { left: 0.5rem; }
.atlas-lightbox-next { right: 0.5rem; }

.atlas-lightbox-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  margin: 0.5rem 0;
}

.atlas-lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.5rem 0;
  overflow-x: auto;
  max-width: 100%;
}

.atlas-lightbox-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.atlas-lightbox-thumb.active {
  opacity: 1;
  border-color: #00b894;
}

.atlas-lightbox-thumb:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .atlas-lightbox-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .atlas-lightbox-thumb {
    width: 52px;
    height: 38px;
  }
}
