/* Extra styles for gallery, detail pages, forms, click-to-load embeds.
   Palette and typography follow the original Themler theme. */
.ps-page { color: #333; font-family: "Open Sans", sans-serif; }
.ps-wrap { max-width: 1140px; margin: 0 auto; padding: 40px 15px 60px; }
.ps-wrap h1, .ps-hero-title { font-family: "Open Sans", sans-serif; font-weight: 700; color: #333; margin: 0 0 12px; }
.ps-note { color: #555; font-size: 14px; margin: 8px 0 16px; }

/* Gallery intro — centered like original inner sections, with the Themler ornament. */
.ps-catalog-intro { text-align: center; margin: 0 auto 36px; max-width: 720px; }
.ps-ornament {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 18px;
}
.ps-divider {
  width: 50px;
  height: 0;
  margin: 0 auto 22px;
  border: 0;
  border-bottom: 1px solid #269ccb;
}
.ps-lead {
  color: #333;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.ps-vat {
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #555;
  background: #f5f5f5;
  border-left: 3px solid #269ccb;
}

.ps-filters { text-align: center; margin: 0 auto 36px; }
.ps-filter-group { margin: 0 0 22px; }
.ps-filter-label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
}
.ps-pills { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ps-pill {
  display: inline-block;
  margin: 0;
  padding: 7px 15px;
  border: 1px solid #269ccb;
  background: transparent;
  color: #269ccb;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  vertical-align: middle;
}
.ps-pill:hover, .ps-pill:focus {
  background: #0777a3;
  border-color: #0777a3;
  color: #fff;
  text-decoration: none;
  outline: none;
}
.ps-pill.is-active, .ps-pill[aria-checked="true"] {
  background: #269ccb;
  border-color: #269ccb;
  color: #fff;
}
.ps-pill.is-active:hover, .ps-pill[aria-checked="true"]:hover,
.ps-pill.is-active:focus, .ps-pill[aria-checked="true"]:focus {
  background: #0777a3;
  border-color: #0777a3;
  color: #fff;
}
.ps-select {
  display: inline-block;
  width: auto;
  min-width: 220px;
  max-width: 100%;
  padding: 7px 32px 7px 15px;
  border: 1px solid #269ccb;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23269ccb' d='M1 1l5 5 5-5'/></svg>") no-repeat right 12px center;
  color: #333;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 20px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.ps-select:hover, .ps-select:focus {
  border-color: #0777a3;
  outline: none;
}
.ps-count {
  display: block;
  margin: 8px 0 0;
  color: #777;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; text-align: left; }
.ps-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.ps-card:hover, .ps-card:focus {
  border-color: #269ccb;
  box-shadow: 0 4px 16px rgba(38, 156, 203, .18);
  text-decoration: none;
  color: inherit;
  outline: none;
}
.ps-card:hover h3, .ps-card:focus h3 { color: #269ccb; }
.ps-card:hover .price, .ps-card:focus .price { color: #269ccb; }
.ps-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
}
/* Beat Themler .bd-tagstyles img (max-width, inline-block, height:auto)
   so the crop box stays 4:3 and only one bitmap is painted. */
.ps-card .thumb picture,
.ps-card .thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
}
.ps-card .body { padding: 14px 16px 18px; }
.ps-card .meta { font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.ps-card h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; color: #333; }
.ps-card .price { font-size: 18px; font-weight: 700; color: #0777a3; }

.ps-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
@media (max-width: 767px) { .ps-detail { grid-template-columns: 1fr; } }
.ps-gallery-main { background: #f5f5f5; margin-bottom: 10px; }
.ps-gallery-main img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.ps-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-thumbs button {
  position: relative;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  width: 88px;
  height: 66px;
  overflow: hidden;
}
.ps-thumbs button.is-active, .ps-thumbs button:focus { border-color: #269ccb; }
.ps-thumbs picture,
.ps-thumbs img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
}
.ps-params { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.ps-params th, .ps-params td { border-bottom: 1px solid #ededed; padding: 8px 0; text-align: left; }
.ps-params th { width: 42%; color: #777; font-weight: 600; }
.ps-price { font-size: 28px; font-weight: 700; color: #0777a3; margin: 8px 0 4px; }
.ps-back { display: inline-block; margin-bottom: 16px; color: #269ccb; }

.ps-btn, .ps-form button[type="submit"], .ps-embed-btn {
  display: inline-block; background: #269ccb; color: #fff !important; border: 0; padding: 10px 22px;
  font-family: "Open Sans", sans-serif; font-weight: 600; font-size: 14px; text-transform: uppercase;
  letter-spacing: .04em; text-decoration: none; cursor: pointer;
}
.ps-btn:hover, .ps-form button[type="submit"]:hover, .ps-embed-btn:hover { background: #0777a3; color: #fff !important; text-decoration: none; }
.ps-btn-ghost { background: transparent; color: #269ccb !important; border: 1px solid #269ccb; }
.ps-btn-ghost:hover { background: #269ccb; color: #fff !important; }
.ps-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; align-items: stretch; }
.ps-btn-row .ps-btn { box-sizing: border-box; border: 1px solid #269ccb; display: inline-flex; align-items: center; justify-content: center; }

.ps-form { background: #f5f5f5; padding: 22px 22px 8px; margin-top: 28px; text-align: left; }
.ps-form h2 { font-size: 22px; margin: 0 0 8px; }
.ps-form .ps-todo {
  background: #fff8d5; border: 1px solid #e6d36a; color: #5a4b00; padding: 10px 12px; font-size: 13px; margin: 0 0 16px;
}
.ps-form label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.ps-form input[type="text"], .ps-form input[type="email"], .ps-form input[type="tel"], .ps-form textarea {
  width: 100%; border: 1px solid #ccc; padding: 8px 10px; margin: 0 0 12px; font-family: inherit; box-sizing: border-box;
}
.ps-form textarea { min-height: 120px; }
.ps-form .hp, .ps-form p.hp input { position: absolute; left: -9999px; top: auto; height: 0; width: 0; overflow: hidden; opacity: 0; }
.ps-form-note { font-size: 12px; color: #777; margin: 8px 0 16px; }

.ps-prose h2 { font-size: 22px; margin: 28px 0 10px; }
.ps-prose p, .ps-prose li { line-height: 1.65; }
.ps-prose a { color: #269ccb; }

/* Click-to-load embeds keep the original frame size until the visitor clicks. */
.ps-embed {
  position: relative; width: 100%; height: 100%; min-height: 280px; background: #1a1a1a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 20px; box-sizing: border-box;
}
.bd-googlemap-5 .embed-responsive, .bd-googlemap-5 .ps-embed { min-height: 403px; height: 100%; }
.bd-googlemap-5 .ps-embed {
  background: #1a1a1a url("../images/mapa-huncovce.jpg") center / cover no-repeat;
}
.bd-googlemap-5 .ps-embed p {
  background: rgba(0,0,0,.55); padding: 8px 12px; border-radius: 2px;
}
.ps-embed-yt { min-height: 0; aspect-ratio: 16/9; background: #111; }

/* Bootstrap .embed-responsive is height:0 + padding-bottom. A non-iframe
   .ps-embed inside it (and the iframe later injected into it) was a thin strip,
   because .ps-embed is position:relative and became the iframe's containing block.
   Fill the 16:9 (or explicit-height) box the same way the original iframe did. */
.embed-responsive.embed-responsive-16by9 > .ps-embed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.ps-embed p { margin: 0 0 14px; font-size: 13px; color: #ddd; max-width: 28em; }
.ps-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ps-lightbox {
  position: fixed; inset: 0; background: #000; z-index: 1000000;
  display: none; align-items: center; justify-content: center;
  padding: 64px 80px 56px; box-sizing: border-box;
}
.ps-lightbox.is-open { display: flex; }
.ps-lightbox-stage { margin: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.ps-lightbox img {
  max-width: 100%; max-height: calc(90vh - 48px); display: block;
  user-select: none; -webkit-user-drag: none;
}
.ps-lightbox-count {
  margin: 14px 0 0; color: #fff;
  font-family: "Open Sans", sans-serif; font-size: 16px; font-weight: 600;
  letter-spacing: .1em;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.ps-lightbox-close,
.ps-lightbox-nav {
  position: absolute; border: 0; cursor: pointer; color: #fff !important;
  background: rgba(0,0,0,.55) !important; box-shadow: 0 0 0 2px rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ps-lightbox-close:hover,
.ps-lightbox-nav:hover,
.ps-lightbox-close:focus-visible,
.ps-lightbox-nav:focus-visible {
  background: #269ccb !important; box-shadow: 0 0 0 2px #269ccb; color: #fff !important;
}
.ps-lightbox-close:focus-visible,
.ps-lightbox-nav:focus-visible {
  outline: 2px solid #269ccb; outline-offset: 3px;
}
.ps-lightbox-close {
  top: 16px; right: 16px; width: 48px; height: 48px;
  font-size: 32px; line-height: 1; font-weight: 400;
}
.ps-lightbox-nav {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; padding: 0;
}
.ps-lightbox-nav svg { width: 32px; height: 32px; display: block; }
.ps-lightbox-prev { left: 16px; }
.ps-lightbox-next { right: 16px; }
@media (max-width: 700px) {
  .ps-lightbox { padding: 56px 8px 48px; }
  .ps-lightbox-nav { width: 44px; height: 44px; }
  .ps-lightbox-nav svg { width: 26px; height: 26px; }
  .ps-lightbox-prev { left: 6px; }
  .ps-lightbox-next { right: 6px; }
  .ps-lightbox-close { top: 10px; right: 10px; width: 44px; height: 44px; font-size: 28px; }
  .ps-lightbox img { max-height: calc(90vh - 56px); }
}

/* Footer legal links reuse the Themler credit slot, without Themler branding. */
.bd-pagefooter-2 a { color: inherit; }
.ps-hidden { display: none !important; }

.ps-page .ps-wrap { padding-top: 24px; }
.bd-section-19 + .bd-content-12 .ps-wrap, .bd-section-19 + .bd-section-18 .ps-wrap { padding-top: 28px; }


/* Detail-page CTAs: "Mám záujem" + phone in one equal-height row; form opens below.
   The phone link is positioned beside the <summary> (Chrome wraps <details> content
   in an internal slot, so grid/subgrid can't place the form body). */
.ps-cta { position: relative; margin-top: 28px; scroll-margin-top: 160px; }
.ps-inquiry { display: block; margin: 0; text-align: left; }
.ps-inquiry > summary.ps-inquiry-toggle,
.ps-cta-call {
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; margin: 0; padding: 12px 22px;
  height: 48px; min-height: 48px; font-size: 14px; line-height: 1.25;
  border: 1px solid #269ccb; text-align: center; list-style: none;
}
.ps-inquiry > summary.ps-inquiry-toggle { width: calc(50% - 5px); }
.ps-cta-call { position: absolute; top: 0; right: 0; width: calc(50% - 5px); }
.ps-inquiry-body { width: 100%; }
@media (max-width: 700px) {
  .ps-inquiry > summary.ps-inquiry-toggle { width: 100%; margin-bottom: 58px; }
  .ps-cta-call { top: 58px; left: 0; width: 100%; }
}
.ps-inquiry > summary.ps-inquiry-toggle::-webkit-details-marker {
  display: none;
}
.ps-inquiry > summary.ps-inquiry-toggle::marker {
  content: none;
  display: none;
}
.ps-inquiry > summary.ps-inquiry-toggle:focus {
  outline: 2px solid #0777a3;
  outline-offset: 3px;
}
.ps-inquiry .ps-form {
  margin-top: 16px;
}
.ps-inquiry[open] .ps-inquiry-body {
  animation: ps-inquiry-open .35s ease;
}
@keyframes ps-inquiry-open {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-inquiry[open] .ps-inquiry-body { animation: none; }
}

/* Blog article body only. Service pages keep the original centered layout. */
section.ps-blog-post.bd-section-18 {
  text-align: left;
  padding-top: 2.2em;
  padding-bottom: 2.6em;
}
section.ps-blog-post .bd-layoutbox-25 {
  width: 100%;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}
section.ps-blog-post h3.bd-textblock-74 {
  text-align: left;
  font-size: 1.35em;
  line-height: 1.35;
  font-weight: 700;
  margin: 1.35em 0 0.4em;
  color: #000;
}
section.ps-blog-post h3.bd-textblock-74:first-child { margin-top: 0; }
section.ps-blog-post p.bd-textblock-73 {
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 0.85em;
  color: #222;
}
section.ps-blog-post .bd-button-23 { margin-top: 0.35em; }
section.ps-blog-post .bd-spacer-10 { height: 12px; }
section.ps-blog-post ul.ps-blog-list,
section.ps-blog-post ol.ps-blog-list {
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  margin: 0 0 0.85em;
  padding-left: 1.4em;
}
section.ps-blog-post ul.ps-blog-list { list-style: disc outside; }
section.ps-blog-post ol.ps-blog-list { list-style: decimal outside; }
section.ps-blog-post .ps-blog-list li { margin: 0 0 0.35em; padding: 0; background: none; }
section.ps-blog-post ul.ps-blog-list > li { list-style: disc outside !important; }
section.ps-blog-post ol.ps-blog-list > li { list-style: decimal outside !important; }
section.ps-blog-post .ps-blog-list > li::before { content: none !important; display: none !important; }


/* Cookie consent banner */
.ps-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  box-sizing: border-box;
  background: #fff;
  color: #333;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  font-family: "Open Sans", sans-serif;
}
.ps-cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ps-cookie-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}
.ps-cookie-text a {
  color: #269ccb;
  text-decoration: underline;
}
.ps-cookie-text a:hover,
.ps-cookie-text a:focus {
  color: #0777a3;
}
.ps-cookie-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}
.ps-cookie-btn {
  display: inline-block;
  margin: 0;
  padding: 8px 18px;
  min-width: 108px;
  box-sizing: border-box;
  border: 1px solid #269ccb;
  background: #fff;
  color: #269ccb;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
}
.ps-cookie-btn:hover,
.ps-cookie-btn:focus {
  background: #0777a3;
  border-color: #0777a3;
  color: #fff;
  outline: none;
}
.ps-cookie-btn:focus {
  outline: 2px solid #0777a3;
  outline-offset: 2px;
}
body.ps-cookie-open {
  padding-bottom: 7.5rem;
}
@media (max-width: 700px) {
  .ps-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 15px 14px;
    gap: 12px;
  }
  .ps-cookie-actions {
    width: 100%;
  }
  .ps-cookie-btn {
    flex: 1 1 50%;
  }
  body.ps-cookie-open {
    padding-bottom: 11rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ps-cookie-banner {
    box-shadow: none;
  }
}
