:root {
  --bg-color: #fffdf7;
  --text-color: #1a1a1a;
  --primary-color: #d4a017;
  --accent-color: #f5e6b3;
  --card-bg: #ffffff;
  --nav-color: #f2c744;
  --button-hover: #b69000;
  --footer-bg: #333;
  --footer-text: #fff;
}

body.dark-mode {
  --bg-color: #1e1e1e;
  --text-color: #f0f0f0;
  --primary-color: #b49000;
  --accent-color: #2c2c2c;
  --card-bg: #2a2a2a;
  --nav-color: #3f3f3f;
  --button-hover: #cfa700;
  --footer-bg: #111;
  --footer-text: #ccc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

header {
  background: var(--primary-color);
  text-align: center;
  padding: 1rem;
  position: relative;
}

#logoButton {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#logoButton img {
  height: 120px;
  max-width: 100%;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.switch {
  width: 70px;
  height: 34px;
  background: #575757;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  position: relative;
  cursor: pointer;
}

.switch .icon {
  font-size: 16px;
  z-index: 2;
}

.switch .slider {
  position: absolute;
  height: 28px;
  width: 28px;
  top: 3px;
  left: 3px;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1;
}

.switch.dark .slider {
  transform: translateX(36px);
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: var(--button-hover);
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

.highlight-bar {
  background: #fceab7;
  height: 6px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

main {
  flex-grow: 1;
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

main h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

.prodejny-list article {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--accent-color);
}

.prodejny-list p {
  margin: 0.3rem 0;
}

.opening-hours p,
.open,
.closed {
  margin: 0.2rem 0;
  font-weight: 500;
}

.open {
  color: #2e7d32;
}

.closed {
  color: #c62828;
}

a {
  color: var(--primary-color);
  text-decoration: underline;
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.map-container {
  width: 100%;
  max-width: 800px;
  margin: 1rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* Mobilní přizpůsobení */
@media (max-width: 700px) {
  nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  header {
    padding: 1rem;
  }

  .map-container iframe {
    height: 300px;
  }

  main h1 {
    font-size: 1.6rem;
  }

  article h2 {
    font-size: 1.2rem;
  }
}

#logoButton {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}

#logoButton img {
  height: 150px;
  width: auto;
  display: block;
}

/* Pro mobily */
@media (max-width: 700px) {
  #logoButton img {
    height: 100px;
  }
}

.facebook-link img {
  height: 24px;          /* výška ikony */
  width: auto;           /* zachování poměru stran */
  vertical-align: middle; /* vertikální zarovnání s textem */
  transition: opacity 0.3s ease;
}

.facebook-link:hover img {
  opacity: 0.7;          /* efekt při najetí myší */
  cursor: pointer;
}
