/* ==========================================================================
   REBUILD BENGAL - LAND BANK PORTAL DESIGN SYSTEM
   Theme: Bengal Teal & Deep Navy Glassmorphism Real Estate UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #070D17;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(30, 41, 59, 0.88);
  --bg-glass: rgba(14, 165, 233, 0.05);
  
  --bengal-blue: #0E4B82;
  --bengal-teal: #0284C7;
  --cyan-400: #38BDF8;
  --cyan-500: #06B6D4;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-900: #064E3B;
  --emerald-glow: rgba(56, 189, 248, 0.35);

  --amber-500: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.35);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-sub: #CBD5E1;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-emerald: rgba(56, 189, 248, 0.3);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-glow: 0 10px 30px -10px rgba(56, 189, 248, 0.35);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 10%, rgba(14, 75, 130, 0.35) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(15, 23, 42, 0.85) 0px, transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--cyan-400);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #FFF;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--cyan-400) 50%, var(--emerald-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, var(--cyan-400) 0%, var(--emerald-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-emerald);
}

.glass-panel-glow {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-emerald);
  box-shadow: var(--shadow-glow);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 2rem;
}

.navbar-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #FFF;
}

.brand-logo img, img.brand-logo-img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 3px 6px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition-smooth);
}

.brand-logo img:hover, img.brand-logo-img:hover {
  transform: scale(1.04);
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-sub);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: #FFF;
  background: rgba(255, 255, 255, 0.05);
}

.whatsapp-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFF !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
}

.whatsapp-btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid var(--border-emerald);
  color: var(--cyan-400);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

/* Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan-400);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Control Filter Bar */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 1.5rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 992px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-light);
  color: #FFF;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan-400);
  box-shadow: 0 0 12px var(--emerald-glow);
}

select.form-control option {
  background: #0F172A;
  color: #FFF;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bengal-blue) 0%, var(--bengal-teal) 100%);
  color: #FFF;
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--emerald-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--bengal-teal) 0%, var(--cyan-400) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--emerald-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-emerald);
  color: var(--cyan-400);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #FFF;
}

.btn-danger {
  background: #EF4444;
  color: #FFF;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-danger:hover {
  background: #DC2626;
}

/* Category Filter Chips */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.chip {
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.chip:hover, .chip.active {
  background: var(--bengal-blue);
  border-color: var(--cyan-400);
  color: #FFF;
  box-shadow: 0 4px 12px var(--emerald-glow);
}

/* Land Cards Grid */
.lands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.land-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
}

.land-card-img-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.land-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.land-card:hover .land-card-img {
  transform: scale(1.06);
}

.land-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 13, 23, 0.85);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
}

.status-available { color: var(--emerald-400); border-color: var(--emerald-400); }
.status-negotiation { color: var(--amber-500); border-color: var(--amber-500); }
.status-leased { color: var(--text-muted); }

.land-card-price {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--bengal-teal) 0%, var(--cyan-500) 100%);
  color: #FFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.land-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.land-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.land-card-location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Specs Row */
.land-specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-val {
  font-weight: 700;
  color: #FFF;
}

.spec-lbl {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Suitable Categories Badges */
.suitable-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.suitable-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid var(--border-emerald);
  color: var(--cyan-400);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.land-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Land Detail Page */
.detail-header {
  padding: 3rem 1.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-view {
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.main-image-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumb-img {
  width: 100px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}

.thumb-img.active, .thumb-img:hover {
  border-color: var(--cyan-400);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  border: 1px solid var(--border-light);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-container {
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid var(--border-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sidebar Inquiry Form */
.inquiry-sidebar {
  position: sticky;
  top: 100px;
  padding: 1.75rem;
}

.inquiry-whatsapp-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(18, 140, 126, 0.15) 100%);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.inquiry-whatsapp-card i {
  font-size: 2.5rem;
  color: #25D366;
  margin-bottom: 10px;
}

/* Admin Dashboard Table */
.admin-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.admin-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
  padding: 14px 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Flash Toast Notifications */
.flash-messages {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 1.5rem;
}

.alert {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success { background: rgba(56, 189, 248, 0.2); border: 1px solid var(--cyan-400); color: #FFF; }
.alert-warning { background: rgba(245, 158, 11, 0.2); border: 1px solid var(--amber-500); color: #FFF; }
.alert-danger { background: rgba(239, 68, 68, 0.2); border: 1px solid #EF4444; color: #FFF; }
.alert-info { background: rgba(6, 182, 212, 0.2); border: 1px solid var(--cyan-500); color: #FFF; }

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 1.5rem;
  background: rgba(7, 13, 23, 0.95);
  text-align: center;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
