#globe {
  width: 100%;
  height: calc(100vh - 60px);
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: auto;
  background: transparent;
  overflow: hidden;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.globe-tooltip-custom {
  pointer-events: auto;
  display: none;
}

.globe-tooltip-custom .label-box {
  background: linear-gradient(180deg, rgba(10,10,20,0.92), rgba(20,20,30,0.78));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  color: #fff;
  font-size: 13px;
  min-width: 160px;
  max-width: 320px;
}

.globe-tooltip-custom .label-city {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #f6f9ff;
}

.globe-tooltip-custom .label-country {
  font-weight: 500;
  font-size: 13px;
  color: #dfe9ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.globe-tooltip-custom .label-btn {
  background: linear-gradient(180deg, #3ba0ff, #0077ee);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,119,238,0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.globe-tooltip-custom .label-btn:active { transform: translateY(1px); }

#weather-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}

#weather-popup-card {
  background: linear-gradient(180deg, rgba(12,12,18,0.96), rgba(22,22,28,0.94));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px;
  min-width: 320px;
  max-width: 720px;
  width: min(86vw,720px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.6);
  position: relative;
  color: #e6eefc;
}

#weather-popup-card {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8,10,16,0.98), rgba(18,22,28,0.96));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.02);
}

#weather-popup-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(21,80,255,0.06), rgba(0,191,255,0.03));
  z-index: -1;
}

#weather-popup-content {
   margin-top: 8px; 
  }
#weather-popup-content .weather-popup-inner { 
  padding: 6px 2px; 
}
.weather-popup-inner h3 { 
  margin:0 0 6px 0; 
  font-size:16px; 
}
.weather-popup-inner h3 { 
  font-size: 18px; 
  letter-spacing:0.01em; 
}
.weather-popup-inner p { 
  margin: 6px 0; 
  color:#d8e8ff; 
}
.weather-popup-inner p, .weather-popup-inner li { 
  font-size: 13px; 
}
.weather-popup-inner ul { 
  margin:8px 0 0 18px; 
  color:#cddfff; 
}

.weather-popup-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.weather-popup-inner h3,
.weather-popup-inner h4 {
    margin: 1rem 0;
    color: #f8fbff;
}

.weather-popup-inner p {
    margin: 0.8rem 0;
}

.weather-popup-inner ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.weather-popup-inner li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.weather-popup-inner li:last-child {
    border-bottom: none;
}

.enhanced-description {
  padding: 12px;
  margin: 8px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: #e6f3ff;
  line-height: 1.5;
  font-size: 14px;
}

.enhanced-description {
  margin: 1.5rem auto;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(59,160,255,0.1), rgba(0,119,238,0.05));
  border-radius: 8px;
  color: #b3d9ff;
  font-style: italic;
  max-width: 90%;
  line-height: 1.6;
}

.rotate-switch-wrap {
  position: fixed;
  top: 100px;
  right: 80px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.rotate-switch-wrap input[type="checkbox"] {
  width: 44px;
  height: 24px;
  appearance: none;
  background: linear-gradient(180deg,#2b2f38,#1b1e24);
  border-radius: 999px;
  position: relative;
  outline: none;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}
.rotate-switch-wrap input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease, background 0.18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.rotate-switch-wrap input[type="checkbox"]:checked {
  background: linear-gradient(180deg,#3ba0ff,#0077ee);
}
.rotate-switch-wrap input[type="checkbox"]:checked::after { transform: translateX(20px); background:#fff; }
@media (max-width:520px) {
  .rotate-switch-wrap { 
    top: auto;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.4);
    padding: 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
  }
  #weather-popup-card { 
    width: 92vw;
    padding: 16px;
    margin: 16px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .globe-tooltip-custom .label-box {
    min-width: 200px;
  }
  .globe-tooltip-custom .label-btn {
    padding: 8px 16px;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

.globe-tooltip-custom .label-btn { cursor: pointer; }
