@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #ffffff;
  color: #272727;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Header */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
}

header svg {
  height: 40px;
  width: 40px;
}

/* Page Container */
.container {
  padding: 16px;
  max-width: 680px;
  margin: 0 auto;
}

/* Navigation & Breadcrumbs */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 14px;
  transition: color 0.15s ease;
}

.nav-back:hover {
  color: #000;
}

.nav-back svg {
  width: 14px;
  height: 14px;
}

/* Country Title Bar & Metadata */
.country-header {
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.country-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title-with-flag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.country-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.country-code {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  background: #f0f0f0;
  border-radius: 4px;
  color: #555;
}

.wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #0055d4;
  background: #edf4ff;
  border: 1px solid #d3e2fd;
  border-radius: 4px;
  padding: 2px 8px;
  transition: all 0.15s ease;
}

.wiki-link:hover {
  background: #dbeaff;
  color: #003ea8;
}

.wiki-link svg {
  width: 11px;
  height: 11px;
}

/* Map Display Plate */
.map-stage {
  background-color: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.map-stage img {
  max-height: 190px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

/* Geographic Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.spec-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 10px 12px;
}

.spec-label {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 3px;
}

.spec-value {
  font-size: 12.5px;
  font-weight: 600;
  color: #222;
}

/* Section Subheadings */
.section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e8;
  margin-top: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: darkviolet;
  border-radius: 50%;
}

/* Visual Place Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.gallery-card {
  position: relative;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f7f7f7;
}

.gallery-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-info {
  padding: 7px 9px;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
}

.gallery-title {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  display: block;
}

.gallery-caption {
  font-size: 9.5px;
  color: #777;
  font-family: 'Geist Mono', monospace;
}

/* Places List */
.places-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.places-list li {
  padding: 9px 8px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.places-list li:hover {
  background-color: #fafafa;
}

.place-name {
  font-weight: 600;
  color: #222;
}

.place-tag {
  font-size: 10.5px;
  color: #777;
  font-family: 'Geist Mono', monospace;
}

/* Land Borders */
.neighbors-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.neighbor-pill {
  font-size: 11.5px;
  padding: 4px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  background-color: #fff;
  color: #333;
  transition: all 0.15s ease;
}

.neighbor-pill:hover {
  background-color: #f2f2f2;
  border-color: #ccc;
}

/* Editorial Info Box */
#info-section {
  margin-top: 20px;
  padding: 16px;
  background-color: #f9f9f9;
  border-radius: 8px;
  font-size: 13.5px;
  color: #444;
  line-height: 1.6;
}

#info-section h3 {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: #111;
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 20px 15px;
  background-color: #272727;
  text-align: center;
  color: white;
  font-size: 13px;
}

.footer-content p {
  margin: 5px 0;
}

.sister-link {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

.sister-link a {
  color: #aaa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sister-link a:hover {
  color: #fff;
}
