/* Základ */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: #000;
  text-align: center;
  background: url('/images/3.jpg') center top repeat #ccc;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a img {
  outline: none;
  border: none;
}

.clear {
  clear: both;
}

/* Stránka: maximálně 1200 px */
#wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  background: url('/images/5.jpg') bottom center no-repeat #f4f1e8;
  background-size: 100% auto;
}

/* Hlavička */
#region-header {
  position: relative;
  overflow: hidden;
  background: url('/images/4.jpg') center top no-repeat;
  background-size: 100% auto;
}

#site-logo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 998 / 268;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

#site-logo a {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#site-logo span,
#site-logo a span {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 998 / 317;
  background: url('/images/6.png?v=20261011f') center top no-repeat;
  background-size: 100% auto;
  pointer-events: none;
}

#site-logo a {
  cursor: pointer;
}

/* Jazyky */
#language {
  position: absolute;
  top: 24px;
  right: 30px;
  z-index: 20;
  visibility: visible;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  font: 14px Arial, Helvetica, sans-serif;
}

#language a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

#language a:visited,
#language a:hover,
#language a:focus,
#language a.is-active {
  color: #fff;
}

#language a:hover,
#language a:focus-visible {
  background: #624237;
}

#language a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#language a.is-active {
  background: #8b2f22;
  border-bottom-color: #8b2f22;
  border-radius: 3px;
}

#language img,
#language .flag-pl {
  display: inline-block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  box-sizing: border-box;
  border: 1px solid #999;
}

#language .flag-pl {
  background: linear-gradient(
    to bottom,
    #fff 0%,
    #fff 50%,
    #dc143c 50%,
    #dc143c 100%
  );
}

/* Horní a dolní menu */
#menu-primary-wrapper,
#menu-secondary-wrapper {
  position: static;
  padding: 0 30px;
}

#menu-secondary-wrapper {
  padding-top: 5px;
}

#menu-primary,
#menu-secondary {
  padding: 2px 0;
  text-align: center;
  color: #000;
  font: 15px Arial, Helvetica, sans-serif;
  text-transform: none;
  border-top: 2px solid #624237;
}

#menu-primary {
  border-bottom: 2px solid #624237;
}

#menu-primary .menu,
#menu-secondary .menu {
  padding: 5px 0;
  border-top: 1px solid #624237;
}

#menu-primary .menu {
  border-bottom: 1px solid #624237;
}

#menu-primary span,
#menu-secondary span {
  margin: 0 9px;
}

#menu-primary a,
#menu-secondary a {
  display: inline-block;
  padding: 5px 0 4px;
  color: #000;
  white-space: nowrap;
  line-height: 1.3;
  border-bottom: 3px solid transparent;
}

#menu-primary a.is-active,
#menu-secondary a.is-active {
  color: #8b2f22;
  border-bottom-color: #8b2f22;
  text-decoration: none;
}

/* Obsah */
#region-center {
  padding: 0 30px;
}

#breadcrumbs {
  display: none;
}

.content {
  padding: 5px 0;
  font-size: 17px;
  overflow-wrap: break-word;
}

.content h2 {
  color: #624237;
  border-bottom: 3px double #624237;
  padding-bottom: 3px;
  margin-bottom: 12px;
}

.content h3 {
  margin-bottom: 8px;
}

.content p {
  margin-bottom: 10px;
  text-align: left;
  line-height: 1.5;
}

.content a {
  color: #000;
  text-decoration: underline;
}

.content img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px solid #624237;
  padding: 0;
}

/* Dva sloupce na úvodní stránce */
#region-left,
#region-right {
  width: calc(50% - 15px);
  box-sizing: border-box;
}

#region-left {
  float: left;
}

#region-right {
  float: right;
}

/* Titulní fotografie */
#motiv {
  float: none;
  width: 100%;
}

#motiv img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px solid #624237;
}

/* Aktuality pod titulní fotografií */
#aktuality {
  position: relative;
  float: none;
  width: 100%;
  padding-top: 0;
  margin: 20px 0;
}

#aktuality h2 {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
}

#aktuality img {
  max-width: 100%;
  height: auto;
  border: 1px solid #624237;
  padding: 0;
  margin: 0;
}

/* Fotografie vedle článků */
.sloupec-fotky {
  float: right;
  padding-left: 30px;
}

.sloupec-fotky a {
  display: block;
  margin-bottom: 10px;
  background: #fff;
}

/* Fotografie na úvodní stránce */
.pruh-fotky {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding-top: 30px;
}

.pruh-fotky a,
.pruh-fotky .image-1 {
  margin-left: 0;
  max-width: 100%;
}

.pruh-fotky .clear {
  display: none;
}

.news-posted {
  font-size: 14px;
  font-weight: bold;
}

/* Virtuální prohlídka */
.virtual-tour {
  line-height: 1.6;
}

.content .virtual-tour p {
  display: flow-root;
  overflow: visible;
  margin: 0 0 20px;
  text-align: left;
  text-indent: 1.5em;
  line-height: 1.6;
}

.content .virtual-tour img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #624237;
}

.virtual-tour .tour-photo {
  float: right;
  width: 160px;
  margin: 2px 0 12px 22px;
}

.virtual-tour .tour-photo img {
  display: block;
  width: 100%;
}

.virtual-tour .tour-plan {
  float: right;
  width: 163px;
  margin: 2px 0 16px 22px;
  text-align: center;
}

.virtual-tour .tour-plan a {
  display: block;
}

.virtual-tour .tour-plan img {
  display: block;
  width: 100%;
}

.virtual-tour .tour-caption {
  display: block;
  margin-top: 7px;
  color: #624237;
  font-size: 13px;
  line-height: 1.4;
}

.virtual-tour .tour-photo,
.virtual-tour .tour-plan,
.virtual-tour .tour-caption {
  text-indent: 0;
}

/* Patička */
#region-footer {
  clear: both;
  height: auto;
  overflow: visible;
  padding: 20px 0 24px;
}

#copy {
  text-align: center;
  margin-top: 20px;
  padding: 0 30px;
  font-size: 13px;
  line-height: 1.6;
}

#copy a {
  color: #000;
}

/* Tablety a mobily */
@media screen and (max-width: 900px) {

  #region-header {
    padding-top: 48px;
    background-position: center 48px;
  }

  #language {
    top: 8px;
    right: 12px;
    padding: 0;
    gap: 8px;
  }

  #language a {
    gap: 4px;
    font-size: 14px;
  }

  #site-logo {
    aspect-ratio: 998 / 317;
  }

  #menu-primary-wrapper,
  #menu-secondary-wrapper {
    padding: 0 12px;
  }

  #menu-primary .menu,
  #menu-secondary .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 12px;
    padding: 8px 0;
  }

  #menu-primary .menu > span,
  #menu-secondary .menu > span {
    display: none;
  }

  #menu-primary a,
  #menu-secondary a {
    padding: 8px 2px 5px;
  }

  #region-center {
    padding: 16px;
  }

  #region-left,
  #region-right {
    float: none;
    width: 100%;
    margin-bottom: 24px;
  }

  .sloupec-fotky {
    float: none;
    padding-left: 0;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .sloupec-fotky a {
    max-width: 100%;
    margin-bottom: 0;
  }

  .content p {
    line-height: 1.65;
  }

  #copy {
    padding: 0 16px;
  }
}

/* Užší telefony */
@media screen and (max-width: 480px) {

  #region-center {
    padding: 12px;
  }

  .virtual-tour .tour-photo,
  .virtual-tour .tour-plan {
    float: none;
    display: block;
    margin: 10px auto 16px;
    max-width: 100%;
  }

  .sloupec-fotky a {
    flex: 0 1 calc(50% - 5px);
  }

  .sloupec-fotky img {
    display: block;
    width: 100%;
  }
}
