html, body { overflow-x: hidden; }
body.style-mapaduse{background:#020518;color:#e0e0e0;}h1,h2,h3,h4,h5,h6{color:#ffffff;}a{color:#2c1a40;}a:hover{color:#dfe8f0;}

/* VC Blocks styling for Mapaduse style */
body.style-mapaduse .mapaduse_textbox,
body.style-mapaduse .mapaduse_text_clickbox {
  background-color: #2c1a40;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.75rem;
}
body.style-mapaduse .mapaduse_headingbox {
  background-color: #ced3db;
  color: #2c1a40;
  padding: 1.5rem;
  border-radius: 1rem;
}

/* Menu graphic background and overlay */
.with-graphic {
  background: url('../images/bg-zodiak.png') center/cover no-repeat;
  position: relative;
  z-index: 1;
}
.with-graphic::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(2,5,24, 0.75);
  z-index: -1;
}
/* Menu items */
.with-graphic .menu {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  list-style: none;
}
.with-graphic .menu li {
  margin: 0 1rem;
}
.with-graphic .menu a {
  color: #ced3db;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}
.with-graphic .menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #dfe8f0;
  transition: width 0.3s ease, left 0.3s ease;
}
.with-graphic .menu a:hover,
.with-graphic .menu .current-menu-item > a {
  color: #ffffff;
}
.with-graphic .menu a:hover::after,
.with-graphic .menu .current-menu-item > a::after {
  width: 80%;
  left: 10%;
}
/* Hamburger button */

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #ced3db;
  position: relative;
  transition: transform 0.3s;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }
/* Mobile menu toggle */
@media (max-width: 768px) {
  
  .with-graphic .menu { display: none; flex-direction: column; }
  .with-graphic.open .menu { display: flex; }
}


header { background: white; box-shadow: 0 6px 20px rgba(0,0,0,0.06); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
nav.main-menu { background: #2c1a40; display: flex; border-radius: 0 0 20px 20px; box-shadow: 0 6px 20px rgba(0,0,0,0.14); margin-left: auto; padding: 0; }
nav.main-menu ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
nav.main-menu ul li a { text-decoration: none; font-weight: 600; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.08); transition: color 0.18s; padding: 0.5rem 0.8rem; border-radius: 10px; display: block; }
nav.main-menu ul li a:hover { color: #e6c16b; background: rgba(230, 193, 107, 0.07); }










@media (max-width: 768px) {
  
  nav.main-menu { display: none; flex-direction: column; gap: 1.3rem; position: absolute; top: 70px; right: 1.2rem; background: #2c1a40; border-radius: 18px; box-shadow: 0 10px 38px rgba(0,0,0,0.33); padding: 2rem 1.4rem; z-index: 1000; min-width: 65vw; opacity: 0; pointer-events: none; transform: translateY(-12px) scale(0.98); transition: all 0.22s cubic-bezier(0.6,0,0.4,1); }
  nav.main-menu.active { display: flex; opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
  nav.main-menu ul { flex-direction: column; gap: 1.3rem; }
  nav.main-menu ul li a { font-size: 1.13em; }
}


header { background: #020518; }
nav.main-menu { background: #2c1a40; display:flex; border-radius:0 0 20px 20px; box-shadow:0 6px 20px rgba(0,0,0,0.14); margin-left:auto; padding:0; }
nav.main-menu ul { display:flex; gap:2rem; list-style:none; margin:0; padding:0; }
nav.main-menu ul li a { text-decoration:none; font-weight:600; color:#ced3db; padding:0.5rem 0.8rem; border-radius:10px; transition:color 0.18s, background 0.18s; display:block; }
nav.main-menu ul li a:hover { color:#dfe8f0; background:rgba(223,232,240,0.07); }


@media (max-width:768px) {
  
  nav.main-menu { display:none; flex-direction:column; gap:1.3rem; position:absolute; top:70px; right:1.2rem; background:#2c1a40; border-radius:18px; box-shadow:0 10px 38px rgba(0,0,0,0.33); padding:2rem 1.4rem; transition:all .22s cubic-bezier(0.6,0,0.4,1); opacity:0; pointer-events:none; transform:translateY(-12px) scale(0.98); }
  nav.main-menu.active { display:flex; opacity:1; pointer-events:auto; transform:translateY(0) scale(1); }
}

/* Adjust logo size */
.site-logo img {
  max-height: 50px;
  width: auto;
}

/* Menu link color */
nav.main-menu ul li a {
  color: #2c1a40 !important;
}
nav.main-menu ul li a:hover {
  color: #dfe8f0 !important;
}

/* Footer background and text color */
footer {
  background-color: #2c1a40;
  color: #e0e0e0;
}
footer p, footer a {
  color: #e0e0e0;
}

/* Menu and footer adjustments for Mapaduse style */
body.style-mapaduse .site-logo img {
  max-height: 50px;
  width: auto;
}

body.style-mapaduse nav.main-menu ul li a {
  color: #2c1a40 !important;
}

body.style-mapaduse nav.main-menu ul li a:hover {
  color: #dfe8f0 !important;
}

body.style-mapaduse footer {
  background-color: #2c1a40;
  color: #e0e0e0;
}

body.style-mapaduse footer p,
body.style-mapaduse footer a {
  color: #e0e0e0;
}


/* Universal logo sizing */
.site-logo img {
  max-height: 50px;
  width: auto;
}

/* Style Mapa duše: menu and footer colors */
body.style-mapaduse nav.main-menu {
  background-color: #2c1a40 !important;
}

body.style-mapaduse nav.main-menu ul li a {
  color: #e0e0e0 !important;
}

body.style-mapaduse nav.main-menu ul li a:hover {
  color: #dfe8f0 !important;
}

body.style-mapaduse footer {
  background-color: #2c1a40 !important;
}

body.style-mapaduse footer,
body.style-mapaduse footer p,
body.style-mapaduse footer a {
  color: #e0e0e0 !important;
}

/* Correction for Mapa duše style: menu and footer background should be #2c1a40 */
body.style-mapaduse nav.main-menu {
  background-color: #2c1a40 !important;
}

body.style-mapaduse footer {
  background-color: #2c1a40 !important;
}

/* Strong override for menu and footer background in Mapa duše style */
body.style-mapaduse nav.main-menu,
body.style-mapaduse footer {
  background-color: #2c1a40 !important;
}

/* Ensure link colors */
body.style-mapaduse nav.main-menu ul li a {
  color: #e0e0e0 !important;
}
body.style-mapaduse nav.main-menu ul li a:hover {
  color: #dfe8f0 !important;
}


/* BEGIN MAPADUSE MENU FOOTER OVERRIDE */
html body.style-mapaduse header nav.main-menu {
    background-color: #2c1a40 !important;
}
html body.style-mapaduse header nav.main-menu ul li a {
    color: #e0e0e0 !important;
}
html body.style-mapaduse header nav.main-menu ul li a:hover {
    color: #dfe8f0 !important;
}
html body.style-mapaduse footer {
    background-color: #2c1a40 !important;
}
html body.style-mapaduse footer p,
html body.style-mapaduse footer a {
    color: #e0e0e0 !important;
}
/* END MAPADUSE MENU FOOTER OVERRIDE */


/* BEGIN MAPADUSE HEADER MENU FOOTER OVERRIDE */
/* Override header, menu, and footer background for Mapaduse style */
body.style-mapaduse header,
body.style-mapaduse nav.main-menu,
body.style-mapaduse footer {
  background-color: #2c1a40 !important;
}
/* Menu link colors */
body.style-mapaduse nav.main-menu ul li a {
  color: #e0e0e0 !important;
}
body.style-mapaduse nav.main-menu ul li a:hover {
  color: #dfe8f0 !important;
}
/* END MAPADUSE HEADER MENU FOOTER OVERRIDE */


/* Additional override: ensure entire footer wrapper is colored */
body.style-mapaduse .site-footer,
body.style-mapaduse .site-footer-wrapper,
body.style-mapaduse footer {
    background-color: #2c1a40 !important;
}

/* If container inside footer has its own background, remove it */
body.style-mapaduse footer .container {
    background-color: transparent !important;
}

/* Ensure full-width footer background */
body.style-mapaduse .site-footer {
  width: 100%;
  background-color: #2c1a40 !important;
}


/* Enlarge footer and center text for Mapaduse style */
body.style-mapaduse .site-footer {
  padding: 2rem 0 !important;
  text-align: center !important;
}

body.style-mapaduse .site-footer p {
  margin: 0;
  line-height: 1.5;
}


/* Typography: Raleway for body, Cinzel for headings and menu */
body {
  font-family: 'Raleway', sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
nav.main-menu ul li a {
  font-family: 'Cormorant Garamond', serif !important;
}


/* Logo offset from edge */
.site-logo {
    padding-left: 1rem;
}


/* Increase padding around the logo */
.site-logo {
    padding: 1.5rem 2rem !important;
}


/* Prevent Gutenberg/Classic WP blocks from overflowing container */
body.style-mapaduse .wp-block,
body.style-mapaduse .wp-block * {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}


/* General padding for all WPBakery columns */
.vc_row .vc_column_container,
.vc_section .vc_column_container {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Override: Mapaduse custom blocks inner padding */
.mapaduse_textbox-inner,
.mapaduse_text_clickbox-inner,
.mapaduse_headingbox-inner {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}


/* Gutenberg paragraphs */
body.style-mapaduse .wp-block-paragraph {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* WPBakery text blocks */
body.style-mapaduse .vc_column_container .wpb_text_column {
  padding-left: 20px !important;
  padding-right: 20px !important;
}


/* VCBakery columns: 1rem padding */
.vc_row .vc_column_container,
.vc_section .vc_column_container {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Preserve 20px padding for text blocks */
/* Gutenberg paragraphs */
body.style-mapaduse .wp-block-paragraph {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* WPBakery text blocks */
body.style-mapaduse .vc_column_container .wpb_text_column {
  padding-left: 20px !important;
  padding-right: 20px !important;
}


/* pod headerem */
  left: 0;
  right: 0;
  background: #2c1a40;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}








/* === Výchozí styl pro mobilní menu (možno přepsat v jiných stylech) === */

.menu-toggle span {
  display: block;
  background: #e6c16b;
  height: 4px;
  width: 32px;
  border-radius: 2px;
  margin: 6px auto;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.2);
  z-index: 999;
}
.menu-overlay.show {
  display: block;
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  .main-navigation.open {
    display: block;
    background: #2e273f;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
  }
  .main-navigation .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .main-navigation .menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
  }
}



/* === Úprava zarovnání a barvy hamburgeru === */
.menu-toggle span {
  background: #ccc; /* neutrální šedá místo žluté */
}

@media (max-width: 768px) {
  .main-navigation.open {
    padding: 20px 30px; /* pravý padding pro vizuální odsazení */
  }
  .main-navigation .menu {
    align-items: flex-end;
    text-align: right;
  }
}



/* === Finální úpravy: pozice hamburgeru + přetečení menu === */


@media (max-width: 768px) {
  .main-navigation.open {
    max-height: 100vh;
    overflow-y: auto;
  }
}



/* === Korekce: menu drží v rámci obrazovky === */
@media (max-width: 768px) {
  .main-navigation.open {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}



/* === Oprava stylu odkazů ve stylu Mapa duše === */
main a {
  color: #ccc;
}

main a:hover {
  color: #fff;
  text-decoration: underline;
}



@media (min-width: 769px) {
  .main-navigation {
    display: none !important;
  }
}



@media (min-width: 769px) {
  
}

/* === Unified hamburger === */

/* Jednotný moderní hamburger */

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  transition: all 0.3s ease;
}

/* === Clean footer + mapaduse hamburger === */
body.style-mapaduse footer,
body.style-mapaduse .site-footer {
  background: #020518;
  color: #fff;
  text-align: center;
  width: 100%;
  padding: 2rem 1rem;
}

body.style-mapaduse footer a {
  color: #fff;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* MAPADUSE MOBILE MENU FIX */
@media (max-width: 768px) {
  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #2c1a40;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }
  .main-navigation.open { left: 0; }
  .menu-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease; z-index: 900;
  }
  .menu-overlay.show { opacity: 1; visibility: visible; }
  .menu-toggle { display: flex !important; }
}
@media (min-width: 769px) {
  .menu-toggle { display: none !important; }
  .main-navigation {
    position: static; width: auto; height: auto;
    display: flex !important; flex-direction: row;
    background: none; overflow: visible;
  }
  .menu-overlay { display: none; }
}
