.lang-switch {
  color: #666;
  text-decoration: none;
  font-weight: 500;
}

.lang-switch:hover {
  color: #333;
}

.lang-switch.active {
  background-color: #2d3e50;
  color: white !important;
  font-weight: bold;
}

.language-switcher .lang-switch {
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s;
}

#mapContainer {
  width: 100%;
  height: 400px;
}

/* Fix navbar: logo and language switcher with balanced spacing for static layout */
.rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:first-child {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  min-height: 60px !important;
}

.rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:first-child > * {
  flex-grow: 0 !important;
}

.rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:first-child .rd-navbar-panel {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  flex-grow: 1 !important;
  max-width: 100% !important;
}

.rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:first-child .rd-navbar-panel .rd-navbar-brand {
  flex: 0 0 auto !important;
}

.rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:first-child .rd-navbar-panel .language-switcher {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  min-width: 120px !important;
}

.rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:first-child .rd-navbar-collapse {
  display: none !important;
}

/* Second row: navigation centered */
.rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:nth-child(2) {
  justify-content: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  min-height: 60px !important;
}

/* Ensure navbar is visible on all screen sizes */
.rd-navbar-static.rd-navbar-secondary {
  display: block !important;
}

.rd-navbar-static.rd-navbar-secondary .rd-navbar-inner {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.rd-navbar-static.rd-navbar-secondary .rd-navbar-nav {
  justify-content: center !important;
  width: 100%;
}

/* For fixed layout (mobile) - show language switcher in panel */
.rd-navbar-fixed.rd-navbar-secondary {
  display: block !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-panel {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 60px !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-panel .rd-navbar-brand {
  flex: 0 0 auto !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-panel .language-switcher {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  margin-right: 10px !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-panel .language-switcher .lang-switch {
  color: #fff !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-panel .language-switcher .lang-switch.active {
  background-color: #fff !important;
  color: #2d3e50 !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-nav-wrap {
  display: block !important;
  width: 100% !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 60px !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-nav li {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 100% !important;
  justify-content: center !important;
  padding: 10px 0 !important;
}

.rd-navbar-fixed.rd-navbar-secondary .rd-navbar-nav li a {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
}

@media (max-width: 991px) {
  .rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:first-child {
    justify-content: space-between !important;
  }

  .rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:first-child .rd-navbar-panel {
    justify-content: space-between !important;
  }

  .rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:first-child .rd-navbar-panel .language-switcher {
    margin-left: auto !important;
  }

  .rd-navbar-static.rd-navbar-secondary .rd-navbar-inner:nth-child(2) {
    justify-content: center !important;
  }
}
