/* ============================================================
   KHUNG WEBSITE KHACH HANG - DESIGN SYSTEM
   ------------------------------------------------------------
   Khi tao site cho khach hang moi, CHI can sua cac bien trong
   khoi :root ben duoi (mau, font, bo goc, khoang cach...).
   KHONG can sua phan layout/style ben duoi tru khi muon
   thay doi cau truc chung cho moi khach hang.
   ============================================================ */

:root {
  /* ---- 1. Brand - Suite Living, Ecogreen Saigon (can ho dich vu cao cap) ---- */
  --color-primary: #1c2430;      /* navy-charcoal sang trong, dong bo voi noi that toi mau */
  --color-secondary: #b8935a;    /* vang dong/brass, dong bo voi phu kien noi that that */
  --color-bg: #f7f5f0;           /* nen tong the - ivory am */
  --color-surface: #ffffff;      /* nen card/section noi */
  --color-text: #23262b;         /* mau chu chinh */
  --color-text-muted: #6b7280;   /* mau chu phu */
  --color-border: #e6e2d8;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --container-width: 1180px;
  --section-padding: clamp(56px, 8vw, 120px);

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.18);

  --transition: 0.25s ease;
}

/* ---- 2. Reset co ban ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-padding) 0; }
.section--alt { background: var(--color-surface); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-desc { color: var(--color-text-muted); max-width: 640px; }
.section-head { text-align: center; margin: 0 auto 48px; max-width: 720px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn--primary {
  background: var(--color-secondary);
  color: #1a1a1a;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover { border-color: var(--color-secondary); color: var(--color-secondary); }

/* ---- 3. Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.is-scrolled { border-color: var(--color-border); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.brand img { height: 36px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--color-secondary); }

.lang-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
}
.lang-toggle button {
  padding: 6px 12px;
  color: var(--color-text-muted);
}
.lang-toggle button.is-active {
  background: var(--color-primary);
  color: #fff;
}

.nav-toggle { display: none; }

/* ---- 4. Hero ---- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55)),
              var(--color-primary) center/cover no-repeat;
  /* Thay anh nen that bang: background-image them url('../img/hero.jpg') */
}
.hero-content { max-width: 680px; }
.hero .eyebrow { color: var(--color-secondary); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); color: #fff; margin-bottom: 20px; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- 5. About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about-stats { display: flex; gap: 40px; margin-top: 32px; }
.stat-num { font-family: var(--font-heading); font-size: 32px; color: var(--color-secondary); }
.stat-label { font-size: 13px; color: var(--color-text-muted); }

/* ---- 6. Services / Highlights ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(201, 163, 93, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--color-secondary);
  font-size: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: 14.5px; }

/* ---- 7. Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-grid a:nth-child(4n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img, .gallery-grid a { border-radius: var(--radius-md); overflow: hidden; height: 100%; }
.gallery-grid img { height: 100%; width: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---- 8. Testimonials ---- */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-border);
}
.testimonial-quote { font-style: italic; margin-bottom: 20px; color: var(--color-text); }
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 12.5px; color: var(--color-text-muted); }

/* ---- 9. Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .ico {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--color-surface);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* ---- 10. Footer ---- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a:hover { color: var(--color-secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- 11. Responsive ---- */
@media (max-width: 900px) {
  .nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--color-bg);
    flex-direction: column; justify-content: flex-start; padding: 32px 24px; gap: 24px;
    transform: translateX(100%); transition: transform var(--transition); }
  .nav.is-open { transform: translateX(0); }
  .nav-toggle { display: block; font-size: 22px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-grid, .testimonial-track { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a:nth-child(4n+1) { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   CHAT WIDGET - style dung chung, KHONG doi khi tao site moi
   (doi mau tu dong theo --color-primary / --color-secondary o tren)
   ============================================================ */
.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-strong);
  z-index: 200;
  font-size: 24px;
  transition: transform var(--transition);
}
.chat-launcher:hover { transform: scale(1.06); }

.chat-window {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.chat-window.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.chat-header {
  background: var(--color-primary);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-title { font-weight: 700; font-size: 14.5px; }
.chat-header-sub { font-size: 11.5px; color: rgba(255,255,255,0.7); }
.chat-close { color: #fff; font-size: 18px; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-bg);
}
.chat-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.chat-msg--bot {
  align-self: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--color-secondary);
  color: #1a1a1a;
  border-bottom-right-radius: 4px;
}
.chat-msg--bot a {
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: underline;
}
.chat-msg--typing { display: flex; gap: 4px; align-items: center; }
.chat-msg--typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-text-muted);
  animation: chatTyping 1s infinite ease-in-out;
}
.chat-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTyping { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-quick-replies button {
  font-size: 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 7px 12px;
  background: var(--color-surface);
  transition: border-color var(--transition), color var(--transition);
}
.chat-quick-replies button:hover { border-color: var(--color-secondary); color: var(--color-secondary); }

.chat-quick-replies button.chat-quick-reply--contact {
  border-color: rgba(178, 138, 62, 0.55);
  color: var(--color-secondary);
  background: rgba(178, 138, 62, 0.08);
  font-weight: 600;
}
.chat-quick-replies button.chat-quick-reply--contact:hover { border-color: var(--color-secondary); }

/* lien he nhanh ngay trong chat - form nho gon, khong bat khach roi
   sang section Lien he rieng. */
.chat-contact-card {
  align-self: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.chat-contact-card__title { font-weight: 700; color: var(--color-primary); font-size: 13.5px; line-height: 1.4; }
.chat-contact-card label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--color-text-muted); }
.chat-contact-card input,
.chat-contact-card textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--color-bg);
}
.chat-contact-card input:focus,
.chat-contact-card textarea:focus { outline: none; border-color: var(--color-secondary); }
.chat-contact-card textarea { resize: vertical; min-height: 44px; }
.chat-contact-card__actions { display: flex; gap: 8px; margin-top: 2px; }
.chat-contact-card__submit {
  flex: 1;
  background: var(--color-primary);
  color: #fff;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.chat-contact-card__submit:disabled { opacity: 0.55; cursor: not-allowed; }
.chat-contact-card__cancel {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.chat-contact-card__cancel:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
.chat-contact-card__error { color: #b3261e; font-size: 12px; }

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-family: inherit;
}
.chat-input-row input:focus { outline: none; border-color: var(--color-secondary); }
.chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   BO SUNG RIENG CHO SUITE LIVING - ECOGREEN SAIGON
   (can ho dich vu cao cap, dat phong truc tiep)
   ============================================================ */
.hero-quickfacts {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 40px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.hero-quickfacts .fact { font-size: 14px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 8px; }
.hero-quickfacts .fact .num { font-family: var(--font-heading); color: var(--color-secondary); font-size: 18px; }

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.amenity-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.amenity-group h3 { font-size: 16.5px; color: var(--color-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.amenity-group ul { display: flex; flex-direction: column; gap: 7px; }
.amenity-group li { font-size: 13.5px; color: var(--color-text-muted); }

.location-list { display: flex; flex-direction: column; gap: 14px; }
.location-list .loc-item {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--color-surface); border: 1px solid var(--color-border);
  font-size: 14px;
}
.location-list .loc-item .place { font-weight: 600; color: var(--color-text); }
.location-list .loc-item .time { color: var(--color-secondary); font-weight: 700; white-space: nowrap; }

.price-banner {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  box-shadow: var(--shadow-strong);
}
.price-banner .price-value { font-family: var(--font-heading); font-size: 34px; color: var(--color-secondary); }
.price-banner .price-note { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-top: 4px; }

.rules-box {
  background: rgba(184, 147, 90, 0.09);
  border: 1px solid rgba(184, 147, 90, 0.35);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}
.rules-box h3 { color: var(--color-primary); font-size: 17px; margin-bottom: 14px; }
.rules-box ul { display: flex; flex-direction: column; gap: 8px; }
.rules-box li { font-size: 13.5px; color: var(--color-text); padding-left: 18px; position: relative; }
.rules-box li::before { content: '—'; position: absolute; left: 0; color: var(--color-secondary); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; background: var(--color-surface);
}

.notice-box {
  background: rgba(28, 36, 48, 0.05);
  border-left: 3px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

@media (max-width: 900px) {
  .amenity-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .price-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .amenity-grid { grid-template-columns: 1fr; }
}
