/* ═══════════════════════════════════════════════════════════════════════════
   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: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 2px 32px rgba(0,0,0,0.12);
}
#site-header .brand-text { color: #111827; }

/* ── Language Switcher ───────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-btn {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.lang-btn:hover  { color: #0284c7; border-color: #bae6fd; background: #f0f9ff; }
.lang-btn.active { color: #0284c7; border-color: #0284c7; background: #e0f2fe; }

/* ── 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: 4px 14px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-badge-light {
  background: rgba(255,255,255,0.2);
  color: #e0f2fe;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(
    90deg,
    #111827 0%,
    #111827 30%,
    #0284c7 48%,
    #38bdf8 54%,
    #0284c7 60%,
    #111827 70%,
    #111827 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sectionTitleShimmer 4s linear infinite;
}
@keyframes sectionTitleShimmer {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}
.section-subtitle {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Hero Section — full-bleed split layout ──────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 40%, #f8fafc 100%);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(14,165,233,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Decorative light orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
.hero-orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(56,189,248,0.18) 0%, transparent 70%);
  top: -80px;
  left: -60px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(2,132,199,0.13) 0%, transparent 70%);
  bottom: 60px;
  left: 30%;
  animation: orbFloat 11s ease-in-out 2s infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(18px, -22px) scale(1.04); }
  66%       { transform: translate(-12px, 14px) scale(0.97); }
}

/* Hero badge */
.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 1px 8px rgba(2,132,199,0.10);
  position: relative;
  z-index: 2;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.2);
  animation: badgePing 2s ease-in-out infinite;
}
@keyframes badgePing {
  0%, 100% { box-shadow: 0 0 0 3px rgba(2,132,199,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(2,132,199,0.08); }
}

/* Hero title highlight — shimmer gradient */
.hero-title-highlight {
  background: linear-gradient(
    90deg,
    #0369a1 0%,
    #0369a1 25%,
    #38bdf8 44%,
    #7dd3fc 50%,
    #38bdf8 56%,
    #0284c7 72%,
    #0369a1 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroTitleShimmer 4.5s linear infinite;
  font-weight: 400;
}
@keyframes heroTitleShimmer {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}

/* Hero bullet icon */
.hero-bullet-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  box-shadow: 0 1px 4px rgba(2,132,199,0.15);
}

/* Primary CTA button with shimmer sweep */
.hero-cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(2,132,199,0.35), 0 1px 4px rgba(0,0,0,0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}
.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(2,132,199,0.45), 0 2px 8px rgba(0,0,0,0.12);
}
/* Shimmer sweep pseudo-element */
.hero-cta-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.35) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  animation: ctaShimmer 2.8s ease-in-out infinite;
  border-radius: inherit;
  pointer-events: none;
}
@keyframes ctaShimmer {
  0%   { background-position: -100% 0; }
  60%  { background-position: 200% 0; }
  100% { background-position: 200% 0; }
}

/* Navbar phone button — same style as hero primary but compact */
.nav-phone-btn {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Phone dropdown wrapper */
.nav-phone-wrap {
  position: relative;
}
.nav-phone-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  min-width: 220px;
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-phone-dropdown.open {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.nav-phone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-phone-item:hover {
  background: #f0f9ff;
  color: #0284c7;
}
.nav-phone-item + .nav-phone-item {
  border-top: 1px solid #f1f5f9;
}

/* Secondary CTA */
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid #cbd5e1;
  color: #374151;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
  position: relative;
  z-index: 2;
}
.hero-cta-secondary:hover {
  border-color: #7dd3fc;
  color: #0369a1;
  background: rgba(240,249,255,0.9);
  transform: translateY(-2px);
}

/* Split container */
.hero-split {
  display: flex;
  flex-direction: row-reverse;
  min-height: 100vh;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .hero-split { flex-direction: column-reverse; }
}


/* ── Hero image CTA — floating pulse button over right panel ─────────────── */
.hero-img-cta {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-cta-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 32px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(2,132,199,0.50), 0 2px 8px rgba(0,0,0,0.20);
  transition: transform .18s, box-shadow .18s;
  text-transform: uppercase;
}
.hero-img-cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 44px rgba(2,132,199,0.60), 0 4px 12px rgba(0,0,0,0.22);
}
/* Pulse rings */
.hero-img-cta-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(2,132,199,0.35);
  animation: heroCTAPulse 2.2s ease-out infinite;
  z-index: 1;
}
.hero-img-cta-pulse-2 {
  animation-delay: 1.1s;
  background: rgba(2,132,199,0.20);
}
@keyframes heroCTAPulse {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: .8; }
  100% { transform: translate(-50%,-50%) scale(2.4); opacity: 0; }
}
@media (max-width: 1024px) {
  .hero-img-cta { display: none; }
}

/* Text panel (visually on the right after row-reverse) */
.hero-split-left {
  position: relative;
  z-index: 2;
  flex: 0 0 36%;
  display: flex;
  align-items: center;
  padding: 120px 5vw 80px 40px;
}
@media (min-width: 1400px) {
  .hero-split-left { flex: 0 0 33%; }
}
@media (max-width: 1024px) {
  .hero-split-left {
    flex: none;
    width: 100%;
    padding: 100px 24px 40px;
  }
  .hero-split-right {
    flex: none !important;
    width: 100% !important;
    min-height: 85vw !important;
  }
@media (max-width: 480px) {
  .hero-split-right {
    min-height: 100vw !important;
  }
}
}

/* Right image panel */
.hero-split-right {
  position: relative;
  flex: 1;
  min-height: 100vh;
  overflow: hidden;
}

/* Hero content animation */
.hero-content { animation: heroFadeIn 0.9s ease both; width: 100%; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Carousel fills the right panel completely */
.hero-carousel-wrapper {
  position: absolute;
  inset: 0;
  animation: heroFadeInRight 0.9s ease 0.2s both;
  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; animation: slideFadeIn 0.5s ease both; }
.carousel-slide-inner { position: relative; flex: 1; }
.carousel-slide-inner > img { object-fit: contain; object-position: center; background: #0f172a; }

/* Dots bar sits at the bottom of the right panel */
.carousel-dots-bar {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

@keyframes heroFadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideFadeIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Status Badges ───────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  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: #15803d; 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; }

.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: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(2,132,199,0.13), 0 4px 16px rgba(0,0,0,0.07);
  background: #fff;
  transition: box-shadow 0.3s ease;
}
.project-hero-card:hover {
  box-shadow: 0 32px 80px rgba(2,132,199,0.18), 0 6px 24px rgba(0,0,0,0.09);
}

.phc-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 440px;
}
.phc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.project-hero-card:hover .phc-image {
  transform: scale(1.04);
}
.phc-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,74,110,0.18) 0%, transparent 60%),
              linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
}
.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: 5px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.phc-body {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.phc-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 10px;
}
.phc-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 14px;
}
.phc-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 46ch;
}

.phc-stats {
  display: flex;
  gap: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.phc-stat {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1.5px solid #e2e8f0;
}
.phc-stat:last-child { border-right: none; }
.phc-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.phc-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.phc-stat-free { color: #15803d; }

.phc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.phc-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phc-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}
.phc-highlights li svg {
  flex-shrink: 0;
  color: #0284c7;
}

.phc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.phc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #0284c7;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}
.phc-btn-primary:hover {
  background: #0369a1;
  box-shadow: 0 6px 20px rgba(2,132,199,0.35);
  transform: translateY(-1px);
}
.phc-actions .yt-card-btn {
  width: auto;
  height: auto;
  padding: 13px 20px;
  border-radius: 12px;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .project-hero-card {
    grid-template-columns: 1fr;
  }
  .phc-image-wrap {
    min-height: 280px;
  }
  .phc-body {
    padding: 32px 28px;
  }
  .phc-name {
    font-size: 1.5rem;
  }
}

/* ── Project Cards ───────────────────────────────────────────────────────── */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.meta-pill {
  display: inline-block;
  padding: 2px 8px;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* ── Why Pomorie 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 {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #075985 100%);
  position: relative;
}
.features-wave-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  line-height: 0;
  overflow: hidden;
}
.features-wave-top svg {
  display: block;
  width: 100%;
  height: 72px;
}
.feature-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 24px;
  transition: background 0.25s, transform 0.25s;
}
.feature-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}
.feature-card-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.25);
}

/* ── 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: 12px;
  cursor: pointer;
}
.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;
}
.gallery-item:hover img { transform: scale(1.07); }
.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 ────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #e0f2fe;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 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 {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 60%, #0ea5e9 100%);
  position: relative;
}
.cta-wave-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  line-height: 0;
  overflow: hidden;
  z-index: 1;
}
.cta-wave-top svg {
  display: block;
  width: 100%;
  height: 72px;
}
.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Contact Section ─────────────────────────────────────────────────────── */
.contact-info-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.contact-info-link:hover { background: #f0f9ff; color: #0284c7; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; }

.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.viber-btn    { background: #7b519d; color: white; }
.whatsapp-btn { background: #25d366; color: white; }
.call-btn     { background: #0284c7; color: white; }

.contact-form { background: #f8fafc; border-radius: 20px; padding: 32px; }
.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); }

/* ── Footer Diagonal ─────────────────────────────────────────────────────── */
.footer-diagonal {
  clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%);
  padding-top: 112px;
}

/* 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: 8px;
  font-size: 14px;
  text-align: center;
}
.contact-msg-success {
  background: #dcfce7;
  color: #15803d;
}
.contact-msg-error {
  background: #fee2e2;
  color: #b91c1c;
}

/* ── Building Visualizer Hero ─────────────────────────────────────────────── */
.viz-hero-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: heroFadeInRight 0.9s ease 0.2s both;
}

.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: cover;
  object-position: center;
}

.viz-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* SVG с viewBox ще скалира автоматично */
  overflow: visible;
}

.viz-zone-poly {
  fill: rgba(37,99,235,.12);
  stroke: rgba(37,99,235,.55);
  stroke-width: 2;
  cursor: pointer;
  pointer-events: all;
  transition: fill .15s;
}
.viz-zone-poly:hover,
.viz-zone-poly.viz-zone-hover {
  fill: rgba(37,99,235,.35);
  stroke: rgba(37,99,235,.9);
}

/* 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,.92);
  color: #f8fafc;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  pointer-events: none;
  z-index: 100;
  min-width: 180px;
  max-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  line-height: 1.5;
}
.viz-tooltip-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.viz-tooltip-stats { display: flex; flex-direction: column; gap: 3px; }
.viz-tooltip-row   { display: flex; justify-content: space-between; gap: 8px; }
.viz-tooltip-open  {
  margin-top: 8px;
  display: block;
  text-align: center;
  padding: 5px 10px;
  background: #2563eb;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: 100%;
  pointer-events: all;
}
/* ── 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: 48px;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  z-index: 10;
  pointer-events: none;
}
.viz-hint-hand {
  font-size: 18px;
  display: inline-block;
  animation: vizHandBounce 1.4s ease-in-out infinite;
}
@keyframes vizHandBounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-6px); }
  70%      { transform: translateY(-3px); }
}

/* ── 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: 11px 20px;
  background: rgba(2,132,199,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  z-index: 15;
  transition: background .18s;
}
.viz-bottom-cta:hover {
  background: rgba(3,105,161,0.95);
}

/* ── 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;
}


/* ── Building Visualizer Modal ───────────────────────────────────────────── */
#building-viz-modal {
  z-index: 10000;
}
#floor-plan-modal {
  z-index: 10001;
}
.bvm-modal-container {
  max-width: 1100px;
  width: 96vw;
}
.bvm-modal-body {
  padding: 0;
}
/* Scrollable wrapper for the bvm modal */
.bvm-modal-wrap {
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  background: #0c1a2e;
  text-align: center;
}
/* The container is inline-block so it sizes to the image's natural dimensions */
.bvm-container {
  display: inline-block;
  position: relative;
  line-height: 0;
}
.bvm-container .viz-building-img {
  display: block;
  max-width: none;
  width: auto;
  height: auto;
}

/* ── 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); }

