html, body {
  height: 100%;
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
}

header {
  background: #fdd835;
  color: #212121;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  height: 48px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a, select, button {
  text-decoration: none;
  color: #212121;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  outline: none;
}

nav a:hover, select:hover {
  opacity: 0.7;
}

.generate-btn {
  background: #212121;
  color: #fdd835;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.generate-btn:hover {
  background: #333;
  transform: scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger div {
  width: 24px;
  height: 3px;
  background: #212121;
  border-radius: 2px;
}

#map {
  flex: 1;
  width: 100%;
  z-index: 1;
}

#bar-list {
  position: absolute;
  top: 60px;
  right: 20px;
  background: rgba(33,33,33,0.9);
  color: #fdd835;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  max-width: 220px;
  display: none;
  z-index: 1500;
}

#bar-list h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid #fdd835;
  padding-bottom: 4px;
  text-align: center;
}

footer {
  background: #fdd835;
  color: #212121;
  text-align: center;
  padding: 6px;
  font-size: 13px;
  height: 32px;
  line-height: 20px;
  box-shadow: 0 -1px 4px rgba(0,0,0,0.3);
}

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(253, 216, 53, 0.9);
  color: #212121;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.overlay p {
  max-width: 600px;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
}

.overlay button.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #212121;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: bold;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: 100%;
}

input, textarea {
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #212121;
}

textarea {
  min-height: 100px;
  resize: none;
}

button.submit-btn {
  background: #212121;
  color: #fdd835;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.2s ease;
}

/* --- MOBILNÉZET --- */
@media (max-width: 768px) {
  header {
    justify-content: flex-end;
    z-index: 2000; /* header mindig a barlista fölött */
  }

  .lang-switch {
    display: flex;
    align-items: center;
    margin-right: 8px;
    order: 1;
    z-index: 2100; /* nyelvválasztó mindig a hamburger mellett */
  }

  nav {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fdd835;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 2200; /* nav mindig a barlista fölött */
  }

  nav.show {
    display: flex;
  }

  /* Csak Rólunk és Kapcsolat */
  nav a {
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
  }

  nav .generate-btn {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: 8px;
    z-index: 2300; /* hamburger ikon mindig legfelül */
  }

  #bar-list {
    z-index: 1500; /* barlista a hamburger és nav mögött */
  }

  .mobile-generate {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1600;
    background: #212121;
    color: #fdd835;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  }
}

/* --- DESKTOP --- */
@media (min-width: 769px) {
  .mobile-generate {
    display: none;
  }

  nav {
    display: flex;
  }

  .lang-switch {
    order: 0;
  }
}
