/* public/css/main.css — Lease-A-Dock Design System */

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

:root {
  /* Florida coastal palette — deep water navy, Gulf teal, warm sand */
  --navy:      #07192e;
  --navy-mid:  #0d2d4f;
  --teal:      #0891b2;
  --teal-light:#22d3ee;
  --teal-dark: #0e7490;
  --gold:      #f59e0b;
  --coral:     #f97316;
  --sand:      #fdf8f0;
  --sand-dark: #f5ede0;
  --white:     #ffffff;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
  --danger:    #ef4444;
  --success:   #10b981;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(7,25,46,0.10);
  --shadow-lg: 0 12px 40px rgba(7,25,46,0.18);
  --transition: all 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAVBAR ─────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 25, 46, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 68px;
  display: flex; align-items: center;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--white);
  display: flex; align-items: center; gap: 10px;
}
.navbar-logo span { color: var(--teal-light); }
.navbar-logo .anchor-icon { font-size: 1.3rem; }
.navbar-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  color: rgba(255,255,255,0.8);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-btn {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
}
.nav-btn:hover { background: var(--teal-light) !important; }
.nav-btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
}
.nav-btn-outline:hover { border-color: var(--white) !important; }

/* ── HERO ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(165deg, rgba(7,25,46,0.82) 0%, rgba(8,60,100,0.72) 50%, rgba(8,100,130,0.65) 100%),
    url('https://images.unsplash.com/photo-1567899378494-47b22a2ae96a?w=1200&q=60&fm=webp&auto=format') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 120px 24px 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-waves {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,145,178,0.2); border: 1px solid rgba(8,145,178,0.4);
  color: var(--teal-light); padding: 6px 16px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; color: var(--white);
  line-height: 1.1; margin-bottom: 20px;
}
.hero h1 em { color: var(--teal-light); font-style: normal; }
.hero p {
  color: rgba(255,255,255,0.75); font-size: 1.15rem;
  max-width: 520px; margin: 0 auto 40px;
}

/* ── SEARCH BAR ─────────────────────────────────────────────────────── */
.search-bar {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 640px; margin: 0 auto;
}
.search-bar input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--gray-800);
}
.search-bar input::placeholder { color: var(--gray-400); }
.search-bar select {
  border: none; outline: none; background: transparent;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--gray-600);
  padding: 0 8px; border-left: 1px solid var(--gray-200);
}
.btn-search {
  background: var(--teal);
  color: var(--white); border: none;
  padding: 12px 24px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-search:hover { background: var(--teal-light); transform: translateY(-1px); }

/* ── SECTIONS ───────────────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy); margin-bottom: 12px;
}
.section-header p { color: var(--gray-600); font-size: 1.05rem; max-width: 480px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}

/* ── HOW IT WORKS ───────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-card {
  text-align: center; padding: 40px 24px;
  background: var(--sand); border-radius: var(--radius);
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 20px;
}
.step-num {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--teal); letter-spacing: 0.05em; margin-bottom: 4px;
}
.step-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.step-card p  { font-size: 0.9rem; color: var(--gray-600); }

/* ── LISTING CARDS ──────────────────────────────────────────────────── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.listing-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--gray-200);
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-card-img {
  height: 200px; background: var(--gray-100);
  position: relative; overflow: hidden;
}
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.listing-card:hover .listing-card-img img { transform: scale(1.04); }
.listing-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--navy); color: var(--white);
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.listing-card-body { padding: 20px; }
.listing-card-loc { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 4px; }
.listing-card-title { font-weight: 600; font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.listing-card-meta { display: flex; gap: 12px; font-size: 0.82rem; color: var(--gray-600); margin-bottom: 12px; }
.listing-card-footer { display: flex; align-items: center; justify-content: space-between; }
.listing-card-price { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.listing-card-price span { font-size: 0.8rem; font-weight: 400; color: var(--gray-400); }
.listing-card-rating { font-size: 0.85rem; color: var(--gold); display: flex; align-items: center; gap: 4px; }
.listing-card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d3b5e 0%, #0d9488 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

/* ── STATS BAR ──────────────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 60px 24px;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; text-align: center; }
.stat-item h3 {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  color: var(--teal-light); margin-bottom: 4px;
}
.stat-item p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ── CTA SECTION ────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, #0a8a80 100%);
  padding: 80px 24px; text-align: center; color: var(--white);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px;
}
.cta-section p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  border: none; transition: var(--transition);
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,148,136,0.35); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
.btn-danger { background: var(--danger); color: var(--white); }

/* ── FOOTER ─────────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 60px 24px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand h3 {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--white); margin-bottom: 12px;
}
.footer-brand h3 span { color: var(--teal-light); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.87rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: 1200px; margin: 24px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}

/* ── FORMS ──────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--gray-800);
  transition: border-color 0.2s; outline: none;
}
.form-control:focus { border-color: var(--teal); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── ALERTS ─────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 16px;
}
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }

/* ── MODAL ──────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.2rem;
  color: var(--gray-400); cursor: pointer;
}
.modal-close:hover { color: var(--gray-800); }
.modal h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 8px; }
.modal p  { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 24px; }

/* ── LOADING ────────────────────────────────────────────────────────── */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── STAR RATING ────────────────────────────────────────────────────── */
.stars { color: var(--gold); letter-spacing: 2px; }

/* ── UTILITIES ──────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .gap-2 { gap: 16px; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(7,25,46,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 4px;
  }
  .navbar-links.open { display: flex; }
  .navbar-links .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: block;
  }
  .navbar-links .nav-btn,
  .navbar-links .nav-btn-outline {
    text-align: center;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .search-bar { border-radius: var(--radius); flex-wrap: wrap; }
  .search-bar select { border-left: none; border-top: 1px solid var(--gray-200); width: 100%; padding: 8px 0; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
