.geo-explorer {
  margin: 22px 0 18px;
  padding: 20px;
  border: 1px solid #7696ad55;
  border-radius: 16px;
  background: var(--panel, #132433);
  text-align: left;
}
body.light .geo-explorer {
  background: #fff;
}
.geo-explorer h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.geo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 3px;
}
.geo-tabs button {
  min-height: 44px;
  padding: 9px 13px;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.35;
  border: 1px solid #7696ad66;
  border-radius: 9px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.geo-tabs button[aria-selected="true"] {
  background: #096783;
  color: #fff;
  border-color: #096783;
}
.geo-tabs button:hover {
  border-color: #27a2c1;
}
.geo-tabs button:focus-visible,
.geo-explorer input:focus-visible {
  outline: 3px solid #27a2c1;
  outline-offset: 3px;
}
.geo-countries {
  margin-top: 16px;
}
.geo-countries label {
  display: block;
  margin-bottom: 7px;
  font-weight: 650;
}
.geo-countries input {
  width: min(100%, 420px);
  min-height: 44px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border: 1px solid #7696ad88;
  border-radius: 8px;
  font: inherit;
  background: transparent;
  color: inherit;
}
.geo-countries .geo-tabs {
  max-height: 172px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.geo-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #7696ad44;
  margin-top: 16px;
}
.geo-selection-bar button,
.directory-more {
  min-height: 44px;
  padding: 9px 13px;
  font: inherit;
  border-radius: 8px;
  border: 1px solid #7696ad88;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.geo-selection-bar p {
  margin: 0;
}
.geo-explorer .greece-controls {
  justify-content: flex-start;
  margin-bottom: 0;
}
.geo-explorer .greece-city-search {
  justify-content: flex-start;
  margin: 15px 0 0;
}
.geo-explorer .greece-city-search label {
  width: 100%;
}
.geo-explorer .greece-city-search input {
  flex: 1;
  min-width: 150px;
  max-width: 560px;
}
.directory-panel {
  margin: 20px 0;
}
.directory-panel h2 {
  margin-top: 0;
}
.directory-panel .greece-city-links {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  text-align: left;
}
.directory-panel .greece-city-links a {
  padding: 12px;
  min-height: 44px;
}
.geo-explorer [hidden],
.directory-panel [hidden] {
  display: none !important;
}
.city-facts-note {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.85;
}
.place-background {
  text-align: left;
  line-height: 1.75;
}
@media (max-width: 600px) {
  .geo-explorer {
    padding: 14px;
  }
  .geo-tabs {
    gap: 5px;
  }
  .geo-tabs button {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  #geo-scope-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 9px;
  }
  #geo-scope-tabs button {
    flex: 0 0 auto;
    max-width: 190px;
    white-space: normal;
  }
  .geo-countries .geo-tabs {
    max-height: 158px;
  }
  .geo-selection-bar {
    align-items: flex-start;
  }
  .geo-explorer .greece-controls select {
    max-width: 100%;
    width: 100%;
  }
  .directory-panel .greece-city-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
