/* Basil Real Estate - Modern Premium Design */

:root {
  /* Brand Colors */
  --basil-green: #00C853;
  --deep-green: #00A844;
  --mint: #69F0AE;
  --green-tint: #E8F5E9;
  --pure-black: #000000;
  --near-black: #0A0A0A;
  --dark-card: #121212;
  --elevated: #1A1A1A;
  --off-white: #FAFAFA;
  --white: #FFFFFF;
  --accent-coral: #FF6B6B;
  --accent-orange: #FF8A3D;
  --muted-gray: #9E9E9E;
  --dark-gray: #666666;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--pure-black);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 64px;
  font-weight: 800;
}
h2 {
  font-size: 42px;
  font-weight: 700;
}
h3 {
  font-size: 28px;
  font-weight: 600;
}
h4 {
  font-size: 20px;
  font-weight: 600;
}

p { margin-bottom: 1rem; }

a {
  color: var(--basil-green);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--mint);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.95);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

nav .logo-icon-img {
  width: 36px;
  height: 36px;
  display: block;
}

nav .logo-text {
  font-family: 'Georgia', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: flex;
  flex-direction: column;
}

nav .logo-text-light {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-gray);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

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

nav .nav-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--basil-green);
  transition: width 0.3s ease;
}

nav .nav-links a:hover {
  color: var(--white);
}

nav .nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--basil-green) 0%, var(--deep-green) 100%);
  color: var(--pure-black);
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 200, 83, 0.4);
  color: var(--pure-black);
}

.btn-secondary {
  background: rgba(255, 138, 61, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 138, 61, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 138, 61, 0.2);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 138, 61, 0.2);
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 0 2rem;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%); /* Subtle radial gradient fallback */
}

#hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Behind the container */
  opacity: 0.6; /* Subtle blend */
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 700;
}

.hero .tagline {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 3rem 0;
  position: relative;
}

section.dark {
  background: linear-gradient(180deg, var(--pure-black) 0%, var(--dark-card) 50%, var(--pure-black) 100%);
}

section.elevated {
  background: linear-gradient(180deg, var(--dark-card) 0%, var(--elevated) 50%, var(--dark-card) 100%);
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.02) 0%, var(--pure-black) 50%, rgba(255, 138, 61, 0.02) 100%);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cards */
.card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 200, 83, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}

.card:nth-child(odd) h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--basil-green);
  margin-right: 12px;
  border-radius: 2px;
}

.card:nth-child(even) h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent-orange);
  margin-right: 12px;
  border-radius: 2px;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.form-group label .required {
  color: var(--coral);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 16px;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(8px);
  color: var(--white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--basil-green);
  background: rgba(26, 26, 26, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-admin { background: var(--basil-green); color: var(--pure-black); }
.badge-agent { background: var(--dark-gray); color: var(--white); }
.badge-success { background: var(--deep-green); color: var(--white); }
.badge-warning { background: var(--warm-gold); color: var(--pure-black); }
.badge-danger { background: var(--coral); color: var(--white); }
.badge-new { background: var(--mint); color: var(--pure-black); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  overflow: hidden;
}

table thead {
  background: rgba(26, 26, 26, 0.8);
}

table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

table td {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

table tr {
  transition: background 0.2s ease;
}

table tr:hover {
  background: rgba(0, 200, 83, 0.03);
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  backdrop-filter: blur(8px);
}

.alert-success {
  background: rgba(0, 200, 83, 0.1);
  border-color: var(--basil-green);
  color: var(--mint);
}

.alert-error {
  background: rgba(255, 107, 107, 0.1);
  border-color: var(--coral);
  color: var(--coral);
}

.alert-info {
  background: rgba(255, 183, 77, 0.1);
  border-color: var(--warm-gold);
  color: var(--warm-gold);
}

/* Footer */
footer {
  background: var(--dark-card);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 6rem;
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

footer .footer-section h4 {
  color: var(--basil-green);
  margin-bottom: 1.5rem;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

footer .footer-section ul {
  list-style: none;
}

footer .footer-section ul li {
  margin-bottom: 0.75rem;
}

footer .footer-section a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

footer .footer-section a:hover {
  color: var(--basil-green);
}

footer .footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Stats Display (for admin dashboard) */
.card .stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--basil-green) 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: block;
}

/* Search Bar */
.search-bar {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 700px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.search-bar:hover {
  border-color: rgba(0, 200, 83, 0.2);
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.1);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: rgba(255, 255, 255, 0.6); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }

/* Glassmorphism effect */
.glass {
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Section Transitions */
section + section {
  margin-top: -2rem;
}

/* Gradient overlays between sections */
.dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, var(--pure-black) 0%, transparent 100%);
  z-index: 1;
}

.dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, var(--pure-black) 100%);
  z-index: 1;
}

.dark .container {
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }

  .hero {
    min-height: 75vh;
    padding: 4rem 0 2rem;
  }

  .hero h1 { font-size: 42px; }
  .hero .tagline { font-size: 18px; }

  nav .nav-links {
    gap: 1rem;
    font-size: 14px;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 0;
  }

  .card {
    padding: 1.5rem;
  }

  .property-carousel {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 36px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--pure-black);
}

::-webkit-scrollbar-thumb {
  background: var(--elevated);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--basil-green);
}

/* Loading animation */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 200, 83, 0.1) 50%, transparent 100%);
  background-size: 1000px 100%;
}
