@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&subset=thai&display=swap');

:root {
  --gold: #c9a96e;
  --gold-light: #dfc291;
  --gold-dark: #a8894f;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --border-color: #222222;
  --border-gold: rgba(201, 169, 110, 0.3);
  --shadow-gold: 0 0 30px rgba(201, 169, 110, 0.1);
  --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  --font-heading: 'Kanit', sans-serif;
  --font-body: 'Prompt', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  padding-top: 80px;
}

/* ======================== NAVBAR ======================== */
.navbar-luxury {
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.8rem 0;
  transition: var(--transition);
}

.navbar-luxury.scrolled {
  background: rgba(10, 10, 10, 0.95) !important;
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-luxury .navbar-brand img {
  height: 60px;
  transition: var(--transition);
}

.navbar-luxury .navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-luxury .nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1.2rem !important;
  position: relative;
  transition: var(--transition);
}

.navbar-luxury .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-luxury .nav-link:hover,
.navbar-luxury .nav-link.active {
  color: var(--gold) !important;
}

.navbar-luxury .nav-link:hover::after,
.navbar-luxury .nav-link.active::after {
  width: 60%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
  border: 1px solid var(--border-gold);
  border-radius: 25px;
  padding: 4px 6px;
}

.lang-switcher .lang-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 4px 12px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--text-muted);
  text-transform: uppercase;
}

.lang-switcher .lang-btn.active {
  background: var(--gold);
  color: var(--bg-primary);
  font-weight: 600;
}

.lang-switcher .lang-btn:hover:not(.active) {
  color: var(--gold-light);
}

/* Toggler */
.navbar-luxury .navbar-toggler {
  border: 1px solid var(--border-gold);
  padding: 6px 10px;
}

.navbar-luxury .navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--gold-dark);
}

.navbar-luxury .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201, 169, 110, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ======================== HERO SLIDER ======================== */
.hero-slider {
  position: relative;
  margin-top: -80px;
}

.hero-slider .swiper-slide {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slider .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.6) 100%);
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: var(--gold) !important;
  width: 50px !important;
  height: 50px !important;
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 1.5rem !important;
}

.hero-slider .swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--gold) !important;
  opacity: 1;
}

@media (max-width: 767px) {
  .hero-slider .swiper-slide {
    height: 350px;
  }
}

/* ======================== SECTION ======================== */
.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 20px;
  position: relative;
  display: inline-block;
  scroll-margin-top: 100px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 12px auto 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gold-divider {
  width: 80px;
  height: 1px;
  background: var(--gradient-gold);
  margin: 20px auto;
}

/* ======================== CARDS ======================== */
.card-luxury {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.card-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.card-luxury:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.card-luxury:hover::before {
  transform: scaleX(1);
}

.card-luxury .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.card-luxury:hover .card-img-top {
  transform: scale(1.05);
}

.card-luxury .card-img-top-wrapper {
  overflow: hidden;
}

.card-luxury .card-body {
  padding: 1.5rem;
}

.card-luxury .card-category {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.card-luxury .card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-luxury .card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.btn-gold i {
  font-size: 0.75rem;
  transition: var(--transition);
}

.btn-gold:hover i {
  transform: translateX(4px);
}

/* ======================== CONTENT SECTIONS ======================== */
.content-section {
  padding: 100px 0;
}

.content-section .lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.feature-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item h5 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* Floorplan images */
.floorplan-img {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px;
  display: block;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: var(--transition);
}

.floorplan-img:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

/* Map */
.map-container {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.map-container img {
  width: 100%;
  display: block;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--gold);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  margin: 5px;
  transition: var(--transition);
}

.map-link:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

/* ======================== ABOUT / CONTACT ======================== */
.contact-info {
  text-align: center;
  padding: 40px 0;
}

.contact-info h4 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-item i {
  color: var(--gold);
  font-size: 1.1rem;
  width: 20px;
}

/* ======================== FOOTER ======================== */
.footer-luxury {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
}

.footer-luxury .footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.footer-luxury .footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-luxury .footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-luxury a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-luxury a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ======================== UTILITIES ======================== */
.text-gold {
  color: var(--gold) !important;
}

.bg-dark-luxury {
  background: var(--bg-secondary) !important;
}

.pt-section {
  padding-top: 120px;
}

.pb-section {
  padding-bottom: 80px;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 991px) {
  .navbar-luxury .navbar-collapse {
    background: rgba(10, 10, 10, 0.98);
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
  }

  .navbar-luxury .nav-link {
    padding: 0.75rem 0 !important;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }

  .hero-slider .swiper-slide {
    height: 350px;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 575px) {
  .hero-slider .swiper-slide {
    height: 280px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card-luxury .card-body {
    padding: 1.2rem;
  }

  .footer-luxury {
    padding: 40px 0 0;
  }
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Language - handled by i18n.js text swap */

/* ======================== BACK TO TOP ======================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(201, 169, 110, 0.5);
}

/* ======================== SCROLL FADE-IN ======================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-section:nth-child(2) { transition-delay: 0.1s; }
.fade-in-section:nth-child(3) { transition-delay: 0.2s; }

/* ======================== LIGHTBOX ======================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  cursor: default;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--gold-light);
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 1px;
  background: rgba(20, 20, 20, 0.8);
  padding: 8px 20px;
  border-radius: 25px;
  border: 1px solid var(--border-gold);
  white-space: nowrap;
}

/* Clickable images cursor */
.clickable-img {
  cursor: zoom-in;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.clickable-img:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

/* ======================== HERO PARALLAX ======================== */
.hero-slider .swiper-slide {
  background-attachment: fixed;
}

@media (max-width: 767px) {
  .hero-slider .swiper-slide {
    background-attachment: scroll;
  }
}

.hero-slider .swiper-slide::after {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.2) 0%,
    rgba(10, 10, 10, 0.05) 40%,
    rgba(10, 10, 10, 0.3) 70%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

/* ======================== ENHANCED CARD HOVER ======================== */
.card-luxury .card-img-top {
  filter: brightness(0.9);
}

.card-luxury:hover .card-img-top {
  filter: brightness(1);
}

.card-luxury .card-body {
  position: relative;
}

.card-luxury .card-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
  transition: var(--transition);
}

.card-luxury:hover .card-title::after {
  width: 60px;
}

/* ======================== FOOTER ENHANCED ======================== */
.footer-luxury {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #0a0a0a 100%);
}

.footer-social a {
  background: rgba(201, 169, 110, 0.05);
}

.footer-social a:hover {
  background: rgba(201, 169, 110, 0.15);
}

/* ======================== GOLD ACCENT LINE ======================== */
.gold-top-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  z-index: 10001;
}
