/* ==========================================================================
   vinhomesgrandpark247.com - CORE STYLESHEET
   Design System: Slate 950/900 • Teal 600/700 • Gold/Amber 500/600
   Hotline / Zalo: 0938.889.670
   ========================================================================== */

/* Base & Typography */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar Customization */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbar for desktop panels */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0D9488;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.22s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
  }
}

.pulse-teal {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Interactive Unit Slots in SVG Floor Plans */
.unit-slot {
  transition: all 0.18s ease;
  cursor: pointer;
}
.unit-slot:hover {
  filter: brightness(0.92);
  transform: scale(1.02);
  transform-box: fill-box;
  transform-origin: center;
}
.unit-slot.active-unit {
  stroke: #0F172A;
  stroke-width: 2.5px;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.35));
}

/* Card Hover Lifts */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.12);
}

/* Line clamps */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Floating Bot Window & Trigger */
#floating-bot-container {
  transition: transform 0.25s ease;
}

#floating-bot-window {
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.25);
  border: 1px solid #E2E8F0;
}

/* Mobile & Desktop Responsive Optimizations */
@media (max-width: 640px) {
  #floating-bot-container {
    bottom: 1rem;
    right: 1rem;
  }
  #floating-bot-window {
    width: calc(100vw - 2rem) !important;
    max-height: 80vh !important;
    height: 460px !important;
  }
  .hero-heading {
    font-size: 1.75rem !important;
    line-height: 2.15rem !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  #floating-bot-window {
    width: 360px !important;
  }
}

@media (min-width: 1025px) {
  #floating-bot-window {
    width: 380px !important;
  }
}

/* Mobile Drawer Smooth Transition */
#mobile-nav {
  transition: max-height 0.3s ease-in-out, opacity 0.25s ease;
}

/* Focus styles for Accessibility */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid #0D9488;
  outline-offset: 2px;
}
