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

/* ==============================
   CSS VARIABLES
   ============================== */
:root {
  --primary: #1B5E3B;
  --primary-light: #2D8A5C;
  --primary-dark: #0D3020;
  --accent: #D4A843;
  --accent-light: #F0C96E;
  --accent-dark: #A07830;
  --bg-dark: #080F0A;
  --bg-mid: #0F1F14;
  --bg-input: rgba(255,255,255,0.08);
  --bg-card: rgba(255,255,255,0.06);
  --bg-card-hover: rgba(255,255,255,0.10);
  --text-main: #F2F7F4;
  --text-primary: #F2F7F4;
  --text-secondary: #A8C5B0;
  --text-muted: #6B8F78;
  --border: rgba(82,183,136,0.15);
  --border-gold: rgba(212,168,67,0.3);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  background-color: #080F0A;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

/* ==============================
   NAVBAR
   ============================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(8,15,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(8,15,10,0.98); box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 44px; width: auto; filter: drop-shadow(0 2px 8px rgba(212,168,67,0.3)); }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--accent); line-height: 1.2; display: none; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: rgba(212,168,67,0.1); }
.btn-nav-logout {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(229,62,62,0.15);
  color: #FC8181;
  border: 1px solid rgba(229,62,62,0.3);
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-nav-logout:hover { background: rgba(229,62,62,0.25); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 80px;
  background: linear-gradient(135deg, #0D3020 0%, #1B5E3B 40%, #0F1F14 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,168,67,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(27,94,59,0.3) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 1s ease-out;
}
.hero-badge {
  display: inline-block;
  background: rgba(212,168,67,0.15);
  border: 1px solid var(--border-gold);
  color: var(--accent);
  padding: 0.4rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.hero img.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 32px rgba(212,168,67,0.3));
  animation: pulse 4s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.accent-text {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ==============================
   FILTER / SEARCH
   ============================== */
.filter-section {
  background: var(--bg-dark);
  padding: 2rem 5%;
  position: sticky;
  top: 72px;
  z-index: 900;
  border-bottom: 1px solid var(--border);
}
.filter-bar {
  display: flex;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: center;
}
.filter-input, .filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  flex: 1;
  min-width: 160px;
  transition: var(--transition);
}
.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,168,67,0.15);
}
.filter-input::placeholder { color: var(--text-muted); }
.filter-select option { background: var(--bg-mid); }

/* ==============================
   CONTAINER & GRID
   ============================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

/* ==============================
   LANDS GRID
   ============================== */
.lands-section { padding: 3rem 5%; background: var(--bg-dark); }
.section-header {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title { font-size: 1.5rem; color: var(--text-primary); }
.lands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================
   LAND CARD
   ============================== */
.land-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.land-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.land-card.golden-card { border-color: var(--border-gold); box-shadow: 0 4px 20px rgba(212,168,67,0.15); }
.land-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-mid);
}
.land-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.land-card:hover .land-card-img { transform: scale(1.05); }
.land-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-muted);
}
.golden-thumb {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: linear-gradient(135deg, #c9a227, #e8c54a);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.star-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.promo-badge {
  position: absolute;
  bottom: 0.75rem; left: 0.75rem;
  background: linear-gradient(135deg, #E53E3E, #C53030);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.land-card-body { padding: 1.25rem; }
.land-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.land-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin-bottom: 0.25rem; }
.land-price-old { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; }
.land-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }
.land-meta span { font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.25rem; }
.land-size { font-weight: 600; color: var(--text-primary); }
.promo-countdown {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #FC8181;
  font-weight: 600;
}

/* ==============================
   LOADING & EMPTY
   ============================== */
.loading-container {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem; gap: 1rem;
  color: var(--text-muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 0.5rem; }

/* ==============================
   PAGINATION
   ============================== */
.pagination {
  display: flex; gap: 0.5rem; justify-content: center;
  align-items: center; padding: 2rem; flex-wrap: wrap;
}
.pagination-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.pagination-btn:hover, .pagination-btn.active {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  font-weight: 700;
}
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-info { color: var(--text-muted); font-size: 0.9rem; }

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1a1a;
}
.btn-accent:hover { background: linear-gradient(135deg, var(--accent-light), var(--accent)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,168,67,0.3); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-gold); }
.btn-danger { background: #E53E3E; color: white; }
.btn-danger:hover { background: #C53030; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--border-gold); }
.btn-outline:hover { background: rgba(212,168,67,0.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-full { width: 100%; }

/* ==============================
   BADGES
   ============================== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-pending { background: rgba(237,137,54,0.2); color: #ED8936; border: 1px solid rgba(237,137,54,0.3); }
.badge-approved { background: rgba(72,187,120,0.2); color: #48BB78; border: 1px solid rgba(72,187,120,0.3); }
.badge-rejected { background: rgba(229,62,62,0.2); color: #FC8181; border: 1px solid rgba(229,62,62,0.3); }

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 3rem 5% 1.5rem;
  margin-top: auto;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo img { height: 50px; width: auto; margin-bottom: 0.75rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.footer-title { color: var(--accent); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==============================
   AUTH PAGES
   ============================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(27,94,59,0.3) 0%, transparent 70%), var(--bg-dark);
  padding: 2rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: fadeIn 0.5s ease-out;
}
.auth-logo { width: 70px; height: 70px; margin: 0 auto 1.5rem; object-fit: contain; }
.auth-title { font-size: 1.6rem; font-weight: 800; color: var(--accent); text-align: center; margin-bottom: 0.25rem; }
.auth-subtitle { color: var(--text-muted); text-align: center; font-size: 0.9rem; margin-bottom: 2rem; }
.auth-link { display: block; text-align: center; margin-top: 1.25rem; color: var(--text-muted); font-size: 0.9rem; }
.auth-link a { color: var(--accent); font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }

/* ==============================
   FORMS
   ============================== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-control, input[type="text"], input[type="number"], input[type="password"],
input[type="email"], input[type="date"], input[type="url"], textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  box-sizing: border-box;
}
.form-control:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,168,67,0.15);
}
select option { background: var(--bg-mid); color: var(--text-main); }
textarea { resize: vertical; min-height: 100px; }
.required { color: #FC8181; }
.help-text { font-size: 0.82rem; color: var(--accent); margin-top: 0.35rem; }

/* ==============================
   TOAST
   ============================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 320px;
  animation: fadeIn 0.3s ease-out;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.toast-success { background: #22543D; color: #9AE6B4; border: 1px solid rgba(72,187,120,0.3); }
.toast-error { background: #63171B; color: #FEB2B2; border: 1px solid rgba(229,62,62,0.3); }
.toast-warning { background: #744210; color: #FBD38D; border: 1px solid rgba(237,137,54,0.3); }

/* ==============================
   ADMIN LAYOUT
   ============================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-dark);
}
.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--primary-dark);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-logo {
  display: block;
  max-width: 150px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 2px 8px rgba(212,168,67,0.2));
}
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid transparent;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.admin-nav a.active {
  background: rgba(212,168,67,0.15);
  color: var(--accent);
  border-color: var(--border-gold);
}
.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-x: auto;
}
.admin-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-header h1 { font-size: 1.5rem; color: var(--accent); margin-bottom: 0.25rem; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.admin-table th { background: var(--bg-mid); color: var(--text-secondary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ==============================
   MODAL
   ============================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal.show { display: flex; }
.modal-content {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-out;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.2rem; color: var(--accent); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: var(--text-primary); }

/* ==============================
   MEMBER AREA
   ============================== */
.member-page {
  min-height: 100vh;
  background: var(--bg-dark);
  padding-top: 72px;
}
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--bg-mid));
  padding: 2.5rem 5%;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 1.8rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.page-header p { color: var(--text-muted); }

/* Image upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(212,168,67,0.05);
  color: var(--accent);
}
.upload-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.image-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}
.preview-item.cover { border-color: var(--accent); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-cover-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--accent);
  color: #1a1a1a;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem;
}
.preview-remove {
  position: absolute;
  top: 0.25rem; right: 0.25rem;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.preview-remove:hover { background: #E53E3E; }

/* My Lands status tabs */
.status-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.status-tab {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.status-tab.active { background: var(--accent); color: #1a1a1a; border-color: var(--accent); font-weight: 700; }

/* ==============================
   LAND DETAIL
   ============================== */
.land-detail-page { padding-top: 72px; background: var(--bg-dark); min-height: 100vh; }
.gallery-main {
  width: 100%; height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  cursor: zoom-in;
}
.gallery-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; }
.gallery-thumb {
  width: 80px; height: 60px; flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--accent); }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.price-display { font-size: 2rem; font-weight: 800; color: var(--accent); }
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.nearby-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.nearby-icon { font-size: 1.5rem; flex-shrink: 0; }
.nearby-name { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }
.nearby-dist { font-size: 0.8rem; color: var(--text-muted); }

/* Share buttons */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}
.share-fb { background: #1877F2; color: white; }
.share-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.share-fb:hover, .share-ig:hover { opacity: 0.85; transform: translateY(-1px); }

/* ==============================
   STAT CARD (Admin Dashboard)
   ============================== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.stat-card-number { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-card-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(8,15,10,0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .hero { padding: 100px 5% 60px; min-height: 85vh; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-content { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .gallery-main { height: 260px; }
  .lands-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .auth-card { padding: 1.5rem 1rem; }
  .filter-bar { flex-direction: column; }
  .stat-card-number { font-size: 2rem; }
}
