:root {
  --atlas-ink: #0f172a;
  --atlas-accent: #e04f2d;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f8fafc;
}

a {
  color: #0f172a;
  text-underline-offset: 3px;
}

a:hover {
  color: #e04f2d;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 50px rgba(15, 23, 42, 0.08);
}

.accent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.toc-card a:hover {
  color: #0f172a;
  text-decoration: underline;
}

.attraction-card img {
  object-fit: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: stretch;
}

.hero-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.hero-map {
  margin-top: auto;
  flex: 1;
  display: flex;
  padding: 0;
}

.hero-map .city-map {
  height: 100%;
  min-height: 260px;
}

.home-map-section .city-map {
  min-height: 360px;
  height: 420px;
}

.home-map-section {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .home-map-section .city-map {
    height: 320px;
  }
}

.toc-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.toc-link:hover {
  text-decoration: underline;
  color: #0f172a;
}

.map-pin {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
  background: #444;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  border: none;
  position: relative;
  cursor: pointer;
}

.map-pin-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 6px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.map-pin.is-open .map-pin-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.home-map-pin {
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  background: #ef4444;
  border: none;
  padding: 0;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  cursor: pointer;
}

.home-map-pin:hover {
  transform: scale(1.15);
  background: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.2);
}

.home-map-pin--inactive {
  background: #9ca3af;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.card-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-link {
  margin-top: auto;
}

.map-popup {
  font-family: inherit;
  color: #0f172a;
}

.map-popup strong {
  display: block;
  font-size: 0.95rem;
}

.map-popup p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #475569;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}

.site-footer {
  margin-top: 4rem;
}

.hero-section {
  position: relative;
  z-index: 5;
}

.hero-section > .absolute {
  pointer-events: none;
}

.hero-image-layer {
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1.5rem;
}

.hero-modal-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.hero-modal-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.hero-modal-card label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-modal-card input[type=\"text\"],
.hero-modal-card input[type=\"url\"] {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}

.hero-modal-card input[type=\"file\"] {
  width: 100%;
}

.hero-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-modal-actions button {
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-modal-actions .secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.hero-modal-actions .primary {
  background: #0f172a;
  color: #fff;
}

.hero-search {
  position: relative;
  z-index: 10;
}

.hero-search-wrapper {
  position: relative;
  z-index: 60;
}

.hero-search-input {
  width: 100%;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  outline: none;
  backdrop-filter: blur(6px);
}

.hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.hero-search-results {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  padding: 0.4rem;
  display: none;
  z-index: 60;
}

.hero-search-results.is-open {
  display: block;
}

.hero-search-divider {
  padding: 0.5rem 0.9rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94a3b8;
  margin: 0.35rem 0;
  border-top: 1px solid #e2e8f0;
}

.hero-search-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-search-item span {
  font-weight: 500;
  color: #64748b;
}

.hero-search-item:hover {
  background: #f1f5f9;
}

.hero-search-item.is-active {
  background: #e2e8f0;
}

.header-search {
  position: relative;
  width: 320px;
  max-width: 45vw;
}

.header-search-input {
  width: 100%;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
}

.header-search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  padding: 0.4rem;
  display: none;
  z-index: 5;
}

.header-search-results.is-open {
  display: block;
}

@media (max-width: 768px) {
  .header-search {
    display: none;
  }
  .header-tagline {
    display: none;
  }
}

.hero-edit-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-edit-button:hover {
  background: rgba(15, 23, 42, 0.75);
}

.hero-admin-controls {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: auto;
}

.hero-admin-controls * {
  pointer-events: auto;
}

.hero-edit-button {
  position: static;
}

.hero-delete-button {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(239, 68, 68, 0.65);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-delete-button:hover {
  background: rgba(239, 68, 68, 0.85);
}

.hero-visibility-button {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-visibility-button:hover {
  background: rgba(15, 23, 42, 0.8);
}

.hero-offset-control {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.9rem;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-offset-control label {
  font-weight: 600;
}

.hero-offset-control input[type="range"] {
  width: 160px;
}

.hero-offset-control button {
  align-self: flex-end;
  background: #fff;
  color: #0f172a;
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-image-preview {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.35);
  padding: 0.4rem;
  max-width: 260px;
  max-height: 180px;
  overflow: auto;
}

.hero-image-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
}

.hero-edit-input {
  display: none;
}

.map-zoom-button {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.map-zoom-button:hover {
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 960px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}


.emoji-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.emoji-chip {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  background: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.section-title {
  margin-bottom: 0.25rem;
}

.city-map {
  width: 100%;
  height: 380px;
}

.city-map-embedded {
  border-radius: 24px;
  overflow: hidden;
  background: #f8fafc;
}

.city-map .maplibregl-canvas {
  outline: none;
}

.city-map-section {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.city-map {
  border: none;
}

.city-card-image {
  position: relative;
  overflow: hidden;
}

.city-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.card-shell:hover .city-card-image img {
  transform: scale(1.04);
}

.city-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.65) 100%);
}

.city-card-title {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.75rem;
  color: #fff;
  opacity: 0.8;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: opacity 1.2s ease;
}

.card-shell:hover .city-card-title {
  opacity: 1;
}

.title-case {
  text-transform: capitalize;
}

.section-copy {
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-copy p {
  margin: 0 0 1rem;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.section-copy h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.section-copy h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.section-with-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 1.5rem;
  align-items: start;
}

.section-with-box .weather-box {
  width: 100%;
}

@media (max-width: 900px) {
  .section-with-box {
    grid-template-columns: 1fr;
  }
}

.nearby-map-shell {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.nearby-map {
  width: 100%;
  height: 100%;
}


.transport-map-shell {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  width: 100%;
  align-self: center;
  justify-self: center;
}

.transport-map {
  width: 100%;
  height: 100%;
}

.transport-map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.transport-map-label {
  white-space: nowrap;
}

.transport-map-hub {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.nearby-map-pin {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #e04f2d;
  box-shadow: 0 0 0 3px rgba(224, 79, 45, 0.2);
  z-index: 2;
  position: relative;
}

.nearby-map-hub {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.nearby-map-label {
  position: absolute;
  top: -6px;
  left: 14px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.weather-box {
  padding: 0.2rem 0 0;
  margin-top: -4px;
}

.weather-box--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
}

.weather-box--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
}

.weather-unit-toggle {
  display: inline-flex;
  gap: 0.4rem;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 0.2rem;
  margin-bottom: 0.5rem;
}

.weather-unit-button {
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  cursor: pointer;
}

.weather-unit-button.is-active {
  background: #0f172a;
  color: #fff;
}

.weather-chart-svg {
  width: 100%;
  height: 180px;
  display: block;
}

.weather-chart-svg text {
  text-anchor: middle;
  font-family: inherit;
}

.weather-chart-svg .weather-label {
  font-size: 11px;
  font-weight: 600;
  fill: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.weather-chart-svg .weather-temp {
  font-size: 12px;
  font-weight: 600;
  fill: #0f172a;
}

.weather-chart-svg .weather-icon {
  color: #64748b;
}

.weather-chart-svg .weather-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

.currency-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.3rem 0;
}

.currency-base {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
}

.currency-item {
  display: grid;
  grid-template-columns: 22px 54px 1fr auto;
  align-items: center;
  column-gap: 0.4rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.currency-flag {
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}

.currency-code {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.currency-value {
  text-align: left;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.safety-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 20px;
  background: #f1f5f9;
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  align-self: center;
  justify-self: center;
}

.safety-score-pill {
  min-width: 68px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.safety-score-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.currency-suffix {
  font-weight: 600;
  color: #0f172a;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.currency-item.is-reversed .currency-suffix {
  opacity: 0.8;
}

@media (max-width: 1100px) {
  .currency-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .currency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-copy ul,
.section-copy ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.section-copy ol {
  list-style: decimal;
}

.section-copy li + li {
  margin-top: 0.5rem;
}

.quick-facts-copy ul {
  margin-left: 1rem;
}

.emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
