/********************************************************************/
/* Banner */
/********************************************************************/
.country-banner {
  height: 60vh;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.country-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 20%;
  width: 100%;
  background: linear-gradient(to bottom, transparent, var(--ui-bg));
  z-index: 5;
  pointer-events: none;
}

.country-banner .banner-img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(65%);
}

.banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 10;
}

.banner-overlay h1 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 3rem);
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  color: var(--ui-text);
}

/********************************************************************/
/* Quick Facts */
/********************************************************************/
.row-cols-md-2 .col {
  margin-bottom: 1rem;
}

.icon-circle {
  width: 50px;
  height: 50px;
  background-color: var(--ui-surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--ui-text);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.country-outline-icon {
  width: 60px;
  height: 60px;
}

.country-outline-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.fact-label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--ui-text);
}

.fact-value {
  font-size: 0.95rem;
  color: var(--ui-text-muted);
}

.fact-text {
  line-height: 1.4;
}

/********************************************************************/
/* Sections */
/********************************************************************/
.section-title {
  position: relative;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--ui-text);
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--ui-divider), transparent);
}

.section-title::before { left: 0; }
.section-title::after { right: 0; }

/********************************************************************/
/* Edit Mode */
/********************************************************************/
.editable-section:hover {
  cursor: text;
  outline: 1px dashed var(--ui-text-muted);
}

/********************************************************************/
/* Map */
/********************************************************************/
.section-content iframe,
.quill-editor .ql-editor iframe {
  max-width: 100%;
  width: 100%;
  min-height: 300px;
  height: auto;
  border: none;
  aspect-ratio: 16 / 9;
}

/* Masonry images on country page */
#country-masonry.masonry {
  column-count: 4;
  column-gap: 1rem;
}

@media (max-width: 1200px) {
  #country-masonry.masonry { column-count: 3; }
}
@media (max-width: 768px) {
  #country-masonry.masonry { column-count: 2; }
}
@media (max-width: 480px) {
  #country-masonry.masonry { column-count: 1; }
}

#country-masonry .masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  width: 100%;
}

#country-masonry .masonry-item .image-card img {
  display: block;
  width: 100%;
  height: auto;
}
