/* Full-width dark hero for the globe */
.globe-hero{
  max-width: 1100px;
  margin: 3rem auto 0 auto;
  padding: 2.2rem 2.0rem;

  color: var(--nude);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.45);
  
}


.globe-topbar{
  max-width: 1200px;
  margin: 0 auto 1rem auto;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.globe-title{
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.globe-subtitle{
  margin: .35rem 0 0 0;
  opacity: .85;
  font-size: .95rem;
}

.globe-legend{
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

.chip{
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: .85rem;
}

.dot{
  width: .7rem;
  height: .7rem;
  border-radius: 999px;
  display: inline-block;
}
.dot.visited{ background: #16c7a2; }
.dot.photo{
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(22,199,162,.35);
}

.hint{
  opacity: .7;
  font-size: .85rem;
}

.globe-stage{
  max-width: 1200px;
  margin: 0 auto;
  height: 72vh;
  min-height: 520px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  overflow: hidden;
}

/* Camera markers */
.camera-marker{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  transition: transform .15s ease, background .15s ease;
  pointer-events: auto; 
  user-select: none;
}
.camera-marker:hover{
  transform: translateY(-2px) scale(1.06);
  background: rgba(255,255,255,.14);
}

.camera-marker svg{
  width: 16px;
  height: 16px;
  display: block;
  fill: #ffffff;
  opacity: .95;
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.modal.open{ display: block; }

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}

.modal-card{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(20,24,36,.92);
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  overflow: hidden;
}

.modal-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modal-title{
  font-weight: 600;
  font-size: 1.1rem;
}
.modal-counter{
  opacity: .75;
  font-size: .9rem;
  margin-top: .15rem;
}

.modal-close{
  border: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  padding: .45rem .65rem;
  cursor: pointer;
}

.modal-body{
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
}

.modal-img{
  width: 100%;
  height: min(68vh, 560px);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}

.modal-nav{
  height: 52px;
  width: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.modal-caption{
  padding: 0 1rem 1rem 1rem;
  opacity: .9;
  font-size: .95rem;
}

@media (max-width: 650px){
  .globe-stage{ height: 66vh; min-height: 460px; }
  .modal-body{ grid-template-columns: 44px 1fr 44px; }
  .modal-nav{ height: 44px; width: 44px; font-size: 1.7rem; }
  .camera-marker{ width: 28px; height: 28px; }
}

.visited-panel{
  margin-top: 1.4rem;
  padding: 1.2rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(10,14,24,0.55);
  backdrop-filter: blur(10px);
}

.visited-title{
  margin: 0 0 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.visited-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.country-chip{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}

.country-flag{
  width: 28px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  flex: 0 0 auto;
}

.country-name{
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.1;
}


