/* Šablóny webu (trieda tpl-… na <html>) a efekty príležitostí. Farby ostávajú tie, ktoré si kancelária nastavila
   v Dizajne (--green, --gold); šablóna mení rozloženie, hlavičku, úvodnú obrazovku, písmo a vzhľad kariet.
   „Klasik“ je pôvodný vzhľad — nemá tu žiadne pravidlá. */

/* ---- obrázok príležitosti alebo ročného obdobia na úvodnej obrazovke ---- */
html.has-theme-hero .hero { background-image: var(--theme-hero-image) !important; background-size: cover; background-position: center; }
html.has-theme-hero .page-hero { --page-image: var(--theme-hero-image); }

/* ---- efekty (sneh, konfety, lupene, lístie) ---- */
.page-hero { position: relative; }
.theme-effect { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.theme-effect i { position: absolute; top: -24px; display: block; background: #fff; border-radius: 50%; animation: theme-fall linear infinite; will-change: transform; }
.theme-effect-snow i { box-shadow: 0 0 6px #ffffffaa; }
.theme-effect-confetti i { border-radius: 2px; animation-name: theme-spin-fall; }
.theme-effect-petals i { border-radius: 80% 0 80% 0; animation-name: theme-spin-fall; }
.theme-effect-leaves i { border-radius: 0 70% 0 70%; animation-name: theme-spin-fall; }
@keyframes theme-fall { to { transform: translate3d(var(--drift, 0), 110vh, 0); } }
@keyframes theme-spin-fall { to { transform: translate3d(var(--drift, 0), 110vh, 0) rotate(720deg); } }
.theme-preview-note { position: fixed; z-index: 3000; top: 10px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; color: #17231e; background: #ffe9a8; box-shadow: 0 6px 24px #0003; font: 600 13px/1.4 "DM Sans","DM Sans Fallback", system-ui, sans-serif; white-space: nowrap; }
.theme-preview-note a { margin-left: 10px; color: inherit; }

/* ============ VYHĽADÁVANIE: nadpis a hneď pod ním vyhľadávanie ============ */
html.tpl-search main, html.tpl-corporate main { display: flex; flex-direction: column; }
html.tpl-search .site-header, html.tpl-corporate .site-header { color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }
html.tpl-search .hero { flex-direction: column; justify-content: center; height: auto; min-height: 640px; padding: 170px clamp(20px, 6vw, 90px) 80px; text-align: center; }
html.tpl-search .hero-shade { background: #0b1713b3; }
html.tpl-search .hero-content { margin-inline: auto; }
html.tpl-search .hero h1 { font-size: clamp(38px, 5.2vw, 68px); }
html.tpl-search .hero-lead { margin-inline: auto; }
html.tpl-search .hero-choice { display: none; }
html.tpl-search .hero .property-search, html.tpl-search .hero .property-search.reveal.visible { position: relative; inset: auto; width: min(100%, 1180px); margin: 34px auto 0; transform: none; opacity: 1; text-align: left; }
html.tpl-search .hero-foot { display: none; }
html.tpl-search .properties-section { order: 1; padding-top: 70px; }
html.tpl-search .trust-strip { order: 2; border-top: 1px solid var(--line); }
.trust-strip[hidden] { display: none !important; }
/* Logo kancelárie namiesto iniciál v značke. */
.brand > span.has-office-logo { display: inline-grid; place-items: center; padding: 3px; overflow: hidden; }
.brand > span.has-office-logo img.office-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Lišta ako kroky predaja: číslo v krúžku a názov kroku. */
.trust-strip.is-steps > div { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.trust-strip.is-steps strong { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--gold); font-size: 16px; }
.trust-strip.is-steps span { color: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; }
html.tpl-search main > section:not(.hero):not(.properties-section):not(.trust-strip) { order: 3; }
html.tpl-search .property-card { border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
html.tpl-search .property-card:hover { box-shadow: 0 10px 30px #17231e1a; }
html.tpl-search .hero h1 em, html.tpl-search .section-head h2 em { font-family: inherit; font-style: normal; }

/* ============ KORPORÁT: text vľavo na svetlom, fotografia vpravo ============ */
html.tpl-corporate .hero { flex-direction: column; align-items: flex-start; justify-content: center; height: auto; min-height: 660px; padding: 150px clamp(25px, 6vw, 96px) 70px; color: var(--ink); background-position: 100% center; }
html.tpl-corporate .hero-shade { inset: 0 auto 0 0; width: 54%; background: #f6f4ee; box-shadow: 30px 0 60px #f6f4ee; }
html.tpl-corporate .hero-content { width: min(46%, 640px); max-width: none; }
html.tpl-corporate .hero .eyebrow.light { color: var(--gold); }
html.tpl-corporate .hero h1 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -.035em; }
html.tpl-corporate .hero h1 em, html.tpl-corporate .section-head h2 em, html.tpl-corporate .about h2 em, html.tpl-corporate .service-copy h2 em { font-family: inherit; font-style: normal; color: var(--gold); }
html.tpl-corporate .hero-lead { color: #4b5852; }
html.tpl-corporate .hero-choice a { color: var(--ink); background: none; border: 1px solid #17231e55; border-radius: 4px; }
html.tpl-corporate .hero-choice a:first-child { color: #fff; background: var(--green); border-color: var(--green); }
html.tpl-corporate .hero .property-search, html.tpl-corporate .hero .property-search.reveal.visible { position: relative; inset: auto; width: min(46%, 640px); margin-top: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); transform: none; opacity: 1; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px #17231e14; }
/* Všetkých šesť polí v dvoch radoch po tri, tlačidlo pod nimi na celú šírku — nič sa neorezáva. */
html.tpl-corporate .hero .property-search label { min-width: 0; padding: 10px 14px; }
html.tpl-corporate .hero .property-search label:nth-of-type(3n) { border-right: 0; }
html.tpl-corporate .hero .property-search label:nth-of-type(-n+3) { border-bottom: 1px solid var(--line); }
html.tpl-corporate .hero .property-search select { min-width: 0; text-overflow: ellipsis; }
html.tpl-corporate .hero .property-search button { grid-row: auto; grid-column: 1 / -1; min-height: 48px; margin-top: 8px; border-radius: 4px; }
html.tpl-corporate .hero-foot { display: none; }
html.tpl-corporate .trust-strip { order: 1; }
html.tpl-corporate .service-intro { order: 2; }
html.tpl-corporate .properties-section { order: 3; }
html.tpl-corporate main > section:not(.hero):not(.trust-strip):not(.service-intro):not(.properties-section) { order: 4; }
html.tpl-corporate .property-card, html.tpl-corporate .location-grid a, html.tpl-corporate .service-image { border-radius: 4px; }
html.tpl-corporate .light-button, html.tpl-corporate .outline-button, html.tpl-corporate .text-button { border-radius: 4px; }

/* ============ LUXUS: tmavé pozadie, fotografia na celú obrazovku, minimum textu ============ */
html.tpl-luxury body { color: #e9e5dc; background: #0c0e0d; }
html.tpl-luxury .site-header nav a { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
html.tpl-luxury .site-header.scrolled { color: #e9e5dc; background: #0c0e0df2; box-shadow: 0 6px 30px #00000055; }
html.tpl-luxury .hero { align-items: flex-end; padding-bottom: 120px; }
html.tpl-luxury .hero-shade { background: linear-gradient(0deg, #0c0e0d 0%, #0c0e0d99 30%, #0c0e0d22 70%); }
html.tpl-luxury .hero h1 { font-family: "Playfair Display","Playfair Fallback", serif; font-weight: 500; font-size: clamp(44px, 6.4vw, 96px); letter-spacing: -.02em; }
html.tpl-luxury .hero-lead, html.tpl-luxury .hero .property-search, html.tpl-luxury .hero-foot { display: none; }
html.tpl-luxury .hero-choice a { color: #fff; border-radius: 0; background: none; border: 1px solid #ffffff80; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
html.tpl-luxury .trust-strip, html.tpl-luxury .section, html.tpl-luxury .properties-section, html.tpl-luxury .service-intro, html.tpl-luxury .locations, html.tpl-luxury .about, html.tpl-luxury .ai-showcase { color: #e9e5dc; background: #0c0e0d; border-color: #ffffff1f; }
html.tpl-luxury .section { padding-top: 140px; padding-bottom: 140px; }
html.tpl-luxury h2, html.tpl-luxury h3, html.tpl-luxury .trust-strip strong, html.tpl-luxury .property-bottom strong { color: #f4f1ea; }
html.tpl-luxury .section-head h2, html.tpl-luxury .service-copy h2, html.tpl-luxury .about h2 { font-family: "Playfair Display","Playfair Fallback", serif; font-weight: 500; letter-spacing: -.01em; }
html.tpl-luxury p, html.tpl-luxury .property-location, html.tpl-luxury .property-meta, html.tpl-luxury .trust-strip span, html.tpl-luxury .service-list p { color: #b9b4a9; }
html.tpl-luxury .property-card, html.tpl-luxury .service-list article, html.tpl-luxury .testimonial { color: #e9e5dc; background: #141716; border: 1px solid #ffffff14; border-radius: 0; box-shadow: none; }
html.tpl-luxury .property-photo img, html.tpl-luxury .service-image, html.tpl-luxury .location-grid a { border-radius: 0; }
html.tpl-luxury .property-tabs button { color: #b9b4a9; background: none; border-color: #ffffff2e; border-radius: 0; }
html.tpl-luxury .property-tabs button.active { color: #0c0e0d; background: var(--gold); border-color: var(--gold); }
html.tpl-luxury .mobile-price-row { background: none; border-bottom: 1px solid #ffffff1f; }
html.tpl-luxury .mpr-price { color: #f4f1ea; }
html.tpl-luxury .text-button, html.tpl-luxury .gold-link { color: var(--gold2, #d0b880); }

/* ============ FOTOGRAFIA: čistá fotografia hore, pod ňou biela karta s nadpisom a vyhľadávaním ============
   Na fotografii nie je žiadny text ani tmavý závoj — len menu. Nadpis, tlačidlá a vyhľadávanie sú na bielej karte,
   ktorá fotografiu zospodu prekrýva. Ponuky sú vo veľkých kartách po dvoch, namiesto čísel sú kroky predaja. */
html.tpl-photo body { background: var(--cream); }
html.tpl-photo .hero { flex-direction: column; align-items: center; justify-content: flex-end; height: auto; min-height: 0; margin-bottom: 150px; padding: min(54vh, 500px) clamp(16px, 4vw, 60px) 0; color: var(--ink); }
html.tpl-photo .hero-shade { background: linear-gradient(180deg, #0b1713a6 0, #0b171300 26%); }
html.tpl-photo .hero-content { top: 120px; width: min(1080px, 100%); max-width: none; padding: 46px clamp(20px, 5vw, 76px) 30px; text-align: center; background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -18px 60px #08110e33; }
html.tpl-photo .hero .eyebrow.light { color: var(--gold); }
html.tpl-photo .hero h1 { font-size: clamp(34px, 4.4vw, 60px); }
html.tpl-photo .hero h1 em { color: var(--gold); }
html.tpl-photo .hero-lead { margin-inline: auto; color: var(--muted); }
html.tpl-photo .hero-choice { justify-content: center; }
html.tpl-photo .hero-choice a { justify-content: center; gap: 10px; min-width: 0; padding: 14px 28px; border-radius: 999px; }
html.tpl-photo .hero-choice a:first-child { color: #fff; background: var(--green); }
html.tpl-photo .hero-choice a + a { color: var(--ink); background: none; border: 1px solid #17231e40; }
html.tpl-photo .hero .property-search, html.tpl-photo .hero .property-search.reveal.visible { position: relative; inset: auto; top: 120px; width: min(1080px, 100%); margin: 0; padding: 14px; transform: none; opacity: 1; border-top: 1px solid var(--line); border-radius: 0 0 28px 28px; box-shadow: 0 34px 60px #08110e26; }
html.tpl-photo .hero-foot { display: none; }
html.tpl-photo .trust-strip { margin: 0 clamp(16px, 4vw, 60px); border: 0; border-radius: 22px; color: #fff; background: var(--green); }
html.tpl-photo .trust-strip > div { border-left-color: #ffffff2e; }
html.tpl-photo .trust-strip strong { color: #fff; }
html.tpl-photo .trust-strip.is-steps strong { color: var(--green); background: var(--gold2, #d0b880); }
html.tpl-photo .trust-strip span, html.tpl-photo .trust-strip > p { color: #ffffffd0; }
html.tpl-photo .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
html.tpl-photo .property-card { border-radius: 26px; overflow: hidden; }
html.tpl-photo .service-image, html.tpl-photo .location-grid a { border-radius: 26px; }
html.tpl-photo .light-button, html.tpl-photo .outline-button, html.tpl-photo .text-button, html.tpl-photo .property-search button { border-radius: 999px; }

/* ---- telefón a tablet ---- */
@media (max-width: 900px) {
  html.tpl-corporate .hero { background-position: center; padding-top: 120px; }
  html.tpl-corporate .hero-shade { width: 100%; background: #f6f4eeeb; box-shadow: none; }
  html.tpl-corporate .hero-content, html.tpl-corporate .hero .property-search, html.tpl-corporate .hero .property-search.reveal.visible { width: 100%; }
  html.tpl-corporate .hero .property-search { grid-template-columns: 1fr 1fr; }
  html.tpl-corporate .hero .property-search button { grid-column: 1 / -1; }
  html.tpl-search .hero { min-height: 0; padding: 120px 16px 50px; }
  html.tpl-photo .hero { margin-bottom: 0; padding: 36vh 12px 0; }
  html.tpl-photo .hero-content, html.tpl-photo .hero .property-search, html.tpl-photo .hero .property-search.reveal.visible { top: 0; }
  html.tpl-photo .hero-content { padding: 28px 18px 20px; border-radius: 22px 22px 0 0; }
  html.tpl-photo .hero .property-search { margin-bottom: 26px; border-radius: 0 0 22px 22px; }
  html.tpl-photo .property-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-strip.is-steps { grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
  .trust-strip.is-steps > p { grid-column: 1 / -1; }
  .trust-strip.is-steps > div { justify-items: start; }
  .trust-strip.is-steps span { font-size: 11px; }
  html.tpl-luxury .section { padding-top: 80px; padding-bottom: 80px; }
  html.tpl-luxury .hero { padding-bottom: 70px; }
}
