/* --- GENERAL & LAYOUT --- */
:root {
  --bg-dark-900: #1a202c;
  --bg-dark-800: #2D3748;
  --bg-dark-700: #4A5568;
  --text-light: #E2E8F0;
  --text-gray: #A0AEC0;
  --accent-blue: #63B3ED;
  --accent-blue-dark: #2C5282;
}

body {
  /* No flex centering, just fill the viewport */
  min-height: 100vh;
  background-color: var(--bg-dark-900);
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  overflow: hidden;
  color: var(--text-light);
  line-height: 1.65;
}

#viewport-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  /* Removed fixed aspect ratio and shadow for fullscreen experience */
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* --- SPLASH SCREEN --- */
.splash-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-title {
  position: absolute;
  top: 9rem; /* Pushed down to avoid logos */
  left: 50%;
  transform: translateX(-50%); /* Only horizontal centering */
  z-index: 30;
  color: white;
  font-size: 1.75rem;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  white-space: normal; /* Allow wrapping on small screens */
  text-align: center;
  width: 90%;
}
@media (min-width: 768px) {
  .splash-title {
    font-size: 2.25rem;
    top: 4.5rem; /* Adjust for larger logos */
    transform: translate(-50%, -50%); /* Restore original centering */
    white-space: nowrap; /* No wrapping on larger screens */
    width: auto;
  }
}

.logo-container {
  position: absolute;
  top: 2rem;
  z-index: 30;
}
.logo-container.top-left { left: 2rem; }
.logo-container.top-right { right: 2rem; }
.logo-container.bottom-left {
  left: 2rem;
  top: auto;
  bottom: 2rem;
}

.logo-img {
  max-width: 150px; /* Mobile */
  height: auto;
  filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.7));
}
@media (min-width: 768px) {
  .logo-img { max-width: 200px; } /* Tablet */
}
@media (min-width: 1024px) {
  .logo-img { max-width: 300px; } /* Desktop */
}

.splash-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
}

.splash-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.plane-container {
  width: 360px;
  height: 360px;
  position: relative;
}

.plane-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(1);
  border: none;
  background: transparent;
  padding: 0;
  animation: pulse-altitude 5s ease-in-out infinite;
}

.plane-button.is-flying-away {
  animation: fly-away 1.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
  pointer-events: none;
}

.airplane-icon {
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

@keyframes pulse-altitude {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes fly-away {
  0% {
    transform: translate(-50%, -50%) scale(1.08); /* Start from pulsing state */
    opacity: 1;
  }
  20% {
    transform: translate(-50%, -48%) scale(1.05); /* Move back (down) slightly */
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -200vh) scale(0.7); /* Fly up and away, shrinking */
    opacity: 0;
  }
}

.splash-text {
  position: absolute;
  bottom: 12rem; /* Pushed up to avoid bottom logos */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 1rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  box-sizing: border-box;
}
.splash-text h1 {
  font-size: 2.5rem; /* Reduced base size for mobile */
  font-weight: bold;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.splash-text p {
  font-size: 1.25rem; /* Reduced base size for mobile */
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  line-height: 1.1;
}
@media (max-width: 480px) {
  .splash-text h1 { font-size: 2rem; }
  .splash-text p { font-size: 1.1rem; }
  .splash-text { bottom: 11rem; }
}

@media (min-width: 768px) {
  .splash-text { bottom: 5vh; } /* Restore original value for larger screens */
  .splash-text h1 { font-size: 4.5rem; margin-bottom: 1rem; line-height: 1; }
  .splash-text p { font-size: 2.25rem; line-height: 1;}
}

/* --- INFO TOOLTIP --- */
.info-tooltip-container {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 30;
}
.info-tooltip-trigger {
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: help;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.info-tooltip-content {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 320px;
  background-color: var(--bg-dark-900);
  color: var(--text-gray);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
  pointer-events: none;
  font-size: 0.8rem;
  line-height: 1.5;
}
.info-tooltip-content p:first-child {
  margin-top: 0;
  font-weight: bold;
  color: var(--text-light);
}
.info-tooltip-content p:last-child {
  margin-bottom: 0;
}
.info-tooltip-container:hover .info-tooltip-content {
  visibility: visible;
  opacity: 1;
  bottom: calc(100% + 15px);
  pointer-events: auto;
}
.info-tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border-width: 7px;
  border-style: solid;
  border-color: var(--bg-dark-900) transparent transparent transparent;
}


/* --- CLOUDS --- */
.cloud-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.background-clouds { z-index: 0; }
.foreground-clouds { z-index: 20; }

.cloud {
  background: var(--cloud-color, #fff);
  position: absolute;
  top: -300px; /* Start above screen */
  animation: animateCloud linear infinite;
  border-radius: 100px;
}

.cloud:after, .cloud:before {
    content: '';
    position: absolute;
    background: var(--cloud-color, #fff);
    z-index: -1;
}

@keyframes animateCloud {
  0% { transform: translateY(0) scale(var(--cloud-scale, 1)); }
  100% { transform: translateY(calc(100vh + 400px)) scale(var(--cloud-scale, 1)); }
}

/* Redesigned Traditional Cloud Shapes using pseudo-elements */
.cloud.shape-1 { width: 200px; height: 60px; }
.cloud.shape-1:before { width: 65px; height: 65px; top: -30px; left: 30px; border-radius: 50%; }
.cloud.shape-1:after { width: 90px; height: 90px; top: -45px; right: 20px; border-radius: 50%; }

.cloud.shape-2 { width: 250px; height: 70px; }
.cloud.shape-2:before { width: 80px; height: 80px; top: -40px; left: 40px; border-radius: 50%; }
.cloud.shape-2:after { width: 110px; height: 110px; top: -55px; right: 30px; border-radius: 50%; }

.cloud.shape-3 { width: 180px; height: 50px; }
.cloud.shape-3:before { width: 60px; height: 60px; top: -25px; left: 25px; border-radius: 50%; }
.cloud.shape-3:after { width: 80px; height: 80px; top: -40px; right: 20px; border-radius: 50%; }

.cloud.shape-4 { width: 300px; height: 80px; }
.cloud.shape-4:before { width: 90px; height: 90px; top: -45px; left: 50px; border-radius: 50%; }
.cloud.shape-4:after { width: 120px; height: 120px; top: -60px; right: 40px; border-radius: 50%; }

.cloud.shape-5 { width: 220px; height: 65px; }
.cloud.shape-5:before { width: 70px; height: 70px; top: -35px; left: 35px; border-radius: 50%; }
.cloud.shape-5:after { width: 100px; height: 100px; top: -50px; right: 25px; border-radius: 50%; }

.cloud.shape-6 { width: 280px; height: 75px; }
.cloud.shape-6:before { width: 85px; height: 85px; top: -42px; left: 45px; border-radius: 50%; }
.cloud.shape-6:after { width: 115px; height: 115px; top: -58px; right: 35px; border-radius: 50%; }

.cloud.shape-7 { width: 160px; height: 45px; }
.cloud.shape-7:before { width: 55px; height: 55px; top: -22px; left: 20px; border-radius: 50%; }
.cloud.shape-7:after { width: 75px; height: 75px; top: -38px; right: 15px; border-radius: 50%; }

.cloud.shape-8 { width: 320px; height: 85px; }
.cloud.shape-8:before { width: 95px; height: 95px; top: -48px; left: 55px; border-radius: 50%; }
.cloud.shape-8:after { width: 130px; height: 130px; top: -65px; right: 45px; border-radius: 50%; }

.cloud.shape-9 { width: 190px; height: 55px; }
.cloud.shape-9:before { width: 62px; height: 62px; top: -28px; left: 28px; border-radius: 50%; }
.cloud.shape-9:after { width: 85px; height: 85px; top: -42px; right: 22px; border-radius: 50%; }

.cloud.shape-10 { width: 260px; height: 72px; }
.cloud.shape-10:before { width: 82px; height: 82px; top: -41px; left: 42px; border-radius: 50%; }
.cloud.shape-10:after { width: 112px; height: 112px; top: -56px; right: 32px; border-radius: 50%; }

.cloud.shape-11 { width: 210px; height: 62px; }
.cloud.shape-11:before { width: 68px; height: 68px; top: -34px; left: 32px; border-radius: 50%; }
.cloud.shape-11:after { width: 95px; height: 95px; top: -48px; right: 28px; border-radius: 50%; }

.cloud.shape-12 { width: 240px; height: 68px; }
.cloud.shape-12:before { width: 78px; height: 78px; top: -39px; left: 38px; border-radius: 50%; }
.cloud.shape-12:after { width: 105px; height: 105px; top: -52px; right: 28px; border-radius: 50%; }

.cloud.shape-13 { width: 270px; height: 78px; }
.cloud.shape-13:before { width: 88px; height: 88px; top: -44px; left: 48px; border-radius: 50%; }
.cloud.shape-13:after { width: 118px; height: 118px; top: -59px; right: 38px; border-radius: 50%; }

.cloud.shape-14 { width: 170px; height: 48px; }
.cloud.shape-14:before { width: 58px; height: 58px; top: -24px; left: 22px; border-radius: 50%; }
.cloud.shape-14:after { width: 78px; height: 78px; top: -39px; right: 18px; border-radius: 50%; }

.cloud.shape-15 { width: 310px; height: 82px; }
.cloud.shape-15:before { width: 92px; height: 92px; top: -46px; left: 52px; border-radius: 50%; }
.cloud.shape-15:after { width: 125px; height: 125px; top: -62px; right: 42px; border-radius: 50%; }

.cloud.shape-16 { width: 230px; height: 66px; }
.cloud.shape-16:before { width: 72px; height: 72px; top: -36px; left: 36px; border-radius: 50%; }
.cloud.shape-16:after { width: 102px; height: 102px; top: -51px; right: 26px; border-radius: 50%; }

.cloud.shape-17 { width: 290px; height: 76px; }
.cloud.shape-17:before { width: 86px; height: 86px; top: -43px; left: 46px; border-radius: 50%; }
.cloud.shape-17:after { width: 116px; height: 116px; top: -58px; right: 36px; border-radius: 50%; }

.cloud.shape-18 { width: 150px; height: 42px; }
.cloud.shape-18:before { width: 52px; height: 52px; top: -21px; left: 18px; border-radius: 50%; }
.cloud.shape-18:after { width: 72px; height: 72px; top: -36px; right: 12px; border-radius: 50%; }

.cloud.shape-19 { width: 330px; height: 88px; }
.cloud.shape-19:before { width: 98px; height: 98px; top: -49px; left: 58px; border-radius: 50%; }
.cloud.shape-19:after { width: 135px; height: 135px; top: -68px; right: 48px; border-radius: 50%; }

.cloud.shape-20 { width: 205px; height: 61px; }
.cloud.shape-20:before { width: 66px; height: 66px; top: -31px; left: 31px; border-radius: 50%; }
.cloud.shape-20:after { width: 91px; height: 91px; top: -46px; right: 21px; border-radius: 50%; }

.cloud.shape-21 { width: 255px; height: 71px; }
.cloud.shape-21:before { width: 81px; height: 81px; top: -41px; left: 41px; border-radius: 50%; }
.cloud.shape-21:after { width: 111px; height: 111px; top: -56px; right: 31px; border-radius: 50%; }

.cloud.shape-22 { width: 185px; height: 51px; }
.cloud.shape-22:before { width: 61px; height: 61px; top: -26px; left: 26px; border-radius: 50%; }
.cloud.shape-22:after { width: 81px; height: 81px; top: -41px; right: 21px; border-radius: 50%; }

.cloud.shape-23 { width: 305px; height: 81px; }
.cloud.shape-23:before { width: 91px; height: 91px; top: -46px; left: 51px; border-radius: 50%; }
.cloud.shape-23:after { width: 121px; height: 121px; top: -61px; right: 41px; border-radius: 50%; }

.cloud.shape-24 { width: 225px; height: 66px; }
.cloud.shape-24:before { width: 71px; height: 71px; top: -36px; left: 36px; border-radius: 50%; }
.cloud.shape-24:after { width: 101px; height: 101px; top: -51px; right: 26px; border-radius: 50%; }

.cloud.shape-25 { width: 285px; height: 76px; }
.cloud.shape-25:before { width: 86px; height: 86px; top: -43px; left: 46px; border-radius: 50%; }
.cloud.shape-25:after { width: 116px; height: 116px; top: -58px; right: 36px; border-radius: 50%; }

.cloud.shape-26 { width: 165px; height: 46px; }
.cloud.shape-26:before { width: 56px; height: 56px; top: -23px; left: 21px; border-radius: 50%; }
.cloud.shape-26:after { width: 76px; height: 76px; top: -38px; right: 16px; border-radius: 50%; }

.cloud.shape-27 { width: 325px; height: 86px; }
.cloud.shape-27:before { width: 96px; height: 96px; top: -48px; left: 56px; border-radius: 50%; }
.cloud.shape-27:after { width: 131px; height: 131px; top: -66px; right: 46px; border-radius: 50%; }

.cloud.shape-28 { width: 195px; height: 56px; }
.cloud.shape-28:before { width: 63px; height: 63px; top: -29px; left: 29px; border-radius: 50%; }
.cloud.shape-28:after { width: 86px; height: 86px; top: -43px; right: 23px; border-radius: 50%; }

.cloud.shape-29 { width: 265px; height: 73px; }
.cloud.shape-29:before { width: 83px; height: 83px; top: -42px; left: 43px; border-radius: 50%; }
.cloud.shape-29:after { width: 113px; height: 113px; top: -57px; right: 33px; border-radius: 50%; }

.cloud.shape-30 { width: 215px; height: 63px; }
.cloud.shape-30:before { width: 69px; height: 69px; top: -35px; left: 33px; border-radius: 50%; }
.cloud.shape-30:after { width: 96px; height: 96px; top: -49px; right: 29px; border-radius: 50%; }

.cloud.shape-31 { width: 245px; height: 69px; }
.cloud.shape-31:before { width: 79px; height: 79px; top: -40px; left: 39px; border-radius: 50%; }
.cloud.shape-31:after { width: 106px; height: 106px; top: -53px; right: 29px; border-radius: 50%; }

.cloud.shape-32 { width: 275px; height: 79px; }
.cloud.shape-32:before { width: 89px; height: 89px; top: -45px; left: 49px; border-radius: 50%; }
.cloud.shape-32:after { width: 119px; height: 119px; top: -60px; right: 39px; border-radius: 50%; }

.cloud.shape-33 { width: 175px; height: 49px; }
.cloud.shape-33:before { width: 59px; height: 59px; top: -25px; left: 23px; border-radius: 50%; }
.cloud.shape-33:after { width: 79px; height: 79px; top: -40px; right: 19px; border-radius: 50%; }

.cloud.shape-34 { width: 315px; height: 83px; }
.cloud.shape-34:before { width: 93px; height: 93px; top: -47px; left: 53px; border-radius: 50%; }
.cloud.shape-34:after { width: 126px; height: 126px; top: -63px; right: 43px; border-radius: 50%; }

.cloud.shape-35 { width: 235px; height: 67px; }
.cloud.shape-35:before { width: 73px; height: 73px; top: -37px; left: 37px; border-radius: 50%; }
.cloud.shape-35:after { width: 103px; height: 103px; top: -52px; right: 27px; border-radius: 50%; }

.cloud.shape-36 { width: 295px; height: 77px; }
.cloud.shape-36:before { width: 87px; height: 87px; top: -44px; left: 47px; border-radius: 50%; }
.cloud.shape-36:after { width: 117px; height: 117px; top: -59px; right: 37px; border-radius: 50%; }

.cloud.shape-37 { width: 155px; height: 43px; }
.cloud.shape-37:before { width: 53px; height: 53px; top: -22px; left: 19px; border-radius: 50%; }
.cloud.shape-37:after { width: 73px; height: 73px; top: -37px; right: 13px; border-radius: 50%; }

.cloud.shape-38 { width: 335px; height: 89px; }
.cloud.shape-38:before { width: 99px; height: 99px; top: -50px; left: 59px; border-radius: 50%; }
.cloud.shape-38:after { width: 136px; height: 136px; top: -69px; right: 49px; border-radius: 50%; }

.cloud.shape-39 { width: 208px; height: 64px; }
.cloud.shape-39:before { width: 67px; height: 67px; top: -32px; left: 32px; border-radius: 50%; }
.cloud.shape-39:after { width: 92px; height: 92px; top: -47px; right: 22px; border-radius: 50%; }

.cloud.shape-40 { width: 258px; height: 74px; }
.cloud.shape-40:before { width: 84px; height: 84px; top: -42px; left: 42px; border-radius: 50%; }
.cloud.shape-40:after { width: 114px; height: 114px; top: -57px; right: 32px; border-radius: 50%; }

/* --- MAP VIEW & LEAFLET --- */
.map-view {
  width: 100%;
  height: 100%;
}

#map-container {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark-800);
}

.leaflet-control-attribution, .leaflet-control-attribution a {
  color: #cbd5e0 !important;
  text-shadow: 1px 1px 2px #000;
}
.dark-mode-tiles {
  filter: grayscale(1) invert(1) brightness(0.8) contrast(1.2);
}
.leaflet-bar a.leaflet-control-darkmode,
.leaflet-bar a.leaflet-control-mute {
  display: flex;
  align-items: center;
  justify-content: center;
}
.leaflet-control-darkmode svg,
.leaflet-control-mute svg {
  width: 18px;
  height: 18px;
}
.city-pin-container {
  cursor: pointer;
  width: 32px;
  height: 40px;
}
.city-pin-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-inactive-pin 4s ease-in-out infinite;
}
.city-pin-container:hover .city-pin-svg {
  transform: scale(1.15);
  animation-play-state: paused;
}
.city-pin-container.current .city-pin-svg {
  animation: pulse-pin 2s infinite;
}
.city-pin-label {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background-color: var(--bg-dark-800);
  color: white;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.city-pin-container:hover .city-pin-label {
  opacity: 1;
  bottom: 120%;
}
@keyframes pulse-pin {
  0%, 100% { transform: scale(1.0); }
  50% { transform: scale(1.2); }
}
@keyframes pulse-inactive-pin {
  0%, 100% { transform: scale(1.0); }
  50% { transform: scale(1.12); }
}

.airplane-marker svg {
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
  transform: scale(1.5);
}


/* --- INFO POPUP --- */
.popup-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
}

.popup-content {
  position: relative;
  background-color: var(--bg-dark-800);
  color: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scale-in 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
@media (min-width: 768px) {
  .popup-content { flex-direction: row; }
}

@keyframes scale-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  background-color: var(--bg-dark-900);
  border-radius: 50%; /* Perfect circle */
  padding: 0;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  z-index: 30;
}
.popup-close-button:hover {
  color: white;
  background-color: var(--bg-dark-700);
}
.close-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.popup-column {
  width: 100%;
  height: 33.33%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark-800);
}
@media (min-width: 768px) {
  .popup-column {
      width: 33.33%;
      height: 100%;
      border-right: 1px solid var(--bg-dark-700);
  }
  .popup-column:last-child {
      border-right: none;
  }
}

.popup-column.city-info {
  background-color: var(--bg-dark-900);
}

.popup-city-flag {
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  background-color: var(--bg-dark-700);
  overflow: hidden;
}
.popup-city-flag .fi {
  width: 100%;
  height: 100%;
  display: block;
  background-size: cover;
}

.popup-scroll-content {
  padding: 0.75rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}
.popup-scroll-content::-webkit-scrollbar { width: 8px; }
.popup-scroll-content::-webkit-scrollbar-track { background: var(--bg-dark-800); }
.popup-scroll-content::-webkit-scrollbar-thumb { background: var(--bg-dark-700); border-radius: 4px; }
.popup-scroll-content::-webkit-scrollbar-thumb:hover { background: #718096; }

/* Style for the city name in the first column */
.popup-scroll-content h2 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}
/* Style for partner and project titles in the second and third column */
.popup-column > h2 {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1.5rem 1.5rem 0.75rem;
  flex-shrink: 0;
}
@media (max-width: 767px) {
    .popup-column > h2 {
        padding-bottom: 1rem;
    }
}

.popup-column p {
  color: var(--text-gray);
  margin-bottom: 0.875rem;
}
#popup-city-description {
    color: var(--text-light);
    line-height: 1.7;
}

.partner-card {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
}
.partner-card:last-child {
  margin-bottom: 0;
}
.partner-card:hover {
  background-color: rgba(74, 85, 104, 0.5);
}
.partner-card.selected {
  background-color: var(--accent-blue-dark);
}
.partner-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin: 0 0 0.5rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: flex-end;
}
.social-link {
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}
.social-link:hover {
  color: var(--accent-blue);
}
.social-link:hover span {
  text-decoration: underline;
}
.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
}
.social-link span {
  font-size: 0.875rem;
}

#popup-partner-content p {
    line-height: 1.7;
}
#popup-partner-content .social-links {
    margin-top: 1.25rem;
}

.project-accordion {
  overflow: hidden;
  margin-bottom: 0;
}
.project-toggle {
  width: 100%;
  text-align: left;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark-700);
  border: none;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.project-accordion:first-child .project-toggle {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.project-accordion:last-child .project-toggle {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.project-accordion:last-child .project-toggle[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.project-toggle:hover {
  background-color: #5A67D830;
}
.project-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
}
.project-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.project-details {
  background-color: var(--bg-dark-800);
  color: var(--text-gray);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  line-height: 1.7;
}
.project-accordion:last-child .project-details.open {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.project-details.open {
  max-height: 500px; /* Or a sufficiently large value */
  padding: 1rem;
}
.project-details p {
  margin-bottom: 1rem;
}
.project-learn-more {
  color: var(--accent-blue);
  text-decoration: none;
  display: block;
  text-align: right;
}
.project-learn-more:hover {
  text-decoration: underline;
}

.project-awards-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.project-award-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.project-award-link.award-good-practice {
  background-color: rgba(46, 125, 50, 0.15);
  border-color: rgba(102, 187, 106, 0.4);
  color: #81C784;
}

.project-award-link.award-good-practice:hover {
  background-color: rgba(46, 125, 50, 0.3);
  color: #A5D6A7;
}

.project-award-link.award-teaching {
  background-color: rgba(108, 133, 209, 0.15);
  border-color: rgba(108, 133, 209, 0.4);
  color: #8c9eff;
}

.project-award-link.award-teaching:hover {
  background-color: rgba(108, 133, 209, 0.3);
  color: #b3baff;
}

.award-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.single-project h4 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .popup-column.city-info {
    display: none;
  }
  .popup-column.partner-info,
  .popup-column.project-info {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .popup-column.city-info {
    display: none;
  }
  .popup-column.partner-info,
  .popup-column.project-info {
    height: 50%;
  }
}