/* ═══════════════════════════════════════════════════════════════════════════
   style.css  –  Custom styles, animations, and visual polish
   Complements Tailwind CSS; does NOT replace it.
   Palette: #fa9746 (orange accent) · #282d33 (dark) · #fff (base) · #f0f4f7 (secondary bg)
═══════════════════════════════════════════════════════════════════════════ */

/* ── 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);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}
#site-header.scrolled .brand-text { color: #282d33; }

/* ── Language Switcher ───────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-btn {
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  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: #fa9746; border-color: #ffd4a8; background: #fff8f0; }
.lang-btn.active { color: #fa9746; border-color: #fa9746; background: #fff3e6; }

/* ── 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: #fff3e6;
  color: #c96a1a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 12px;
}
.section-badge-light {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(
    90deg,
    #282d33 0%,
    #282d33 30%,
    #fa9746 48%,
    #ffd4a8 54%,
    #fa9746 60%,
    #282d33 70%,
    #282d33 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;
}

/* Section title on dark backgrounds — lighter shimmer */
.features-section .section-title,
.cta-section .section-title {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.9) 0%,
    rgba(255,255,255,0.9) 30%,
    #fa9746 48%,
    #ffd4a8 54%,
    #fa9746 60%,
    rgba(255,255,255,0.9) 70%,
    rgba(255,255,255,0.9) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Geometric Particle System ───────────────────────────────────────────── */
/* All sections with particles use position:relative + overflow:hidden       */
/* Particle divs are injected inline in the PHP partials                     */

@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(8deg); }
  66%       { transform: translateY(-8px) rotate(-5deg); }
}
@keyframes geoFloatB {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50%       { transform: translateY(-24px) rotate(15deg) scale(1.05); }
}
@keyframes geoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes geoPulse {
  0%, 100% { opacity: 0.06; transform: scale(1); }
  50%       { opacity: 0.14; transform: scale(1.15); }
}
@keyframes geoDrift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(10px, -15px) rotate(5deg); }
  50%  { transform: translate(20px, -5px) rotate(10deg); }
  75%  { transform: translate(8px, -20px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Base particle */
.geo-particle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Square outline */
.geo-sq {
  border-style: solid;
  border-color: #fa9746;
  animation: geoSpin linear infinite;
}
/* Triangle (border trick) */
.geo-tri {
  width: 0; height: 0;
  border-left: solid transparent;
  border-right: solid transparent;
  border-bottom: solid;
  animation: geoFloat ease-in-out infinite;
}
/* Circle outline */
.geo-circ {
  border-radius: 50%;
  border-style: solid;
  animation: geoFloatB ease-in-out infinite;
}
/* Line */
.geo-line {
  height: 2px;
  background: #fa9746;
  transform-origin: left center;
  animation: geoDrift ease-in-out infinite;
}
/* Dot */
.geo-dot {
  border-radius: 50%;
  background: #fa9746;
  animation: geoPulse ease-in-out infinite;
}

/* Light variants (for dark sections) */
.geo-light .geo-sq  { border-color: rgba(255,255,255,0.25); }
.geo-light .geo-tri { border-bottom-color: rgba(255,255,255,0.18); }
.geo-light .geo-circ { border-color: rgba(255,255,255,0.18); }
.geo-light .geo-line  { background: rgba(255,255,255,0.15); }
.geo-light .geo-dot   { background: rgba(255,255,255,0.18); }

/* Orange variants on light backgrounds */
.geo-orange .geo-sq   { border-color: rgba(250,151,70,0.18); }
.geo-orange .geo-tri  { border-bottom-color: rgba(250,151,70,0.15); }
.geo-orange .geo-circ { border-color: rgba(250,151,70,0.15); }
.geo-orange .geo-line { background: rgba(250,151,70,0.18); }
.geo-orange .geo-dot  { background: rgba(250,151,70,0.2); }

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f7 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(250,151,70,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Decorative orbs — orange tones */
.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(250,151,70,0.12) 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(250,151,70,0.08) 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: rgba(250,151,70,0.10);
  border: 1px solid rgba(250,151,70,0.30);
  color: #c96a1a;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: none;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #fa9746;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(250,151,70,0.2);
  animation: badgePing 2s ease-in-out infinite;
}
@keyframes badgePing {
  0%, 100% { box-shadow: 0 0 0 3px rgba(250,151,70,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(250,151,70,0.06); }
}

/* Hero title highlight — orange shimmer */
.hero-title-highlight {
  background: linear-gradient(
    90deg,
    #c96a1a 0%,
    #c96a1a 25%,
    #fa9746 44%,
    #ffd4a8 50%,
    #fa9746 56%,
    #e07a30 72%,
    #c96a1a 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: rgba(250,151,70,0.12);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fa9746;
  box-shadow: none;
}

/* Primary CTA button */
.hero-cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fa9746;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  border-radius: 0;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(250,151,70,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  z-index: 2;
}
.hero-cta-primary:hover {
  background: #e8893a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250,151,70,0.35);
}
/* Shimmer sweep */
.hero-cta-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.30) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  animation: ctaShimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShimmer {
  0%   { background-position: -100% 0; }
  60%  { background-position: 200% 0; }
  100% { background-position: 200% 0; }
}

/* Secondary CTA */
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid #d1d5db;
  color: #374151;
  font-weight: 500;
  font-size: 15px;
  border-radius: 0;
  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: #fa9746;
  color: #c96a1a;
  background: rgba(255,243,230,0.9);
  transform: translateY(-2px);
}

/* Split container */
.hero-split {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

/* ── Hero image CTA ──────────────────────────────────────────────────────── */
.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: #fa9746;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(250,151,70,0.40);
  transition: transform .18s, box-shadow .18s, background .18s;
  text-transform: uppercase;
}
.hero-img-cta-btn:hover {
  background: #e8893a;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 40px rgba(250,151,70,0.50);
}
/* Pulse rings */
.hero-img-cta-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: rgba(250,151,70,0.35);
  animation: heroCTAPulse 2.2s ease-out infinite;
  z-index: 1;
}
.hero-img-cta-pulse-2 {
  animation-delay: 1.1s;
  background: rgba(250,151,70,0.18);
}
@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; }
}

/* Left text panel */
.hero-split-left {
  position: relative;
  z-index: 2;
  flex: 0 0 36%;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px 5vw;
}
@media (min-width: 1400px) {
  .hero-split-left { flex: 0 0 33%; }
}
@media (max-width: 1024px) {
  .hero-split { flex-direction: column; }
  .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 */
.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: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.status-orange  { background: rgba(250,151,70,0.20);  color: #c96a1a; border: 1px solid rgba(250,151,70,0.35); }
.status-blue    { background: rgba(40,45,51,0.20);    color: #282d33; border: 1px solid rgba(40,45,51,0.30); }
.status-green   { background: rgba(34,197,94,0.20);   color: #15803d; border: 1px solid rgba(34,197,94,0.35); }
.status-teal    { background: rgba(20,184,166,0.20);  color: #0f766e; border: 1px solid rgba(20,184,166,0.35); }

/* ── 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: 2px;
  font-size: 11px;
  color: white;
  font-weight: 500;
}

@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: 2px;
  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: #fa9746;
  width: 24px;
  border-radius: 2px;
}

/* ── 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: 0 8px 32px rgba(0,0,0,0.08);
  background: #fff;
  transition: box-shadow 0.3s ease;
}
.project-hero-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}

.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(40,45,51,0.14) 0%, transparent 60%),
              linear-gradient(to top, rgba(0,0,0,0.30) 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(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 2px;
}

.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: 500;
  color: #fa9746;
  margin-bottom: 10px;
}
.phc-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #282d33;
  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 #e8ecf0;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 24px;
}
.phc-stat {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1.5px solid #e8ecf0;
}
.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: 600;
  color: #282d33;
}
.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: 400;
}
.phc-highlights li svg {
  flex-shrink: 0;
  color: #fa9746;
}

.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: #fa9746;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}
.phc-btn-primary:hover {
  background: #e8893a;
  box-shadow: 0 6px 20px rgba(250,151,70,0.30);
  transform: translateY(-1px);
}
.phc-actions .yt-card-btn {
  width: auto;
  height: auto;
  padding: 13px 20px;
  border-radius: 0;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}

@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: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}

.meta-pill {
  display: inline-block;
  padding: 2px 8px;
  background: #fff3e6;
  color: #c96a1a;
  border: 1px solid #ffd4a8;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
}

/* ── Why Pomorie Cards ───────────────────────────────────────────────────── */
.why-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 0;
  padding: 20px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(250,151,70,0.09);
  border-color: #ffd4a8;
}
.why-card-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0;
  border: 2px solid #ffe8ce;
  margin: 0 auto;
  display: block;
}

/* ── Features Section ────────────────────────────────────────────────────── */
.features-section {
  background: linear-gradient(135deg, #1e2227 0%, #282d33 50%, #1a1e23 100%);
  position: relative;
  overflow: hidden;
}
.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.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0;
  padding: 28px 24px;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.feature-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(250,151,70,0.30);
  transform: translateY(-3px);
}
.feature-card-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0;
  border: 2px solid rgba(250,151,70,0.30);
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stat-card {
  background: #f0f4f7;
  border: 1px solid #e0e6ea;
  border-radius: 0;
  padding: 28px 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(250,151,70,0.10); }
.stat-value {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fa9746;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
  font-weight: 400;
}

/* ── Partner Logos ───────────────────────────────────────────────────────── */
.partner-logo-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 16px 12px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.partner-logo-card:hover { border-color: #ffd4a8; box-shadow: 0 4px 12px rgba(250,151,70,0.10); }
.partner-abbr {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fa9746;
  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;
}
.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(40,45,51,0.7) 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: 500;
}

@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: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e0e6ea;
  min-height: 420px;
  position: relative;
  transition: box-shadow .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: 0;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background .15s, box-shadow .15s;
}
.map-fs-btn:hover {
  background: #f0f4f7;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
}

/* Leaflet popup custom style */
.lf-popup .leaflet-popup-content-wrapper {
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  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: 600;
  color: #282d33;
  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: #fa9746;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s;
}
.lf-popup-btn:hover { background: #e8893a; }

.distance-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f4f7;
  border: 1px solid #e0e6ea;
  border-radius: 0;
  padding: 14px 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.distance-card:hover { border-color: #ffd4a8; 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: 600; color: #282d33; 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: 0;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #e8ecf0;
  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, #fa9746, #ffd4a8);
}
.step-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.step-number {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fa9746, #ffd4a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonial-card {
  background: white;
  border-radius: 0;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border: 1px solid #e8ecf0;
  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: #ffe8ce;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: linear-gradient(135deg, #fa9746, #ffd4a8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── FAQ Accordion ───────────────────────────────────────────────────────── */
.faq-item {
  background: white;
  border: 1px solid #e8ecf0;
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.faq-item.open { box-shadow: 0 4px 16px rgba(250,151,70,0.10); border-color: #ffd4a8; }
.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: 500;
  color: #282d33;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: #fa9746; }
.faq-chevron { transition: transform 0.3s ease; color: #fa9746; }
.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, #1e2227 0%, #282d33 60%, #1a1e23 100%);
  position: relative;
  overflow: hidden;
}
.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.02'%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: 0;
  transition: background 0.2s, color 0.2s;
}
.contact-info-link:hover { background: #fff3e6; color: #fa9746; }
.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: 0;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.viber-btn    { background: #7b519d; color: white; }
.whatsapp-btn { background: #25d366; color: white; }
.call-btn     { background: #fa9746; color: white; }

.contact-form { background: #f0f4f7; border-radius: 0; padding: 32px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: #374151; }
.form-input {
  padding: 11px 14px;
  border: 1.5px solid #d8dfe6;
  border-radius: 0;
  font-size: 14px;
  color: #282d33;
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-input:focus { border-color: #fa9746; box-shadow: 0 0 0 3px rgba(250,151,70,0.12); }
.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);
  /* Above wishlist bubble/panel (10000–10001) so header/footer controls stay clickable */
  z-index: 10100;
  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: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  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 #f0f4f7;
}
.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: #f0f4f7;
  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: #e0e6ea; transform: rotate(90deg); }
.fp-fullscreen-btn {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: #fa9746;
  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: #e8893a; 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 #f0f4f7;
  flex-wrap: wrap;
}

/* Apartment Table */
.apt-th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  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: 600; color: #282d33; }
.apt-cell-price { font-weight: 600; color: #fa9746; font-size: 14px; }

.apt-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
}
.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: 2px;
}

/* ── Apt filter bar ───────────────────────────────────────────────────────── */
.apt-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #f0f4f7;
  border: 1px solid #d8dfe6;
  border-radius: 0;
  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: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 2px;
  white-space: nowrap;
}
.apt-filter-sep {
  width: 1px; height: 18px;
  background: #d8dfe6;
  flex-shrink: 0;
  margin: 0 4px;
}
.apt-filter-pill {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 11px; font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: #e0e6ea; 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 — orange tint when active */
.apt-filter-pill[data-filter-group="type"].active,
.apt-filter-pill[data-filter-group="exposure"].active { background:#fff3e6; color:#c96a1a; border-color:#ffd4a8; }
/* Hidden rows */
.apt-row.apt-hidden { display: none; }

/* ── Wishlist heart button ───────────────────────────────────────────────── */
.apt-wish-btn {
  opacity: 0;
  background: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  color: #94a3b8;
  padding: 5px 7px;
  border-radius: 0;
  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: 2px;
  padding: 7px 14px 7px 10px;
  display: none;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #e11d48;
  transition: transform .2s, box-shadow .2s;
}
.wl-trigger.visible { display: flex; }
.wl-trigger:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.wl-count {
  background: #e11d48;
  color: #fff;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  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: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  border: 1px solid #e0e6ea;
  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 #f0f4f7;
  font-size: 13px;
  font-weight: 600;
  color: #282d33;
  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: 0;
  transition: background .15s, color .15s;
}
.wl-panel-close:hover { background: #f0f4f7; 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: 600;
  color: #282d33;
}
.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: 0;
  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 #f0f4f7;
  flex-shrink: 0;
}
.wl-send-btn {
  width: 100%;
  padding: 10px 14px;
  background: #fa9746;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.wl-send-btn:hover { background: #e8893a; transform: translateY(-1px); }

/* ── Toast confirmation ───────────────────────────────────────────────────── */
.wl-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #282d33;
  color: #f8fafc;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  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(250,151,70,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(250,151,70,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: 0; }
  .modal-header, .modal-body, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .contact-form { padding: 20px; }
}

/* ── Modal upload accordions ─────────────────────────────────────────────── */
.modal-accordion {
  border: 1px solid #e0e6ea;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 8px;
}
.modal-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #f0f4f7;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: background .15s;
  font-family: inherit;
}
.modal-accordion-btn:hover { background: #e8ecf0; }
.modal-accordion-open .modal-accordion-btn { background: #fff3e6; color: #c96a1a; }
.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 #f0f4f7; }
.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: 0; 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: 0;
}
.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: 0; 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: 0;
  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: 0; 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: 400;
  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: 0; 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: #fa9746; 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: #f0f4f7;
  border: 1px solid #d8dfe6;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: background .15s, border-color .15s;
}
.modal-file-row:hover { background: #fff3e6; border-color: #ffd4a8; }
.modal-file-icon     { font-size: 18px; flex-shrink: 0; }
.modal-file-name     { flex: 1; font-size: 13px; color: #374151; font-weight: 400; 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: 600; color: #fa9746; 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: 0;
  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,.25);
}
.yt-card-btn:hover {
  background: #cc0000;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(255,0,0,.35);
}
.open-viz-btn {
  background: #fa9746;
  box-shadow: 0 2px 8px rgba(250,151,70,.30);
}
.open-viz-btn:hover {
  background: #e8893a;
  box-shadow: 0 4px 14px rgba(250,151,70,.45);
}

/* ── Location map inside modal accordion ─────────────────────────────────── */
#modal-location-map {
  height: 220px;
  border-radius: 0;
  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;
}
.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;
  overflow: visible;
}

.viz-zone-poly {
  fill: rgba(250,151,70,0.12);
  stroke: rgba(250,151,70,0.60);
  stroke-width: 2;
  cursor: pointer;
  pointer-events: all;
  transition: fill .15s;
}
.viz-zone-poly:hover,
.viz-zone-poly.viz-zone-hover {
  fill: rgba(250,151,70,0.35);
  stroke: rgba(250,151,70,0.95);
}

/* Zone labels */
.viz-zone-label {
  opacity: 0;
  transition: opacity 0.18s;
}
.viz-zone-group:hover .viz-zone-label {
  opacity: 1;
}

.viz-tooltip {
  position: absolute;
  background: rgba(40,45,51,0.94);
  color: #f8fafc;
  border-radius: 0;
  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,.20);
  backdrop-filter: blur(4px);
  line-height: 1.5;
}
.viz-tooltip-title { font-weight: 600; 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: #fa9746;
  border-radius: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  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: 2px;
  font-size: 11px;
  font-weight: 600;
  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 10px rgba(239,68,68,0.40);
  animation: vizBadgePop 3s ease-in-out infinite;
}
.viz-badge-last {
  background: rgba(250,151,70,0.90);
  color: #fff;
  box-shadow: 0 2px 10px rgba(250,151,70,0.40);
  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: 500;
  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(250,151,70,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  z-index: 15;
  transition: background .18s;
}
.viz-bottom-cta:hover {
  background: rgba(232,137,58,0.95);
}

/* ── Floor Plan Modal ─────────────────────────────────────────────────────── */
.fp-plan-wrap {
  position: relative;
  line-height: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #e0e6ea;
  margin-bottom: 16px;
}
.fp-plan-image {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: #f0f4f7;
  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: #282d33;
  color: #fff;
  border-radius: 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.65;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  min-width: 140px;
  max-width: 200px;
}

.bvm-modal-container {
  max-width: 1100px;
  width: 96vw;
}
.bvm-modal-body {
  padding: 0;
}
.bvm-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  overflow: hidden;
  background: #1a1e23;
}

/* ── Demo Banner Overlay ─────────────────────────────────────────────────── */
.demo-banner-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(28, 33, 40, 0.85);
  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: 0;
  padding: 40px 36px 32px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 60px rgba(0,0,0,0.25);
  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;
  display: flex;
  justify-content: center;
  align-items: center;
}
.demo-banner-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #282d33;
  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: #fa9746;
}
.demo-banner-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-banner-btn-primary {
  padding: 13px 24px;
  background: #fa9746;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.demo-banner-btn-primary:hover {
  background: #e8893a;
  transform: translateY(-1px);
}
.demo-banner-btn-secondary {
  padding: 11px 24px;
  background: transparent;
  color: #6b7280;
  font-weight: 400;
  font-size: 0.88rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0;
  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: #f0f4f7;
  border: 1px dashed #d1d5db;
  border-radius: 0;
  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: 0;
  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(250,151,70,0.5); }
.video-card:hover .video-play-btn svg { transform: scale(1.12); }
.video-caption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #282d33;
  text-align: center;
}

/* ── YouTube Modal ───────────────────────────────────────────────────────────── */
.yt-modal-box {
  position: relative;
  width: min(900px, 95vw);
  background: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.60);
  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: 0;
  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); }
