:root {
  --color-navy: #002147;
  --color-gold: #D4AF37;
  --color-marble: #F9F9F9;
  --color-green: #355E3B;
  --color-white: #FFFFFF;
  --color-text: #2C2C2C;
  --max-width: 1200px;
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--color-text);
  background: var(--color-marble);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: var(--color-navy);
  font-weight: 600;
}

/* Navigation */
nav {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 700;
}

.logo span {
  color: var(--color-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-navy);
  cursor: pointer;
}

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

.nav-links a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

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

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gold);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(rgba(0, 33, 71, 0.6), rgba(0, 33, 71, 0.6));
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  color: var(--color-white);
  z-index: 1;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.3rem;
  color: var(--color-gold);
  font-weight: 300;
}

/* Main Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-navy);
}

.intro p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}

/* Neighborhood Grid */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.neighborhood-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.neighborhood-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.neighborhood-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.card-vibe {
  font-size: 0.9rem;
  color: var(--color-green);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.card-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.price-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Sidebar Layout for Neighborhood Pages */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.75rem;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  color: var(--color-gold);
  padding-left: 0.5rem;
}

.main-content {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.main-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.vibe-tag {
  color: var(--color-green);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  display: block;
}

.neighborhood-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
}

.stat-box {
  background: linear-gradient(135deg, var(--color-navy), var(--color-green));
  color: var(--color-white);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid var(--color-gold);
}

.stat-box h3 {
  color: var(--color-gold);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: #f8f8f8;
  border-left: 4px solid var(--color-gold);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.highlight-box h4 {
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  background: var(--color-navy);
  color: var(--color-gold);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  color: #ccc;
  font-size: 0.9rem;
}

/* Quiz Page */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.quiz-question {
  margin-bottom: 2rem;
}

.quiz-question h3 {
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--color-white);
}

.quiz-option:hover {
  border-color: var(--color-gold);
  background: #fafafa;
}

.quiz-option input {
  margin-right: 1rem;
}

.quiz-submit {
  background: var(--color-navy);
  color: var(--color-gold);
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 2rem;
}

.quiz-submit:hover {
  background: var(--color-green);
  transform: translateY(-2px);
}

.quiz-result {
  display: none;
  background: linear-gradient(135deg, var(--color-navy), var(--color-green));
  color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.quiz-result h3 {
  color: var(--color-gold);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

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

.submit-btn {
  background: var(--color-navy);
  color: var(--color-gold);
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: var(--color-green);
  transform: translateY(-2px);
}

/* Lifestyle Page */
.lifestyle-section {
  margin-bottom: 3rem;
}

.lifestyle-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
  border-bottom: 3px solid var(--color-gold);
  padding-bottom: 0.5rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.amenity-card {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-gold);
}

.amenity-card h3 {
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

/* Sitemap */
.sitemap-section {
  margin-bottom: 2rem;
}

.sitemap-section h2 {
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.5rem;
}

.sitemap-list {
  list-style: none;
  padding-left: 0;
}

.sitemap-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.sitemap-list a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.3s;
}

.sitemap-list a:hover {
  color: var(--color-gold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    transition: left 0.3s;
    border-top: 3px solid var(--color-gold);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    margin-top: 0.5rem;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .intro h2 {
    font-size: 2rem;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .main-content {
    padding: 2rem;
  }

  .main-content h1 {
    font-size: 2rem;
  }

  .neighborhood-image {
    height: 250px;
  }

  .neighborhoods-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .quiz-container,
  .main-content {
    padding: 1.5rem;
  }
}