/* ===== MODERNHOUSE - Real Estate CSS ===== */
@import url('fonts.css');

/* === CSS Variables === */
:root {
  --primary: #7F1734;
  --primary-light: #9e1d41;
  --primary-text: #ffffff;
  --primary-rgb: 127, 23, 52;
  --accent: #c9a96e;
  --accent-light: #d4b97a;
  --accent-dark: #b8944f;
  --white: #ffffff;
  --off-white: #ebe7e0;
  --light-gray: #dfd9cf;
  --mid-gray: #999;
  --dark-gray: #333;
  --text: #2d2d2d;
  --text-light: #666;
  --success: #27ae60;
  --danger: #e74c3c;
  --shadow: 0 4px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 0px;
  --radius-sm: 0px;
  --radius-lg: 0px;
  --font-sukhumvit: 'Sukhumvit Set', 'SukhumvitSet', -apple-system, BlinkMacSystemFont, 'Prompt', sans-serif;
  --font-helvetica: 'Helvetica', 'Helvetica Neue', Arial, 'Sukhumvit Set', 'Noto Sans Thai', 'Thonburi', 'Prompt', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-th: 'Sukhumvit Set', 'SukhumvitSet', 'Helvetica', 'Helvetica Neue', Arial, 'Prompt', 'Noto Sans Thai', sans-serif;
  --font-en: var(--font-helvetica);
  --header-weight: 600;
  --max-width: 1400px;
  --nav-height: 80px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-th);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: var(--font-th); }
input, select, textarea { font-family: var(--font-th); }

/* === Container === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* === Typography === */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
}

/* === Headers & Typography Weight Control === */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.page-hero h1,
.detail-main h2,
.detail-title,
.promo-banner-content h2,
.search-box h3,
.brand-card-body h4,
.project-card-body h3,
.news-card-body h3,
.feature-card h4,
.nav-logo .logo-text,
.nav-logo .logo-icon {
  font-family: var(--font-th);
  font-weight: var(--header-weight, 600) !important;
}

.section-title {
  font-family: var(--font-th);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: var(--header-weight, 600);
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 600px;
  font-weight: 300;
}
.section-header { margin-bottom: 28px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }
.section-header.center .section-label { justify-content: center; }
.section-header.center .section-label::before { display: none; }

/* === Navigation === */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

.navbar {
  view-transition-name: main-navbar;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(var(--primary-rgb), var(--nav-bg-alpha, 0.42));
  backdrop-filter: blur(var(--nav-bg-blur, 12px));
  -webkit-backdrop-filter: blur(var(--nav-bg-blur, 12px));
  border-bottom: 1px solid rgba(255, 255, 255, var(--nav-border-alpha, 0.08));
  box-shadow: 0 4px 24px rgba(0, 0, 0, var(--nav-shadow-alpha, 0.08));
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              -webkit-backdrop-filter 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  height: var(--nav-height);
  width: 100%;
}
.navbar.scrolled {
  background: rgba(var(--primary-rgb), var(--nav-bg-alpha, 0.97));
  backdrop-filter: blur(var(--nav-bg-blur, 20px));
  -webkit-backdrop-filter: blur(var(--nav-bg-blur, 20px));
  border-bottom: 1px solid rgba(255, 255, 255, var(--nav-border-alpha, 0.14));
  box-shadow: 0 4px 30px rgba(0, 0, 0, var(--nav-shadow-alpha, 0.25));
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1680px;
  width: 100%;
  padding: 0 clamp(12px, 1.8vw, 30px);
  gap: clamp(6px, 1vw, 20px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 240px;
}
.nav-logo img,
.site-logo-img {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
}
.nav-logo .logo-text {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.nav-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  display: block;
  margin-top: -2px;
}
.nav-menu { 
  display: flex; 
  align-items: center; 
  gap: clamp(6px, 0.85vw, 16px); 
  margin: 0 2px;
  flex-shrink: 1;
}
.nav-menu-label {
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.nav-menu-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.22);
  flex-shrink: 0;
  margin: 0 2px;
}
.nav-menu a {
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.78rem, 0.82vw, 0.9rem);
  font-weight: 400;
  position: relative;
  padding: 8px 2px;
  white-space: nowrap !important;
  letter-spacing: -0.15px;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.nav-menu a:hover, .nav-menu a.active, .nav-menu a[aria-current="page"] { color: var(--accent); }
.nav-menu a.active, .nav-menu a[aria-current="page"] {
  transition: none !important;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active::after, .nav-menu a[aria-current="page"]::after {
  width: 100%;
  transition: none !important;
}

/* English Navigation Specific Breathing Room */
html[lang="en"] .nav-menu {
  gap: clamp(4px, 0.65vw, 11px);
}
html[lang="en"] .nav-menu a {
  font-size: clamp(0.72rem, 0.75vw, 0.84rem);
  letter-spacing: -0.25px;
  padding: 6px 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.9vw, 12px);
  flex-shrink: 0;
}
.nav-phone {
  color: var(--white);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 500;
}
.nav-phone svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-register {
  background: var(--accent);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 0 !important;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-register:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

@media (max-width: 1540px) {
  .nav-menu { gap: clamp(5px, 0.7vw, 12px); }
  .nav-menu a { font-size: 0.8rem; }
  .nav-phone span.phone-number { display: none; }
  .btn-register { padding: 8px 16px; font-size: 0.8rem; }
  .nav-logo .logo-text { font-size: 1.25rem; }
}

@media (max-width: 1400px) {
  .nav-menu { gap: 6px; }
  .nav-menu a { font-size: 0.76rem; padding: 6px 1px; }
  .btn-register { padding: 7px 12px; font-size: 0.76rem; }
  .lang-btn { padding: 5px 8px; font-size: 0.78rem; }
  .nav-phone { display: none; }
}

/* === Language Switcher (TH / EN / ZH) === */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 0 !important;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}
.lang-btn:hover,
.lang-btn:focus {
  background: rgba(201, 169, 110, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}
.lang-btn .lang-flag {
  font-size: 1.05rem;
  line-height: 1;
}
.lang-btn .lang-code {
  font-weight: 600;
  letter-spacing: 0.5px;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(var(--primary-rgb), 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 14px;
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.45);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99999;
  transform-origin: top right;
  animation: dropdownFadeIn 0.2s ease forwards;
}
.lang-dropdown.show {
  display: flex !important;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(-5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}
.lang-option:hover {
  background: rgba(201, 169, 110, 0.2);
  color: var(--accent);
}
.lang-option.active {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

/* Mobile Language Bar - Hidden on Desktop */
.mobile-lang-bar {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  margin: 10px 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mob-lang-btn {
  flex: 1;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.mob-lang-btn.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  font-weight: 700;
}

@media (max-width: 991px) {
  .mobile-lang-bar {
    display: flex !important;
  }
}

/* === Clean Google Translate Widget Embed & Suppression === */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}
body {
  top: 0px !important;
  position: static !important;
}
#google_translate_element {
  display: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
font[style] {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  pointer-events: none;
  transition: var(--transition);
}

/* === Hero Section === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.hero-slide.active .hero-slide-bg {
  animation: heroZoom 8s ease forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  z-index: 1;
}
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
  z-index: 0;
}
/* Hero Floating Sound Button */
.hero-sound-btn {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0 !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.hero-sound-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
  color: var(--gold);
}
.hero-sound-btn .sound-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 768px) {
  .hero-sound-btn {
    bottom: 24px;
    right: 16px;
    padding: 6px 14px;
    font-size: 12px;
  }
}

.hero .container {
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(20px, 3vw, 50px);
  position: relative;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  transition: all 0.3s ease;
}

/* Hero Content Alignment Modifiers */
.hero-content.hero-align-left,
.hero.hero-align-left .hero-content {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}
.hero-content.hero-align-left .hero-badge,
.hero.hero-align-left .hero-badge {
  margin-left: 0;
  margin-right: auto;
  display: inline-flex;
}
.hero-content.hero-align-left .hero-btns,
.hero.hero-align-left .hero-btns {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: auto;
}

.hero-content.hero-align-center,
.hero.hero-align-center .hero-content {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero-content.hero-align-center .hero-badge,
.hero.hero-align-center .hero-badge {
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
}
.hero-content.hero-align-center .hero-btns,
.hero.hero-align-center .hero-btns {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-content.hero-align-right,
.hero.hero-align-right .hero-content {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}
.hero-content.hero-align-right .hero-badge,
.hero.hero-align-right .hero-badge {
  margin-left: auto;
  margin-right: 0;
  display: inline-flex;
}
.hero-content.hero-align-right .hero-btns,
.hero.hero-align-right .hero-btns {
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
}

/* Dynamic Hero Overlays depending on alignment */
.hero.hero-align-left .hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
}
.hero.hero-align-center .hero-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.75) 100%);
}
.hero.hero-align-right .hero-overlay {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 8px 20px;
  border-radius: 0 !important;
  font-size: 0.8rem;
  color: var(--accent-light);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-th);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: var(--header-weight, 700);
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-title span { color: var(--accent); }
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 0 !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,169,110,0.3);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-dark {
  background: var(--primary);
  color: var(--primary-text);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Hero dots */
.hero-dots {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

/* Hero Stats */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(var(--primary-rgb),0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

/* === Search Bar === */
.search-section {
  background: var(--off-white);
  padding: 24px 0 0;
  margin-top: 0;
  position: relative;
  z-index: 10;
}
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 24px 30px;
}
.search-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--primary);
}
.search-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.filter-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--off-white);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.btn-search {
  background: var(--primary);
  color: var(--primary-text);
  padding: 10px 30px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-search:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* === Section Spacing === */
.section { padding: 48px 0; }
.section-alt {
  background: var(--off-white, #ebe7e0) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.section-dark {
  background: var(--primary);
  color: var(--primary-text);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* === Brand Cards === */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}
.brand-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.brand-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 0;
}
.brand-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 0;
}
.brand-card:hover .brand-card-img img { transform: scale(1.08); }
.brand-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--primary-rgb),0.8), transparent);
}
.brand-card-logo {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--white);
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 600;
}
.brand-card-body { padding: 24px; }
.brand-card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.brand-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.6;
}
.brand-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 0 !important;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 12px;
  letter-spacing: 1px;
}
.brand-tag.luxe { background: rgba(201,169,110,0.15); color: var(--accent-dark); }
.brand-tag.urban { background: rgba(var(--primary-rgb),0.1); color: var(--primary); }
.brand-tag.living { background: rgba(39,174,96,0.1); color: var(--success); }

/* === Modern Vertical Brand Cards (Ananda-Style Portrait Cards with Image Zoom) === */
.brands-ananda-section {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

/* 1. Top Brands Header Strip */
.brands-top-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: transparent;
  padding: 6px 0 22px;
  margin-bottom: 6px;
}

.brand-top-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.brand-top-item:hover {
  opacity: 0.8;
}

.brand-top-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: #cbd5e1;
}

.brand-top-logo {
  font-family: var(--font-helvetica);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.4px;
  color: #0f172a;
}
.brand-top-logo.luxe { color: #854d0e; }
.brand-top-logo.urban { color: #0284c7; }
.brand-top-logo.living { color: #15803d; }

.brand-top-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

/* 2. Carousel Wrapper & Grid */
.brands-ananda-carousel-wrap {
  position: relative;
  width: 100%;
}

.brands-ananda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* 3. Portrait Vertical Card */
.brand-ananda-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.brand-ananda-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* 4. Top Image Wrap & Smooth Hover Zoom Effect */
.brand-card-img-wrap {
  position: relative;
  width: 100%;
  height: 410px; /* Taller luxury vertical frame */
  overflow: hidden;
  background: #0f172a;
}

.brand-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  display: block;
}

/* Interactive Image Zoom In on hover */
.brand-ananda-card:hover .brand-card-img-wrap img {
  transform: scale(1.12);
}

/* 5. Center Status Badge (Overlapping seam) */
.brand-card-seam {
  position: relative;
  width: 100%;
  height: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-card-status-badge {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  background: #000000;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

/* 6. Card Body (Pastel Tones) */
.brand-card-body {
  flex: 1;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 290px; /* Taller bottom content */
}

/* Theme Presets (fallbacks) */
.brand-card-body.bg-blue,
.brand-card-body[data-color="urban"] { background-color: #ede4d8; }
.brand-card-body.bg-beige,
.brand-card-body[data-color="luxe"] { background-color: #ede4d8; }
.brand-card-body.bg-yellow,
.brand-card-body[data-color="living"] { background-color: #ede4d8; }
.brand-card-body.bg-green { background-color: #ede4d8; }
.brand-card-body.bg-lavender,
.brand-card-body[data-color="custom"] { background-color: #ede4d8; }

.brand-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 2;
  padding-right: 8px;
}

/* Category Pill */
.brand-card-type-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 14px;
  border: 1px solid #1e293b;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  background: transparent;
  margin-bottom: 12px;
}

/* Starting Price */
.brand-card-price {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.brand-card-price .price-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--font-helvetica);
  line-height: 1;
}

/* Thin horizontal line divider */
.brand-card-divider {
  width: 100%;
  max-width: 220px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  margin: 10px 0 14px;
}

/* Features bullet list */
.brand-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.35;
}

.brand-card-features .feat-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  line-height: 1;
}

/* Cutout Silhouette / Thumbnail on bottom-right */
.brand-card-cutout {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 110px;
  height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.brand-card-cutout img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.5s ease;
}

.brand-ananda-card:hover .brand-card-cutout img {
  transform: translateY(-5px) scale(1.04);
}

/* Card Bottom CTA Button */
.brand-card-cta-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  padding: 8px 18px;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.18);
  width: fit-content;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.brand-ananda-card:hover .brand-card-cta-btn,
.brand-card-cta-btn:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.brand-ananda-card:hover .brand-card-cta-btn span,
.brand-ananda-card:hover .brand-card-cta-btn svg,
.brand-card-cta-btn:hover span,
.brand-card-cta-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Carousel Side Button (circle with arrow '>') */
.brand-carousel-nav-btn {
  position: absolute;
  right: -20px;
  top: 36%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.brand-carousel-nav-btn:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 992px) {
  .brands-top-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .brand-top-item::after {
    display: none;
  }
  .brands-ananda-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .brand-carousel-nav-btn {
    display: none;
  }
}

/* === Project Cards === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.project-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 0;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 0;
}
.project-card:hover .project-card-img img { transform: scale(1.08); }
.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--project-badge-bg, #16a34a);
  color: var(--project-badge-color, var(--white));
  padding: 6px 14px;
  border-radius: 0 !important;
  font-size: 0.74rem;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.project-badge.new {
  background: var(--project-badge-bg, var(--success));
  color: var(--project-badge-color, var(--white));
}
.project-badge.promo {
  background: var(--project-badge-bg, var(--danger));
  color: var(--project-badge-color, var(--white));
}
.project-price {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--project-price-bg, rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(10px);
  color: var(--project-price-color, var(--white));
  padding: 7px 16px;
  border-radius: 0 !important;
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.project-price span {
  color: var(--project-price-num-color, var(--accent));
  font-weight: 700;
}
.project-card-body { padding: 22px; }
.project-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}
.project-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 14px;
}
.project-location svg { width: 14px; height: 14px; flex-shrink: 0; }
.project-features {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--light-gray);
}
.project-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
}
.project-feature svg { width: 14px; height: 14px; color: var(--accent); }

/* Project card 2-col layout */
.projects-grid-2 { grid-template-columns: repeat(2, 1fr); }
.projects-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Promo Section === */
.promo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.promo-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.promo-banner-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  max-width: 550px;
}
.promo-banner-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.promo-banner-content p {
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  margin-bottom: 30px;
  line-height: 1.8;
}
.promo-decoration {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
}
.promo-decoration::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 400px;
  height: 400px;
  border: 60px solid rgba(201,169,110,0.08);
  border-radius: 50%;
}
.promo-decoration::after {
  content: '';
  position: absolute;
  right: 80px;
  bottom: -30px;
  width: 250px;
  height: 250px;
  border: 40px solid rgba(201,169,110,0.05);
  border-radius: 50%;
}

/* === News / Blog Cards === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.news-card-img {
  display: block;
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 0;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  border-radius: 0;
}
.news-card:hover .news-card-img img {
  transform: scale(1.06);
}
.news-tag {
  display: none !important;
}
.news-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
  line-height: 1.4;
}
.news-card-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.news-card-body h3 a:hover {
  color: var(--accent);
}
.news-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--light-gray);
  font-size: 0.78rem;
  color: var(--mid-gray);
}
.news-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.news-read-more:hover {
  gap: 8px;
  color: var(--accent);
}
.news-meta a:hover { color: var(--accent-dark); }

/* === Editorial Staggered News Section (Mockup Match) === */
.section-editorial-news {
  padding: 80px 0;
  background-color: var(--white);
}

.editorial-news-header {
  text-align: center;
  margin-bottom: 50px;
}

.editorial-news-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.editorial-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: stretch;
}

.editorial-col {
  display: flex;
  flex-direction: column;
}

.editorial-col-text-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.editorial-col-image-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.editorial-text-block {
  padding: 0 4px;
}

.editorial-col-text-top .editorial-text-block {
  margin-bottom: 24px;
}

.editorial-col-image-top .editorial-text-block {
  margin-top: 24px;
}

.editorial-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 14px;
}

.editorial-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.editorial-item-title a:hover {
  color: var(--accent);
}

.editorial-item-desc,
.editorial-item-teaser {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 400;
}

.editorial-item-teaser {
  margin-bottom: 0;
}

.editorial-img-block {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f1f5f9;
}

.editorial-img-block a {
  display: block;
  width: 100%;
  height: 100%;
}

.editorial-img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.editorial-img-block:hover img {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .editorial-news-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 580px;
    margin: 0 auto;
  }
  .editorial-news-title {
    font-size: 1.65rem;
  }
  .editorial-col-image-top {
    flex-direction: column-reverse;
  }
  .editorial-col-image-top .editorial-text-block {
    margin-top: 0;
    margin-bottom: 18px;
  }
  .editorial-col-text-top .editorial-text-block {
    margin-bottom: 18px;
  }
}

/* === Zone / Location Grid === */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 16px;
}
.zones-grid .zone-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.zone-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
}
.zone-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 0;
}
.zone-item:hover img { transform: scale(1.08); }
.zone-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--primary-rgb),0.7), transparent);
}
.zone-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  color: var(--white);
}
.zone-info h4 { font-size: 1.1rem; font-weight: 600; }
.zone-info p { font-size: 0.8rem; opacity: 0.7; }

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(201,169,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.feature-icon svg { width: 28px; height: 28px; color: var(--accent); }
.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}
.feature-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  line-height: 1.6;
}

/* === CTA Banner === */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 80px solid rgba(201,169,110,0.05);
  border-radius: 50%;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 36px;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === Footer === */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.footer-social a svg { width: 18px; height: 18px; color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 300;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--accent); }

/* === Page Header (inner pages) === */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border: 60px solid rgba(201,169,110,0.05);
  border-radius: 50%;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  font-weight: 300;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { opacity: 0.5; }

/* === Filter Tabs === */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 10px 24px;
  border-radius: 0 !important;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--filter-tab-bg, var(--off-white));
  color: var(--filter-tab-color, var(--text-light));
  border: 1.5px solid var(--filter-tab-border, transparent);
  transition: var(--transition);
  cursor: pointer;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--filter-tab-active-bg, var(--white));
  border-color: var(--filter-tab-active-border, var(--accent));
  color: var(--filter-tab-active-color, var(--accent-dark));
}

/* === Project Detail Gallery & Categories === */
.project-gallery-section {
  padding: 36px 0 50px;
}
.gallery-category-tabs {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.gallery-category-tab {
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 500;
  background: var(--white, #ffffff);
  color: var(--text, #1e293b);
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.gallery-category-tab:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.gallery-category-tab.active {
  background: var(--primary, var(--primary));
  color: #fff;
  border-color: var(--primary, var(--primary));
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.22);
}
.gallery-category-tab .tab-badge {
  background: rgba(201, 169, 110, 0.18);
  color: #a88438;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.gallery-category-tab.active .tab-badge {
  background: var(--accent, #c9a96e);
  color: var(--primary);
}

.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  border-radius: 0;
  overflow: hidden;
  height: 480px;
}
.detail-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.detail-gallery-main img,
.detail-gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
  border-radius: 0;
}
.detail-gallery-main:hover img,
.detail-gallery-side img:hover {
  transform: scale(1.03);
}
.detail-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.detail-gallery-side > div {
  overflow: hidden;
  border-radius: 0;
  position: relative;
}

/* Categorized Gallery Grid */
.categorized-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.gallery-grid-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 180px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid-item:hover img {
  transform: scale(1.06);
}
.gallery-grid-item .img-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
  z-index: 1;
}
.gallery-grid-item .img-tag.exterior { background: rgba(14, 116, 144, 0.88); }
.gallery-grid-item .img-tag.interior { background: rgba(180, 83, 9, 0.88); }
.gallery-grid-item .img-tag.facilities { background: rgba(4, 120, 87, 0.88); }

/* 5th Slot More Overlay */
.gallery-grid-item.has-more {
  position: relative;
  cursor: pointer;
}
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.82) 0%, rgba(201, 169, 110, 0.88) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  transition: all 0.3s ease;
  z-index: 2;
}
.gallery-grid-item.has-more:hover .gallery-more-overlay {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9) 0%, rgba(201, 169, 110, 0.95) 100%);
  box-shadow: inset 0 0 0 2px #c9a96e;
}
.more-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.more-badge {
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.more-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* View All button in category tabs */
.gallery-view-all-btn {
  margin-left: auto;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #c9a96e;
  border: 1.5px solid #c9a96e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.12);
  transition: all 0.25s ease;
  font-family: var(--font-th);
}
.gallery-view-all-btn:hover {
  background: #c9a96e;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 169, 110, 0.35);
}

/* Showcase Floating View All Button */
.gallery-showcase-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0 !important;
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-family: var(--font-th);
  z-index: 3;
}
.gallery-showcase-btn:hover {
  background: #c9a96e;
  color: var(--primary);
  border-color: #c9a96e;
  transform: scale(1.05);
}

/* === Project Gallery Lightbox Modal === */
.project-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.project-gallery-modal.active {
  opacity: 1;
  visibility: visible;
}
.pgm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.pgm-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Modal Header */
.pgm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 20px;
}
.pgm-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
}
.pgm-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.pgm-counter {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(201, 169, 110, 0.18);
  color: #d4b87a;
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Modal Tabs */
.pgm-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}
.pgm-tab {
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: var(--font-th);
}
.pgm-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.pgm-tab.active {
  background: #c9a96e;
  color: var(--primary);
  border-color: #c9a96e;
  font-weight: 600;
}

/* Close Button */
.pgm-btn-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.pgm-btn-close:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  transform: rotate(90deg) scale(1.05);
}

/* Stage */
.pgm-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 10px 24px;
  min-height: 0;
}
.pgm-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  flex-shrink: 0;
}
.pgm-nav-btn:hover {
  background: #c9a96e;
  border-color: #c9a96e;
  color: var(--primary);
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
}
.pgm-image-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  padding: 0 16px;
}
.pgm-active-img {
  max-width: 90%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.25s ease, transform 0.25s ease;
  user-select: none;
}
.pgm-caption {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pgm-badge {
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 500;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.pgm-badge.exterior { background: rgba(14, 116, 144, 0.9); }
.pgm-badge.interior { background: rgba(180, 83, 9, 0.9); }
.pgm-badge.facilities { background: rgba(4, 120, 87, 0.9); }

/* Bottom Thumbnail Strip */
.pgm-strip-container {
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
}
.pgm-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  justify-content: center;
  max-width: 100%;
  padding: 2px;
}
.pgm-strip-thumb {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.pgm-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pgm-strip-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.pgm-strip-thumb.active {
  opacity: 1;
  border-color: #c9a96e;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(201, 169, 110, 0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .categorized-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pgm-header {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .pgm-title {
    max-width: 200px;
  }
  .pgm-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .categorized-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pgm-nav-btn {
    width: 42px;
    height: 42px;
  }
  .pgm-active-img {
    max-width: 96%;
    max-height: calc(100vh - 240px);
  }
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-top: 50px;
}
.detail-main h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.detail-brand-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(201,169,110,0.12);
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.detail-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 30px;
}
.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
}
.spec-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(201,169,110,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spec-icon svg { width: 18px; height: 18px; color: var(--accent); }
.spec-text span { display: block; font-size: 0.75rem; color: var(--text-light); }
.spec-text strong { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* Sidebar */
.detail-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 24px;
}
.sidebar-price {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
}
.sidebar-price-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.sidebar-price-value span { color: var(--accent); }
.sidebar-card .btn { width: 100%; margin-bottom: 10px; }
.sidebar-card .btn:last-child { margin-bottom: 0; }

/* === About Page === */
.about-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 450px;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline { position: relative; margin-top: 50px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-gray);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding-right: 40px;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  margin-left: 50%;
  padding-right: 0;
  padding-left: 40px;
}
.timeline-item::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.2);
}
.timeline-item:nth-child(even)::after { right: auto; left: -7px; }
.timeline-content {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-year {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.timeline-content h4 { font-size: 0.95rem; margin-bottom: 6px; }
.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 300;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-form { margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-info-card:hover { background: var(--white); box-shadow: var(--shadow); }
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(201,169,110,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--accent); }
.contact-info-text h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.contact-info-text p { font-size: 0.85rem; color: var(--text-light); font-weight: 300; }

/* Map */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  margin-top: 20px;
  background: var(--light-gray);
  display: block;
  color: var(--mid-gray);
}

/* === Promotion Cards === */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.promo-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.promo-card-img {
  height: 100%;
  min-height: 250px;
  overflow: hidden;
  border-radius: 0;
}
.promo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 0;
}
.promo-card:hover .promo-card-img img { transform: scale(1.06); }
.promo-card-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.promo-card-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; color: var(--primary); }
.promo-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 16px;
}
.promo-date { font-size: 0.78rem; color: var(--mid-gray); margin-bottom: 16px; }

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.pagination a, .pagination span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--off-white);
  transition: var(--transition);
}
.pagination a:hover { background: var(--light-gray); }
.pagination .active-page {
  background: var(--primary);
  color: var(--primary-text);
}

/* === Amenities Grid === */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
}
.detail-amenities-section .amenity-item {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.detail-amenities-section .amenity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-color: var(--accent);
}
.amenity-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(201,169,110,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.amenity-icon svg { width: 18px; height: 18px; color: var(--accent); }
.amenity-item span { font-size: 0.9rem; font-weight: 500; color: var(--text); }

@media (max-width: 576px) {
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .amenity-item {
    padding: 10px 12px;
    gap: 8px;
  }
  .amenity-icon {
    width: 32px;
    height: 32px;
  }
  .amenity-icon svg {
    width: 15px;
    height: 15px;
  }
  .amenity-item span {
    font-size: 0.8rem;
  }
  /* Mobile Navbar: Hide register button on small phones so hamburger is never clipped */
  .nav-cta .btn-register {
    display: none !important;
  }
  .nav-logo {
    max-width: 125px;
  }
  .nav-logo img {
    max-width: 120px !important;
    height: 30px !important;
  }
  .nav-hamburger {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
    margin-left: 2px !important;
  }
}

/* === Responsive === */
/* === Responsive Navigation (iPad & Tablets 992px - 1280px) === */
@media (min-width: 992px) and (max-width: 1280px) {
  :root {
    --nav-height: 70px;
  }
  .navbar .container {
    padding: 0 16px !important;
    gap: 8px !important;
  }
  .nav-logo {
    max-width: 170px;
  }
  .nav-logo img {
    max-width: 140px !important;
    height: 34px !important;
  }
  .nav-logo .logo-text {
    font-size: 1.15rem;
  }
  .nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  /* Keep horizontal menu visible on iPad Landscape */
  .nav-menu {
    display: flex !important;
    align-items: center;
    gap: clamp(4px, 0.55vw, 8px) !important;
    margin: 0 4px;
  }
  .nav-menu a {
    font-size: clamp(0.72rem, 0.75vw, 0.8rem) !important;
    padding: 6px 3px !important;
    letter-spacing: -0.2px;
  }
  .nav-phone {
    display: none !important;
  }
  .btn-register {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }
  .lang-btn {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }
  .nav-hamburger {
    display: none !important;
  }
}

/* === Responsive Navigation & Mobile Drawer (iPad Portrait & Phones <= 991px) === */
@media (max-width: 991px) {
  :root {
    --nav-height: 70px;
  }
  .nav-menu {
    display: none;
  }
  .nav-phone {
    display: none !important;
  }
  .nav-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 0 !important;
    padding: 8px;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
  }
  .nav-hamburger span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 0 !important;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--accent);
  }
  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--accent);
  }

  /* Prevent background scrolling when menu is open */
  body.nav-menu-open {
    overflow: hidden !important;
  }
  .navbar.menu-open,
  body.nav-menu-open .navbar {
    background: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Full Screen Mobile & iPad Drawer Navigation (Dynamic Theme Matching) */
  .nav-menu.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: var(--nav-height, 70px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    height: calc(100vh - var(--nav-height, 70px)) !important;
    height: calc(100dvh - var(--nav-height, 70px)) !important;
    max-height: calc(100dvh - var(--nav-height, 70px)) !important;
    background: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.98) !important;
    padding: 16px 20px 80px !important;
    gap: 2px !important;
    animation: fadeIn 0.25s ease;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
    z-index: 99999 !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .nav-menu.open .nav-menu-label {
    display: block !important;
    margin-bottom: 6px;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 2px;
  }
  .nav-menu.open .mobile-lang-bar {
    display: flex !important;
    margin: 4px 0 12px !important;
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0 !important;
  }
  .nav-menu.open a {
    font-size: 1.05rem !important;
    font-weight: 500;
    padding: 13px 14px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    text-decoration: none;
  }
  .nav-menu.open a:hover,
  .nav-menu.open a.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--accent) !important;
    padding-left: 18px !important;
  }
  .nav-menu.open a::after {
    display: none !important;
  }
  .nav-menu.open .nav-menu-divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.12);
  }
  .nav-menu.open .btn-register-drawer {
    margin-top: 14px;
    background: var(--accent) !important;
    color: var(--primary-text, #ffffff) !important;
    text-align: center;
    justify-content: center !important;
    font-weight: 600;
    font-size: 1rem !important;
    padding: 14px 20px !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border-bottom: none !important;
  }
  .nav-menu.open .btn-register-drawer:hover {
    background: var(--accent-light, #d4b97a) !important;
    padding-left: 20px !important;
  }
}

@media (max-width: 1280px) {
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  .search-filters { grid-template-columns: repeat(2, 1fr); }
  .projects-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .detail-gallery { height: 350px; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .about-vision { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .zones-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 180px); }
  .zones-grid .zone-item:first-child { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .navbar .container {
    padding: 0 12px !important;
    gap: 6px !important;
  }
  .nav-logo {
    max-width: 140px;
  }
  .nav-logo img {
    max-width: 130px !important;
    height: 32px !important;
  }
  .nav-logo .logo-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.05rem !important;
  }
  .nav-logo .logo-text {
    font-size: 1.1rem !important;
  }
  .nav-logo .logo-sub {
    font-size: 0.55rem !important;
    letter-spacing: 1.5px !important;
  }
  .nav-cta {
    gap: 6px !important;
    margin-left: auto;
  }
  .nav-search-btn {
    padding: 4px !important;
  }
  .lang-btn {
    padding: 4px 6px !important;
    font-size: 0.74rem !important;
  }
  .nav-hamburger {
    flex-shrink: 0 !important;
    width: 38px !important;
    height: 38px !important;
    margin-left: 2px !important;
  }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 22px; }
  .section-title { font-size: 1.65rem; }
  .section-subtitle { font-size: 0.9rem; }
  
  /* Hero on Tablets / Mobile */
  .hero {
    min-height: 580px;
    height: auto;
    padding: 110px 0 50px;
  }
  .hero-content {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }
  .hero-content.hero-align-left {
    text-align: left;
  }
  .hero-content.hero-align-left .hero-badge {
    margin-left: 0;
  }
  .hero-content.hero-align-left .hero-btns {
    margin: 0;
  }
  .hero-content.hero-align-center {
    text-align: center;
  }
  .hero-content.hero-align-center .hero-badge {
    margin: 0 auto 24px;
  }
  .hero-content.hero-align-center .hero-btns {
    margin: 0 auto;
  }
  .hero-content.hero-align-right {
    text-align: right;
  }
  .hero-content.hero-align-right .hero-badge {
    margin-left: auto;
    margin-right: 0;
  }
  .hero-content.hero-align-right .hero-btns {
    margin-left: auto;
    margin-right: 0;
  }
  .hero-content h1 {
    font-size: clamp(1.85rem, 6vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
  .hero-stats {
    margin-top: 30px;
  }
  .hero-stats .container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px;
  }
  .stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 12px;
    backdrop-filter: blur(8px);
  }
  .stat-item .stat-number {
    font-size: 1.7rem;
  }
  .stat-item .stat-label {
    font-size: 0.78rem;
  }

  /* Search bar on mobile */
  .search-bar {
    margin-top: -20px;
    padding: 0 16px;
  }
  .search-filters {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
  }
  .filter-group label {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }
  .filter-group select,
  .filter-group input {
    height: 44px;
    font-size: 16px; /* Prevents iOS auto-zoom */
    padding: 0 12px;
    border-radius: 8px;
  }
  .btn-search {
    height: 46px;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-top: 4px;
  }

  /* Filter Tabs */
  .filter-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-bottom: 20px;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab {
    white-space: nowrap;
    padding: 8px 18px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  /* Gallery Category Tabs on Mobile */
  .project-gallery-section {
    padding: 24px 0 36px;
  }
  .gallery-category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 8px;
    margin-top: 4px;
    margin-bottom: 20px;
    scrollbar-width: none;
  }
  .gallery-category-tabs::-webkit-scrollbar { display: none; }
  .gallery-category-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 18px;
    font-size: 0.84rem;
    gap: 8px;
  }

  /* Projects Grid */
  .projects-grid, .news-grid, .brands-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card {
    border-radius: 0;
  }
  .project-card-img {
    height: 210px;
  }
  .project-card-body {
    padding: 18px;
  }
  .project-card-title {
    font-size: 1.15rem;
  }
  .project-specs {
    gap: 8px;
    padding: 10px 0;
  }
  .project-spec-item {
    font-size: 0.8rem;
  }

  /* Promo Banner */
  .promo-banner {
    padding: 32px 20px;
    border-radius: 16px;
    text-align: center;
  }
  .promo-banner-content h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  .promo-banner-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .promo-banner-content .btn {
    width: 100%;
    max-width: 260px;
  }

  /* Features / Why choose us */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  /* Zones Grid */
  .zones-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }
  .zones-grid .zone-item:first-child {
    grid-column: span 2;
    height: 180px;
  }
  .zone-item {
    height: 150px;
    border-radius: 0;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    max-width: 120px;
  }
  .nav-logo img {
    max-width: 110px !important;
    height: 28px !important;
  }
  .nav-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }
  .nav-logo .logo-text {
    font-size: 1.05rem;
  }
  .nav-logo .logo-sub {
    font-size: 0.52rem;
    letter-spacing: 1.5px;
  }
  .nav-cta .btn-register {
    display: none !important;
  }
  .btn-register:not(.nav-cta .btn-register) {
    padding: 8px 16px;
    font-size: 0.78rem;
  }
  .zones-grid {
    grid-template-columns: 1fr;
  }
  .zones-grid .zone-item:first-child {
    grid-column: span 1;
  }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { animation: slideUp 0.6s ease forwards; opacity: 0; }
.animate.visible { opacity: 1; }

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px 24px;
  z-index: 10000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: slideUp 0.4s ease forwards;
  font-size: 0.9rem;
}
.cookie-banner.hidden {
  display: none !important;
}
.cookie-text {
  flex: 1;
  line-height: 1.5;
}
.cookie-text a {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-text a:hover {
  color: var(--accent-light, #d4b87a);
}
.cookie-accept-btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 8px 24px;
  border-radius: 4px;
  font-family: var(--font-th, inherit);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.cookie-accept-btn:hover {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 14px 18px;
    gap: 12px;
  }
  .cookie-accept-btn {
    text-align: center;
  }
}

/* ===== Floating Multi-Channel Chat Widget (All Pages) ===== */
.floating-chat-container {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-th, 'Prompt', sans-serif);
  pointer-events: auto !important;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
}

/* Push chat widget above cookie banner when it's visible */
body.cookie-banner-active .floating-chat-container {
  bottom: 85px !important;
}
@media (max-width: 768px) {
  body.cookie-banner-active .floating-chat-container {
    bottom: 120px !important;
  }
}

.floating-chat-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 132, 255, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 999999;
}
.floating-chat-trigger:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 132, 255, 0.6);
}
.floating-chat-trigger svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s;
}
.floating-chat-trigger.open svg.icon-chat { display: none; }
.floating-chat-trigger.open svg.icon-close { display: block; }
.floating-chat-trigger:not(.open) svg.icon-close { display: none; }

/* Pulse Ring Effect */
.floating-chat-trigger::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50% !important;
  border: 2px solid #0084ff;
  opacity: 0.7;
  animation: chatPulse 2.2s infinite;
  pointer-events: none;
}
@keyframes chatPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Chat Options Popup Menu */
.chat-options-popup {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 300px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: popupSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
  z-index: 1000000 !important;
}
.chat-options-popup.show {
  display: flex;
}
@keyframes popupSlide {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-options-header {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
}
.chat-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
}
.chat-option-item:hover {
  background: #f1f5f9;
  transform: translateX(-3px);
  border-color: #cbd5e1;
}
.chat-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-option-icon.fb { background: #0084ff; color: #fff; }
.chat-option-icon.line { background: #06c755; color: #fff; }
.chat-option-icon.web { background: var(--primary); color: #c9a96e; }

.chat-option-info {
  flex: 1;
}
.chat-option-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}
.chat-option-info p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 2px 0 0;
}

/* In-Page Live Web Chat Window */
.live-chat-box {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation: popupSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
}
.live-chat-box.show {
  display: flex;
}
.live-chat-header {
  background: var(--primary);
  color: var(--primary-text);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-chat-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c9a96e;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.live-chat-status {
  font-size: 0.75rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-chat-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
.live-chat-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  font-size: 20px;
  line-height: 1;
}
.live-chat-close-btn:hover { color: #fff; }

.live-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: #1e293b;
  border-bottom-left-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}
.chat-msg.user {
  background: var(--primary);
  color: var(--primary-text);
  border-bottom-right-radius: 3px;
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chat-chip {
  background: #e2e8f0;
  color: #334155;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.chat-chip:hover {
  background: #c9a96e;
  color: #fff;
}

.live-chat-footer {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.live-chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-chat-inputs {
  display: flex;
  gap: 6px;
}
.live-chat-inputs input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
}
.live-chat-send-row {
  display: flex;
  gap: 6px;
}
.live-chat-send-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
}
.live-chat-send-row button {
  background: var(--primary);
  color: var(--primary-text);
  border: none;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}
.live-chat-send-row button:hover { background: #c9a96e; }

/* Privacy Modal */
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.privacy-modal-overlay.show { display: flex; }
.privacy-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 550px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  color: #64748b;
  font-size: 0.8rem;
}
.typing-indicator .dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-indicator .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ===== Responsive Mobile & Tablet Optimizations ===== */
@media (max-width: 768px) {
  .floating-chat-container {
    bottom: 18px;
    right: 18px;
  }
  .floating-chat-trigger {
    width: 54px;
    height: 54px;
  }
  .floating-chat-trigger svg {
    width: 28px;
    height: 28px;
  }
  .chat-options-popup {
    width: calc(100vw - 36px);
    max-width: 320px;
    bottom: 66px;
    right: 0;
    padding: 14px;
    border-radius: 14px;
  }
  .live-chat-box {
    width: calc(100vw - 24px);
    max-width: 380px;
    height: calc(100dvh - 100px);
    max-height: 540px;
    bottom: 66px;
    right: 0;
    border-radius: 14px;
  }
  .live-chat-body {
    -webkit-overflow-scrolling: touch;
  }
  .live-chat-send-row input {
    font-size: 16px; /* Prevents unwanted iOS Safari zoom */
  }
  .cookie-banner {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .floating-chat-container {
    bottom: 14px;
    right: 14px;
  }
  .floating-chat-trigger {
    width: 50px;
    height: 50px;
  }
  .floating-chat-trigger svg {
    width: 26px;
    height: 26px;
  }
  .chat-options-popup {
    width: calc(100vw - 24px);
    bottom: 62px;
    padding: 12px;
  }
  .chat-option-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .chat-option-icon {
    width: 34px;
    height: 34px;
  }
  .chat-option-info h5 {
    font-size: 0.88rem;
  }
  .live-chat-box {
    width: calc(100vw - 16px);
    height: calc(100dvh - 84px);
    max-height: 520px;
    bottom: 60px;
    right: -2px;
  }
  .live-chat-header {
    padding: 10px 12px;
  }
  .live-chat-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .chat-msg {
    max-width: 90%;
    font-size: 0.84rem;
    padding: 8px 12px;
  }
  .chat-chips {
    gap: 4px;
  }
  .chat-chip {
    font-size: 0.74rem;
    padding: 4px 8px;
  }
  .live-chat-footer {
    padding: 10px 12px;
  }
  .cookie-banner {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    font-size: 0.82rem;
  }
  .cookie-accept-btn {
    padding: 7px 18px;
    font-size: 0.82rem;
  }
}

/* ====================================================
   INTERACTIVE MASTER LOCATION MAP
   ==================================================== */
.section-master-map {
  position: relative;
  background: linear-gradient(180deg, #fcfbfa 0%, #f4f0eb 100%);
  overflow: hidden;
}

.master-map-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.map-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-pill {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid #dcd3c4;
  background: #ffffff;
  color: #4a5568;
  font-family: var(--font-th);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.map-pill:hover {
  border-color: var(--gold, #c9a96e);
  color: var(--gold, #c9a96e);
}

.map-pill.active {
  background: var(--primary, var(--primary));
  color: #ffffff;
  border-color: var(--primary, var(--primary));
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.map-zone-shortcuts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.map-zone-shortcuts .zone-label {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.btn-zone-jump {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #2d3748;
  font-family: var(--font-th);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-zone-jump:hover {
  background: var(--gold, #c9a96e);
  color: #ffffff;
  border-color: var(--gold, #c9a96e);
}

.master-map-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #e2dcd2;
  background: #eae6df;
}

.master-map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  gap: 16px;
  z-index: 1000;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.house { background: #d97706; box-shadow: 0 0 6px #d97706; }
.legend-dot.condo { background: #2563eb; box-shadow: 0 0 6px #2563eb; }
.legend-dot.townhome { background: #059669; box-shadow: 0 0 6px #059669; }

/* Custom Luxury Leaflet Marker */
.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--primary);
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.custom-map-pin:hover {
  transform: rotate(-45deg) scale(1.15);
  z-index: 10000 !important;
}

.custom-map-pin .pin-icon {
  transform: rotate(45deg);
  font-size: 18px;
  line-height: 1;
}

.custom-map-pin.pin-house { background: linear-gradient(135deg, #c9a96e 0%, #b8860b 100%); }
.custom-map-pin.pin-condo { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.custom-map-pin.pin-townhome { background: linear-gradient(135deg, #065f46 0%, #10b981 100%); }

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18) !important;
  border: 1px solid #e2e8f0;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
  width: 290px !important;
}

.map-popup-card {
  font-family: var(--font-th);
}

.map-popup-img-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: #0f172a;
}

.map-popup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.map-popup-brand-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(var(--primary-rgb), 0.85);
  backdrop-filter: blur(4px);
  color: #c9a96e;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.map-popup-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(39, 174, 96, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.map-popup-body {
  padding: 14px 16px;
}

.map-popup-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-popup-location {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.map-popup-price {
  font-size: 14px;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 12px;
}

.map-popup-price span {
  font-size: 16px;
  color: var(--primary);
}

.map-popup-btn {
  background: var(--primary) !important;
  color: var(--primary-text) !important;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.map-popup-btn:hover {
  background: #c9a96e;
  color: var(--primary) !important;
}

@media (max-width: 768px) {
  #masterProjectsMap {
    height: 420px !important;
  }
  .master-map-legend {
    display: none;
  }
  .master-map-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====================================================
   QUICK VIP REGISTER MODAL
   ==================================================== */
.quick-register-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 10000000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: var(--font-th);
}
.quick-register-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}
.quick-register-card {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 169, 110, 0.3);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-register-overlay.active .quick-register-card {
  transform: translateY(0) scale(1);
}
.quick-reg-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 28px 30px 24px;
  color: #ffffff;
  position: relative;
  border-radius: 23px 23px 0 0;
  border-bottom: 2px solid #c9a96e;
}
.quick-reg-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}
.quick-reg-close-btn:hover {
  background: rgba(201, 169, 110, 0.3);
  color: #c9a96e;
  transform: rotate(90deg);
}
.quick-reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(201, 169, 110, 0.18);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: #dfbc7a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.quick-reg-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}
.quick-reg-subtitle {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}
.quick-reg-body {
  padding: 26px 30px 28px;
}
.quick-reg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quick-reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quick-reg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-reg-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}
.quick-reg-label .req {
  color: #ef4444;
}
.quick-reg-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.quick-reg-input-wrap .field-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}
.quick-reg-input, .quick-reg-select {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--font-th);
  font-size: 13.5px;
  color: #1e293b;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}
.quick-reg-input:focus, .quick-reg-select:focus {
  border-color: #c9a96e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}
.quick-reg-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--font-th);
  font-size: 13px;
  color: #1e293b;
  min-height: 60px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.quick-reg-textarea:focus {
  border-color: #c9a96e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}
.quick-reg-btn-submit {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #c9a96e 0%, #b8860b 100%);
  color: var(--primary);
  font-family: var(--font-th);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(201, 169, 110, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.quick-reg-btn-submit:hover {
  background: linear-gradient(135deg, #dfbc7a 0%, #c9a96e 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 169, 110, 0.45);
}
.quick-reg-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.quick-reg-footer-note {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.quick-reg-success {
  display: none;
  text-align: center;
  padding: 30px 10px 20px;
  animation: quickRegFadeIn 0.35s ease;
}
.quick-reg-success.active {
  display: block;
}
@keyframes quickRegFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.quick-reg-success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}
.quick-reg-success h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
}
.quick-reg-success p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 22px;
}

@media (max-width: 600px) {
  .quick-reg-row { grid-template-columns: 1fr; }
  .quick-reg-header { padding: 22px 20px 18px; }
  .quick-reg-body { padding: 20px; }
  .quick-reg-title { font-size: 19px; }
}

/* ====================================================
   LUXURY WIDE & SLIM PRE-FOOTER VIP REGISTER (FULL CONTAINER)
   ==================================================== */
.section-pre-footer-reg {
  padding: 30px 0 36px;
  background: linear-gradient(180deg, #fcfbfa 0%, #f4efe8 100%);
  position: relative;
  overflow: hidden;
}
.pre-footer-compact-card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 18px;
  border: 1.2px solid rgba(201, 169, 110, 0.35);
  box-shadow: 0 12px 30px rgba(13, 19, 34, 0.18);
  padding: 22px 28px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.pre-footer-compact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.pre-footer-wide-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.pre-footer-wide-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pre-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.35);
  color: #dfbc7a;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  width: fit-content;
}
.pre-footer-wide-info h2 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.3;
}
.pre-footer-wide-info p {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}
.pre-footer-wide-info p strong {
  color: #dfbc7a;
}
.pre-footer-wide-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.form-group-reg {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.form-group-reg label {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}
.form-group-reg label .req {
  color: #f87171;
}
.form-group-reg input, .form-group-reg select, .reg-single-input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.96);
  font-family: var(--font-th);
  font-size: 12px;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  height: 33px;
}
.form-group-reg input:focus, .form-group-reg select:focus, .reg-single-input:focus {
  border-color: #c9a96e;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.25);
}
.btn-pre-footer-submit {
  width: 100%;
  height: 33px;
  padding: 6px 14px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #c9a96e 0%, #b8860b 100%);
  color: var(--primary);
  font-family: var(--font-th);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(201, 169, 110, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-pre-footer-submit:hover {
  background: linear-gradient(135deg, #dfbc7a 0%, #c9a96e 100%);
  transform: translateY(-1px);
}
.btn-pre-footer-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1180px) {
  .pre-footer-wide-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .form-row-3 { grid-template-columns: 1fr; }
}

/* Sold Out Badges & Card Styles */
.project-card.is-sold-out {
  position: relative;
}
.project-card.is-sold-out .project-card-img img {
  filter: grayscale(45%) brightness(0.85);
  transition: all 0.3s ease;
}
.project-card.is-sold-out:hover .project-card-img img {
  filter: grayscale(20%) brightness(0.95);
}
.sold-out-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
  letter-spacing: 0.8px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sold-out-banner-detail {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #991b1b;
}

/* ===== Floor Plans Interactive Section ===== */
.floor-plan-tab-btn {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.floor-plan-tab-btn:hover {
  border-color: var(--gold);
  color: var(--primary);
  transform: translateY(-1px);
}
.floor-plan-tab-btn.active {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}
.floor-plan-tab-btn.active .tab-sub {
  color: var(--gold);
}
.floor-plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}
.floor-plan-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}
.floor-plan-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}
.floor-plan-img-wrap:hover img {
  transform: scale(1.02);
}
.floor-plan-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(var(--primary-rgb), 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.25s ease;
}
.floor-plan-img-wrap:hover .floor-plan-zoom-hint {
  background: var(--gold);
  color: var(--primary);
}
.floor-plan-details h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.floor-plan-details .plan-subhead {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.floor-plan-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.floor-plan-spec-item {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #edf2f7;
}
.floor-plan-spec-item .label {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 2px;
}
.floor-plan-spec-item .val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}
.floor-plan-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.floor-plan-highlights li {
  font-size: 0.86rem;
  color: var(--text);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.floor-plan-highlights li::before {
  content: "✓";
  color: var(--gold);
  font-weight: bold;
}
.floor-plan-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--gold) 0%, #a88438 100%);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.25);
}
.floor-plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 169, 110, 0.4);
  color: #ffffff;
}

/* Contact Auto-Select Banner */
.contact-project-banner {
  animation: fadeInDown 0.4s ease forwards;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Floor Plans for All Devices & Resolutions */
@media (max-width: 992px) {
  .floor-plan-card {
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    padding: 24px;
  }
  .floor-plan-img-wrap {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .detail-floor-plans-section {
    margin-top: 40px !important;
  }
  .floor-plan-tabs {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .floor-plan-tabs::-webkit-scrollbar {
    display: none;
  }
  .floor-plan-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 7px 14px;
  }
  .floor-plan-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
    border-radius: 14px;
  }
  .floor-plan-img-wrap {
    min-height: 240px;
    padding: 8px;
  }
  .floor-plan-img-wrap img {
    max-height: 300px;
  }
  .floor-plan-details h4 {
    font-size: 1.2rem;
  }
  .floor-plan-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {
  .floor-plan-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .floor-plan-spec-item {
    padding: 8px 10px;
  }
  .floor-plan-spec-item .label {
    font-size: 0.7rem;
  }
  .floor-plan-spec-item .val {
    font-size: 0.85rem;
  }
  .floor-plan-highlights li {
    font-size: 0.82rem;
  }
}







/* ==========================================================================
   Home Loan Section (3 Modes Studio: Concierge, Calculator, Banner & VIP)
   ========================================================================== */
.home-loan-section {
  padding: 40px 0 20px 0;
  position: relative;
}

.home-loan-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Base Card Style */
.home-loan-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 30px rgba(201, 169, 110, 0.08);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.home-loan-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.12) 0%, rgba(201, 169, 110, 0) 70%);
  pointer-events: none;
}

.loan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 169, 110, 0.18);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: #e6ca85;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Header Flex */
.loan-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.loan-title-col {
  flex: 1;
  min-width: 300px;
}

.loan-title-col h3 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.loan-title-col p {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
}

/* CTA Action Buttons */
.loan-actions-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.loan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.loan-btn-line {
  background: #06c755;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.3);
}

.loan-btn-line:hover {
  background: #05b04c;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.45);
}

.loan-btn-call {
  background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
  color: #0b132b;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.loan-btn-call:hover {
  background: linear-gradient(135deg, #e6ca85 0%, #c59b27 100%);
  transform: translateY(-2px);
  color: #0b132b;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.loan-btn-callback {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.loan-btn-callback:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}

/* 3 Trust Pillars */
.loan-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.loan-trust-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 !important;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.loan-trust-item:hover {
  background: rgba(201, 169, 110, 0.12);
  border-color: rgba(201, 169, 110, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.trust-link-arrow {
  color: rgba(201, 169, 110, 0.6);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loan-trust-item:hover .trust-link-arrow {
  color: #dfbc7a;
  transform: translateX(4px);
}

.trust-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.loan-trust-item strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 4px;
}

.loan-trust-item span {
  display: block;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
}

/* Partner Banks Bar */
.loan-banks-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.banks-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.banks-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bank-pill {
  display: inline-block;
  background: var(--bc, #334155);
  color: var(--tc, #ffffff);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Mode 2: Calculator Mode */
.loan-calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.loan-calc-inputs {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
}

.calc-control-group {
  margin-bottom: 18px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.calc-val-badge {
  font-size: 15px;
  font-weight: 700;
  color: #e6ca85;
}

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  accent-color: #d4af37;
}

.loan-calc-result-box {
  background: linear-gradient(145deg, rgba(201, 169, 110, 0.15) 0%, rgba(13, 27, 42, 0.6) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.calc-result-label {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.calc-result-amount {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.calc-result-amount span {
  font-size: 18px;
  color: #e6ca85;
  font-weight: 600;
}

.calc-result-note {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* Mode 3: Seamless Banner */
.home-loan-seamless-card {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-left: 4px solid #d4af37;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.seamless-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.seamless-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.seamless-info h4 {
  font-size: 16px;
  color: #ffffff;
  margin: 0 0 3px 0;
  font-weight: 700;
}

.seamless-info p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
}

/* VIP Form Loan Checkbox */
.vip-loan-checkbox-row {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 0 !important;
  padding: 8px 14px;
  margin-top: 4px;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.vip-loan-checkbox-row:hover {
  background: rgba(201, 169, 110, 0.2);
  border-color: rgba(201, 169, 110, 0.6);
}

.vip-loan-checkbox-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #c9a96e;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 0 !important;
}

.vip-loan-checkbox-row span {
  font-size: 12px;
  color: #e6ca85;
  font-weight: 500;
  line-height: 1.4;
  user-select: none;
}

@media (max-width: 900px) {
  .loan-trust-grid {
    grid-template-columns: 1fr;
  }
  .loan-calc-grid {
    grid-template-columns: 1fr;
  }
  .home-loan-card {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Google Translate Banner Suppression (Keep Luxury UI 100% Clean)
   ========================================================================== */
.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
#google_translate_element {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}
body {
  top: 0px !important;
  position: static !important;
}


/* ===== Back to Top Button (Left Floating & Above Cookie Banner) ===== */
.scroll-to-top-btn {
  position: fixed !important;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  border-radius: 0 !important;
  background: var(--primary);
  color: var(--primary-text, #ffffff);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top-btn:hover {
  background: var(--accent);
  color: #1e293b;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.45);
  border-color: var(--accent);
}
/* Push above cookie banner when it's active */
body.cookie-banner-active .scroll-to-top-btn {
  bottom: 85px !important;
}
@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 20px;
    left: 18px;
    width: 44px;
    height: 44px;
  }
  body.cookie-banner-active .scroll-to-top-btn {
    bottom: 120px !important;
  }
}

/* =========================================================
   Sharp Rectangular Aesthetics (เหลี่ยม 4 เหลี่ยม คมกริบ ไร้มุมมน 100% ทุกส่วนของเว็บไซต์)
   ========================================================= */
.btn,
.btn-primary,
.btn-dark,
.btn-outline,
.btn-register,
.nav-btn,
.nav-cta a,
.btn-zone-jump,
.map-pill,
.map-filter-pills,
.master-map-wrapper,
#masterProjectsMap,
.master-map-legend,
.promo-banner,
.promo-banner-bg,
.filter-tab,
.filter-tabs,
.gallery-category-tab,
.hero-badge,
.hero-btn,
.search-btn,
.search-box,
.search-filter,
.search-box-inner,
.project-card,
.project-card-img,
.project-card-img img,
.project-badge,
.project-price,
.resale-card-badge-reno,
.resale-card-badge-discount,
.sold-out-badge-pill,
.brand-ananda-card,
.brand-card-img-wrap,
.brand-card-img-wrap img,
.brand-card,
.brand-card-img,
.brand-card-img img,
.brand-card-status-badge,
.news-card,
.news-card-img,
.news-card-img img,
.promo-card,
.promo-card-img,
.promo-card-img img,
.zone-item,
.zone-item img,
.detail-gallery,
.detail-gallery-main,
.detail-gallery-main img,
.detail-gallery-side > div,
.detail-gallery-side img,
.gallery-grid-item,
.gallery-grid-item img,
.featured-banner,
.featured-banner img,
.btn-map-navigate,
.btn-contact,
.contact-btn,
.footer-btn,
.resale-badge,
.tag-pill,
.category-pill,
.pagination-btn,
.page-btn,
.modal-content,
.leaflet-container,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip,
.home-loan-card,
.home-loan-card::before,
.loan-badge,
.loan-btn,
.loan-trust-item,
.bank-pill,
.loan-calc-inputs,
.pre-footer-compact-card,
.pre-footer-compact-card::before,
.pre-footer-badge,
.form-group-reg input,
.form-group-reg select,
.reg-single-input,
.btn-pre-footer-submit,
.quick-reg-card,
.quick-reg-header,
.quick-reg-body,
.pre-footer-loan-check,
.pre-footer-loan-check label,
.vip-reg-box,
.vip-reg-btn,
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-register,
.lang-btn,
.scroll-to-top-btn,
.hero-sound-btn,
.hero-badge,
.showcase-float-btn,
.brand-tag,
.benefit-card,
.benefit-icon,
.job-card,
.job-tag,
.job-tag-dept,
.job-tag-urgent,
.job-salary-badge,
.job-details-grid,
.job-filter-wrapper,
.job-search-input,
.job-search-clear,
.job-stats-badge,
.job-dept-tab-btn,
.job-dept-tab-btn .dept-count,
.apply-modal,
.apply-modal-close,
.careers-hero-badge,
.resale-tab-btn,
.resale-deal-btn,
.resale-trust-item,
.resale-search-box input,
.resale-installment {
  border-radius: 0 !important;
}

