:root {
  --main-color: #815a23;
}

a {
  outline: none; /* zruší rámik pri kliknutí */
}

.icon-phone {
  color: var(--main-color);
  width: 22px;
}

.grecaptcha-badge {
  visibility: hidden;
}

.form-select {
  background-color: #f7f7f7 !important;
}

#novinky a {
  color: var(--main-color) !important;
}

#filt {
  margin-top: 20px;
  width: 100%
}

#comment-form label {
  color: var(--main-color);
}

#hore {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999 !important
}

.up {
  cursor: pointer
}

.scroll-adjust {
  padding-top: 75px;
  margin-top: -75px !important;
}

nav {
  border-bottom: 1px solid var(--main-color);
}

.nav-item img:hover {
  opacity: .9;
  cursor: pointer;
}

.nav-item img {
  opacity: .5;
  transition: opacity .5s linear 0s;
  cursor: pointer;
}

.ads {
  color: var(--main-color) !important
}

.subtitle {
  text-align: center;
}

.copyright {
  display: block;
  text-align: center;
}

/* =========================
   HOMEPAGE HERO
   ========================= */

header.leadtext {
    background: url(../img/leadspace3.webp) left bottom no-repeat;
    background-size: cover;

    position: relative;
    overflow: hidden;

    height: 464px;
    margin-top: 72px;
}

.maintitle {
    width: 100%;
    padding: 0 20px;

    position: absolute;
    top: 50%;
    left: 0;
    right: 0;

    transform: translateY(-50%);
    text-align: center;
}


/* Encyclopaedia Castrorum logo */

.hero-brand {
    margin-bottom: 12px;
}

.hero-brand-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto;
    opacity: 0.9;
}


/* Hlavný nadpis */

.lead-h1 {
    max-width: 720px;
    margin: 0 auto;

    color: #e0e0e0;
    font-size: 2.15rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.lead-h1 .part {
    display: block;
}


/* Podtitul */

.lead-h2 {
    max-width: 760px;

    margin: 12px auto 0;

    color: #b7b7b7;
    font-size: 1.35rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
}


/* Tlačidlá */

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
    margin-top: 22px;
}

.maintitle {
  width: 100%;
  padding: 0 20px;
  position: absolute;
  margin: 0 auto;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center
}

.maintitle .lead-h2 {
  font-size: 1.5em;
  font-weight: 400;
  color: #adadad;
  padding: 0;
  text-decoration: none;
  margin: 10px auto;
  font-style: italic
}

.maintitle h1 {
  color: #c8c8c8;
  font-size: 2.3em;
  text-align: center !important
}

.leadright h1 {
  color: #212529;
  font-size: 2.3em;
}

.maintitle h2 {
  color: #c8c8c8;
  font-size: 1.6em;
  text-align: center !important
}

h3 {
  font-size: 1.6em
}

h4 {
  font-size: 1.25em
}

.lead-h1 {
  color: #c8c8c8;
  font-size: 2.2em;
  font-weight: normal;
  text-align: center !important;
  max-width: 600px;
  /* Obmedzí šírku H1 pre správne zalomenie */
  margin: 0 auto;
  /* Vycentrované */
  line-height: 1.2;
  /* Vhodná výška riadkov */
  word-wrap: break-word;
  /* Umožní zalomenie textu */
}

.part {
  display: block;
  /* Prvá časť bude na samostatnom riadku */
}

.logo {
  width: 221px !important;
  ;
  height: 54px !important;
  opacity: 0.75;
}

.ico {
  width: 14px !important;
  ;
  height: 20px !important;
}

.homepage-section-title {
    font-size: 1.4em;
}

.komtitle {color: var(--main-color)}

#novinky .castle-title {
    font-size: 1.2em;
}

@media (max-width: 576px) {

    header.leadtext {
        background: url(../img/leadspace_small.webp) center bottom no-repeat;
        background-size: cover;
    max-height: 464px;
        height: 420px;
        margin-top: 72px;
            position: relative;
    overflow: hidden;
    }

    .maintitle {
        padding: 0 16px;
    }

    .hero-brand {
        margin-bottom: 10px;
    }

    .hero-brand-logo {
        width: 110px;
    }

    .lead-h1 {
        font-size: 1.65rem;
        line-height: 1.18;
    }

    .lead-h2 {
        max-width: 340px;
        margin-top: 10px;

        font-size: 1.05rem;
        line-height: 1.3;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 18px;
    }

    .hero-actions .btn {
        font-size: 0.9rem;
    }
}


header.leadtextx {
  background: url(../img/sublead.webp) center top no-repeat #000;
  position: relative;
  overflow: hidden;
  max-height: 250px;
  height: 250px;
  margin-top: 72px;
  background-size: cover
}

.wrapo input,
.wrapo .ex {
  display: inline-block;
}

.wrapo {
  position: relative;
  width: 220px;
  margin: 15px auto;
  height: 30px;
}

.ex {
  position: absolute;
  right: 0;
  top: -3px;
  cursor: pointer;
  height: 30px;
  width: 30px;
  opacity: 0;
  font-size: 30px;
  line-height: 30px;
  transition: all 0.8s;
  border: 1px solid transparent;
  text-align: center;
}

#c_psource {
  font-size: 0.75em;
  color: #6c757d;
  text-align: center;
}

.wrapo input:focus~.ex {
  opacity: 1;
}

.hrline {
  margin: 10px auto;
  width: 80%
}

@media only screen and (max-width: 576px) {
  header .leadright {
    max-height: none !important;
    height: auto !important;
    background-color: #f2f2f2;
    border-bottom: 2px solid #bd8d4c;
  }

}

@media only screen and (max-width: 992px) {

  #zoznam td:nth-child(2),
  #zoznam th:nth-child(2) {
    display: none !important
  }

  .nomobile {
    display: none !important
  }

  .mobile {
    display: block !important
  }

  .mleft {
    margin-left: 0 !important;
  }

  .subpristup,
  .subtitle {
    text-align: center !important;
  }
}

@media only screen and (max-width: 768px) {
  #stats {
    font-size: 0.8em
  }
}

@media only screen and (min-width: 350px) {

  .maintitle h1,
  .lead-h1 {
    font-size: 1.8em;
  }

  .leadright h1 {
    color: #212529;
    font-size: 1.8em;
  }

  .maintitle h2 {
    font-size: 1.3em;
  }

  h3 {
    font-size: 1.4em;
  }

  h4 {
    font-size: 1.2em;
  }

  .maintitle p,
  .lead-h2 {
    font-size: 1.1em
  }
}

@media only screen and (min-width: 768px) {

  .maintitle h1,
  .lead-h1 {
    font-size: 2.0em;
  }

  .leadright h1 {
    color: #212529;
    font-size: 2.0em;
  }

  .maintitle h2 {
    font-size: 1.4em;
  }

  h3 {
    font-size: 1.4em;
  }

  h4 {
    font-size: 1.2em;
  }

  .maintitle p {
    font-size: 1.3em
  }
}

@media only screen and (min-width: 992px) {

  .maintitle h1,
  .lead-h1 {
    font-size: 2.0em;
  }

  .leadright h1 {
    color: #212529;
    font-size: 2.0em;
  }

  .maintitle h2 {
    font-size: 1.6em;
  }

  .mobile {
    display: none !important
  }
}

@media only screen and (max-width: 1200px) {
    .leg {
  right: 10px!important;
  bottom: 10px!important;
}
}


section#novinky {
  background: url(../img/decorup.png) 0 0 repeat-x #f2f2f2;
  height: auto;
  padding-top: 20px;
}

#stats {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  cursor: pointer;
}

#counter {
  border-top: 1px solid var(--main-color);
  border-bottom: 1px solid var(--main-color);
}

.card-img-top {
  max-height: 280px;
}

.card:hover {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important
}

.big,
.normal {
  color: #fff
}

.big {
  font-size: 2.3em;
  line-height: 1.2;
  font-weight: 500
}

.normal {
  font-size: 1.3em;
  line-height: 1;
  font-weight: normal
}

#mapa img {
  width: 100%;
  height: auto;
}

.imageMap {
  width: 100%;
  position: relative;
  height: 100%;
}

.imageMap .hotspots {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0
}

.imageMap a {
  display: block;
  position: absolute
}

.y1,
.y2,
.y3,
.y4,
.y5,
.y6,
.y7,
.y8 {
  background-image: url(../img/ch.png);
  padding-left: 20px
}

.oznac1 {
  background-image: url(../img/ch1.png) !important;
}

.legx {
  width: 300px;
  height: 140px;
  left: 66%;
  top: 68%;
  position: absolute
}

.oznac1,
.y1,
.y2,
.y3,
.y4,
.y5,
.y6,
.y7,
.y8 {
  background-repeat: no-repeat;
  background-position: 0 5px
}

.leg {
  position: absolute;
  right: 80px;
  bottom: 30px;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  font-size: 14px;
  max-width: 95%;
}

.leg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 5px;
}

.leg-row:last-child {
  margin-bottom: 0;
}

.leg-row span {
  white-space: nowrap;
}


.badge-recommended {
  background-color: #4CAF50; /* zelená */
  color: white;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 5px;
  margin-bottom: 5px;
  display: inline-block;
}

.mobilemap img {
  display: block;
  width: 100%
}

.comment,
.koment {
  margin: 10px 0;
  width: 100%
}

.comment ul,
.koment ul {
  margin: 0 auto;
  width: 100%;
  padding: 0
}

.comment ul li {
  float: left;
  font-size: 1em;
  font-weight: 400;
  color: #ccc;
  padding-right: 5px
}

.comment p {
  font-size: 1.0em;
  font-weight: normal;
  color: #ccc;
  text-align: justify;
  margin-bottom: 0px !important;
}

.comment ul li a,
.comment ul li.name,
.koment ul li a,
.koment ul li.name {
  color: var(--main-color)
}

.koment hr {
  width: 100%;
  background: #bbbbbb;
  border: 0;
  margin: 3px 0;
  height: 1px;
  opacity: 0.5;
}

.comment hr {
  width: 100%;
  border: 0;
  margin: 3px 0;
  height: 1px;
  opacity: 0.5;
  background: var(--main-color);
}

.comment ul,
.topp ul,
.koment ul {
  list-style: none
}

.cl {
  clear: both
}

.koment {
  background-color: #f7f7f7f7;
  border: 1px solid #bbbbbba7;
  padding: 10px 20px 0 20px;
  border-radius: 5px;
  height: auto;
}

.koment ul li {
  float: left;
  font-size: 1em;
  font-weight: bold;
  color: #877c6d;
  padding-right: 5px
}

.koment .alert {
  background-color: #ebebec;
  font-size: 0.9em
}

/* ==========================
   KOMENTARE K HRADU (.koment)
   ========================== */

.koment {
  width: 100%;
  margin: 12px 0;
  background: #f7f7f7;
  border: 1px solid rgba(187, 187, 187, 0.65);
  border-radius: 8px;
  padding: 6px 16px;
}

/* Hlavička: meno + dátum */
.koment__head {
  font-size: 0.9em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.koment__name {
  font-weight: 600;
  color: var(--main-color);
}

.koment__date {
  font-size: 0.85em;
  color: #877c6d;
  opacity: 0.8;
  white-space: nowrap;
}

/*  .koment__body {
 max-width: 95ch; /* aby riadky neboli nekonečne dlhé na širokých monitoroch 
} */

.koment__text {
  font-size: 0.9em;
  margin: 0;
  color: #726a5f;
  font-weight: 400;
  text-align: left;
  hyphens: auto;
  overflow-wrap: anywhere;
}


.koment__reply {
  background-color: #ebebec;
  font-size: 0.9em;
  margin-top: 10px;
  margin-bottom: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media print {
  .koment {
    border: 1px solid #bbb;
  }
}


/* ==========================
   KOMENTARE – ZOZNAM
   ========================== */

.koment--list {
  margin-bottom: 16px;
}

/* hlavička */
.koment__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.koment__hrad {
  font-weight: 600;
  color: var(--main-color);
  text-decoration: none;
  font-size: 0.95em;
  white-space: nowrap;
  text-decoration: underline;
}

.koment__hrad:hover {
  text-decoration: underline;
  color: var(--main-color);
}

/* mobil – názov hradu pod meta */
@media (max-width: 576px) {
  .koment__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .koment__hrad {
    font-size: 0.9em;
  }
}



section.s2 {
  background: url(../img/decordown.png) 0 bottom repeat-x #f2f2f2;
}

.footer_logo,
.footer_wrap {
  background-color: #000;
  color: #71675a
}
.footer_logo img {opacity: 0.75;}

.footer_wrap .footer_logo {
  display: inline-block;
  padding: 0 1.6em;
  z-index: 2
}

.footer_wrap::before {
  left: 0;
  right: 0;
  width: auto;
  top: 26px;
  height: 1px;
  position: absolute;
  content: "";
  opacity: .4;
  z-index: -1;
  background-color: var(--main-color)
}

.wrap {
  text-align: center;
  width: 100%;

}

.footer_wrap {
  position: relative;
  z-index: 1;
}

.card img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
}

.card-text {
  font-size: 15px;
}

.language {
  display: none;
}

.lng {background: none;
border: none;}

#komentare h3,
footer h3,
#kontaktform h3,
#pridat h3 {
  color: var(--main-color)
}

.v3,
.v4,
.v5 {
  background-position: left 75%;
  background-repeat: no-repeat;
  cursor: pointer;
  font-size: 1.1em
}

.v3 {
  background-image: url(../img/add.png);
  padding-left: 21px;
  padding-right: 10px
}


a.v3,
a.v4 {
  color: #ccc
}

a.v3:hover,
a.v4:hover {
  color: var(--main-color);
  text-decoration: underline
}

a.dark {
  color: #bd8d4c !important
}

a.dark:hover {
  color: #bd8d4c !important;
  text-decoration: underline
}

.v4 {
  background-image: url(../img/eye.png);
  padding-left: 25px
}

.social img:hover {
  opacity: 1
}

.social img {
  opacity: .5;
  transition: opacity .5s linear 0s;
  margin-top: 25px
}

.social a {
  padding: 0 12px
}

.cop {
  width: 100%;
  padding: 25px;
  text-align: center;
  color: #84817c;
  font-size: 0.85em
}

#zoznam {
  min-height: 700px;
}

#zoznam a {
  color: var(--main-color);
}

#zoznam,
#panovnici,
#kontakt,
#komentlist,
#hrady {
  background-image: url('../img/decorup.png'), url('../img/decordown.png');
  background-position: 0 0, 0 bottom;
  background-repeat: repeat-x, repeat-x;
  background-color: #f2f2f2;
  padding-bottom: 60px
}

#komentlist .alert {
  background-color: #ececec;
  position: relative;
}

#komentlist .alert img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

#zoznam a h3 {
  display: inline;
  font-size: 1.0em !important;
  font-weight: bold;
}

.castle-name {
  display: inline;
  font-size: 1.0em !important;
  font-weight: bold;
}

#zoznam table {
  width: 100% !important;
  height: 100%;
  margin: 0 auto;
  border-collapse: separate;
  background-color: #f7f7f7
}

#zoznam table span {
  font-weight: 400;
}

#zoznam td {
  height: 26px;
  padding: 3px 3px 3px 18px;
  border-bottom: 3px solid #f2f2f2;
  color: #535353;
  font-size: 0.9em;
  vertical-align: middle;
}

#zoznam th {
  font-weight: bold;
  font-size: 0.9em;
  border-bottom: 1px solid rgba(143, 143, 143, 0.3);
  vertical-align: middle;
  padding: 5px 18px;
  color: #535353;
}

#zoznam td,
#zoznam th {
  width: 30%;
  margin-bottom: 1px;
  text-align: left !important
}

#panovnici h3 {
  font-size: 1.1em !important;
  font-weight: bold;
}

#zoznam tr:hover td {
  background-color: #f5f5f5
}

#hrady figure {
  max-width: 100%;
  /* Make the figure width responsive */
  margin: 0 auto !important;
}

.person-portrait {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #8b7653;
    padding: 3px;
    background: #eee9df;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

figure,
#c_gallery img {
  transition: all 1s ease;
  text-align: center;
}

figure:hover,
#c_gallery img:hover {
  filter: brightness(92%);
}

figure img {
  border: 2px solid #4d4b4b
}

figure h3 {
  color: var(--main-color)
}


#panovnici h3 {
  color: var(--main-color);
  font-size: 1.4em;
}

#panovnici a {
  color: var(--main-color);
  font-weight: bold;
}

#contact-form label {
  color: var(--main-color)
}

.btn-secondary,
button .btn-secondary {
  background-color: var(--main-color) !important;
  color: #fff !important;
  border: 0 !important;
  line-height: 1.7 !important;
}

.btn-secondary:hover,
button .btn-secondary:hover {
  background-color: #9b6c2b !important;
  transition: background-color .3s ease-in-out !important;
}

#kontakt h4 a {
  color: var(--main-color);
  font-size: 0.8em;
}

.page-numbers.current {
  color: #f2e0c8;
  background-color: #070301
}

.page-numbers {
  text-decoration: none;
  color: #bd8d4c;
  background-color: #ececec;
  display: inline-block;
  vertical-align: top;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  border: none;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  margin: 5px;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, background-position .3s ease;
  border-radius: 50%
}

.page-numbers:hover {
  color: #f2e0c8;
  background-color: #070301;
  text-decoration: none
}

.alert {
  padding: 0.5rem !important;
}

.vrstva2 {
  background: url(../img/vzor.png) rgba(0, 0, 0, .1);
  width: 100%;
  height: 100%;
  top: 0
}

header .hrady {
  max-height: 400px;
  height: 400px;
  background-color: #f2f2f2;
  border-bottom: 2px solid #bd8d4c;
}

header .hrady p {
  color: #464545;
}

header .hrady p.h5 {
  color: var(--main-color);
}

#widgetweather {
  max-width: 300px;
  margin: 0 auto;
  position: relative
}

 .info-navstevnik {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* gap: 4px;  */                       /* rozostup medzi textom a linkom */
    background-image: url('../img/box2.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;       /* dekorácia sa natiahne podľa výšky */
    padding: 15px 20px 26px;          /* viac miesta dole pre link */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    margin: 25px auto 10px auto;
    font-family: Arial, sans-serif;
    width: 300px;
    min-height: 140px;                /* namiesto height */
    height: auto;                     /* nech sa prispôsobí obsahu */
    color: #f2f2f2;
    position: relative;
}

.info-navstevnik .info-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    font-size: 1em;
    text-wrap: balance;               /* krajšie zalamovanie na 3 riadky (Chromium) */
}

/* Spodný blok s linkom */
.info-navstevnik .info-link {
text-align: center;
    margin-top: 5px;
    margin-bottom: 0;                 /* už netreba extra margin dole */
    padding-bottom: 0;
}

.info-navstevnik .info-link a {
    font-weight: bold;
    color: #a5794d;
    font-size: 1em;
    text-decoration: underline;
    transition: color 0.2s;

    /* ikonka */
    background: url('../img/infoicon1.png') no-repeat left center;
    background-size: 16px 16px;   
    padding-left: 25px;     
    
}

@media (max-width: 430px) {
  .info-navstevnik { padding-bottom: 30px; } /* ešte kúsok miesta dole */
  .info-navstevnik .info-text { font-size: 0.96rem; } /* o chlp menší text */
}

.info-navstevnik .info-link a:hover {
    color: #C18F5D;
    text-decoration: underline;
}

.topx {
  margin-top: 72px;
}

.topp,
.topp ul {
  width: 100%;
  height: 35px;
  float: right;
}

.topp .menu {
  float: right;
  position: relative;
  left: -50%;
  text-align: left
}

.topp ul {
  margin: 5px auto 0;
  position: relative;
  left: 50%
}

.topp {
  background-color: #000;
  z-index: 1002;
  opacity: .9;
  position: fixed;
  bottom: 0
}

.topp a {
  color: #aaa !important;
  text-decoration: none;
}

.topp li.l1,
.topp li.l10,
.topp li.l2,
.topp li.l3,
.topp li.l4,
.topp li.l5,
.topp li.l6,
.topp li.l7,
.topp li.l8,
.topp li.l9 {
  width: auto;
  padding-left: 22px;
  background-repeat: no-repeat;
  background-position: center left;
  margin-right: 20px;
  background-size: 16px;
  float: left
}

.topp li.l3 {
  background-image: url(../img/icons/ico_3x.png)
}

.topp li.l4 {
  background-image: url(../img/icons/ico_4x.png)
}

.topp li.l5 {
  background-image: url(../img/icons/ico_5x.png)
}

.topp li.l6 {
  background-image: url(../img/icons/ico_6x.png)
}

.topp li.l7 {
  background-image: url(../img/icons/ico_7x.png)
}

.topp li.l8 {
  background-image: url(../img/icons/ico_8x.png)
}

.topp li.l9 {
  background-image: url(../img/icons/ico_9x.png)
}

.topp li.l10 {
  background-image: url(../img/icons/ico_10x.png)
}


.subheader p {
  font-size: 1.2em;
  color: var(--main-color);
}

.subheader a {
  font-size: 0.9em;
  color: #89929a;
  line-height: 2rem;
}

.subheader a:hover {
  color: #9da5ac;
  line-height: 2rem;
}

.bullbox {
  font-size: 1.0em;
  color: #89929a;
  background-color: #121212;
  width: auto;
  margin: 0 auto;
  display: inline-block;
  padding: 10px 15px;
  height: auto;
  color: #89929a;
  border: 1px solid #292828;
  border-radius: 4px;
}

.bullbox a {
  font-size: 1.0em;
  color: #89929a;
  line-height: 2rem;
  font-weight: bold;
}

.iconx {
  margin-top: -4px;
}

.contentbox {
    padding: 20px;
    background-color: #f7f7f7;
    text-align: left;
    border-radius: 8px;
    border: 1px solid #bbbbbba7;
    border-left: 4px solid #815a239e;
    font-size: 1em;
    line-height: 1.6;
}

.contentbox > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .contentbox {
        padding: 16px;
    }
}

/* === Support CTA box pod Históriou === */
.support-callout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;

  padding:14px 16px;
  margin-top:12px;

  border-radius:10px;
  background:#815a2326;

  border:1px solid rgba(129, 90, 35, 0.35);

  /* Jemný vizuálny lift */
  box-shadow:0 1px 3px rgba(0,0,0,0.04);
}

/* Textová časť */
.support-callout__text{
  line-height:1.3;
  color:#3b2a17;
}

.support-callout__text strong{
  color:#815a23;
  font-weight:600;
}

.support-callout__text .small{
  font-size:0.9em;
  opacity:0.9;
}

.support-callout .btn{
  color:#fff;
  background:#815a23;
  border:1px solid #815a23;

  font-size:0.9em;
  padding:6px 14px;

  transition:background-color .2s ease, box-shadow .2s ease;
}

/* Hover / focus – jemná zmena, nie dramatická */
.support-callout .btn:hover,
.support-callout .btn:focus{
  background:#6f4d1d; /* mierne tmavší odtieň */
  border-color:#6f4d1d;
  color:#fff;
}

.support-callout .btn:focus{
  box-shadow:0 0 0 0.15rem rgba(129,90,35,.35);
}



/* Mobilné zobrazenie */
@media (max-width:576px){
  .support-callout{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .support-callout .btn{
    align-self:flex-end;
  }
}

/* Voliteľný jemný akcent zľava */

.support-callout {
  border-left:4px solid #815a239e;
}



.mleft {
  margin-left: 10px;
}

.subpristup {
  background-color: #ebebeb;
  padding: 8px;
  line-height: 2em;
}

hr.hrcontent {
  background-color: #bbbbbba7;
  opacity: 1;
}

hr.hrcontent2 {
  background-color: #bbbbbba7;
  opacity: 1;
  margin: 0.5rem !important;
}

#hrady a {
  color: var(--main-color);
}

#hrady {
  font-size: 1.1em;
}

#map {
  height: 360px;
  width: 100%;
  border-top: 1px solid #5e5c5c;
  border-bottom: 1px solid #5e5c5c;
  margin-top: 8px
}

.leaflet-marker-icon {
  width: 32px !important;
  height: 32px !important;
  margin-top: -34px !important;
}


.literatura {
  width: 100%;
  height: auto;
  color: #575757;
  font-style: italic;
  font-size: 0.8em;
  border-radius: 5px;
  margin: 15px auto;
  line-height: 1.5rem
}

.revizia {
  width: 100%;
  color: #575757;
  font-style: italic;
  font-size: 0.8em;
  margin: 0;
  line-height: 1.5rem;
  text-align: right;
}

.literatura .small-line {
  margin-bottom: 10px;
  display: block;
}

.imgupload {
  width: 100%;
  height: auto;
  background-color: #f6f6f6;
  text-align: center;
  border: 1px solid #dfdfdf;
  color: #575757;
  font-style: italic;
  font-size: 0.8em;
  border-radius: 5px;
  margin: 15px auto 25px auto;
  line-height: 17px
}

#c_podorys {
  font-size: 0.8em;
}

.podorys-thumb {
    max-width: 400px!important; 
    width: 100%;
    height: auto;
    margin: 0 auto;
}


.divider {
  width: 132px;
  background-image: url('../img/divicon2.png');
  background-position: center;
  background-repeat: no-repeat;
  margin: auto;
  height: 30px;
}

.subfoto{
  background-color:#f6f6f6;
  border:1px solid #575757;
  color:#575757;
  width:140px;
  border-radius:6px;
  margin: 6px auto 14px auto; /* mierne menej */
}
.gallery-years{ margin-bottom: 10px; }
.year-chip{
  display:inline-block;
  padding:6px 10px;
  margin:4px 6px;
  border:1px solid #575757;
  border-radius:999px;
  color:#575757;
  background:#f6f6f6;
  text-decoration:none;
  font-size:14px;
}

.year-chip:hover{
  background:#eee;
}
.year-chip:active{
  transform: translateY(1px);
}

.year-section{ scroll-margin-top: 90px; } 


a.v2 {
  background-image: url(../img/v2.png);
  padding-left: 28px;
  text-align: left;
  font-size: 1.0em;
  font-weight: 400;
  background-position: left 60%;
  background-repeat: no-repeat;
  cursor: pointer;
  color: #575757 !important;
  text-decoration: none;
}

#modalmsg h5 {
  color: #815a23
}

.h5 img {
  height: 1.25rem;
  width: auto;
}

.success {
  color: #575757
}

.error {
  color: rgb(110, 0, 0)
}

.modal {
  background-color: rgba(0, 0, 0, 0.5);
}

#loading {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  z-index: 1055;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.figc{
  text-align: center;
  padding-top: 5px;
  font-size: 80% !important;
  line-height: 1.2;
}

.cta-upload{
  display:inline-flex;
  align-items:center;
  gap:10px;

  padding:8px 12px 8px 36px;
  border:1px solid #000000;
  border-radius:999px;
  background:#fff;

  color:#575757 !important;
  text-decoration:none;
  font-size:0.9em;
  font-weight:500;

  background-image:url(../img/v2.png);
  background-repeat:no-repeat;
  background-position:12px center;

  transition:background-color .2s ease, box-shadow .2s ease;
}

.cta-upload-sub {font-size: 0.8em;}

.cta-upload:hover{
  background-color:#f2f2f2;
  box-shadow:0 2px 6px rgba(0,0,0,0.06);
}

/* názov hradu */
.cta-upload-place{
  color:#b18241;
  font-weight:600;
}

.cta-upload-sub {font-style: italic;padding-top: 10px;}

/* plus / toggle vpravo */
.cta-toggle{
  display:inline-block;
  width:18px;
  height:18px;
  border:1px solid #b18241;
  border-radius:50%;
  position:relative;
  margin-left:6px;
  flex-shrink:0;
}

/* horizontála */
.cta-toggle::before{
  content:'';
  position:absolute;
  top:50%;
  left:4px;
  right:4px;
  height:1px;
  background:#b18241;
  transform:translateY(-50%);
}

/* vertikála = plus */
.cta-toggle::after{
  content:'';
  position:absolute;
  left:50%;
  top:4px;
  bottom:4px;
  width:1px;
  background:#b18241;
  transform:translateX(-50%);
}

/* keď je otvorené → z plusu sa stane mínus */
.cta-upload:not(.collapsed) .cta-toggle::after{
  display:none;
}

.povest-text {
  overflow: hidden;
}


.povest-text.clamp {
  overflow: hidden;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 12;

  /* štandardná vlastnosť (nové prehliadače) */
  display: box;
  box-orient: vertical;
  line-clamp: 12;
}


.povest-toggle {
  margin-top: .4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--main-color);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.povest-toggle::after {
  content: "›";
  font-size: 1.2em;
  line-height: 1;
  transition: transform .2s ease;
}

.povest-toggle:hover {
  text-decoration: underline;
}

.povest-toggle:hover::after {
  transform: translateX(2px);
}

/* stav po rozbalení */
.povest-item .povest-text:not(.clamp) + .povest-toggle::after {
  content: "‹";
}



/* Panovníci: izolované štýly detailu. Existujúce pravidlá sa nemenia. */
header.leadtextx .hz-person-banner-title {
  margin: 0;
  color: #c8c8c8;
  font-size: clamp(1.8rem, 3vw, 2.0rem);
  font-weight: 500;
  line-height: 1.2;
}
header.leadtextx .hz-person-banner-subtitle {
  margin: .65rem 0 0;
  color: #c8c8c8;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.4;
}
#panovnici .hz-person-section-title { color: var(--main-color); font-size: 1.6rem; }
#panovnici .hz-person {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 40px;
  color: #30302d;
  overflow-wrap: anywhere;
}
#panovnici .hz-person-back { margin: 25px; border: 0; font-size: .9rem; }
#panovnici .hz-person-back a { font-weight: 500; text-decoration: none; }
#panovnici .hz-person a:hover { text-decoration: underline; }
#panovnici .hz-person a:focus-visible { outline: 2px solid var(--main-color); outline-offset: 4px; }
#panovnici .hz-person-header { display: flex; align-items: center; gap: 32px; margin-bottom: 28px; }
#panovnici .hz-person-portrait {
  flex: 0 0 auto;
  width: 150px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #8b7653;
  padding: 3px;
  background: #eee9df;
  box-shadow: 0 3px 12px rgba(74, 53, 24, .12);
}
#panovnici .hz-person-identity { flex: 1; min-width: 0; }
#panovnici .hz-person-category { margin: 0 0 8px; color: #6d603f; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; }
#panovnici .hz-person-name {
  margin: 0;
  color: #654519;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: left;
}
#panovnici .hz-person-alias { margin: 8px 0 0; color: #65615b; font-size: 1rem; font-style: italic; }
#panovnici .hz-person-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 240px)); gap: 10px; margin: 22px 0 0; }
#panovnici .hz-person-fact { padding: 12px 14px; background: #f7f5f0; border: 1px solid #e5dfd3; border-radius: 8px; }
#panovnici .hz-person-fact-rule { background: #f1eadf; border-color: #dfcfb6; }
#panovnici .hz-person-fact dt { margin: 0 0 5px; font-size: .8rem; color: #615a50; font-weight: 500; }
#panovnici .hz-person-fact dd { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; }
#panovnici .hz-person-place { display: block; font-size: .85rem; font-weight: 400; color: #615a50; }
#panovnici .hz-person-perex {
  margin-bottom: 30px;
  padding: 20px 24px;
  background: #f7f5f0;
  border-left: 4px solid #9a7845;
  border-radius: 0 8px 8px 0;
  font-size: 1.1rem;
  line-height: 1.75;
}
#panovnici .hz-person-perex > :last-child { margin-bottom: 0; }
#panovnici .hz-person-family { padding: 22px 24px; margin-bottom: 32px; border: 1px solid #e5dfd3; border-radius: 10px; }
#panovnici .hz-person h2 { margin: 0 0 18px; color: #654519; font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; line-height: 1.3; }
#panovnici .hz-person-relations { margin: 0; }
#panovnici .hz-person-relations > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid #ece7dd; }
#panovnici .hz-person-relations > div:first-child { padding-top: 0; border-top: 0; }
#panovnici .hz-person-relations > div:last-child { padding-bottom: 0; }
#panovnici .hz-person-relations dt { color: #615a50; font-size: .9rem; font-weight: 600; }
#panovnici .hz-person-relations dd { margin: 0; line-height: 1.65; }
#panovnici .hz-person-relations dd > :last-child { margin-bottom: 0; }
#panovnici .hz-person-description { max-width: 100%; margin: 0 auto; }
#panovnici .hz-person-prose { font-size: 1.025rem; line-height: 1.7; text-align: left; }
#panovnici .hz-person-prose p { margin: 0 0 1.15em; }
#panovnici .hz-person-prose :is(h3, h4, h5, h6) { margin-top: 1.5em; line-height: 1.4; }
#panovnici .hz-person-prose img { max-width: 100%; height: auto; }
#panovnici .hz-person-prose table { display: block; max-width: 100%; overflow-x: auto; }
#panovnici .hz-person-sources { max-width: 100%; margin: 30px auto 0; padding-top: 16px; border-top: 1px solid #e5dfd3; color: #65615b; font-size: .85rem; line-height: 1.65; }
#panovnici .hz-person-sources p { margin: 0; }
@media (max-width: 767px) {
  #panovnici .hz-person { padding: 0 8px 28px; }
  #panovnici .hz-person-header { flex-direction: column; gap: 18px; align-items: stretch; }
  #panovnici .hz-person-portrait { align-self: center; }
  #panovnici .hz-person-category, #panovnici .hz-person-name, #panovnici .hz-person-alias { text-align: center; }
  #panovnici .hz-person-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #panovnici .hz-person-fact-rule { grid-column: 1 / -1; }
  #panovnici .hz-person-perex, #panovnici .hz-person-family { padding: 18px; }
  #panovnici .hz-person-relations > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 359px) {
  #panovnici .hz-person-facts { grid-template-columns: 1fr; }
}

/* Detail objektu – titulná časť */
.hz-castle-header .hz-castle-header__photo {
    position: relative;
    max-height: none;
    height: 400px;
}

.hz-castle-header .hz-castle-header__photo .vrstva2 {
    position: absolute;
    inset: 0;
}

.hz-castle-header .hz-castle-header__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: none;
    height: auto;
    min-width: 0;
}

.hz-castle-header .hz-castle-header__content h1 {
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hz-castle-header .hz-castle-header__type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hz-castle-header .hz-castle-header__type img {
    flex-shrink: 0;
    object-fit: contain;
}

.hz-castle-header .hz-castle-header__intro {
    width: 100%;
    line-height: 1.55;
    text-wrap: balance;
}

.hz-castle-header .info-navstevnik {
    max-width: 100%;
}

@media (min-width: 992px) {
    .hz-castle-header .hz-castle-header__photo {
        height: auto;
        min-height: 400px;
    }

    .hz-castle-header .hz-castle-header__content {
        min-height: 400px;
    }
}

/* Mobilná navigácia detailu */
.hz-mobile-toc[hidden],
.hz-mobile-toc__panel[hidden] {
    display: none !important;
}

.hz-mobile-toc {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1003;
    width: min(310px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.hz-mobile-toc__button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #bd8d4c;
    border-radius: 24px;
    background: var(--main-color);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.hz-mobile-toc__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #bd8d4c;
    border-radius: 12px;
    background: #f2f2f2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.hz-mobile-toc__panel a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px;
    border-radius: 7px;
    color: var(--main-color);
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hz-mobile-toc__panel a:hover,
.hz-mobile-toc__panel a:focus-visible {
    background: #e6ddd0;
    color: var(--main-color);
    text-decoration: underline;
    background: #e6ddd0;
}

.hz-mobile-toc__panel .hz-mobile-toc__top {
    grid-column: 1 / -1;
    border-top: 1px solid #d5c6b1;
    border-radius: 0 0 7px 7px;
}

.hz-mobile-toc__button:focus-visible,
.hz-mobile-toc__panel a:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
}

@media (min-width: 992px) {
    .hz-mobile-toc {
        display: none;
    }
}

/* Prístupové trasy */
.hz-access .hz-access__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    text-align: left;
}

.hz-access .hz-access__fact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hz-access .hz-access__fact > img {
    flex-shrink: 0;
    object-fit: contain;
}

.hz-access .hz-access__facts a,
.hz-access__nearby a {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hz-access .hz-access__facts a:hover,
.hz-access .hz-access__facts a:focus-visible,
.hz-access__nearby a:hover,
.hz-access__nearby a:focus-visible {
    color: var(--main-color);
}

@media (max-width: 768px) {
    .hz-access .hz-access__facts {
        justify-content: center;
    }
}

/* Samostatný náhľad pôdorysu */
.hz-plan-simple {
    margin: 28px 0 16px;
}

.hz-plan-simple__link {
    display: inline-block;
    max-width: 100%;
    border-radius: 6px;
    cursor: zoom-in;
}

.hz-plan-simple__image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 520px);
    max-height: 440px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid #d5cbbb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(55, 40, 20, 0.12);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hz-plan-simple__link:hover .hz-plan-simple__image {
    border-color: #a9895e;
    box-shadow: 0 5px 16px rgba(55, 40, 20, 0.18);
}

.hz-plan-simple__link:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 4px;
}

@media (max-width: 575.98px) {
    .hz-plan-simple__image {
        max-height: 320px;
        padding: 5px;
    }
}

/* Galérie detailu */
.hz-galleries .hz-gallery-group {
    margin-bottom: 16px;
}

.hz-galleries .hz-gallery-year {
    scroll-margin-top: 100px;
}

.hz-galleries .hz-gallery-photo {
    margin: 0;
}

.hz-galleries .hz-gallery-photo__link {
    display: block;
    cursor: zoom-in;
}

.hz-galleries .hz-gallery-photo__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.hz-galleries .hz-gallery-photo__link:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
}

.hz-galleries .hz-gallery-photo__caption {
    margin-top: 8px;
    padding: 0 4px;
    color: #575757;
    font-size: 0.85rem;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}

.hz-photo-consent-error {
    display: none;
}

#photo-upload-form.was-validated:has(#suhlas:invalid)
.hz-photo-consent-error {
    display: block;
}

/* História detailu */
.hz-history__text > :last-child {
    margin-bottom: 0;
}

.hz-history .hz-history__heading {
    margin: 28px 0 20px;
}

.hz-history .hz-history__heading:first-child {
    margin-top: 0;
}

.hz-history__footer {
    display: flow-root;
}

/* Povesti a legendy */
.hz-legends .povest-item + .povest-item {
    margin-top: 28px;
}

.hz-legends .povest-title {
    margin: 0 0 12px;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.5;
}

.hz-legends .povest-text > :last-child {
    margin-bottom: 0;
}

.hz-legends .povest-toggle[hidden] {
    display: none !important;
}

/* Použité zdroje */
.hz-sources .hz-sources__title {
    margin: 0;
    color: inherit;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
}

.hz-sources .hz-sources__section + .hz-sources__section {
    margin-top: 12px;
}

.hz-sources .hz-sources__label {
    display: inline;
    margin: 0;
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hz-sources .hz-sources__text {
    display: inline;
    overflow-wrap: anywhere;
}

.hz-sources .hz-sources__text > :last-child {
    margin-bottom: 0;
}

.hz-sources a,
.hz-sources a:hover,
.hz-sources a:focus-visible {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}
