/* ==========================================================================
   HOMIE STAR PHO YEN - MODERN DESIGN SYSTEM
   Font: Be Vietnam Pro & Inter (Chuẩn Tiếng Việt không lỗi ký tự)
   Palette: Royal Navy & Emerald/Gold Luxury Real Estate Palette
   ========================================================================== */

:root {
  /* Colors */
  --primary: #b45309;
  --primary-hover: #92400e;
  --primary-light: #fef3c7;
  --primary-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --accent-gold: #f59e0b;
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --danger: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.35);

  /* Typography Variables (Chuẩn Tiếng Việt không lỗi) */
  --font-main: 'Montserrat', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Montserrat', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, select, textarea, option, optgroup {
  font-family: var(--font-main) !important;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography Utilities */
.section-tag {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.42;
  margin-bottom: 1rem;
  padding-top: 0.15rem;
}

.section-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-top: 0.15rem;
  padding-bottom: 0.05rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   NAVIGATION BAR (LUXURY SAPPHIRE & GOLD THEME)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  background: rgba(11, 17, 32, 0.98);
  border-bottom-color: rgba(245, 158, 11, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover {
  transform: scale(1.03);
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.35)) brightness(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-gold);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hotline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.hotline-btn i {
  color: #0f172a;
}

.hotline-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.75rem;
  color: #f1f5f9;
  cursor: pointer;
  border-radius: 8px;
}

/* ==========================================================================
   HERO SECTION WITH CONVERSION FORM
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%), url('../assets/images/hero-bg.jpg') center/cover no-repeat;
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(254, 243, 199, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(8px);
  color: #fde68a;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 1.25rem;
  padding-top: 0.25rem;
}

.hero-title span {
  color: #fbbf24;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-usp-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  font-weight: 600;
}

.usp-item i {
  color: #10b981;
  font-size: 1.1rem;
}

/* Hero Lead Form Card */
.lead-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.lead-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
}

.lead-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.lead-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.lead-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  background: #fff;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

/* Luxury Custom Form Select Dropdown */
.form-select, select.form-select {
  width: 100%;
  padding: 0.85rem 2.85rem 0.85rem 1.15rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-family: var(--font-main) !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px 18px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  line-height: 1.5;
}

.form-select:hover {
  border-color: #94a3b8;
  background-color: #fafbfc;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-select option, select.form-select option, .calc-select option, select option {
  font-family: var(--font-main) !important;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  background-color: #ffffff;
  padding: 12px 14px;
}

/* Custom Interactive Select UI (Zero native OS bugs, Luxury Floating Dropdown) */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.custom-select-trigger:hover {
  border-color: #94a3b8;
  background: #fafbfc;
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.custom-select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  padding: 6px;
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-select-option:hover {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.custom-select-option.selected {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(245, 158, 11, 0.18) 100%);
  color: #b45309;
  font-weight: 700;
}

.custom-select-option .check-icon {
  font-size: 1.1rem;
  color: #b45309;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.custom-select-option.selected .check-icon {
  opacity: 1;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.form-consent a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.45);
}

/* ==========================================================================
   HIGHLIGHT STATS BAR
   ========================================================================== */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 5.5rem 0;
}

.section.alt-bg {
  background: #f1f5f9;
}

/* ==========================================================================
   OVERVIEW & LOCATION
   ========================================================================== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.overview-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.info-table tr {
  border-bottom: 1px solid var(--border-color);
}

.info-table td {
  padding: 0.85rem 0.5rem;
  font-size: 0.95rem;
}

.info-table td.label {
  color: var(--text-muted);
  font-weight: 600;
  width: 38%;
}

.info-table td.val {
  color: var(--secondary);
  font-weight: 700;
}

.overview-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.overview-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: var(--transition);
}

.overview-image:hover img {
  transform: scale(1.03);
}

/* Location Map Grid */
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.connection-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.connection-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.connection-card:hover {
  transform: translateX(6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.connection-time {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.connection-desc {
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   FLOOR PLANS & APARTMENT LAYOUTS (INTERACTIVE TABS)
   ========================================================================== */
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.85rem 2rem;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-sub {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  background: rgba(212, 160, 23, 0.18);
  color: #b45309;
  border-radius: 20px;
  margin-left: 0.35rem;
  letter-spacing: 0.3px;
}
.tab-btn.active .tab-sub {
  background: rgba(255, 255, 255, 0.22);
  color: #fef08a;
}

.apartment-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.apartment-visual {
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid var(--border-color);
}

/* View Switcher Pills */
.apt-view-switcher {
  display: inline-flex;
  background: #e2e8f0;
  padding: 0.3rem;
  border-radius: 30px;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.apt-view-switcher .view-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 1.15rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

.apt-view-switcher .view-btn:hover {
  color: var(--secondary);
}

.apt-view-switcher .view-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Stage & Track */
.apt-slider-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  display: block;
}

.apt-slider-track {
  display: flex;
  width: 200%;
  min-width: 200%;
  max-width: 200%;
  height: 100%;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.apt-slide-pane {
  width: 50%;
  min-width: 50%;
  max-width: 50%;
  flex: 0 0 50%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.apt-slide-pane img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.apt-slide-pane img:hover {
  transform: scale(1.03);
}

.apt-view-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 4;
}

.apt-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #cbd5e1;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 5;
}

.apt-slide-nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.apt-slide-nav.apt-prev { left: 0.75rem; }
.apt-slide-nav.apt-next { right: 0.75rem; }

.apt-zoom-trigger {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 5;
}

.apt-zoom-trigger:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.apt-view-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.apartment-details {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apartment-type {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.apartment-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spec-item i {
  color: var(--primary);
  font-size: 1.25rem;
}

.spec-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spec-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
}

/* ==========================================================================
   AMENITIES GRID
   ========================================================================== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.amenity-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.amenity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.amenity-img {
  height: 220px;
  overflow: hidden;
}

.amenity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.amenity-card:hover .amenity-img img {
  transform: scale(1.08);
}

.amenity-body {
  padding: 1.5rem;
}

.amenity-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.amenity-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LEGALITY & TRANSPARENCY SECTION
   ========================================================================== */
.legal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-top: 3rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.legal-badge-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.legal-check {
  width: 28px;
  height: 28px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.legal-doc-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.doc-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.doc-thumb:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links h5, .footer-contact h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-menu a:hover {
  color: #fbbf24;
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-list i {
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-size: 0.825rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (ZALO & PHONE)
   ========================================================================== */
.floating-widgets {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  position: relative;
}

.float-btn.zalo {
  background: #0068ff;
}

.float-btn.phone {
  background: #10b981;
  animation: phoneRing 2s infinite ease-in-out;
}

.float-btn:hover {
  transform: scale(1.12);
}

@keyframes phoneRing {
  0% { transform: rotate(0) scale(1); }
  10% { transform: rotate(-20deg) scale(1.08); }
  20% { transform: rotate(20deg) scale(1.08); }
  30% { transform: rotate(-20deg) scale(1.08); }
  40% { transform: rotate(0) scale(1); }
  100% { transform: rotate(0) scale(1); }
}

/* ==========================================================================
   MODAL POPUPS
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--danger);
}

/* Notification Toast */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--secondary);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-msg.success i {
  color: var(--success);
}

.toast-msg.info {
  background: #0f172a;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.4), 0 0 15px rgba(245, 158, 11, 0.2);
}

.toast-msg.info i {
  color: #f59e0b;
}

/* ==========================================================================
   SMART IMAGE PROTECTION (Anti-Download / Anti-Steal)
   ========================================================================== */
img,
picture,
.gallery-zoomable,
.mp-slide img,
.apt-slide-pane img,
.marquee-track img,
.lightbox-img,
.lightbox-stage img,
.catalog-cover-img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* ==========================================================================
   THANK YOU / ZALO REDIRECT MODAL STYLES
   ========================================================================== */
.thank-you-card {
  max-width: 500px;
  padding: 2.2rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(212, 160, 23, 0.3);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  text-align: center;
}

.thank-you-header {
  margin-bottom: 1.25rem;
}

.success-icon-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.75rem;
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  color: #10b981;
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.thank-you-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0 0 0.4rem 0;
}

.thank-you-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.consultant-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.consultant-profile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.consultant-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.consultant-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d4a017;
  box-shadow: 0 4px 10px rgba(212, 160, 23, 0.25);
  background: #0f172a;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.consultant-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.consultant-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.consultant-status {
  font-size: 0.78rem;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.zalo-qr-section {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.zalo-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.zalo-qr-img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.zalo-qr-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  max-width: 320px;
}

.zalo-action-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.btn-zalo-cta {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  max-width: 320px;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.3);
  transition: all 0.25s ease;
  line-height: 1.2;
}

.btn-zalo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 104, 255, 0.45);
  background: linear-gradient(135deg, #1a75ff 0%, #005ce6 100%);
}

.btn-zalo-cta i {
  font-size: 1.05rem;
}

.btn-zalo-cta small {
  display: none;
}

.hotline-fallback {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 0.6rem;
}

.hotline-link {
  color: #dc2626;
  font-weight: 700;
  text-decoration: none;
}

.hotline-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .thank-you-card {
    padding: 1.5rem 1.1rem;
  }
  .zalo-qr-img {
    width: 130px;
    height: 130px;
  }
  .btn-zalo-cta {
    font-size: 0.88rem;
    padding: 0.8rem 0.8rem;
  }
}

/* Desktop default hiding for mobile drawer elements */
.nav-drawer-header,
.nav-drawer-footer,
.nav-backdrop {
  display: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE FIRST & TABLET COMPATIBLE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid, .location-grid, .apartment-card, .legal-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .apartment-visual {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
  }
  .apt-slider-stage {
    height: 320px;
  }
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tabs-header {
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
  }
  .tab-btn {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }
  .apt-view-switcher .view-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }
  .apt-slider-stage {
    height: 270px;
  }
  .apt-slide-nav {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .apartment-details {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .header {
    z-index: 1200;
  }

  /* Mobile Navigation Drawer */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1300 !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem 1.25rem 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }
  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
  }
  .drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--secondary);
  }
  .drawer-close-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s;
  }
  .drawer-close-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
  }

  .nav-menu li:not(.nav-drawer-header):not(.nav-drawer-footer) {
    width: 100%;
    border-bottom: 1px solid #f8fafc;
  }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
  }
  .nav-link::after {
    display: none;
  }
  .nav-link:hover {
    color: var(--primary);
    padding-left: 0.75rem;
  }

  .nav-drawer-footer {
    display: block;
    margin-top: auto;
    padding-top: 1.5rem;
  }
  .nav-drawer-hotline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    text-decoration: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s;
  }
  .mobile-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
  }

  /* Spacing & Typography */
  section.section {
    padding: 3.5rem 0;
  }
  .hero {
    padding: 95px 0 2.5rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 5.2vw, 2.25rem);
    line-height: 1.32;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }
  .section-title {
    font-size: clamp(1.5rem, 4.8vw, 2rem);
    line-height: 1.38;
  }
  .section-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* 4 Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .stat-box {
    padding: 1rem 0.85rem;
    gap: 0.75rem;
    border-radius: 12px;
  }
  .stat-number {
    font-size: 1.15rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }

  /* Amenities & Progress */
  .amenities-grid, .hero-usp-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .amenity-card img {
    height: 220px;
  }
  .progress-timeline {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .progress-card img {
    height: 220px;
  }

  /* Floor Plan & Layout Tabs */
  .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0.35rem 0.25rem 0.75rem;
    scrollbar-width: none;
  }
  .tab-nav::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
  }
  .apartment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .apartment-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .spec-item {
    padding: 0.75rem 0.6rem;
  }

  /* Location & Connections */
  .connection-list {
    gap: 0.75rem;
  }
  .connection-card {
    padding: 0.85rem 1rem;
  }
  .connection-time {
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
  }
  .connection-desc {
    font-size: 0.85rem;
  }

  /* Legal & Docs */
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .legal-badges {
    gap: 0.75rem;
  }
  .legal-badge-card {
    padding: 1rem;
  }
  .doc-preview-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Lead Form Card */
  .lead-card {
    padding: 1.35rem 1.1rem;
    border-radius: 14px;
  }
  .lead-card-header h3 {
    font-size: 1.15rem;
  }
  .lead-card-header p {
    font-size: 0.825rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Floating Buttons */
  .floating-widgets,
  .floating-actions {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
    right: 1rem;
    gap: 0.6rem;
  }
  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }
  .brand-logo img {
    height: 38px;
  }
  .hotline-btn .hotline-text {
    display: none;
  }
  .hotline-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  .stat-box {
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
  }
  .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .stat-number {
    font-size: 1.05rem;
  }
  .stat-label {
    font-size: 0.7rem;
    line-height: 1.3;
  }
  .section-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.95rem;
  }
  .apartment-specs {
    grid-template-columns: 1fr;
  }
  .spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .modal-box {
    width: 95%;
    padding: 1.25rem 1rem;
    margin: 0.75rem;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LUXURY LIGHTBOX VIEWER (ZOOM PREVIEW SYSTEM)
   ========================================================================== */
body.zoom-enabled .zoomable-img,
body.zoom-enabled [data-zoomable="true"] {
  cursor: zoom-in !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, filter 0.35s ease;
}

body.zoom-enabled .zoomable-img:hover,
body.zoom-enabled [data-zoomable="true"]:hover {
  filter: brightness(1.03);
}

.zoom-badge-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #fef3c7;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.25s ease;
  z-index: 5;
}

.zoomable-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.zoomable-wrap:hover .zoom-badge-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox Modal Backdrop */
.luxury-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  user-select: none;
  padding: 1rem 1.5rem;
}

.luxury-lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Topbar */
.lightbox-topbar {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  color: #fff;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.lightbox-title-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
}

.lightbox-project-tag {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lightbox-img-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #f59e0b;
  transform: translateY(-1px);
}

.lightbox-btn.close {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  margin-left: 0.5rem;
}

.lightbox-btn.close:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Lightbox Stage */
.lightbox-stage {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0.75rem 0;
  cursor: grab;
}

.lightbox-stage.dragging {
  cursor: grabbing;
}

.lightbox-img-wrapper {
  max-width: 92%;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  transform-origin: center center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Navigation Chevrons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.lightbox-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.4);
}

.lightbox-nav.prev {
  left: 1.5rem;
}

.lightbox-nav.next {
  right: 1.5rem;
}

/* Lightbox Bottom Footer */
.lightbox-footer {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  font-size: 0.825rem;
  color: #94a3b8;
  z-index: 10;
}

.lightbox-hint {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lightbox-hint span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lightbox-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.75rem;
  color: #f1f5f9;
}

@media (max-width: 768px) {
  .luxury-lightbox {
    padding: 0.5rem;
  }
  .lightbox-topbar {
    padding: 0.5rem 0.75rem;
  }
  .lightbox-img-title {
    max-width: 160px;
    font-size: 0.85rem;
  }
  .lightbox-project-tag {
    display: none;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
  .lightbox-hint { display: none; }
  .lightbox-img-wrapper {
    max-width: 100%;
  }
}

/* ==========================================================================
   DYNAMIC CUSTOM BLOCKS STYLING (MODULAR BLOCK BUILDER)
   ========================================================================== */
.custom-block {
  position: relative;
}

/* 1. FAQ Accordion Block */
.faq-accordion-list {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.faq-item:hover {
  border-color: rgba(212, 160, 23, 0.35);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.faq-item.active {
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(26, 38, 57, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 15px rgba(212, 160, 23, 0.12);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.faq-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.15);
  color: #d4a017;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4a017;
  font-size: 0.9rem;
  transition: transform 0.35s ease, background 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: rgba(212, 160, 23, 0.2);
}

.faq-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: #cbd5e1;
  font-size: 0.975rem;
  line-height: 1.7;
}

.faq-item.active .faq-body {
  max-height: 500px;
  opacity: 1;
  padding: 0 1.5rem 1.35rem 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

/* 2. Video Block */
.video-block-container {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.video-frame-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(212, 160, 23, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 160, 23, 0.15);
  background: #000;
}

.video-frame-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-note-bar {
  margin-top: 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  font-style: italic;
}

/* 3. CTA Banner Block */
.cta-banner-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 4rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(212, 160, 23, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-banner-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212, 160, 23, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-content-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-title span {
  color: #eab308;
  text-shadow: 0 0 25px rgba(234, 179, 8, 0.4);
}

.cta-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
  transition: all 0.3s ease;
}

.cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.55);
}

.cta-btn-hotline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn-hotline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #eab308;
  color: #eab308;
  transform: translateY(-3px);
}

/* 4. Partners Block */
.partners-block-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 23, 0.4);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.partner-icon {
  font-size: 2.25rem;
  color: #d4a017;
}

.partner-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.partner-role {
  font-size: 0.825rem;
  color: #94a3b8;
}

/* 5. Custom Content & Image Block */
.custom-block-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.custom-block-content {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.custom-block-content p {
  margin-bottom: 1.25rem;
}

.custom-block-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.custom-block-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.custom-block-media:hover img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .custom-block-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cta-title {
    font-size: 1.75rem;
  }
  .cta-banner-wrapper {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   6. VISUAL SLIDESHOW & SINGLE IMAGE SHOWCASE MODULE
   ========================================================================== */
.custom-block-slideshow {
  position: relative;
}

/* --- CASE A: SINGLE IMAGE SHOWCASE CARD --- */
.slideshow-single-wrapper {
  max-width: 1080px;
  margin: 0 auto;
}

.slideshow-single-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(212, 160, 23, 0.35);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.slideshow-single-card:hover {
  border-color: rgba(212, 160, 23, 0.6);
  box-shadow: 0 25px 60px rgba(212, 160, 23, 0.2);
}

.slideshow-single-media {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #020617;
}

.slideshow-single-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slideshow-single-card:hover .slideshow-single-media img {
  transform: scale(1.025);
}

.slideshow-single-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 160, 23, 0.4);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slideshow-zoom-trigger {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slideshow-zoom-trigger:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.slideshow-single-info {
  padding: 1.75rem 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.95);
}

.slideshow-single-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.slideshow-single-desc {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

/* --- CASE B: INTERACTIVE LUXURY SLIDESHOW CAROUSEL --- */
.slideshow-carousel-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.slideshow-stage {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: 22px;
  overflow: hidden;
  background: #020617;
  border: 1.5px solid rgba(212, 160, 23, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.slideshow-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slideshow-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
  user-select: none;
}

.slide-media-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slideshow-slide:hover .slide-img {
  transform: scale(1.02);
}

.slide-gradient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.25) 0%,
    rgba(15, 23, 42, 0.1) 40%,
    rgba(15, 23, 42, 0.7) 70%,
    rgba(15, 23, 42, 0.96) 100%
  );
}

/* Top Floating Bar */
.slide-top-bar {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.slide-cat-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 160, 23, 0.4);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-counter-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Bottom Caption Bar */
.slide-caption-box {
  position: absolute;
  bottom: 2.75rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  z-index: 10;
}

.slide-caption-content {
  max-width: 720px;
}

.slide-caption-num {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
  background: rgba(212, 160, 23, 0.15);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 160, 23, 0.3);
}

.slide-caption-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.slide-caption-desc {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.slide-zoom-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(212, 160, 23, 0.5);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.slide-zoom-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.45);
}

/* Arrows Navigation */
.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.25s ease;
}

.slide-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.5);
}

.slide-prev {
  left: 1.25rem;
}

.slide-next {
  right: 1.25rem;
}

/* Dots Indicator */
.slideshow-dots {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  align-items: center;
  z-index: 12;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.slide-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.85);
}

/* Thumbnails Strip */
.slideshow-thumbs-container {
  margin-top: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 160, 23, 0.4) transparent;
}

.slideshow-thumbs-container::-webkit-scrollbar {
  height: 6px;
}

.slideshow-thumbs-container::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, 0.4);
  border-radius: 4px;
}

.slideshow-thumbs-track {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  min-width: min-content;
}

.slide-thumb-item {
  width: 145px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.25s ease;
  background: #0f172a;
}

.slide-thumb-item:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.slide-thumb-item.active {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.45);
}

.slide-thumb-item .thumb-img {
  width: 100%;
  height: 75px;
  object-fit: cover;
  display: block;
}

.slide-thumb-item .thumb-label {
  display: block;
  padding: 0.35rem 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  background: rgba(15, 23, 42, 0.9);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .slideshow-stage {
    height: 420px;
  }
  .slideshow-single-media {
    height: 400px;
  }
  .slide-caption-box {
    bottom: 1.5rem;
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .slide-caption-title {
    font-size: 1.25rem;
  }
  .slide-caption-desc {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slide-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .slide-prev {
    left: 0.6rem;
  }
  .slide-next {
    right: 0.6rem;
  }
  .slideshow-thumbs-track {
    justify-content: flex-start;
  }
  .slide-thumb-item {
    width: 120px;
  }
}

@media (max-width: 600px) {
  .slideshow-stage {
    height: 340px;
  }
  .slideshow-single-media {
    height: 280px;
  }
  .slideshow-single-info {
    padding: 1.25rem 1.25rem;
  }
  .slide-top-bar {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }
  .slide-cat-badge, .slideshow-single-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }
  .slide-counter-badge, .slideshow-zoom-trigger {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
  .slide-caption-box {
    bottom: 1.2rem;
    left: 0.75rem;
    right: 0.75rem;
  }
  .slide-caption-title {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }
  .slide-caption-desc {
    display: none;
  }
  .slide-zoom-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }
  .slideshow-dots {
    bottom: 0.5rem;
  }
  .slide-thumb-item {
    width: 105px;
  }
  .slide-thumb-item .thumb-img {
    height: 60px;
  }
}

/* ==================== 6. EXPANDABLE DETAILED SPECS ==================== */
.btn-toggle-specs {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.btn-toggle-specs:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: #b45309;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 160, 23, 0.2);
}
.btn-toggle-specs .toggle-arrow {
  transition: transform 0.3s ease;
}
.btn-toggle-specs.open .toggle-arrow {
  transform: rotate(180deg);
}

.detailed-specs-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
  width: 100%;
}
.detailed-specs-wrapper.open {
  max-height: 1500px;
  opacity: 1;
  margin-top: 2rem;
}

.specs-12-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.spec-12-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #ffffff;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.spec-12-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.12);
}
.spec-12-item.highlight {
  background: #fffdf5;
  border-color: #fde68a;
}
.spec-12-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.spec-12-item.highlight .spec-12-icon {
  background: #fef3c7;
  color: #d97706;
}
.spec-12-body {
  flex: 1;
}
.spec-12-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.spec-12-val {
  display: block;
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.35;
}

/* ==================== 7. LOCATION RADIUS CARDS ==================== */
.location-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.btn-loc-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-loc-pill:hover,
.btn-loc-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.location-connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.connection-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.connection-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.12);
}
.conn-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.conn-info {
  flex: 1;
}
.conn-badge-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.conn-time-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.conn-dist-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.conn-name {
  font-size: 0.885rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
}

/* ==================== 8. LOAN CALCULATOR SECTION ==================== */
.loan-calc-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.loan-calc-card {
  max-width: 1100px;
  margin: 3rem auto 0;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}
.calc-inputs-col {
  padding: 2.5rem;
  border-right: 1px solid #e2e8f0;
}
.calc-results-col {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-group {
  margin-bottom: 1.6rem;
}
.calc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.calc-label-row label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.calc-val-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.2rem 0.75rem;
  border-radius: 8px;
}
.calc-quick-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.btn-calc-pill, .btn-calc-rate {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-calc-pill:hover, .btn-calc-rate:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-calc-pill.active, .btn-calc-rate.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.calc-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  accent-color: var(--primary);
}
.calc-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.calc-select, select.calc-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-family: var(--font-main) !important;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 15px 15px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.calc-select:hover {
  border-color: #94a3b8;
  background-color: #fafbfc;
}
.calc-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}
.calc-rate-badge {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-results-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.results-sub {
  font-size: 0.825rem;
  color: #94a3b8;
}
.calc-box.highlight {
  background: rgba(212, 160, 23, 0.12);
  border: 1.5px solid rgba(212, 160, 23, 0.4);
  padding: 1.25rem;
  border-radius: 14px;
  margin: 1.25rem 0;
  text-align: center;
}
.box-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.box-value {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fbbf24;
  margin: 0.25rem 0;
  font-family: var(--font-heading);
}
.box-note {
  font-size: 0.78rem;
  color: #94a3b8;
}
.calc-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.calc-mini-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
}
.mini-label {
  display: block;
  font-size: 0.725rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.mini-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
  color: #ffffff;
}
.calc-lead-form {
  display: flex;
  gap: 0.5rem;
}
.calc-phone-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.875rem;
  outline: none;
}
.calc-phone-input::placeholder {
  color: #94a3b8;
}
.btn-calc-submit {
  background: linear-gradient(135deg, #d4a017, #b45309);
  border: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.825rem;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-calc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

@media (max-width: 900px) {
  .specs-12-grid {
    grid-template-columns: 1fr;
  }
  .location-connect-grid {
    grid-template-columns: 1fr;
  }
  .loan-calc-card {
    grid-template-columns: 1fr;
  }
  .calc-inputs-col {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
  }
  .calc-results-col {
    padding: 1.5rem;
  }
  .calc-row-2col {
    grid-template-columns: 1fr;
  }
  .calc-lead-form {
    flex-direction: column;
  }
}

/* ==========================================================================
   MASTERPLAN AUTO-SLIDESHOW
   ========================================================================== */
.masterplan-slider-wrapper {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.masterplan-slider {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
  aspect-ratio: 16 / 10;
  max-height: 560px;
}

.masterplan-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.mp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out, visibility 0.75s;
  transform: scale(1.02);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}

.mp-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.mp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.mp-slide.active:hover img {
  transform: scale(1.02);
}

.mp-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mp-nav-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.mp-prev { left: 16px; }
.mp-next { right: 16px; }

.mp-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.mp-dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.8);
}

.mp-zoom-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.mp-zoom-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
  color: #fff;
}

/* ==========================================================================
   LEGAL CONTINUOUS MARQUEE (RIGHT-TO-LEFT)
   ========================================================================== */
.legal-marquee-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
}

.legal-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  padding: 10px 0;
}

.legal-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: legalScrollLeft 32s linear infinite;
}

.legal-marquee-container:hover .legal-marquee-track {
  animation-play-state: paused;
}

@keyframes legalScrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.legal-doc-card {
  position: relative;
  flex: 0 0 220px;
  width: 220px;
  height: 300px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-doc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15), 0 0 0 2px var(--primary);
  border-color: var(--primary);
}

.legal-doc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.legal-doc-card:hover img {
  transform: scale(1.04);
}

.legal-doc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fef3c7;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  z-index: 3;
  border: 1px solid rgba(245, 158, 11, 0.4);
  letter-spacing: 0.3px;
}

.legal-doc-zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  z-index: 3;
}

.legal-doc-card:hover .legal-doc-zoom {
  opacity: 1;
  transform: scale(1);
  background: var(--primary);
}

.legal-marquee-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
}

.legal-marquee-hint i {
  color: var(--primary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .masterplan-slider {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
  .legal-doc-card {
    flex: 0 0 180px;
    width: 180px;
    height: 250px;
  }
}

/* ==========================================================================
   OFFICIAL LEGAL CERTIFICATES & PDF ATTACHMENTS
   ========================================================================== */
.legal-cert-wrapper {
  margin-bottom: 2.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
}

.legal-cert-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #d97706, #10b981);
}

.legal-cert-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.legal-cert-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.legal-cert-title {
  font-size: 1.35rem;
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.legal-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.legal-cert-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04);
  position: relative;
}

.legal-cert-card:hover {
  transform: translateY(-3px);
  border-color: #d97706;
  box-shadow: 0 12px 25px -5px rgba(217, 119, 6, 0.12);
}

.legal-cert-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.legal-cert-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.legal-cert-icon.blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.legal-cert-icon.gold {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.legal-cert-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.legal-cert-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.legal-cert-code {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
}

.legal-cert-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  margin-bottom: 1.15rem;
}

.legal-cert-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.cert-label {
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
}

.cert-val {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.btn-cert-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-cert-pdf:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
}

.btn-cert-pdf.blue-btn {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-cert-pdf.blue-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.btn-cert-pdf.green-btn {
  background: linear-gradient(135deg, #047857, #064e3b);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.2);
}

.btn-cert-pdf.green-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}

@media (max-width: 1100px) {
  .legal-cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .legal-cert-wrapper {
    padding: 1.25rem 1rem;
    margin-bottom: 1.75rem;
  }
  .legal-cert-title {
    font-size: 1.15rem;
  }
  .legal-cert-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .legal-cert-card {
    padding: 1.15rem;
  }
}

/* ==========================================================================
   DYNAMIC CMS ADAPTIVE DISPLAY & OVERFLOW GUARDS
   ========================================================================== */
.amenity-card, 
.progress-card, 
.connection-card, 
.legal-doc-card, 
.legal-cert-card,
.faq-item,
.partner-card {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.amenity-desc, 
.progress-desc, 
.section-desc, 
.hero-subtitle,
.legal-desc,
.overview-desc {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .amenities-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}


