html, body {
  margin: 0;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

header,
footer {
  flex: 0 0 auto;
  background: #fcfcfd;
  color: #111827;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  gap: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
  min-width: 0;
}

header svg {
  max-width: min(100%, 340px);
  height: auto;
  display: block;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.language-switcher-label {
  white-space: nowrap;
}

.language-select {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  padding: 0.45rem 0.8rem;
  font: inherit;
  min-width: 9rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.language-select:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.ad-banner {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background: #f1f1f1;
  color: #999;
  font-size: 0.85rem;
  overflow: hidden;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
}

.ad-slot {
  display: block;
  width: 100%;
  max-width: 728px;
  height: 90px;
}

main {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
}

#map {
  height: 100%;
  width: 100%;
}

footer {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #2563eb;
}

.footer-link:hover {
  color: #1d4ed8;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.support-link:hover {
  background: #fbbf24;
}

@media (max-width: 700px) {
  header {
    justify-content: center;
    flex-wrap: wrap;
  }

  header svg {
    max-width: 100%;
  }

  .header-controls {
    width: 100%;
    justify-content: center;
  }

  .ad-banner {
    min-height: 80px;
  }

  .ad-slot {
    max-width: 100%;
    height: 80px;
  }
}
