@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=DM+Sans:wght@300;400;500;600&family=Nunito:wght@700;800;900&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --dark: #0F0F0F;
  --dark-2: #1A1A1A;
  --dark-3: #242424;
  --cream: #F5F0E8;
  --cream-2: #EDE7D9;
  --text-light: #8A8A8A;
  --white: #FFFFFF;
  --radius: 4px;
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%;
  height: 60px;
  background: rgba(15,15,15,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: all 0.3s;
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 1; min-width: 0; overflow: hidden;
}
.nav-logo-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--dark); font-weight: 600;
}
.nav-logo-text {
  color: var(--white); font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 300; letter-spacing: 0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 160px;
}
.nav-logo-text span { color: var(--gold); }

@media (max-width: 480px) {
  .nav-logo-text { max-width: 110px; font-size: 1rem; }
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  padding: 7px 14px; border-radius: var(--radius); font-size: 0.75rem;
  letter-spacing: 0.3px; text-transform: uppercase; font-weight: 500;
  transition: all 0.3s; white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }

@media (max-width: 480px) {
  .nav-cta { font-size: 0.68rem; padding: 6px 10px; }
}
@media (max-width: 360px) {
  .nav-logo-text { font-size: 0.95rem; }
  .nav-cta { display: none; } /* ẩn nút gọi nếu màn hình quá nhỏ */
}

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-hamburger span { width: 24px; height: 1.5px; background: var(--white); transition: all 0.3s; }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  background: linear-gradient(to bottom, var(--dark) 0%, var(--dark-2) 100%);
  display: flex; align-items: flex-end;
  padding: 0 5% 80px;
  position: relative; overflow: hidden;
}

/* ── HERO SLIDESHOW ── */
.hero-slideshow {
  position: absolute; inset: 0; z-index: 0;
}

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6s ease;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1); /* hiệu ứng zoom nhẹ khi chuyển */
}

/* Chấm điều hướng */
.slide-dots {
  position: absolute; bottom: 32px; left: 5%; z-index: 2;
  display: flex; gap: 8px; align-items: center;
}
.slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer;
  padding: 0; transition: all 0.3s;
}
.slide-dot.active {
  background: var(--gold);
  width: 24px; border-radius: 4px; /* active dot dài hơn */
}
.slide-dot:hover { background: rgba(255,255,255,0.7); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,1) 0%, rgba(15,15,15,0.3) 60%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold); padding: 6px 16px; border-radius: 100px;
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: italic; }

.hero-desc { color: rgba(255,255,255,0.65); max-width: 500px; margin-bottom: 40px; font-size: 1rem; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark); padding: 14px 32px; border-radius: var(--radius);
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  border: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.3); padding: 14px 32px;
  border-radius: var(--radius); font-size: 0.85rem; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 500; transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--dark-3); border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.stats-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  display: flex; justify-content: space-around;
}
.stat-item { padding: 28px 20px; text-align: center; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--gold); font-weight: 300; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* ─── SECTIONS ─── */
section { padding: 80px 5%; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; font-weight: 500;
}
.section-header h2 { color: var(--dark); }
.section-line {
  width: 48px; height: 1px; background: var(--gold); margin: 20px auto 0;
}

/* ─── PROPERTIES GRID ─── */
.properties-section { background: var(--cream); }
.properties-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}

.prop-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.4s;
  border: 1px solid rgba(0,0,0,0.05);
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.prop-img-wrap {
  position: relative; height: 220px; overflow: hidden;
  background: var(--cream-2);
}
/* Skeleton loader khi ảnh đang tải */
.prop-img-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--cream-2) 25%, #e8e2d8 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  z-index: 0;
}
.prop-img-wrap img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}
.prop-img-wrap img.loaded { opacity: 1; }
.prop-card:hover .prop-img-wrap img { transform: scale(1.06); }

/* Số thứ tự ảnh (nếu có nhiều ảnh) */
.prop-img-count {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 3px 9px; border-radius: 100px;
  font-size: 0.72rem; display: flex; align-items: center; gap: 4px;
  backdrop-filter: blur(4px);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.prop-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--dark);
  padding: 4px 12px; border-radius: 2px; font-size: 0.7rem;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.prop-badge.hot { background: #E84545; color: var(--white); }
.prop-badge.new { background: #2E9E5B; color: var(--white); }
.prop-badge.sold { background: #555; color: var(--white); }

/* Card đã bán */
.prop-card.prop-sold { opacity: 0.72; }
.prop-card.prop-sold:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* Lớp phủ "ĐÃ BÁN" trên ảnh */
.sold-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(0,0,0,0.38);
  display: flex; align-items: center; justify-content: center;
}
.sold-stamp {
  border: 3px solid rgba(255,255,255,0.85);
  color: rgba(255,255,255,0.92);
  padding: 8px 22px; border-radius: 4px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 4px;
  transform: rotate(-15deg);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  font-family: 'DM Sans', sans-serif;
}

.prop-body { padding: 20px; }
.prop-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 6px; color: var(--dark); line-height: 1.4; }
.prop-location { display: flex; align-items: center; gap: 6px; color: var(--text-light); font-size: 0.82rem; margin-bottom: 14px; }
.prop-location svg { flex-shrink: 0; }

.prop-meta {
  display: flex; gap: 16px; padding: 14px 0;
  border-top: 1px solid var(--cream-2); border-bottom: 1px solid var(--cream-2);
  margin-bottom: 16px;
}
.prop-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-light); }
.prop-meta-item strong { color: var(--dark); font-weight: 500; }

.prop-footer { display: flex; align-items: center; justify-content: space-between; }
.prop-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem; color: var(--gold); font-weight: 700;
  letter-spacing: -0.3px; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.prop-price small {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; color: var(--text-light);
  font-weight: 400; display: block;
}

.btn-detail {
  background: var(--dark); color: var(--white);
  padding: 10px 20px; border-radius: var(--radius); font-size: 0.8rem;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 500;
  border: none; transition: all 0.3s;
}
.btn-detail:hover { background: var(--gold); color: var(--dark); }

/* ─── DETAIL PAGE ─── */
.detail-page { padding-top: 70px; }

.detail-gallery { position: relative; background: var(--dark-2); }

/* Khung ảnh chính — chiều cao cố định, blur lấp đầy viền đen */
.gallery-main-wrap {
  position: relative;
  width: 100%;
  height: clamp(280px, 55vw, 520px);
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ảnh nền mờ lấp đầy viền — không còn viền đen xấu */
.gallery-bg-blur {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.35) saturate(0.6);
  transform: scale(1.15);
  z-index: 0;
  transition: background-image 0.3s;
}

/* Ảnh chính — nguyên vẹn, không cắt, không kéo giãn */
.gallery-main {
  position: relative; z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.25s ease;
}
/* Nút điều hướng trái/phải */
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; background: rgba(0,0,0,0.5); color: #fff;
  border: none; width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background 0.2s;
  user-select: none;
}
.gallery-nav:hover { background: var(--gold); color: var(--dark); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
/* Counter ảnh */
.gallery-counter {
  position: absolute; bottom: 12px; right: 14px; z-index: 5;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 4px 12px; border-radius: 100px; font-size: 0.78rem;
  backdrop-filter: blur(4px);
}

/* Thumbnails — scroll ngang, căn đều */
.gallery-thumbs {
  display: flex; gap: 6px; padding: 10px 12px;
  overflow-x: auto; background: var(--dark-3);
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.gallery-thumb-item {
  position: relative;
  width: 96px; height: 68px; flex-shrink: 0;
  border-radius: 4px; overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  background: #222;
}
.gallery-thumb-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.3s;
}
.gallery-thumb-item:hover img { transform: scale(1.08); }
.gallery-thumb-item.active { border-color: var(--gold); opacity: 1; }
.gallery-thumb-item:not(.active) { opacity: 0.55; }

.detail-content {
  max-width: 1100px; margin: 0 auto; padding: 48px 5%;
  display: grid; grid-template-columns: 1fr 340px; gap: 48px;
}

.detail-left h1 { margin-bottom: 12px; }
.detail-location { display: flex; align-items: center; gap: 6px; color: var(--text-light); margin-bottom: 24px; }

.detail-price-box {
  background: var(--dark); color: var(--white); padding: 24px 28px;
  border-radius: 8px; margin-bottom: 32px; border-left: 3px solid var(--gold);
}
.detail-price-box .label { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.detail-price-big { font-family: 'DM Sans', sans-serif; font-size: 2rem; color: var(--gold); font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }

.detail-specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px;
}
.spec-item {
  background: var(--white); border: 1px solid var(--cream-2); padding: 16px; border-radius: 6px;
  display: flex; align-items: center; gap: 12px;
}
.spec-icon { width: 40px; height: 40px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.spec-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.spec-value { font-size: 1rem; font-weight: 500; color: var(--dark); }

.detail-desc h3 { margin-bottom: 12px; }
.detail-desc p { color: #444; line-height: 1.8; margin-bottom: 16px; }

.amenities-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.amenity-tag {
  background: var(--cream); border: 1px solid var(--cream-2); padding: 6px 14px;
  border-radius: 100px; font-size: 0.8rem; color: var(--dark-3); display: flex; align-items: center; gap: 6px;
}

/* ─── CONTACT SIDEBAR ─── */
.contact-sidebar { position: sticky; top: 70px; }
.contact-card {
  background: var(--white); border-radius: 12px; padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--cream-2);
}
.contact-card h3 { margin-bottom: 20px; font-size: 1.2rem; }

.agent-info { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.agent-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold);
}
.agent-name { font-weight: 600; margin-bottom: 2px; }
.agent-role { font-size: 0.8rem; color: var(--text-light); }

.contact-btns { display: flex; flex-direction: column; gap: 12px; }
.btn-call {
  background: #2E9E5B; color: var(--white); border: none;
  padding: 14px; border-radius: var(--radius); font-size: 0.85rem;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.3s;
}
.btn-call:hover { background: #238A4D; transform: translateY(-2px); }

.btn-zalo {
  background: #0068FF; color: var(--white); border: none;
  padding: 14px; border-radius: var(--radius); font-size: 0.85rem;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.3s;
}
.btn-zalo:hover { background: #0054CC; transform: translateY(-2px); }

.btn-share {
  background: #1877F2; color: var(--white); border: none;
  padding: 12px; border-radius: var(--radius); font-size: 0.8rem;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s; width: 100%;
}
.btn-share:hover { background: #1565D8; }

/* ─── CONTACT PAGE ─── */
.contact-page { padding-top: 70px; background: var(--cream); min-height: 100vh; }
.contact-grid {
  max-width: 900px; margin: 0 auto; padding: 60px 5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-info-block { }
.contact-info-block h2 { margin-bottom: 24px; }
.contact-info-block p { color: #555; margin-bottom: 32px; line-height: 1.8; }

.info-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.info-icon { width: 44px; height: 44px; background: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.info-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.info-value { font-size: 1rem; font-weight: 500; }

.contact-cta-box {
  background: var(--dark); border-radius: 12px; padding: 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.contact-cta-box h3 { color: var(--white); margin-bottom: 8px; }
.contact-cta-box p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ─── ADMIN ─── */
.admin-page { padding-top: 70px; background: #F8F8F8; min-height: 100vh; }
.admin-header {
  background: var(--dark); padding: 24px 5%; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: gap;
}
.admin-header h1 { color: var(--white); font-size: 1.5rem; }

.admin-content { max-width: 1100px; margin: 0 auto; padding: 40px 5%; }

.admin-table-wrap { background: var(--white); border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 40px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--dark); color: var(--white); padding: 14px 16px;
  font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; text-align: left; font-weight: 500;
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #F0F0F0; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FAFAFA; }

.admin-table img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; }
.admin-prop-name { font-weight: 500; max-width: 200px; }
.admin-price { color: var(--gold); font-weight: 600; }

.btn-edit {
  background: var(--dark); color: var(--white); border: none;
  padding: 6px 14px; border-radius: 3px; font-size: 0.75rem; margin-right: 6px;
  cursor: pointer; transition: all 0.2s;
}
.btn-edit:hover { background: var(--gold); color: var(--dark); }

.btn-delete {
  background: #E84545; color: var(--white); border: none;
  padding: 6px 14px; border-radius: 3px; font-size: 0.75rem; cursor: pointer; transition: all 0.2s;
}
.btn-delete:hover { background: #C03030; }

/* ─── MODAL / FORM ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white); border-radius: 12px; width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto; padding: 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}
.modal h2 { margin-bottom: 28px; }
.modal-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 24px; color: var(--text-light); cursor: pointer;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid #DDD; border-radius: var(--radius); padding: 11px 14px;
  font-family: inherit; font-size: 0.9rem; color: var(--dark); outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }

.upload-area {
  border: 2px dashed #DDD; border-radius: var(--radius); padding: 28px;
  text-align: center; cursor: pointer; transition: all 0.2s;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--gold); background: rgba(201,168,76,0.06);
}
.upload-area.drag-over { transform: scale(1.01); }
.upload-area p { color: var(--text-light); font-size: 0.85rem; margin-top: 8px; }

.preview-images {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}
.preview-images .preview-item {
  position: relative;
  width: 90px; height: 68px;
  border-radius: 5px; overflow: hidden;
  border: 2px solid var(--cream-2);
  background: var(--cream);
  flex-shrink: 0;
}
.preview-images .preview-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.preview-images .preview-item:first-child {
  border-color: var(--gold); /* ảnh đầu = ảnh bìa */
}
.preview-images .preview-item:first-child::after {
  content: 'Bìa';
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(201,168,76,0.88); color: var(--dark);
  font-size: 0.65rem; text-align: center; padding: 2px;
  font-weight: 600; letter-spacing: 0.5px;
}
.preview-del {
  position: absolute; top: -7px; right: -7px;
  background: #E84545; color: #fff; border: 2px solid #fff;
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
}

.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.btn-save {
  background: var(--gold); color: var(--dark); border: none;
  padding: 12px 28px; border-radius: var(--radius); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.btn-save:hover { background: var(--gold-light); }
.btn-cancel {
  background: #EEE; color: var(--dark); border: none;
  padding: 12px 24px; border-radius: var(--radius); font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s;
}
.btn-cancel:hover { background: #DDD; }

/* ─── FOOTER ─── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  padding: 48px 5% 28px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.8; margin-top: 14px; color: rgba(255,255,255,0.5); }
.footer-col h4 { color: var(--gold); font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; font-family: 'DM Sans', sans-serif; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--dark); padding: 12px 0;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-mobile-open .nav-links a { padding: 14px 5%; }
  
  .detail-content { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { width: 50%; }
}

@media (max-width: 600px) {
  section { padding: 56px 4%; }
  .properties-grid { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .hero { padding: 0 4% 60px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .admin-table { font-size: 0.82rem; }
  .modal { padding: 24px 20px; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.7s ease forwards; }
.fade-up-d1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-d2 { animation-delay: 0.25s; opacity: 0; }
.fade-up-d3 { animation-delay: 0.4s; opacity: 0; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 90px; right: 20px; z-index: 300;
  background: var(--dark); color: var(--white); padding: 14px 22px;
  border-radius: 8px; font-size: 0.88rem; box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--gold); transform: translateX(120%);
  transition: transform 0.35s ease;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #2E9E5B; }
.toast.error { border-left-color: #E84545; }
