@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary-dark: #0F491F;
  --primary-light: #C1E8A1;
  --light-green: #C1E8A1;
  --mid-green: #5EBB78;
  /* tmavsi odstin pro TEXT na svetlem pozadi - #5EBB78 ma na bile jen 2,4:1 */
  --mid-green-ink: #2E7D45;
  --grey: #E1E1E1;
  --white: #FFFFFF;
  --text-main: var(--primary-dark);
  --text-muted: #4A6753;
  --bg-light: #F9FBF9;

  --font-main: 'Hanken Grotesk', sans-serif;

  --radius-sm: 15px;
  --radius-md: 8px;
  --radius-lg: 15px;
  --radius-pill: 500px;

  --section-padding: 5rem 0;
}

/* Skryto vizualne, ctecky obrazovky a vyhledavace ho vidi */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* TYPOGRAPHY */
h1,
.display {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2,
.headline {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3,
.title {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

p,
.body-text {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
}

/* COMPONENTS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: var(--section-padding);
}

.section-head {
  max-width: 700px;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--mid-green);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--light-green);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--mid-green);
  color: var(--white);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background-color: var(--light-green);
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: opacity 0.3s ease;
}

.link-arrow:hover {
  opacity: 0.7;
}

/* HEADER */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  color: var(--white);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.header.header-scrolled,
.header.nav-open {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

/* Kotvy (#kontakt apod.) nesmi zajet pod fixni hlavicku */
section[id] {
  scroll-margin-top: calc(var(--header-h, 101px) + 8px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-img {
  object-fit: contain;
  flex-shrink: 0;
  max-width: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
}

.logo-subtitle {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--mid-green);
}

.nav {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: clamp(1rem, 2.2vw, 2rem);
    font-weight: 500;
  }

  /* Bez tohoto se v uzkem pasmu kolem 768 px "Costa del Sol" zalomi na tri radky */
  .nav a {
    white-space: nowrap;
  }

  .nav a:hover,
  .nav a.active {
    color: var(--mid-green-ink);
  }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 73, 31, 0) 0%, rgba(15, 73, 31, 0.8) 100%);
}

.text-white {
  color: var(--white) !important;
}

.badge-light {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: saturate(180%) blur(4px);
  -webkit-backdrop-filter: saturate(180%) blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 992px) {
  .hero-container {
    flex-direction: row;
    align-items: center;
  }
}

.hero-content {
  max-width: 800px;
}

.hero-content .display {
  margin-bottom: 1.5rem;
}

.hero-content .body-text {
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* TRUSTBAR */
.trustbar {
  background-color: transparent;
  padding: 3rem 0;
}

.trustbar-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .trustbar-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--mid-green-ink);
}

.stat-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  border: none;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  transition: background-color 0.4s ease;
}

.service-card:hover .service-card-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

.service-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
  color: var(--white);
}

.service-card .title {
  margin-bottom: 0;
  color: var(--white);
  transition: margin-bottom 0.4s ease;
}

.service-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.4s ease;
}

.service-card:hover .title {
  margin-bottom: 1rem;
}

.service-card:hover .service-details {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
}

.service-card .link-arrow {
  color: var(--light-green);
  margin-top: 1rem;
}

/* STORY */
.story-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .story-container {
    flex-direction: row;
  }
}

.story-media {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Na uzkych displejich ma byt nejdriv text a fotka az pod nim. */
@media (max-width: 991px) {
  .story-media {
    order: 2;
  }
}

.story-content {
  flex: 1;
}

/* PROPERTIES */
.property-row {
  margin-bottom: 4rem;
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--grey);
}

.row-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.row-link {
  font-weight: 600;
  color: var(--mid-green-ink);
}

.row-link:hover {
  text-decoration: underline;
}

.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* mezistupen pro tablet, at se nazvy a ceny nelamou */
@media (min-width: 768px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.property-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--grey);
  transition: transform 0.3s ease;
}

/* Karty vykreslene z dat jsou odkazy na detail */
a.property-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: var(--white);
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Zvyrazneni karty pri najeti na marker v mape */
.property-card.is-active {
  border-color: var(--primary-dark);
  box-shadow: 0 12px 26px rgba(15, 73, 31, 0.18);
}

.property-img {
  position: relative;
  height: 220px;
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: var(--white);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.property-info {
  padding: 1.5rem;
}

.property-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.property-location {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.property-price {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.property-meta {
  font-size: 0.875rem;
}

.divider {
  height: 1px;
  background-color: var(--grey);
  margin: 3rem 0;
}

/* PARTNERS */
.partners {
  padding: 0 0 3rem 0;
  margin-top: -3rem;
  background-color: transparent;
}

.partners-marquee-wrapper {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  display: flex;
}

.partners-marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-left: 4rem;
  width: max-content;
  animation: scroll-left 25s linear infinite;
}

.partners-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Loga partneru v pasu: jednobarevna varianta z loga/svg-mono, aby pas pusobil
   jednotne. Ruzne pomery stran srovnava pevna vyska + object-fit. */
.partner-logo {
  width: 150px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.partner-logo:hover {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .partner-logo {
    width: 118px;
    height: 36px;
  }
}

/* ADVANTAGES */
.advantages-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 992px) {
  .advantages-container {
    flex-direction: row;
  }
}

.advantages-left {
  flex: 1;
}

.advantages-right {
  flex: 1.5;
}

.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.adv-card {
  padding: 1.5rem;
  border-left: 2px solid var(--mid-green);
}

.adv-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mid-green-ink);
  display: block;
  margin-bottom: 0.5rem;
}

/* TEASER */
.teaser-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .teaser-container {
    flex-direction: row;
  }
}

.teaser-content {
  flex: 1;
}

.teaser-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.t-stat {
  display: flex;
  flex-direction: column;
}

.t-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mid-green);
}

.t-desc {
  font-size: 0.875rem;
}

.teaser-media {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* REELS */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .reels-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reel-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9/16;
  background-color: var(--black);
  color: var(--white);
  cursor: pointer;
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.reel-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.views {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}

/* REVIEWS */
.bg-light {
  background-color: var(--bg-light);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.rating {
  font-weight: 600;
  /* Hvezdicky si drzi zlatou inline; text musi byt citelny (#F59E0B mel na svetlem pozadi 2,1:1) */
  color: var(--primary-dark);
  font-size: 1.125rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.review-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.review-author {
  font-weight: 600;
}

/* CASES (FLIPY) */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--grey);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.case-imgs {
  display: flex;
}

.case-imgs img {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 200px;
  object-fit: cover;
}

.case-info {
  padding: 1.5rem;
}

.case-stats {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  border-bottom: 1px dashed var(--grey);
  padding-bottom: 0.25rem;
}

.case-profit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-green);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.case-profit strong {
  font-size: 1.25rem;
  color: var(--primary-dark);
}

/* FOOTER */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand .title {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  opacity: 0.8;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links a,
.footer-contact p {
  display: block;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--light-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (max-width: 767px) {
  .footer-layout {
    text-align: center;
    justify-items: center;
  }
  .footer-col {
    align-items: center !important;
  }
  .footer-col .logo-wrapper {
    justify-content: center;
  }
  .footer-legal {
    justify-content: center !important;
  }
  .footer-legal > div {
    justify-content: center;
  }
}
@media (min-width: 768px) {
  .footer-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-layout {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
  }
}

.footer a {
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--white) !important;
}


/* ==========================================================
   OBNOVENO: hlavicka, mobilni menu, reveal animace, FAQ, reels.
   Tato pravidla se omylem smazala pri odstranovani newsletteru.
   Novejsi upravy jsou nize v souboru, takze prepisou, co maji.
   ========================================================== */

.header.header-scrolled .logo-default,
.header.nav-open .logo-default {
  display: none !important;
}

.header.header-scrolled .logo-scrolled-img,
.header.nav-open .logo-scrolled-img {
  display: block !important;
}

/* Mobile menu styles */
@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    color: var(--white);
  }

  .header.header-scrolled .mobile-menu-btn,
  .header.nav-open .mobile-menu-btn {
    color: var(--primary-dark);
  }

  .header-cta {
    display: none !important;
  }

  .nav {
    position: fixed !important;
    top: 90px;
    left: 0;
    right: 0;
    background: #fff;
    backdrop-filter: blur(10px);
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex !important;
    z-index: 90;
  }

  .nav.active {
    clip-path: inset(0 0 0 0);
  }

  .nav a {
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 600;
  }

  .nav a.nav-mobile-cta {
    color: var(--white) !important;
  }
}

@media (min-width: 768px) {
  .nav-mobile-cta {
    display: none !important;
  }
}

/* ==========================================================================
   JEDNOTNY REVEAL SYSTEM
   --------------------------------------------------------------------------
   Jeden zaklad pro celý web: fade in je hlavní efekt, posun je jen drobný
   doprovod (max 22 px), aby nic neposkakovalo. Animuje se výhradně opacity
   a transform, takže to jede na kompozitoru a neškube to ani na mobilu.

   Třídy:
     .reveal-up / .reveal-soft  - zezdola nahoru (soft = stejné, kvůli
                                  zpětné kompatibilitě s costa-del-sol)
     .reveal-left / .reveal-right - jemný příjezd z boku
     .delay-50 ... .delay-400   - ruční stagger

   Pojistky, aby obsah nikdy nezůstal neviditelný:
     1. bez JS -> <noscript> v hlavičce každé stránky vše odkryje
     2. prefers-reduced-motion -> pravidlo dole vše odkryje bez animace
     3. chybí IntersectionObserver -> js/script.js přidá .active všemu
   ========================================================================== */
:root {
  --reveal-dur: 0.7s;
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-shift: 22px;
  --reveal-shift-x: 28px;
}

.reveal-up,
.reveal-soft,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity var(--reveal-dur) var(--reveal-ease),
    transform var(--reveal-dur) var(--reveal-ease);
}

.reveal-up,
.reveal-soft {
  transform: translate3d(0, var(--reveal-shift), 0);
}

.reveal-left {
  transform: translate3d(calc(var(--reveal-shift-x) * -1), 0, 0);
}

.reveal-right {
  transform: translate3d(var(--reveal-shift-x), 0, 0);
}

.reveal-up.active,
.reveal-soft.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger pro položky v mřížce - decentní, ať se čekání nenatahuje */
.delay-50 {
  transition-delay: 40ms;
}

.delay-100 {
  transition-delay: 80ms;
}

.delay-150 {
  transition-delay: 120ms;
}

.delay-200 {
  transition-delay: 160ms;
}

.delay-250 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 240ms;
}

.delay-400 {
  transition-delay: 320ms;
}

/* Počítadlo čísel: číslice stejné šířky, ať text během načítání neposkakuje */
.stat-number,
.t-num,
.kpi-val,
.band-num,
.strip-num,
[data-count] {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {

  .reveal-up,
  .reveal-soft,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
}

/* HOVER ENHANCEMENTS */
.service-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.property-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.property-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.adv-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--radius-md);
}

.adv-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* REELS COVERFLOW */
.reels-coverflow {
  width: 100%;
  padding-bottom: 50px;
}

.reels-coverflow .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 320px;
  height: 550px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.reels-coverflow .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.reels-coverflow .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.reels-coverflow .swiper-slide:hover::after {
  background: rgba(0, 0, 0, 0.5);
}

.reels-coverflow .swiper-slide:hover img {
  transform: scale(1.05);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 1.5rem 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  color: var(--white);
  text-align: left;
  z-index: 2;
}

.slide-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0;
  transform: translateY(1rem);
  transition: transform 0.4s ease, margin-bottom 0.4s ease;
}

.slide-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0;
  max-height: 0;
  transform: translateY(1rem);
  transition: all 0.4s ease;
}

.reels-coverflow .swiper-slide:hover .slide-content h3 {
  transform: translateY(0);
  margin-bottom: 0.5rem;
}

.reels-coverflow .swiper-slide:hover .slide-content p {
  opacity: 0.9;
  max-height: 100px;
  transform: translateY(0);
}

.swiper-button-next,
.swiper-button-prev {
  --swiper-navigation-color: var(--primary-dark);
  --swiper-navigation-size: 1rem;
  background: transparent;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  border-radius: 50% !important;
  border: 2px solid var(--primary-dark);
  box-shadow: none;
  transition: all 0.3s ease;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  --swiper-navigation-color: var(--white);
  background: var(--primary-dark);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-weight: 900 !important;
  -webkit-text-stroke: 1.5px var(--swiper-navigation-color);
}

.swiper-pagination-bullet-active {
  background: var(--primary);
}

/* Reels Slider Navigation Specifics */
.reels-slider-wrapper .reels-pagination {
  bottom: -2rem;
}

.reels-slider-wrapper .reels-next {
  right: -4rem;
}

.reels-slider-wrapper .reels-prev {
  left: -4rem;
}

/* Mobile specific overrides */
@media (max-width: 768px) {
  .reels-slider-wrapper {
    padding-bottom: 3rem;
  }

  .reels-slider-wrapper .reels-pagination {
    bottom: 3.5rem;
  }

  .reels-slider-wrapper .reels-next,
  .reels-slider-wrapper .reels-prev {
    top: auto;
    bottom: 0;
    transform: none;
    margin: 0;
  }

  .reels-slider-wrapper .reels-prev {
    left: calc(50% - 3.5rem);
  }

  .reels-slider-wrapper .reels-next {
    right: calc(50% - 3.5rem);
  }
}

/* FAQ Animations */
.faq-accordion details p {
  overflow: hidden;
}

.faq-accordion details[open] p {
  animation: faqSlideDown 0.4s linear forwards;
}

.faq-accordion details.closing p {
  animation: faqSlideUp 0.4s linear forwards;
}

@keyframes faqSlideDown {
  0% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    margin-top: 0;
  }

  100% {
    opacity: 1;
    max-height: 200px;
    padding-top: 0;
  }
}

@keyframes faqSlideUp {
  0% {
    opacity: 1;
    max-height: 200px;
    padding-top: 0;
  }

  100% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    margin-top: 0;
  }
}

.faq-accordion details summary::-webkit-details-marker {
  display: none;
}

.faq-accordion details summary span {
  display: inline-block;
  transition: transform 0.4s linear;
}

.faq-accordion details[open] summary span {
  transform: rotate(45deg);
}

.faq-accordion details.closing summary span {
  transform: rotate(0deg);
}


/* ==========================================================
   PATICKA
   Ctyri sloupce na desktopu, na mobilu vse pod sebou a na stred
   (podle schvalene predlohy). Styly jsou tady, ne inline, aby
   paticka byla na vsech strankach opravdu stejna.
   ========================================================== */
.footer-inner {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-claim {
  color: var(--primary-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.footer-social {
  margin-top: 1rem;
}

.footer-social-label {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-social a {
  color: var(--primary-light);
  display: inline-block;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--primary-light);
}

.footer-address {
  color: var(--primary-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(193, 232, 161, 0.5);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--primary-light);
  font-size: 0.85rem;
}

.footer-legal p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--primary-light);
}

@media (max-width: 767px) {
  .footer-brand,
  .footer-claim,
  .footer-address {
    max-width: none;
  }
  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
}
/* ==========================================================================
   KOUPIT PAGE STYLES
   ========================================================================== */

/* Hero Koupit */
.hero-koupit {
  background-color: var(--bg-light);
  padding-top: 6rem;
  height: 85vh;
  min-height: 750px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .hero-koupit-container {
    flex-direction: column;
    padding-top: 6rem;
  }
  .hero-koupit-img {
    height: 350px !important;
    width: 100%;
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  background: transparent;
  font-family: inherit;
}

.btn-outline:hover {
  background-color: var(--primary-dark) !important;
  color: var(--white) !important;
}

/* What to buy cards */
.what-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

@media (max-width: 767px) {
  .what-cards {
    flex-direction: column;
  }
}

.what-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.what-link {
  transition: opacity 0.3s ease;
}

.what-link:hover {
  opacity: 0.7;
}

/* Split panel */
@media (max-width: 991px) {
  .split-panel {
    flex-direction: column;
  }
  .split-vs {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  .split-half {
    padding: 2.5rem !important;
  }
}

/* ==========================================================================
   TIMELINE - jeden sdileny mechanismus pro vsechny "jak to probiha" sekce
   --------------------------------------------------------------------------
   Dve varianty znacek:
   a) .timeline-h > .timeline-step  (koupit.html, resales.html)
      na desktopu vodorovna, na mobilu se preklopi do svisle
   b) .timeline-step-row            (investovat.html, novostavby.html,
                                     prodat.html) - vzdy svisla
   Geometrii ridi promenne --tl-circle (prumer kolecka), --tl-gap (mezera
   mezi kroky) a --tl-row-gap (mezera kolecko <-> obsah), takze cara vzdy
   sedi presne na stred kolecek i po zmene velikosti na mobilu.
   ========================================================================== */

.timeline-wrapper,
.vertical-timeline {
  --tl-circle: 56px;
  --tl-gap: 3rem;
  --tl-row-gap: 2rem;
}

.vertical-timeline {
  --tl-gap: 4rem;
  --tl-row-gap: 4rem;
}

/* --- b) svisla varianta: kolecko vlevo, obsah vpravo --- */
.timeline-step-row {
  display: flex;
  gap: var(--tl-row-gap);
  position: relative;
  z-index: 1;
  margin-bottom: var(--tl-gap);
}

.timeline-step-row:last-child {
  margin-bottom: 0;
}

.timeline-step-row .circle-col {
  width: var(--tl-circle);
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.timeline-step-row .step-circle {
  width: var(--tl-circle);
  height: var(--tl-circle);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

/* cara vede od spodku kolecka az k dalsimu kolecku */
.timeline-step-row:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(var(--tl-circle) / 2 - 1px);
  top: var(--tl-circle);
  bottom: calc(var(--tl-gap) * -1);
  width: 2px;
  background: var(--grey);
  z-index: 0;
}

/* obsah kroku nesmi pretect - min-width:0 vypne implicitni min-content */
.timeline-step-row > .step-card,
.timeline-step-row > .stack-card,
.timeline-step-row > .dist-network {
  flex: 1;
  min-width: 0;
}

/* --- a) vodorovna varianta se na mobilu preklopi do svisle --- */
@media (max-width: 991px) {
  .timeline-h {
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem !important;
  }

  /* vodorovna spojnice je jen pro desktop */
  .timeline-h .timeline-line-h {
    display: none;
  }

  /* mrizka: kolecko v levem sloupci, nadpis a text pod sebou v pravem
     (flex row by nadpis a odstavec postavil vedle sebe do uzkych sloupcu) */
  .timeline-h .timeline-step {
    display: grid !important;
    grid-template-columns: 50px 1fr;
    column-gap: 1.25rem;
    align-items: start;
    padding: 0 !important;
  }

  .timeline-h .timeline-circle {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .timeline-h .timeline-step > h3,
  .timeline-h .timeline-step > p {
    grid-column: 2;
  }

  .timeline-h .timeline-step > h3 {
    margin-top: 0;
  }

  /* svisla cara mezi kolecky (kolecko ma 50 px, stred je na 24 px) */
  .timeline-h .timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -2rem; /* = gap wrapperu, cara dosahne k dalsimu kolecku */
    width: 2px;
    background: var(--grey);
    z-index: 0;
  }
}

/* mensi kolecka a mezery na telefonu */
@media (max-width: 767px) {
  .timeline-wrapper,
  .vertical-timeline {
    --tl-circle: 44px;
    --tl-gap: 2.5rem;
    --tl-row-gap: 1rem;
  }

  .timeline-step-row .step-circle {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   MOBILNI HERO - sdilene pro vsechny podstranky (drive duplikovane inline)
   ========================================================================== */
@media (max-width: 991px) {
  .hero-koupit,
  .hero-prodat,
  .hero-invest,
  .hero-novostavby,
  .hero-resales {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 4rem !important;
  }

  /* .hero-koupit ma vlastni margin-top: 100px, nepotrebuje odsazeni navic */
  .hero-prodat,
  .hero-invest,
  .hero-novostavby,
  .hero-resales {
    padding-top: 120px !important;
  }

  .hero-koupit {
    padding-top: 2.5rem !important;
  }

  .hero-koupit-container,
  .hero-prodat-container,
  .hero-invest-container,
  .hero-novostavby-container,
  .hero-resales-container {
    flex-direction: column;
    gap: 2.5rem !important;
  }

  .hero-koupit-img,
  .hero-koupit-image,
  .hero-invest-image,
  .hero-novostavby-image,
  .hero-resales-image {
    height: 320px !important;
    width: 100% !important;
    flex: none !important;
  }
}

/* MAP LAYOUT (nemovitosti.html) */
.map-page {
  display: flex;
  height: 100vh;
  /* skutecnou vysku hlavicky doplni script.js do --header-h,
     protoze na mobilu je hlavicka jinak vysoka nez na desktopu */
  padding-top: var(--header-h, 101px);
  overflow: hidden;
}

.list-container {
  flex: 0 0 50%;
  max-width: 50%;
  height: 100%;
  overflow-y: auto;
  padding: 2rem;
  background-color: var(--white);
  transition: flex-basis 0.45s ease, max-width 0.45s ease, padding 0.45s ease;
}

.map-container {
  flex: 0 0 50%;
  max-width: 50%;
  height: 100%;
  position: relative;
  z-index: 1;
  transition: flex-basis 0.45s ease, max-width 0.45s ease;
}

#map {
  width: 100%;
  height: 100%;
}

/* ---- Prepinaci tlacitka mapy (nemovitosti.html) ---- */
/* Desktop: zvetsit / zmensit mapu. Mobil: zobrazit mapu / zpet na seznam. */
.map-size-toggle,
.map-view-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.map-size-toggle svg,
.map-view-toggle svg {
  flex-shrink: 0;
}

.map-size-toggle:focus-visible,
.map-view-toggle:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .map-size-toggle {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 58px; /* vedle leafletoveho zoomu vpravo nahore */
    z-index: 1000;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    border: 1.5px solid var(--primary-dark);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--primary-dark);
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(15, 73, 31, 0.2);
    transition: background 0.2s, color 0.2s;
  }

  .map-size-toggle:hover {
    background: var(--primary-light);
  }

  .map-size-toggle svg {
    transition: transform 0.35s ease;
  }

  .map-page.map-expanded .map-size-toggle svg {
    transform: rotate(180deg);
  }

  .map-size-toggle .lbl-collapse,
  .map-page.map-expanded .map-size-toggle .lbl-expand {
    display: none;
  }

  .map-page.map-expanded .map-size-toggle .lbl-collapse {
    display: inline;
  }

  /* Roztazena mapa: seznam se zuzi na uzky sloupec vlevo */
  .map-page.map-expanded .list-container {
    flex-basis: 30%;
    max-width: 30%;
    padding: 1.5rem 1.25rem;
  }

  .map-page.map-expanded .map-container {
    flex-basis: 70%;
    max-width: 70%;
  }
}

@media (max-width: 767px) {
  .map-page {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .list-container, .map-container {
    flex: 0 0 100%;
    max-width: 100%;
    transition: none;
  }

  .list-container {
    height: auto;
    padding-bottom: 6.5rem; /* misto pod plovouci tlacitko */
  }

  /* Vychozi pohled na mobilu je seznam, mapa se otevre az na klik */
  .map-container {
    display: none;
    height: auto;
    order: 0;
  }

  .map-page.map-open .list-container {
    display: none;
  }

  .map-page.map-open .map-container {
    display: block;
    position: fixed;
    top: var(--header-h, 101px);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 50;
  }

  .map-view-toggle {
    display: inline-flex;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    min-height: 48px;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.92rem;
    box-shadow: 0 10px 26px rgba(15, 73, 31, 0.35);
  }

  .map-view-toggle svg {
    color: var(--primary-light);
  }

  .map-view-toggle .mv-map,
  .map-view-toggle .mv-list {
    align-items: center;
    gap: 0.5rem;
  }

  .map-view-toggle .mv-map {
    display: inline-flex;
  }

  .map-view-toggle .mv-list {
    display: none;
  }

  .map-page.map-open .map-view-toggle .mv-map {
    display: none;
  }

  .map-page.map-open .map-view-toggle .mv-list {
    display: inline-flex;
  }
}

/* Mapa pres celou obrazovku nesmi nechat stranku rolovat pod sebou */
body.map-fullscreen {
  overflow: hidden;
}

/* Custom Leaflet Marker */
.custom-div-icon {
  background: none;
  border: none;
}
.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: var(--primary-dark);
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}
.marker-pin::after {
  content: '';
  width: 14px;
  height: 14px;
  margin: 8px 0 0 8px;
  background: white;
  position: absolute;
  border-radius: 50%;
}
.marker-text {
  position: absolute;
  width: 150px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  bottom: -24px;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary-dark);
  text-shadow: 1px 1px 3px white, -1px -1px 3px white, 1px -1px 3px white, -1px 1px 3px white;
  pointer-events: none;
}

/* Zvyrazneny marker (najeti na kartu v seznamu) */
.custom-div-icon.is-active {
  z-index: 1000 !important;
}

.custom-div-icon.is-active .marker-pin {
  background: var(--primary-light);
  border: 2.5px solid var(--primary-dark);
  transform: rotate(-45deg) scale(1.35);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.custom-div-icon.is-active .marker-pin::after {
  background: var(--primary-dark);
}

.custom-div-icon.is-active .marker-text {
  font-size: 14px;
}

/* ---- POPUP MAPY S FOTKOU ---- */
.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.leaflet-popup-content {
  margin: 0;
  width: 240px !important;
  line-height: 1.4;
}

.map-popup {
  display: block;
  text-decoration: none;
  color: var(--primary-dark);
  font-family: inherit;
}

.map-popup-img {
  width: 100%;
  height: 130px;
  display: block;
  object-fit: cover;
  background: var(--grey);
}

.map-popup-body {
  padding: 0.75rem 0.9rem 0.9rem;
}

.map-popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.15rem;
}

.map-popup-loc {
  font-size: 0.78rem;
  color: #5c6e63;
  margin: 0 0 0.45rem;
}

.map-popup-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 0.15rem;
}

.map-popup-meta {
  font-size: 0.75rem;
  color: #5c6e63;
  margin: 0 0 0.6rem;
}

.map-popup-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 1.5px solid var(--primary-light);
  padding-bottom: 1px;
}

.map-popup:hover .map-popup-cta {
  border-bottom-color: var(--primary-dark);
}

/* ==========================================================
   FILTRY - SPOLECNY MODERNI VZHLED
   Pouziva se na koupit / novostavby / resales (.simple-filter)
   a pres overrides niz i na nemovitosti.html (.filter-bar).
   Meni se jen vzhled - selektory trid pro JS zustavaji.
   ========================================================== */

/* Custom chevron (tmave zelena, SVG data URI) pro vsechny selecty filtru */
.simple-filter select,
#sort-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230F491F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}

.simple-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid #e3ede0;
  padding: 0.85rem 1rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 73, 31, 0.08);
  max-width: max-content;
  margin: 0 auto 3rem;
}

.simple-filter select {
  min-height: 44px;
  background-color: var(--white);
  border: 1.5px solid #dfe7e0;
  padding: 0.5rem 2.4rem 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-dark);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.simple-filter select:hover {
  border-color: var(--mid-green);
  background-color: #f6faf3;
}

.simple-filter select:focus-visible {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(94, 187, 120, 0.35);
}

/* Aktivni filtr (vybrana jina nez vychozi prazdna hodnota) - zvyrazneni.
   CSS-only pres :has(); v prohlizecich bez :has() zustane zakladni vzhled. */
.simple-filter select:not(:has(option:checked[value=""])) {
  background-color: var(--primary-light);
  border-color: var(--primary-dark);
  font-weight: 600;
}

.simple-filter .simple-filter-submit {
  min-height: 44px;
  padding: 0.5rem 1.6rem;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--primary-dark);
  color: var(--white);
  border: 1.5px solid var(--primary-dark);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 73, 31, 0.22);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.simple-filter .simple-filter-submit:hover {
  background: var(--mid-green);
  border-color: var(--mid-green);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 73, 31, 0.28);
}

.simple-filter .simple-filter-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 187, 120, 0.45);
}

.simple-filter .simple-filter-reset {
  min-height: 44px;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  background: none;
  border: 1.5px solid #dfe7e0;
  color: #5c6e63;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.simple-filter .simple-filter-reset:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  background: #f3f8ef;
}

.simple-filter .simple-filter-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 187, 120, 0.35);
}

.filter-empty {
  text-align: center;
  color: #5c6e63;
  font-size: 0.95rem;
  padding: 2.5rem 1rem;
}

@media (max-width: 600px) {
  .simple-filter {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    padding: 0.85rem;
  }
  .simple-filter select,
  .simple-filter .simple-filter-submit,
  .simple-filter .simple-filter-reset {
    width: 100%;
    min-height: 48px;
  }
}

/* ----------------------------------------------------------
   FILTR NA nemovitosti.html (.filter-bar) - restyling pouze
   pres vyssi specificitu (zakladni styly ma stranka inline).
   ---------------------------------------------------------- */
.filter-bar .filter-btn {
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border: 1.5px solid #dfe7e0;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(15, 73, 31, 0.05);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.filter-bar .filter-btn:hover {
  border-color: var(--mid-green);
  background: #f6faf3;
  box-shadow: 0 4px 12px rgba(15, 73, 31, 0.1);
}

.filter-bar .filter-btn.open {
  border-color: var(--primary-dark);
  background: #f6faf3;
}

/* Aktivni filtr (JS pridava .active, kdyz ma filtr hodnotu) */
.filter-bar .filter-btn.active {
  background: var(--primary-light);
  border-color: var(--primary-dark);
  font-weight: 600;
}

.filter-bar .filter-btn:focus-visible {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(94, 187, 120, 0.35);
}

.filter-bar .filter-btn .arrow {
  color: var(--mid-green-ink);
}

.filter-bar .filter-btn.active .arrow {
  color: var(--primary-dark);
}

.filter-dropdown .filter-panel {
  border: 1px solid #e3ede0;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 73, 31, 0.16);
  padding: 1.25rem;
}

.filter-panel .filter-option {
  min-height: 36px;
}

.filter-panel .filter-apply {
  min-height: 44px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(15, 73, 31, 0.22);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.filter-panel .filter-apply:hover {
  background: var(--mid-green);
  transform: translateY(-1px);
}

.filter-panel .filter-apply:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 187, 120, 0.45);
}

.filter-panel .price-inputs input {
  border-radius: 10px;
  min-height: 40px;
}

.filter-panel .price-inputs input:focus-visible {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(94, 187, 120, 0.3);
  outline: none;
}

.filter-bar .filter-reset {
  min-height: 44px;
  padding: 0.45rem 1.2rem;
  border: 1.5px solid #dfe7e0;
  border-radius: var(--radius-pill);
  color: #5c6e63;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-bar .filter-reset:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  background: #f3f8ef;
}

.filter-bar .filter-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 187, 120, 0.35);
}

/* Sort select na nemovitosti.html ma zakladni styly v inline style=""
   atributu - proto !important, at sedi do jednotneho vzhledu filtru. */
#sort-select {
  min-height: 44px;
  border: 1.5px solid #dfe7e0 !important;
  background-color: var(--white) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230F491F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 12px 8px !important;
  box-shadow: 0 2px 8px rgba(15, 73, 31, 0.05);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

#sort-select:hover {
  border-color: var(--mid-green) !important;
  background-color: #f6faf3 !important;
}

#sort-select:focus-visible {
  border-color: var(--primary-dark) !important;
  box-shadow: 0 0 0 3px rgba(94, 187, 120, 0.35);
}

/* ==========================================================
   PODEKOVANI PO ODESLANI FORMULARE
   ========================================================== */
.form-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  min-height: 220px;
  padding: 2rem 0;
  color: var(--primary-light);
}

.form-thanks p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

/* ==========================================================
   COOKIE LISTA
   ========================================================== */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--primary-dark);
  border-top: 1px solid rgba(193, 232, 161, 0.35);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-bar-visible {
  transform: translateY(0);
}

.cookie-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-bar-text {
  margin: 0;
  flex: 1 1 420px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.55;
}

.cookie-bar-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-bar-btn {
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.7rem 2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.cookie-bar-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .cookie-bar-inner {
    padding: 1rem;
    gap: 0.9rem;
  }
  .cookie-bar-btn {
    width: 100%;
  }
}

/* ==========================================================
   PRAVNI STRANKY (ochrana osobnich udaju, obchodni podminky)
   ========================================================== */
.legal-page {
  padding-top: 145px;
  padding-bottom: 5rem;
  background: var(--white);
}

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.legal-wrap h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: #6b7d70;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--grey);
}

.legal-wrap h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 2.5rem 0 0.85rem;
}

.legal-wrap h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 1.75rem 0 0.6rem;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #3c4b41;
}

.legal-wrap p {
  margin: 0 0 1rem;
}

.legal-wrap ul {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
  list-style: disc outside;
}

.legal-wrap li::marker {
  color: var(--mid-green);
}

.legal-wrap li {
  margin-bottom: 0.5rem;
}

.legal-wrap a {
  color: var(--primary-dark);
  font-weight: 600;
}

.legal-box {
  background: var(--bg-light);
  border: 1px solid var(--grey);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SCROLL AUTO-OPEN NA DOTYKOVYCH ZARIZENICH
   --------------------------------------------------------------------------
   "Kdyz scrolluju, ono se to samo otevre." Karta dostane tridu .in-view,
   jakmile je zhruba uprostred obrazovky (dela to IntersectionObserver
   v js/script.js), a zase ji ztrati, kdyz z pasma vyjede.

   Trojita pojistka, aby se obsah nikdy neztratil:
     1. bez JS       -> na <body> neni .anim-on, vse je normalne videt
     2. reduced-motion -> JS .anim-on nepridava, vse je normalne videt
     3. .anim-on     -> obsah se schova a odkryva ho az .in-view
   Na desktopu (hover: hover) se nic z toho neuplatni, tam zustava hover.
   ========================================================================== */

@media (hover: none) {
  /* dotykove zarizeni nema hover - zabranime "zaseknutemu" hover stavu */
  .property-card:hover,
  .service-card:hover,
  .what-card:hover,
  .case-card:hover {
    transform: none;
  }

  /* --- karty sluzeb: popisek je videt, dokud nebezi animace --- */
  .service-card .title {
    margin-bottom: 1rem;
  }

  .service-details {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
  }

  body.anim-on .service-card .title {
    margin-bottom: 0;
  }

  body.anim-on .service-details {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }

  body.anim-on .service-card.in-view .title {
    margin-bottom: 1rem;
  }

  body.anim-on .service-card.in-view .service-details {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
  }

  body.anim-on .service-card.in-view .service-card-overlay {
    background-color: rgba(0, 0, 0, 0.35);
  }

  /* --- karty nemovitosti a kroku: zvyrazneni misto hoveru --- */
  body.anim-on .property-card,
  body.anim-on .step-card,
  body.anim-on .stack-card,
  body.anim-on .case-card {
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
      box-shadow 0.45s ease, border-color 0.3s ease;
  }

  body.anim-on .property-card.in-view {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-dark);
  }

  body.anim-on .step-card.in-view,
  body.anim-on .stack-card.in-view,
  body.anim-on .case-card.in-view {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
  }

  /* --- timeline: kolecko kroku, na kterem prave jsem, se rozzari --- */
  body.anim-on .timeline-step-row .step-circle,
  body.anim-on .timeline-h .timeline-circle {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease;
  }

  body.anim-on .timeline-step-row.in-view .step-circle,
  body.anim-on .timeline-h .timeline-step.in-view .timeline-circle {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(94, 187, 120, 0.22);
  }
}

/* posledni pojistka: kdyz uzivatel nechce animace, nic se neschovava */
@media (prefers-reduced-motion: reduce) {
  body.anim-on .service-details {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
  }

  body.anim-on .service-card .title {
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   HERO BADGE - na uzkem displeji se dlouhy text lamal, radeji ho skryjeme
   ========================================================================== */
@media (max-width: 430px) {
  .hero-koupit .badge {
    display: none;
  }
}

/* Zadna nativni sipka prehravani na hero videu - kdyz prohlizec autoplay
   zablokuje (iOS Low Power Mode), navstevnik vidi poster snimek a video
   se rozjede pri prvnim dotyku. */
#hero-video::-webkit-media-controls,
#hero-video::-webkit-media-controls-start-playback-button,
#hero-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}
