/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.site-header.is-menu-open {
  background: var(--color-white);
  backdrop-filter: none;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.site-header.is-menu-open .logo__name {
  color: var(--color-navy);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header .logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
}

.logo__tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav-desktop a:hover {
  color: var(--color-navy);
}

.nav-desktop a.is-active,
.nav-desktop a[aria-current="page"] {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 0.6em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-red);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.header-phone:hover {
  color: var(--color-navy);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-navy);
}

.menu-toggle #menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.menu-toggle svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

/* Transparent header on homepage hero */
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) {
  background: transparent;
  box-shadow: none;
}

.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .logo__name {
  color: var(--color-white);
}

.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .nav-desktop a {
  color: rgba(255, 255, 255, 0.88);
}

.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .nav-desktop a:hover,
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .nav-desktop a.is-active,
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .nav-desktop a[aria-current="page"] {
  color: var(--color-white);
}

.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .header-phone {
  color: rgba(255, 255, 255, 0.88);
}

.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .header-phone:hover {
  color: var(--color-white);
}

.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .menu-toggle {
  color: var(--color-white);
}

/* Mobile nav */
.nav-mobile__backdrop {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 108;
  background: rgba(10, 37, 64, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-mobile__backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  transform: translateY(-100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  z-index: 109;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
}

.nav-mobile.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile__links {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem clamp(1.5rem, 6vw, 2rem) 0.5rem;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background var(--transition);
}

.nav-mobile a:hover {
  background: var(--color-warm);
}

.nav-mobile a.is-active,
.nav-mobile a[aria-current="page"] {
  color: var(--color-navy);
  background: var(--color-warm);
  text-decoration: underline;
  text-underline-offset: 0.6em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-red);
}

.nav-mobile__footer {
  flex-shrink: 0;
  padding: 1.25rem clamp(1.5rem, 6vw, 2rem) max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

.nav-mobile__phone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }
  .menu-toggle,
  .nav-mobile,
  .nav-mobile__backdrop {
    display: none;
  }
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .floating-cta {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-section) 0 var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .logo__name {
  color: var(--color-white);
}

.footer-brand__logo {
  margin-top: 0.75rem;
  opacity: 0.9;
}

.footer-brand__logo img {
  display: block;
  width: auto;
  max-width: 110px;
  height: auto;
}

.footer-brand .logo__tag {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-white);
}

.footer-links a.highlight {
  color: var(--color-red-soft);
  font-weight: 500;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.footer-credit {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
}

.footer-credit__link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.footer-credit__link:hover {
  color: var(--color-red-soft);
  text-decoration: underline;
  text-decoration-color: var(--color-red-soft);
  text-underline-offset: 0.25em;
}

@media (min-width: 768px) {
  .footer-bottom__row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-red);
  transition: background var(--transition);
}

.floating-cta__btn:hover {
  background: var(--color-red-soft);
}

.floating-cta__close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  color: var(--color-text-muted);
}

/* Hero (homepage) */
.hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  height: auto;
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: var(--color-navy-dark);
  box-sizing: border-box;
}

@media (min-height: 720px) and (min-width: 1024px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/hero_sekce_bg.jpeg");
  background-size: cover;
  background-position: 55% center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(6, 24, 41, 0.82) 0%,
    rgba(6, 24, 41, 0.55) 38%,
    rgba(6, 24, 41, 0.2) 58%,
    transparent 78%
  );
}

.hero__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
}

@media (min-height: 720px) and (min-width: 1024px) {
  .hero__grid {
    flex: 1;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) min(46%, 32rem);
    gap: 0;
    padding-block-end: clamp(2rem, 4vw, 3rem);
  }

  .hero__bg {
    background-position: center center;
  }
}

@media (min-width: 1024px) and (min-height: 720px) {
  .hero__grid {
    align-items: end;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero__title {
  color: var(--color-white);
  margin-top: 0.75rem;
}

.hero__lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero__logo {
  margin-top: 2rem;
}

.hero__logo a {
  display: inline-block;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero__logo a:hover {
  opacity: 1;
  transform: scale(1.05);
}

.hero__logo img {
  display: block;
  width: auto;
  max-width: min(140px, 40vw);
  height: auto;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__image-wrap {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  max-width: min(26rem, 100%);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero__image-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    margin-right: max(-2rem, -4vw);
  }
}

.hero__image {
  width: 100%;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.hero__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 22rem);
  object-fit: contain;
  object-position: bottom center;
}

@media (min-height: 720px) {
  .hero__image img {
    max-height: calc(100dvh - var(--header-height) - 14rem);
  }
}

@media (min-width: 1024px) {
  .hero__image img {
    object-position: bottom right;
  }
}

@media (min-width: 1024px) and (min-height: 720px) {
  .hero__image img {
    max-height: calc(100dvh - var(--header-height) - 2rem);
  }
}

@media (max-width: 1023px) {
  .hero__bg {
    background-image: url("../images/hero_sekce_bg_mobil.jpeg");
    background-position: right center;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(6, 24, 41, 0.85) 0%,
      rgba(6, 24, 41, 0.55) 45%,
      rgba(6, 24, 41, 0.15) 70%,
      transparent 100%
    );
  }

  .hero__grid {
    gap: 1rem;
    align-content: start;
    align-items: start;
    min-height: 0;
    flex: none;
    padding-block-start: 0.75rem;
    padding-block-end: clamp(1.5rem, 4vw, 2rem);
    padding-inline: clamp(1rem, 4vw, 2rem);
  }

  .hero__content {
    padding-bottom: 0;
  }

  .hero__title {
    margin-top: 0.5rem;
  }

  .hero__image-wrap {
    order: 2;
    max-width: min(22rem, 88%);
    margin-top: 0;
  }
}

@media (max-width: 1023px) and (min-height: 720px) {
  .hero__image img {
    max-height: min(50vh, 28rem);
  }
}

.hero__badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--color-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero__badge-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__badge-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

/* Intro split */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.split__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 32rem;
}

.split__image--about {
  aspect-ratio: 1;
  width: 100%;
  max-width: 32rem;
  background: transparent;
  overflow: hidden;
}

.split__image-person {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

/* Legacy split photo (other pages) */
.split__image:not(.split__image--about) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.split__image:not(.split__image--about) {
  aspect-ratio: 1;
}

.intro-about__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
}

.intro-about__certificate {
  width: clamp(7.5rem, 16vw, 10rem);
  height: auto;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 479px) {
  .intro-about__actions {
    flex-wrap: wrap;
  }

  .intro-about__certificate {
    margin-left: auto;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--color-red);
  margin-top: 1.5rem;
  transition: gap var(--transition);
}

.link-arrow:hover {
  gap: 0.65rem;
}

/* Estimate promo on homepage */
.estimate-promo-section {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.estimate-promo {
  display: grid;
  gap: 2rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: transform var(--transition);
}

.estimate-promo:hover .estimate-promo__figure {
  box-shadow: var(--shadow-lg);
}

.estimate-promo:hover .estimate-promo__figure img {
  transform: scale(1.02);
}

.estimate-promo:hover .link-arrow {
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .estimate-promo {
    grid-template-columns: minmax(0, 16rem) 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

@media (min-width: 1024px) {
  .estimate-promo {
    grid-template-columns: minmax(0, 20rem) 1fr;
    gap: 4rem;
  }
}

.estimate-promo__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}

.estimate-promo__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.estimate-promo__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  text-align: left;
}

.estimate-promo__content .heading-section {
  margin-top: 0.35rem;
}

.estimate-promo__content .text-body {
  margin-top: 1rem;
  max-width: 36rem;
}

.estimate-promo__link {
  display: inline-flex;
  margin-top: 1.5rem;
}

.estimate-section__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .estimate-section__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 3rem;
    margin-left: 0;
  }
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3rem;
  }
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-red);
  border-radius: 50%;
}

@media (min-width: 768px) {
  .timeline-item::before {
    left: auto;
    right: -0.4rem;
  }
  .timeline-item:nth-child(even)::before {
    right: auto;
    left: -0.4rem;
  }
}

.timeline-item__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-red);
}

/* Property detail – galerie */
.property-gallery {
  display: grid;
  gap: 0.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .property-gallery {
    grid-template-columns: 1fr minmax(0, 17.5rem);
  }

  .property-gallery:has(.property-gallery__side) {
    grid-template-columns: 1fr 1fr;
  }
}

.property-gallery__main {
  display: block;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: none;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--color-warm);
}

@media (min-width: 768px) {
  .property-gallery:has(.property-gallery__side) .property-gallery__main {
    aspect-ratio: auto;
    min-height: 14rem;
  }
}

.property-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.property-gallery__main:hover img {
  transform: scale(1.03);
}

.property-gallery__main .card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  pointer-events: none;
}

.property-gallery__side {
  min-height: 0;
}

.property-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  height: 100%;
  min-height: 8rem;
}

@media (min-width: 768px) {
  .property-gallery__grid {
    min-height: 14rem;
  }
}

.property-gallery__thumb {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-warm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.property-gallery__thumb:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
  z-index: 1;
}

.property-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery__thumb--more::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.55);
}

.property-gallery__more-label {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 1;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(10, 37, 64, 0.85);
  border-radius: var(--radius);
  line-height: 1.2;
}

@media (max-width: 767px) {
  .property-gallery__grid {
    min-height: 0;
  }

  .property-gallery__thumb {
    aspect-ratio: 4 / 3;
  }
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 41, 0.92);
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(72rem, 100%);
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox__counter {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__nav[hidden] {
  display: none;
}

@media (max-width: 639px) {
  .lightbox__nav--prev {
    left: 0.5rem;
  }

  .lightbox__nav--next {
    right: 0.5rem;
  }

}

/* Property detail page */
.property-detail {
  padding-bottom: var(--space-section);
  background: var(--color-white);
}

.property-detail__top {
  padding-top: 60px;
  padding-bottom: 1rem;
}

.property-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.property-detail__back:hover {
  color: var(--color-navy);
}

.property-detail__gallery-wrap {
  margin-bottom: 2rem;
}

.property-detail__body {
  display: grid;
  gap: 2.5rem;
}

.property-detail__intro,
.property-detail__sections {
  min-width: 0;
}

.property-detail__sections {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.property-detail__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.property-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.property-detail__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-red);
  margin-top: 0.25rem;
}

.property-detail__price--sold {
  color: var(--color-navy);
}

.property-detail__location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.property-detail__location svg {
  flex-shrink: 0;
  color: var(--color-red);
}

.property-detail__summary {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  padding-top: 0.25rem;
}

.property-detail__section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
}

.property-detail__description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.property-detail__description p + p {
  margin-top: 1rem;
}

.property-specs {
  display: grid;
  gap: 0.65rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0.25rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 639px) {
  .property-specs {
    grid-template-columns: 1fr;
  }
}

.property-specs__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
}

.property-specs__row dt {
  color: var(--color-text-muted);
}

.property-specs__row dd {
  font-weight: 600;
  color: var(--color-navy);
  text-align: right;
}

.property-specs__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.property-specs__highlights span {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-navy);
  background: var(--color-warm);
  border-radius: var(--radius-full);
}

.property-map {
  height: clamp(16rem, 40vw, 22rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  z-index: 0;
}

.property-map__note {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.property-location__address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.property-location__address svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--color-red);
}

.property-detail__broker {
  min-width: 0;
}

@media (min-width: 1024px) {
  .property-detail__body {
    grid-template-columns: minmax(0, 1fr) min(22rem, 32%);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 3rem;
  }

  .property-detail__intro {
    grid-column: 1;
    grid-row: 1;
  }

  .property-detail__sections {
    grid-column: 1;
    grid-row: 2;
  }

  .property-detail__broker {
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

.broker-card--detail {
  text-align: center;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.broker-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}

.broker-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.broker-card__office {
  font-size: 0.875rem;
  opacity: 0.65;
  margin-top: 0.2rem;
}

.broker-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  text-align: left;
}

.broker-card__contacts a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.broker-card__contacts a:hover {
  opacity: 1;
}

.broker-card__contacts svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.broker-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.broker-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  opacity: 0.65;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity var(--transition);
}

.broker-card__link:hover {
  opacity: 1;
}

/* Legacy detail grid (listing cards) */
.property-detail__grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .property-detail__grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .property-detail__grid > aside {
    align-self: start;
  }
}

.broker-card {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.broker-card__photo {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.broker-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.params-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.param-box {
  padding: 1rem;
  background: var(--color-warm);
  border-radius: 0.75rem;
}

.param-box dt {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.param-box dd {
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Map */
.section--map {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(22rem, 42vh, 34rem);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 20rem;
  background: rgba(10, 37, 64, 0.05);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Social links */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: #000;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.social-links a svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.social-links a:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Landing odhad */
.landing-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  min-height: calc(100svh - var(--header-height));
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: var(--space-xl);
  background: var(--color-cream);
}

.landing-intro__hero {
  flex-shrink: 0;
}

.landing-intro__lead {
  margin-top: 1.5rem;
  max-width: 40rem;
}

.landing-intro__form {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.landing-form__inner {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
}

#odhad-formular {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(220, 28, 46, 0.2);
  box-shadow: var(--shadow-md);
}

/* Prázdné plátno (stránky s dočasně skrytým obsahem) */
body.page--canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page--canvas main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-canvas {
  flex: 1;
  width: 100%;
  min-height: min(55vh, 40rem);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

/* Legal / GDPR page */
.legal-meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-toc {
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--color-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.legal-toc__title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0.75rem;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-toc a {
  font-size: 0.9375rem;
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}

.legal-toc a:hover {
  color: var(--color-red);
}

.legal-section + .legal-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.legal-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.legal-section__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 1.25rem 0 0.65rem;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.legal-content p + p,
.legal-content ul + p,
.legal-content p + ul {
  margin-top: 0.85rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-content a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}

.legal-content a:hover {
  color: var(--color-red);
}

.legal-box {
  margin: 1rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-cream);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.legal-box p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-box p + p {
  margin-top: 0.35rem;
}

.legal-placeholder {
  color: var(--color-red);
  font-weight: 500;
  font-style: italic;
}

.legal-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.legal-table th {
  background: var(--color-warm);
  font-weight: 600;
  color: var(--color-navy);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-legal-link:hover {
  color: var(--color-white);
}
