/* ═══════════════════════════════════════════════════════════════════════════
   style.css  –  Custom styles, animations, and visual polish
   Complements Tailwind CSS; does NOT replace it.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ── Sticky Header ────────────────────────────────────────────────────────── */
#site-header {
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
#site-header .header-inner {
  overflow: visible;
}
#site-header.scrolled {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}
#site-header.scrolled .brand-text { color: #fff; }

/* Logo — vertical, extends beyond header bar */
.site-logo-link {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding-top: 12px;
}
.site-logo {
  height: 76px;
  width: auto;
  object-fit: contain;
  max-width: 220px;
  margin-top: 0;
  margin-bottom: -10px;
  display: block;
}
@media (min-width: 1024px) {
  .site-logo-link {
    padding-top: 16px;
  }
  .site-logo {
    height: 88px;
    max-width: 240px;
    margin-bottom: -12px;
  }
}

/* Header navigation — light on hero, glass when scrolled */
#site-header .nav-link {
  color: rgba(255, 255, 255, 0.88);
  border-radius: 0;
}
#site-header .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
#site-header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.88);
}
#site-header.scrolled .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
#site-header .brand-text {
  color: #fff;
  font-weight: 500;
}
#site-header.scrolled .brand-text { color: #fff; }
#site-header .header-cta {
  background: #0284c7;
  border-radius: 0;
  letter-spacing: 0.02em;
}
#site-header .header-cta:hover {
  background: #0369a1;
}

/* Header quick contact — tel + Viber */
.header-contact-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 2px solid rgba(56, 189, 248, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s;
}
.header-contact-call:hover {
  background: rgba(255, 255, 255, 0.14);
  border-left-color: #7dd3fc;
  color: #fff;
}
.header-contact-call--compact {
  padding: 6px 8px;
  gap: 6px;
  font-size: 12px;
  max-width: calc(100vw - 120px);
}
.header-contact-number {
  line-height: 1;
}
.header-contact-viber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #7b519d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.18s;
}
.header-contact-viber:hover {
  background: #6a4588;
  transform: scale(1.04);
}
.header-contact-viber--compact {
  width: 34px;
  height: 34px;
}
.header-contact-viber--compact .fa-viber {
  font-size: 1.1rem;
}
.header-contact-viber .fa-viber,
.header-mobile-contact-viber .fa-viber {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}
.header-viber-icon--menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #fff;
}
.header-mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  transition: background 0.18s, border-color 0.18s;
}
.header-mobile-contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.55);
}
.header-mobile-contact-call {
  background: rgba(2, 132, 199, 0.22);
}
.header-mobile-contact-viber {
  background: rgba(123, 81, 157, 0.28);
}

#site-header .mobile-menu-btn {
  color: rgba(255, 255, 255, 0.92);
  border-radius: 0;
}
#site-header .mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
#site-header.scrolled .mobile-menu-btn {
  color: rgba(255, 255, 255, 0.92);
}
#site-header.scrolled .mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
#mobile-menu {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#mobile-menu .mobile-nav-link {
  color: rgba(255, 255, 255, 0.88);
  border-radius: 0;
}
#mobile-menu .mobile-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Language Switcher ───────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-btn {
  padding: 3px 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.lang-btn:hover  {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
.lang-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}
#site-header.scrolled .lang-btn {
  color: rgba(255, 255, 255, 0.70);
}
#site-header.scrolled .lang-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
#site-header.scrolled .lang-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

/* ── Reveal on Scroll ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of a reveal parent */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.15s; }

/* ── Section Header ──────────────────────────────────────────────────────── */
.section-header { text-align: center; max-width: 1024px; margin: 0 auto; }

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid rgba(2, 132, 199, 0.20);
  margin-bottom: 12px;
}
.section-badge-light {
  background: rgba(255,255,255,0.12);
  color: #bae6fd;
  border-color: rgba(125, 211, 252, 0.30);
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #0f172a;
}
.section-subtitle {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Section decor — dot grid + particles (projects, gallery, …) ─────────── */
.section-decor {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}
.section-decor-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(2, 132, 199, 0.22) 1px, transparent 1px),
    radial-gradient(circle, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 28px 28px, 44px 44px;
  background-position: 0 0, 14px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 100%);
}
.section-decor-grid::before {
  content: '';
  position: absolute;
  top: -6%;
  right: -5%;
  width: 42%;
  height: 55%;
  background-image: radial-gradient(circle, rgba(2, 132, 199, 0.28) 1.5px, transparent 1.5px);
  background-size: 18px 24px;
  transform: rotate(-14deg);
  opacity: 0.7;
}
.section-decor-grid::after {
  content: '';
  position: absolute;
  bottom: -8%;
  left: -4%;
  width: 38%;
  height: 48%;
  background-image:
    linear-gradient(32deg, rgba(2, 132, 199, 0.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(56, 189, 248, 0.2) 1px, transparent 1px);
  background-size: 36px 36px, 22px 22px;
  transform: rotate(9deg);
  opacity: 0.65;
}
#projects .section-decor-grid {
  background-position: 8px 12px, 22px 34px;
}
#gallery .section-decor-grid::before {
  top: auto;
  bottom: 4%;
  right: 8%;
  width: 35%;
  height: 40%;
  transform: rotate(18deg);
}
#gallery .section-decor-grid::after {
  bottom: auto;
  top: 6%;
  left: 2%;
  width: 45%;
  height: 32%;
  transform: rotate(-11deg);
}

/* Dark variant — features section */
.section-decor-dark {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
.section-decor-dark .section-decor-grid {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    radial-gradient(circle, rgba(125, 211, 252, 0.12) 1px, transparent 1px);
  background-size: 32px 32px, 48px 48px;
  background-position: 6px 10px, 20px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 100%);
}
.section-decor-dark .section-decor-grid::before {
  top: 18%;
  right: -6%;
  width: 40%;
  height: 50%;
  background-image: radial-gradient(circle, rgba(186, 230, 253, 0.22) 1.5px, transparent 1.5px);
  background-size: 20px 26px;
  transform: rotate(16deg);
  opacity: 0.55;
}
.section-decor-dark .section-decor-grid::after {
  bottom: 5%;
  left: -3%;
  width: 36%;
  height: 42%;
  background-image:
    linear-gradient(-28deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 34px 34px, 24px 24px;
  transform: rotate(-8deg);
  opacity: 0.5;
}

.section-decor-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.section-decor-inner {
  position: relative;
  z-index: 2;
}

/* ── Hero Section — full-bleed background with content overlay ───────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0f172a;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #6aafd8 0%, #9ecae8 45%, #c2dff0 100%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    270deg,
    rgba(15, 23, 42, 0.58) 0%,
    rgba(15, 23, 42, 0.32) 30%,
    rgba(15, 23, 42, 0.10) 46%,
    transparent 58%
  );
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 5vw 72px;
  pointer-events: none;
}
.hero-content {
  pointer-events: auto;
  max-width: 480px;
  width: 100%;
  padding: 36px 32px;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-right: 2px solid rgba(56, 189, 248, 0.40);
}

/* Hero preload — hide until GSAP entrance (avoids flash) */
.hero-preload .hero-bg-layer {
  opacity: 0;
  transform: scale(1.04);
}
.hero-preload .hero-bg-overlay {
  opacity: 0;
}
.hero-preload .hero-content {
  opacity: 0;
  transform: translateX(40px);
}
.hero-preload .viz-hint,
.hero-preload .viz-bottom-cta,
.hero-preload .carousel-dots-bar {
  opacity: 0;
}
.header-preload {
  opacity: 0;
  transform: translateY(-20px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-preload .hero-bg-layer,
  .hero-preload .hero-bg-overlay,
  .hero-preload .hero-content,
  .hero-preload .viz-hint,
  .hero-preload .viz-bottom-cta,
  .hero-preload .carousel-dots-bar,
  .header-preload {
    opacity: 1;
    transform: none;
  }
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.30);
  color: #bae6fd;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 0;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin-bottom: 20px;
}
.hero-title-highlight {
  display: block;
  color: #7dd3fc;
  font-weight: 400;
  margin-top: 0.15em;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 440px;
  font-weight: 400;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(241, 245, 249, 0.88);
  line-height: 1.45;
}
.hero-bullet-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #7dd3fc;
  border-radius: 0;
  position: relative;
}
.hero-bullet-icon::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #7dd3fc;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: #0284c7;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s ease;
}
.hero-cta-primary:hover {
  background: #0369a1;
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hero-cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
#hero-carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-slide { display: none; flex: 1; }
.hero-slide.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}
#hero.hero-animated .hero-slide.active {
  animation: slideFadeIn 0.5s ease both;
}
.carousel-slide-inner { position: relative; flex: 1; }
.carousel-slide-inner > img {
  object-fit: contain;
  object-position: center center;
  background: transparent;
}

.carousel-dots-bar {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
  pointer-events: auto;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 1024px) {
  .hero-bg-overlay {
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.65) 0%,
      rgba(15, 23, 42, 0.40) 38%,
      rgba(15, 23, 42, 0.12) 58%,
      transparent 72%
    );
  }
  .hero-content-wrap {
    align-items: flex-start;
    justify-content: stretch;
    padding: 108px 20px 46vw;
  }
  .hero-content {
    max-width: 100%;
    padding: 28px 24px;
    border-right: none;
    border-left: 2px solid rgba(56, 189, 248, 0.40);
  }
}
@media (max-width: 480px) {
  .hero-content-wrap {
    padding-bottom: 52vw;
  }
  .hero-cta-row {
    flex-direction: column;
  }
  .hero-cta-primary,
  .hero-cta-secondary {
    justify-content: center;
    width: 100%;
  }
}

/* ── Status Badges ───────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.status-orange  { background: rgba(251,146,60,0.2);  color: #c2410c; border: 1px solid rgba(251,146,60,0.4); }
.status-blue    { background: rgba(59,130,246,0.2);   color: #1d4ed8; border: 1px solid rgba(59,130,246,0.4); }
.status-green   { background: rgba(34,197,94,0.2);    color: #ffffff; border: 1px solid rgba(34,197,94,0.4); }
.status-teal    { background: rgba(20,184,166,0.2);   color: #0f766e; border: 1px solid rgba(20,184,166,0.4); }

/* ── Hero Carousel ───────────────────────────────────────────────────────── */

.carousel-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.carousel-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  font-size: 11px;
  color: white;
  font-weight: 600;
}

@keyframes arrowPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.45); }
  60%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  animation: arrowPulse 2s ease-out infinite;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.1);
  animation: none;
}
.carousel-arrow-left  { left: 12px; }
.carousel-arrow-right { right: 12px; }

/* Hero carousel controls — rectangular, no pulse */
#hero .carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 0;
  animation: none;
  background: rgba(15, 23, 42, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 12;
  pointer-events: auto;
}
#hero .carousel-arrow:hover {
  background: rgba(15, 23, 42, 0.72);
  transform: translateY(-50%);
}
#hero .carousel-dot {
  width: 24px;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.35);
}
#hero .carousel-dot.active {
  width: 36px;
  background: #0284c7;
  border-radius: 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.carousel-dot.active {
  background: #0284c7;
  width: 24px;
  border-radius: 4px;
}

/* ── Single Project Hero Card ────────────────────────────────────────────── */
.project-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 52px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.phc-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-right: 1px solid #e2e8f0;
}
.phc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PHC gallery carousel — mechanics only, card styles unchanged */
.phc-carousel {
  position: absolute;
  inset: 0;
}
.phc-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.phc-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.phc-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
}
.phc-carousel-arrow:hover {
  background: rgba(15, 23, 42, 0.72);
}
.phc-carousel-prev { left: 12px; }
.phc-carousel-next { right: 12px; }
.phc-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: auto;
}
.phc-carousel-dot {
  width: 22px;
  height: 3px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  border-radius: 0;
  transition: background 0.25s, width 0.25s;
}
.phc-carousel-dot.active {
  width: 32px;
  background: #0284c7;
}
.phc-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.28) 0%, transparent 50%);
  pointer-events: none;
}
.phc-status-badge {
  position: absolute;
  top: 20px;
  left: 20px;
}
.phc-completion-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 0;
}

.phc-body {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 2px solid rgba(56, 189, 248, 0.45);
}
.phc-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 12px;
}
.phc-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.18;
  margin-bottom: 14px;
}
.phc-desc {
  font-size: 15px;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 46ch;
  font-weight: 400;
}

.phc-stats {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 24px;
}
.phc-stat {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.phc-stat:last-child { border-right: none; }
.phc-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(186, 230, 253, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.phc-stat-value {
  font-size: 15px;
  font-weight: 500;
  color: #f8fafc;
}
.phc-stat-free { color: #4ade80; }

.phc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.phc-body .meta-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #bae6fd;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 0;
  font-weight: 500;
}

.phc-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.phc-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(241, 245, 249, 0.88);
  font-weight: 400;
  line-height: 1.45;
}
.phc-bullet-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1px solid #7dd3fc;
  border-radius: 0;
  position: relative;
}
.phc-bullet-icon::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #7dd3fc;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.phc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.phc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: #0284c7;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.phc-btn-primary:hover {
  background: #0369a1;
}
#projects .phc-actions .yt-card-btn {
  width: auto;
  height: auto;
  padding: 13px 18px;
  border-radius: 0;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
#projects .phc-actions .yt-card-btn:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .project-hero-card {
    grid-template-columns: 1fr;
  }
  .phc-image-wrap {
    min-height: 280px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .phc-body {
    padding: 32px 28px;
    border-left: none;
    border-top: 2px solid rgba(56, 189, 248, 0.45);
  }
  .phc-name {
    font-size: 1.5rem;
  }
}

/* ── Project Cards (grid) ─────────────────────────────────────────────────── */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: border-color 0.2s;
}
.project-card:hover {
  border-color: rgba(2, 132, 199, 0.45);
}

.pc-image-wrap {
  position: relative;
  overflow: hidden;
  height: 13rem;
}
.pc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.35) 0%, transparent 55%);
  pointer-events: none;
}
.pc-price-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0;
}
.pc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: rgba(15, 23, 42, 0.04);
  border-top: 1px solid #e2e8f0;
}
.pc-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.pc-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #0284c7;
  margin-bottom: 10px;
}
.pc-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.pc-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pc-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  font-weight: 400;
}
.pc-highlights .phc-bullet-icon {
  border-color: #0284c7;
}
.pc-highlights .phc-bullet-icon::after {
  border-color: #0284c7;
}
.pc-completion {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 14px;
}
.pc-completion strong {
  color: #64748b;
  font-weight: 500;
}
.pc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.pc-btn-primary {
  flex: 1;
  padding: 10px 16px;
  background: #0284c7;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.pc-btn-primary:hover {
  background: #0369a1;
}
#projects .pc-actions .yt-card-btn {
  border-radius: 0;
  box-shadow: none;
  width: 38px;
  height: 38px;
  padding: 0;
}
#projects .pc-actions .yt-card-btn:hover {
  transform: none;
  box-shadow: none;
}

.meta-pill {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.20);
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
}

/* ── Why Mladost Cards ───────────────────────────────────────────────────── */
.why-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(14,165,233,0.1);
  border-color: #bae6fd;
}
.why-card-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e0f2fe;
  margin: 0 auto;
  display: block;
}

/* ── Features Section ────────────────────────────────────────────────────── */
.features-section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 5rem;
}

.features-top-transition {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 4;
  pointer-events: none;
  line-height: 0;
}
.features-top-svg {
  display: block;
  width: 100%;
  height: 80px;
}

.features-section-title {
  color: #f8fafc;
}
.features-section-subtitle {
  color: rgba(186, 230, 253, 0.78);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 2px solid rgba(56, 189, 248, 0.42);
  border-radius: 0;
  padding: 26px 22px;
  transition: background 0.2s, border-color 0.2s;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.10);
  border-right-color: rgba(125, 211, 252, 0.65);
}
.feature-card-icon {
  margin-bottom: 16px;
}
.feature-card-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  margin-bottom: 8px;
  line-height: 1.35;
}
.feature-card-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.76);
}
.feature-card-emoji {
  font-size: 1.75rem;
  line-height: 1;
  display: block;
}
.feature-card-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(125, 211, 252, 0.35);
  display: block;
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stat-card {
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  padding: 28px 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(14,165,233,0.12); }
.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #0284c7;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
  font-weight: 500;
}

/* ── Partner Logos ───────────────────────────────────────────────────────── */
.partner-logo-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.partner-logo-card:hover { border-color: #7dd3fc; box-shadow: 0 4px 12px rgba(14,165,233,0.1); }
.partner-abbr {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0284c7;
  letter-spacing: 0.05em;
}
.partner-name {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.3;
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  grid-auto-rows: 220px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid rgba(2, 132, 199, 0.32);
  background: #fff;
  transition: border-color 0.25s;
}
.gallery-item:hover {
  border-color: rgba(2, 132, 199, 0.65);
}
.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  color: white;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item-large { grid-column: span 2; grid-row: span 1; }
}

/* ── Location ────────────────────────────────────────────────────────────── */
.section-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
  border: 1px solid #e2e8f0;
  min-height: 420px;
  position: relative;
  transition: border-radius .25s;
}
#location-map {
  width: 100%;
  height: 420px;
}

/* Fullscreen state */
.section-map-wrap.map-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 8000;
  border-radius: 0;
  border: none;
  box-shadow: none;
  min-height: unset;
}
.section-map-wrap.map-fullscreen #location-map {
  width: 100%;
  height: 100%;
}
body.map-fs-active { overflow: hidden; }

/* Fullscreen toggle button */
.map-fs-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8001;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background .15s, box-shadow .15s;
}
.map-fs-btn:hover {
  background: #f1f5f9;
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
}

/* Leaflet popup custom style */
.lf-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  padding: 0;
  overflow: hidden;
}
.lf-popup .leaflet-popup-content {
  margin: 0;
  min-width: 180px;
}
.lf-popup .leaflet-popup-tip-container { display: none; }
.lf-popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.lf-popup-inner {
  padding: 12px 14px 10px;
}
.lf-popup-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}
.lf-popup-loc {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
}
.lf-popup-btn {
  display: block;
  width: 100%;
  padding: 6px 0;
  background: #0284c7;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s;
}
.lf-popup-btn:hover { background: #0369a1; }

.distance-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.distance-card:hover { border-color: #7dd3fc; transform: translateX(4px); }
.distance-icon { font-size: 1.4rem; flex-shrink: 0; }
.distance-label { font-size: 12px; color: #64748b; }
.distance-value { font-size: 14px; font-weight: 700; color: #0f172a; margin-top: 2px; }

/* ── Buying Steps ────────────────────────────────────────────────────────── */
.buying-steps-section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 5rem;
}
.buying-steps-top-transition {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 4;
  pointer-events: none;
  line-height: 0;
}
.buying-steps-top-svg {
  display: block;
  width: 100%;
  height: 80px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

.step-number {
  font-size: 1.75rem;
  font-weight: 500;
  color: #7dd3fc;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  line-height: 1;
  color: #e0f2fe;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,0.1); }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── FAQ Accordion ───────────────────────────────────────────────────────── */
.faq-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.faq-item.open { box-shadow: 0 4px 20px rgba(14,165,233,0.1); border-color: #bae6fd; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: #0284c7; }
.faq-chevron { transition: transform 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open-body {
  max-height: 400px;
  padding: 0 20px 18px;
}
.faq-answer p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.7;
}

/* ── CTA Section ─────────────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 5rem;
}
.cta-section--seamless {
  padding-top: 5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.22);
}
.cta-top-transition {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 4;
  pointer-events: none;
  line-height: 0;
}
.cta-top-svg {
  display: block;
  width: 100%;
  height: 80px;
}
.cta-section-title {
  color: #f8fafc;
  font-weight: 400;
}
.cta-section-subtitle {
  color: rgba(186, 230, 253, 0.78);
  font-weight: 400;
}
.cta-actions {
  justify-content: center;
  margin-top: 2.5rem;
}

/* ── Contact Section ─────────────────────────────────────────────────────── */
.contact-section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 5rem;
}
.contact-section--seamless {
  padding-top: 5rem;
}
.contact-top-transition {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 4;
  pointer-events: none;
  line-height: 0;
}
.contact-top-svg {
  display: block;
  width: 100%;
  height: 80px;
}

.contact-block-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0369a1;
  margin-bottom: 12px;
  border-left: 2px solid rgba(2, 132, 199, 0.35);
  padding-left: 10px;
}

.contact-info-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #334155;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 0;
  border-left: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.contact-info-link:hover {
  background: rgba(2, 132, 199, 0.06);
  color: #0284c7;
  border-left-color: rgba(56, 189, 248, 0.45);
}
.contact-info-link-static {
  cursor: default;
}
.contact-icon { font-size: 1.1rem; flex-shrink: 0; }

.contact-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-left: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 0;
}
.contact-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
}
.contact-hours-days { color: #64748b; font-weight: 400; }
.contact-hours-time { color: #0f172a; font-weight: 500; }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid rgba(255, 255, 255, 0.30);
  transition: background 0.2s, border-color 0.2s, filter 0.2s;
}
.contact-action-btn:hover {
  filter: brightness(1.06);
  border-left-color: rgba(255, 255, 255, 0.55);
}
.contact-action-icon {
  font-size: 1rem;
  line-height: 1;
}
.viber-btn .fa-viber {
  color: #fff;
  font-size: 1.15rem;
}
.viber-btn    { background: #7b519d; }
.viber-btn:hover    { background: #6a4588; }
.whatsapp-btn { background: #25d366; }
.whatsapp-btn:hover { background: #1fb855; }
.call-btn     { background: #0284c7; }
.call-btn:hover     { background: #0369a1; }

.contact-form {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid rgba(56, 189, 248, 0.45);
  border-radius: 0;
  padding: 36px 32px;
}
.contact-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.contact-form .form-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.85);
}
.contact-form .form-input {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.contact-form .form-input::placeholder {
  color: rgba(148, 163, 184, 0.65);
}
.contact-form .form-input:focus {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}
.contact-form .form-textarea { resize: vertical; min-height: 110px; }
.contact-form .form-select {
  cursor: pointer;
  color-scheme: dark;
}
.contact-form .form-select option {
  background: #0f172a;
  color: #f1f5f9;
}

.contact-submit-btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 14px 26px;
  background: #0284c7;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}
.contact-submit-btn:hover {
  background: #0369a1;
}

/* ── Process / Completion Timeline ───────────────────────────────────────── */
.process-timeline-wrap {
  position: relative;
  margin-top: 3rem;
  padding: 0 0 8px;
}
.process-timeline-line {
  position: absolute;
  top: 72px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: rgba(148, 163, 184, 0.40);
  z-index: 0;
  pointer-events: none;
}
.process-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px 12px;
}
.process-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.process-phase-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
  min-height: 38px;
}
.process-phase-num {
  font-size: 1.125rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.1;
}
.process-phase-word {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.process-phase-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.process-node-icon {
  display: block;
  color: #cbd5e1;
}
.process-phase[data-status="inProgress"] .process-phase-node {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}
.process-phase[data-status="inProgress"] .process-node-icon {
  color: #0284c7;
}
.process-phase[data-status="completed"] .process-phase-node {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.06);
}
.process-phase[data-status="completed"] .process-node-icon {
  color: #16a34a;
}
.process-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 0;
  margin-bottom: 10px;
  line-height: 1.2;
}
.process-status-badge--active {
  background: #0284c7;
  color: #fff;
}
.process-status-badge--pending {
  color: #94a3b8;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.process-status-badge--done {
  background: rgba(22, 163, 74, 0.10);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.28);
}
.process-phase-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: #475569;
  max-width: 160px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .process-timeline-wrap {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .process-timeline-line {
    left: 40px;
    right: 40px;
    min-width: 720px;
  }
  .process-timeline {
    display: flex;
    gap: 20px;
    min-width: max-content;
    padding: 0 12px 8px;
  }
  .process-phase {
    flex: 0 0 130px;
  }
}

/* Generic form styles (admin / other) */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: #374151; }
.form-input {
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-select { cursor: pointer; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
  animation: modalOverlayIn 0.25s ease both;
}
.modal-overlay[hidden] { display: none; }

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-container {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease both;
  margin: auto;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  color: #64748b;
}
.modal-close-btn:hover { background: #e2e8f0; transform: rotate(90deg); }
.fp-fullscreen-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0284c7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.fp-fullscreen-btn:hover { background: #0369a1; transform: scale(1.08); }

/* ── Floor plan fullscreen mode ──────────────────────────────────────────── */
#floor-plan-modal.fp-fullscreen {
  align-items: stretch;
  padding: 0;
}
#floor-plan-modal.fp-fullscreen .modal-container {
  max-width: 100% !important;
  width: 100%;
  height: 100%;
  border-radius: 0;
  margin: 0;
}
#floor-plan-modal.fp-fullscreen .modal-body {
  flex: 1;
  overflow-y: auto;
}
#floor-plan-modal.fp-fullscreen .fp-plan-image {
  max-height: calc(100vh - 220px);
}

.modal-body { padding: 24px; overflow-x: auto; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

/* Apartment Table */
.apt-th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.apt-row {
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s;
}
.apt-row:hover { background: #f8fafc; }
.apt-row:last-child { border-bottom: none; }
.apt-cell {
  padding: 12px 12px;
  font-size: 13px;
  color: #374151;
}
.apt-cell-bold { font-weight: 700; color: #0f172a; }
.apt-cell-price { font-weight: 800; color: #0284c7; font-size: 14px; }

.apt-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.apt-free     { background: #dcfce7; color: #15803d; }
.apt-reserved { background: #fef3c7; color: #92400e; }
.apt-sold     { background: #fee2e2; color: #b91c1c; }

.apt-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── Apt filter bar ───────────────────────────────────────────────────────── */
.apt-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  align-items: center;
}
.apt-filter-icon {
  display: flex; align-items: center;
  color: #94a3b8;
  flex-shrink: 0;
  margin-right: 4px;
}
.apt-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 2px;
  white-space: nowrap;
}
.apt-filter-sep {
  width: 1px; height: 18px;
  background: #e2e8f0;
  flex-shrink: 0;
  margin: 0 4px;
}
.apt-filter-pill {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: #e2e8f0; color: #475569;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  user-select: none;
  white-space: nowrap;
}
.apt-filter-pill:hover { background: #cbd5e1; }
.apt-filter-pill.active { border-color: currentColor; }
.apt-filter-pill.dimmed { opacity: .38; }
/* Status pill colours (active state) */
.apt-filter-pill[data-filter-val="свободен"].active   { background:#dcfce7; color:#15803d; }
.apt-filter-pill[data-filter-val="резервиран"].active { background:#fef3c7; color:#92400e; }
.apt-filter-pill[data-filter-val="продаден"].active   { background:#fee2e2; color:#b91c1c; }
/* Type & exposure pills — teal tint when active */
.apt-filter-pill[data-filter-group="type"].active,
.apt-filter-pill[data-filter-group="exposure"].active { background:#e0f2fe; color:#0369a1; border-color:#7dd3fc; }
/* Hidden rows */
.apt-row.apt-hidden { display: none; }

/* ── Wishlist heart button (inside table rows) ───────────────────────────── */
.apt-wish-btn {
  opacity: 0;
  background: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  color: #94a3b8;
  padding: 5px 7px;
  border-radius: 8px;
  line-height: 1;
  transition: opacity .15s, color .15s, background .15s, border-color .15s, transform .15s;
  vertical-align: middle;
}
.apt-row:hover .apt-wish-btn {
  opacity: 1;
  background: #fef2f2;
  border-color: #fecdd3;
  color: #e11d48;
}
.apt-wish-btn:hover { transform: scale(1.15); }
.apt-wish-btn.wishlisted {
  opacity: 1;
  color: #e11d48;
  background: #fef2f2;
  border-color: #fca5a5;
}
.apt-wish-btn.wishlisted svg { fill: #e11d48; }

/* ── Wishlist floating bubble ────────────────────────────────────────────── */
.wl-trigger {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 10001;
  background: #fff;
  border: 1.5px solid #fecdd3;
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  display: none;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.13);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #e11d48;
  transition: transform .2s, box-shadow .2s;
}
.wl-trigger.visible { display: flex; }
.wl-trigger:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(0,0,0,.16); }
.wl-count {
  background: #e11d48;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
  line-height: 18px;
}
@keyframes wlPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.wl-trigger.pulse { animation: wlPulse .35s ease; }

/* ── Wishlist slide-in panel ─────────────────────────────────────────────── */
.wl-panel {
  position: fixed;
  top: 130px;
  right: 16px;
  z-index: 10000;
  width: 290px;
  max-height: 380px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wlSlideIn .2s ease both;
}
.wl-panel[hidden] { display: none; }
@keyframes wlSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.wl-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  flex-shrink: 0;
}
.wl-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.wl-panel-close:hover { background: #f1f5f9; color: #475569; }

.wl-items {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  flex: 1;
}
.wl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  gap: 10px;
  transition: background .12s;
}
.wl-item:hover { background: #fef2f2; }
.wl-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.wl-item-apt {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.wl-item-project {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #cbd5e1;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color .15s, background .15s;
  line-height: 1;
}
.wl-item-remove:hover { color: #e11d48; background: #fee2e2; }

.wl-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.wl-send-btn {
  width: 100%;
  padding: 10px 14px;
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.wl-send-btn:hover { background: #0369a1; transform: translateY(-1px); }

/* ── Toast confirmation ───────────────────────────────────────────────────── */
.wl-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1e293b;
  color: #f8fafc;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  z-index: 10002;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
}
.wl-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Button pulse animation ──────────────────────────────────────────────── */
@keyframes pulseShadow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(14,165,233,0); }
}
.btn-pulse { animation: pulseShadow 2.5s ease-in-out infinite; }

/* ── Fade-in animation ───────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.6s ease both; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .modal-container { border-radius: 16px; }
  .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .contact-form { padding: 20px; }
}

/* ── Modal upload accordions ─────────────────────────────────────────────── */
.modal-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.modal-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  transition: background .15s;
  font-family: inherit;
}
.modal-accordion-btn:hover { background: #f1f5f9; }
.modal-accordion-open .modal-accordion-btn { background: #eff6ff; color: #1d4ed8; }
.modal-accordion-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.modal-accordion-chevron {
  width: 16px; height: 16px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform .25s;
}
.modal-accordion-open .modal-accordion-chevron { transform: rotate(180deg); }
.modal-accordion-body { padding: 14px; background: #fff; border-top: 1px solid #f1f5f9; }
.modal-accordion-body[hidden] { display: none; }

/* Image grid */
.modal-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.modal-thumb-link {
  display: block; border-radius: 7px; overflow: hidden; cursor: zoom-in;
  position: relative; padding: 0; border: none; background: none;
}
.modal-thumb-link::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .2s;
  border-radius: 7px;
}
.modal-thumb-link:hover::after { background: rgba(0,0,0,.18); }
.modal-thumb-img  {
  width: 100%; height: 75px;
  object-fit: cover; display: block;
  transition: transform .25s;
}
.modal-thumb-link:hover .modal-thumb-img { transform: scale(1.07); }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#lightbox.lb-open { opacity: 1; pointer-events: all; }

.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(6px);
}

/* Close button */
.lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s;
}
.lb-close:hover { background: rgba(255,255,255,.22); transform: scale(1.1) rotate(90deg); }

/* Main image area */
.lb-main {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 1280px; padding: 0 8px;
  flex: 1; min-height: 0;
}
.lb-img-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 0;
}
#lb-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  user-select: none;
  transition: opacity .14s ease;
  display: block;
}
#lb-img.lb-fade { opacity: 0; }

/* Nav arrows */
.lb-nav {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s, transform .18s;
  z-index: 1;
}
.lb-nav:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); transform: scale(1.08); }
.lb-nav[disabled] { opacity: .2; pointer-events: none; }

/* Footer */
.lb-footer {
  position: relative; z-index: 1;
  width: 100%; max-width: 1280px; padding: 10px 16px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.lb-meta {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.lb-caption {
  color: rgba(255,255,255,.8); font-size: 13px; font-weight: 500;
  max-width: 600px; text-align: center;
}
.lb-counter {
  color: rgba(255,255,255,.4); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; white-space: nowrap;
}

/* Thumbnail strip */
.lb-thumbs {
  display: flex; gap: 6px; overflow-x: auto;
  padding-bottom: 2px; max-width: 100%;
  scrollbar-width: none;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex-shrink: 0;
  width: 52px; height: 38px; border-radius: 5px; border: 2px solid transparent;
  background-size: cover; background-position: center;
  cursor: pointer; opacity: .5;
  transition: opacity .18s, border-color .18s, transform .18s;
}
.lb-thumb:hover { opacity: .8; transform: scale(1.05); }
.lb-thumb-active { opacity: 1 !important; border-color: #38bdf8; transform: scale(1.05); }

/* Gallery zoom icon */
.gallery-zoom-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.7);
  color: #fff; opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.gallery-item:hover .gallery-zoom-icon { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ── Site Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.88);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(56, 189, 248, 0.22);
}
.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}
.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  max-width: 200px;
  display: block;
}
.footer-logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-fallback .logo-icon {
  border-radius: 0;
}
.footer-brand-name {
  font-size: 1rem;
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.3;
}
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(186, 230, 253, 0.65);
  font-weight: 400;
  max-width: 320px;
}
.footer-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bae6fd;
  margin-bottom: 16px;
  border-left: 2px solid rgba(56, 189, 248, 0.42);
  padding-left: 10px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(186, 230, 253, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #7dd3fc;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(186, 230, 253, 0.72);
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-copyright {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 400;
}
.footer-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(100, 116, 139, 0.75);
  font-weight: 400;
  line-height: 1.5;
}

/* File list */
.modal-files-list { display: flex; flex-direction: column; gap: 6px; }
.modal-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background .15s, border-color .15s;
}
.modal-file-row:hover { background: #eff6ff; border-color: #bfdbfe; }
.modal-file-icon     { font-size: 18px; flex-shrink: 0; }
.modal-file-name     { flex: 1; font-size: 13px; color: #374151; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-file-size     { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.modal-file-download { font-size: 12px; font-weight: 700; color: #0284c7; white-space: nowrap; }

/* ── YouTube card button ─────────────────────────────────────────────────── */
.yt-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(255,0,0,.35);
}
.yt-card-btn:hover {
  background: #cc0000;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(255,0,0,.45);
}
.open-viz-btn {
  background: #f97316;
  box-shadow: 0 2px 8px rgba(249,115,22,.35);
}
.open-viz-btn:hover {
  background: #ea6c0a;
  box-shadow: 0 4px 14px rgba(249,115,22,.5);
}

/* ── Location map inside modal accordion ─────────────────────────────────── */
#modal-location-map {
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  min-height: 220px;
}
#modal-acc-location .modal-accordion-body {
  padding: 10px;
  overflow: hidden;
}

/* ── Contact form feedback messages ─────────────────────────────────────── */
.contact-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 0;
  font-size: 14px;
  text-align: center;
  border-left: 2px solid transparent;
}
.contact-msg-success {
  background: rgba(22, 163, 74, 0.15);
  color: #86efac;
  border-left-color: #16a34a;
}
.contact-msg-error {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border-left-color: #dc2626;
}

/* ── Building Visualizer Hero ─────────────────────────────────────────────── */
.viz-hero-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.viz-building-container {
  position: relative;
  flex: 1;
  display: block;
  width: 100%;
  overflow: hidden;
  cursor: default;
  line-height: 0;
}

.viz-building-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.viz-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* SVG с viewBox ще скалира автоматично */
  overflow: visible;
}

.viz-zone-poly {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.52);
  stroke-width: 1.5;
  cursor: pointer;
  pointer-events: all;
  transition: fill 0.18s ease, stroke 0.18s ease;
}
.viz-zone-poly:hover,
.viz-zone-poly.viz-zone-hover {
  fill: rgba(15, 23, 42, 0.28);
  stroke: rgba(255, 255, 255, 0.82);
}

/* Zone labels: hidden by default, visible when the zone group is hovered */
.viz-zone-label {
  opacity: 0;
  transition: opacity 0.18s;
}
.viz-zone-group:hover .viz-zone-label {
  opacity: 1;
}

.viz-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f1f5f9;
  border-radius: 0;
  border-right: 2px solid rgba(56, 189, 248, 0.45);
  padding: 14px 16px;
  font-size: 13px;
  pointer-events: none;
  z-index: 100;
  min-width: 200px;
  max-width: 260px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  line-height: 1.5;
}
.viz-tooltip-title {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bae6fd;
  margin-bottom: 10px;
}
.viz-tooltip-stats {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.viz-tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
}
.viz-tooltip-row strong {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}
.viz-tooltip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}
.viz-tooltip-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 0;
  position: relative;
}
.viz-tooltip-icon::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.viz-tooltip-icon-free {
  border: 1px solid #4ade80;
}
.viz-tooltip-icon-free::after {
  border-color: #4ade80;
}
.viz-tooltip-icon-reserved {
  border: 1px solid #facc15;
}
.viz-tooltip-icon-reserved::after {
  border-color: #facc15;
}
.viz-tooltip-icon-sold {
  border: 1px solid #f87171;
}
.viz-tooltip-icon-sold::after {
  border-color: #f87171;
}
.viz-tooltip-hint {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.viz-tooltip-hint-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(186, 230, 253, 0.55);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* ── Viz top badges ───────────────────────────────────────────────────────── */
.viz-top-badges {
  position: absolute;
  top: 14px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 20;
  pointer-events: none;
}
.viz-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.viz-badge-hot {
  background: rgba(239,68,68,0.88);
  color: #fff;
  box-shadow: 0 2px 12px rgba(239,68,68,0.45);
  animation: vizBadgePop 3s ease-in-out infinite;
}
.viz-badge-last {
  background: rgba(245,158,11,0.90);
  color: #fff;
  box-shadow: 0 2px 12px rgba(245,158,11,0.45);
  animation: vizBadgePop 3s ease-in-out infinite;
  animation-delay: 1.5s;
}
@keyframes vizBadgePop {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

/* ── Viz hover hint ───────────────────────────────────────────────────────── */
.viz-hint {
  position: absolute;
  bottom: 52px;
  right: 5vw;
  left: auto;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
  z-index: 10;
  pointer-events: none;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Viz bottom contact CTA ───────────────────────────────────────────────── */
.viz-bottom-cta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.90);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  z-index: 15;
  transition: background .18s;
  pointer-events: auto;
}
.viz-bottom-cta:hover {
  background: rgba(2, 132, 199, 0.88);
}

/* ── Floor Plan Modal — reuses .modal-* classes ───────────────────────────── */
.fp-plan-wrap {
  position: relative;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}
.fp-plan-image {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: #f8fafc;
  display: block;
}
.fp-plan-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: all;
}
.fp-apt-tooltip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  background: #1e293b;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.65;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  min-width: 140px;
  max-width: 200px;
}


/* ── Availability section (server-rendered, indexable) ───────────────────── */
.availability-intro {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
}
.availability-intro strong { color: #0f172a; font-weight: 700; }

/* Accordion: native <details>, so it works with JS disabled and is
   keyboard/screen-reader accessible without any extra wiring. */
.availability-acc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.avail-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.avail-panel[open] {
  border-color: #bae6fd;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.10);
}
.avail-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .18s;
}
.avail-summary:hover { background: #f8fafc; }
.avail-summary:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: -2px;
}
/* Hide the default disclosure triangle (Safari needs the ::-webkit- rule) */
.avail-summary::-webkit-details-marker { display: none; }
.avail-summary::marker { content: ''; }

.avail-summary-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.avail-summary-range {
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  white-space: nowrap;
}
.avail-summary-hint {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}
.avail-panel[open] .avail-summary-hint { color: #0284c7; }
.avail-chevron {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform .3s ease, color .2s;
}
.avail-panel[open] .avail-chevron { transform: rotate(180deg); color: #0284c7; }

/* Open panel is bounded and scrolls internally, so a 67-row table never
   turns the page into an endless scroll. */
.avail-panel-body {
  max-height: min(60vh, 520px);
  overflow: auto;
  border-top: 1px solid #e2e8f0;
  animation: availPanelIn .22s ease;
}
@keyframes availPanelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
/* Column labels stay visible while scrolling the list */
.avail-panel-body thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.availability-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
}

.availability-table { background: #fff; border-collapse: collapse; }
.availability-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.availability-table tbody tr:last-child { border-bottom: none; }
.availability-table tbody tr:hover { background: #f8fafc; }
.availability-table th[scope="row"] { text-align: left; font-weight: 600; }

/* Rows that open a sketch — only apartments have one, so garages and parking
   stay visually inert instead of inviting a dead click. */
.availability-table tbody tr.apt-row-has-sketch { cursor: pointer; }
.availability-table tbody tr.apt-row-has-sketch:hover {
  background: #f0f9ff;
  box-shadow: inset 3px 0 0 #0284c7;
}
.availability-table tbody tr.apt-row-has-sketch:hover .apt-cell-bold { color: #0369a1; }
.availability-table tbody tr.apt-row-has-sketch:hover .apt-sketch-btn {
  background: #0284c7;
  color: #fff;
}
.availability-table .apt-sketch-btn:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

.availability-note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #94a3b8;
}
.availability-cta {
  padding: 10px 20px;
  border-radius: 8px;
  background: #0284c7;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s;
}
.availability-cta:hover { background: #0369a1; }

@media (max-width: 640px) {
  .avail-summary { flex-wrap: wrap; gap: 8px 10px; padding: 14px 16px; }
  .avail-summary-title { font-size: .92rem; }
  /* The chevron is the affordance on small screens; the word would wrap badly */
  .avail-summary-hint { display: none; }
  .avail-chevron { margin-left: auto; }
  .avail-panel-body { max-height: 65vh; }
  .availability-intro { text-align: left; font-size: 14px; }
  .availability-note { flex-direction: column; align-items: stretch; text-align: center; }
  .availability-cta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .avail-panel-body { animation: none; }
  .avail-chevron { transition: none; }
}

/* Accessible caption for screen readers / crawlers, hidden visually */
.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;
}

/* ── Apartment Sketch Modal (ниво 3) ─────────────────────────────────────── */
/* Sits above #floor-plan-modal (10001) and .wl-trigger (10001) */
#apt-sketch-modal { z-index: 10002; }

.as-modal-container {
  max-width: min(1200px, 96vw);
  width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
}
.as-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 20px;
  align-items: start;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.as-viewer { min-width: 0; }

.as-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px;
}
.as-img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  transition: opacity .14s ease;
}
.as-img.as-fade { opacity: 0; }

.as-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background .18s, transform .18s;
  z-index: 2;
}
.as-nav:hover { background: #0284c7; transform: translateY(-50%) scale(1.08); }
.as-prev { left: 10px; }
.as-next { right: 10px; }

.as-counter {
  position: absolute;
  right: 12px; bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  z-index: 2;
}
.as-counter:empty { display: none; }

.as-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px 2px;
  scrollbar-width: thin;
}
.as-thumb {
  flex: 0 0 auto;
  width: 66px; height: 48px;
  border: 2px solid transparent;
  border-radius: 7px;
  background-color: #f1f5f9;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: .6;
  transition: opacity .18s, border-color .18s;
  padding: 0;
}
.as-thumb:hover { opacity: 1; }
.as-thumb-active { opacity: 1; border-color: #0284c7; }

/* Info panel */
.as-info {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 16px;
}
.as-info-list { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.as-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.as-info-row:last-child { border-bottom: none; }
.as-info-row dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
}
.as-info-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}
.as-info-price { font-size: 16px !important; font-weight: 800 !important; color: #0369a1 !important; }

.as-info-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.as-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 8px;
  background: #0284c7;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s;
}
.as-cta:hover { background: #0369a1; }
.as-wish-btn {
  opacity: 1;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

/* Tooltip hint on plan polygons that have a sketch */
.fp-tooltip-hint {
  display: block;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 600;
}

/* 📐 button in the apartment tables */
.apt-sketch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid #bae6fd;
  border-radius: 7px;
  background: #f0f9ff;
  color: #0284c7;
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.apt-sketch-btn:hover {
  background: #0284c7;
  color: #fff;
  transform: scale(1.08);
}

/* Fullscreen mode — mirrors #floor-plan-modal.fp-fullscreen */
#apt-sketch-modal.as-fullscreen { align-items: stretch; padding: 0; }
#apt-sketch-modal.as-fullscreen .modal-container {
  max-width: 100% !important;
  width: 100%;
  height: 100%;
  border-radius: 0;
  margin: 0;
}
#apt-sketch-modal.as-fullscreen .as-img { max-height: calc(100vh - 260px); }

@media (max-width: 900px) {
  .as-modal-body { grid-template-columns: minmax(0, 1fr); }
  .as-img { max-height: 48vh; }
}
@media (max-width: 640px) {
  .as-nav { width: 34px; height: 34px; }
  .as-thumb { width: 56px; height: 42px; }
}


/* ── Building Visualizer Modal ───────────────────────────────────────────── */
#building-viz-modal {
  z-index: 10000;
  align-items: center;
}
#floor-plan-modal {
  z-index: 10001;
}
.bvm-modal-container {
  max-width: min(1500px, 98vw);
  width: 98vw;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
}
.bvm-modal-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c1a2e;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.bvm-container {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: #0c1a2e;
  line-height: 0;
}
.bvm-container .viz-building-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.bvm-container .viz-overlay {
  position: absolute;
  inset: 0;
}

.bvm-modal-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.bvm-floor-bar {
  display: none;
}

@media (max-width: 640px) {
  .bvm-modal-body {
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .bvm-container .viz-hint {
    display: none;
  }
  .bvm-floor-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
    padding: 12px 10px 16px;
    background: #0c1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }
  .bvm-floor-btn {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 2px solid rgba(56, 189, 248, 0.35);
    border-radius: 0;
    background: rgba(15, 23, 42, 0.9);
    color: #f1f5f9;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
  }
  .bvm-floor-btn:active,
  .bvm-floor-btn:focus-visible {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
    outline: none;
  }
}

/* ── Demo Banner Overlay ─────────────────────────────────────────────────── */
.demo-banner-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(7, 30, 50, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: demoBannerIn 0.4s ease both;
}
.demo-banner-overlay.hidden {
  display: none;
}
@keyframes demoBannerIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.demo-banner-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  animation: demoBannerBoxIn 0.45s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes demoBannerBoxIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.demo-banner-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 12px;
}
.demo-banner-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0c4a6e;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.demo-banner-text {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 28px;
}
.demo-banner-text strong {
  color: #0369a1;
}
.demo-banner-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-banner-btn-primary {
  padding: 13px 24px;
  background: #0284c7;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.demo-banner-btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}
.demo-banner-btn-secondary {
  padding: 11px 24px;
  background: transparent;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.88rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.demo-banner-btn-secondary:hover {
  color: #374151;
  border-color: #9ca3af;
  background: #f9fafb;
}
@media (max-width: 480px) {
  .demo-banner-box {
    padding: 28px 20px 24px;
  }
  .demo-banner-title {
    font-size: 1.1rem;
  }
}
@keyframes aptRowFlash {
  0%, 100% { background: transparent; }
  35%       { background: #fef9c3; }
}
.apt-row-highlight {
  animation: aptRowFlash 1.4s ease;
}
.fp-plan-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── Video Section ───────────────────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } }

.video-card { cursor: pointer; }
.video-thumb-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s, opacity .3s;
}
.video-card:hover .video-thumb { transform: scale(1.04); opacity: .82; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.28);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.video-play-btn svg {
  width: 54px;
  height: 54px;
  color: #fff;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
  transition: transform .2s;
}
.video-card:hover .video-play-btn { background: rgba(2,132,199,.5); }
.video-card:hover .video-play-btn svg { transform: scale(1.12); }
.video-caption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
}

/* ── YouTube Modal ───────────────────────────────────────────────────────────── */
.yt-modal-box {
  position: relative;
  width: min(900px, 95vw);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,.65);
  animation: modalSlideIn .3s ease both;
}
.yt-iframe-wrap { aspect-ratio: 16 / 9; }
.yt-iframe-wrap iframe { width: 100%; height: 100%; display: block; }
.yt-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.yt-modal-close:hover { background: rgba(0,0,0,.9); }

/* ── Scroll Section Nav (progressive floating menu) ────────────────────────── */
.scroll-section-nav {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 9990;
  max-width: min(280px, calc(100vw - 32px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.scroll-section-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ssn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.35) transparent;
}
.ssn-item {
  animation: ssnRowIn 0.32s ease both;
  animation-delay: calc(var(--ssn-i, 0) * 0.04s);
}
@keyframes ssnRowIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ssn-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 2px solid rgba(56, 189, 248, 0.30);
  border-radius: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(241, 245, 249, 0.88);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
.ssn-btn:hover {
  background: rgba(15, 23, 42, 0.96);
  border-left-color: rgba(125, 211, 252, 0.65);
  color: #fff;
}
.ssn-item.is-active .ssn-btn {
  background: #0284c7;
  border-color: #0284c7;
  border-left-color: #0369a1;
  color: #fff;
}
.ssn-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7dd3fc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 211, 252, 0.25);
}
.ssn-item.is-active .ssn-num {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.40);
  color: #fff;
}
.ssn-label {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .scroll-section-nav {
    display: none !important;
  }
}

/* ── Back to top (mobile only) ───────────────────────────────────────────── */
.back-to-top {
  display: none;
}
@media (max-width: 640px) {
  .back-to-top {
    position: fixed;
    left: auto;
    right: 10px;
    bottom: 14px;
    z-index: 9990;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 2px solid rgba(56, 189, 248, 0.45);
    border-radius: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s;
  }
  .back-to-top.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .back-to-top:active {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-section-nav,
  .ssn-item,
  .back-to-top {
    animation: none;
    transition: none;
  }
}

