/* css/style.css */

/* --- 1. Color Palette & Variables --- */
:root {
    --zville-green: #004d40;
    --zville-brick: #8C271E;
    --zville-cream: #FDF8F0;
    --zville-gold: #D4A017;
    
    /* Bootstrap Overrides */
    --bs-body-bg: var(--zville-cream);
    --bs-link-color: var(--zville-green);
    --bs-link-hover-color: var(--zville-brick);
}

/* --- 2. Typography & Base --- */
body {
    background-color: var(--zville-cream);
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--zville-brick);
}



/* Header and Navigation */
header.site-header {
    font-family: 'Merriweather', Georgia, serif;
    border-bottom-color: var(--zville-gold) !important;
    border-bottom-width: 3px !important;
}

header hgroup {
  margin-top: 5px;
}

header h1 a span {
  color: var(--zville-gold);
}

h2.accent {
  border-bottom: 2px solid var(--zville-gold);
  padding-bottom: 10px;
  margin-bottom: 20px;
}


header.site-header hgroup h1,
header.site-header hgroup h2 {
  margin-bottom: 0;
  line-height: 1.2;
}

header.site-header hgroup h1 a {
  text-decoration: none;
  font-size: 2.5rem;
  color: var(--bs-body-color);
  font-weight: 400;
}
header.site-header hgroup h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #666;
}

.site-logo {
  height: 50px;
  margin-right: 15px;
}




/* --- Navigation --- */
.navbar-nav .nav-link {
    color: var(--zville-green);
    font-size: 1.1rem;
}

.navbar-nav .nav-link.active {
    color: var(--zville-brick) !important;
    font-weight: bold;
}

.dropdown-item:hover {
    color: var(--zville-brick);
    background-color: #f8f9fa;
}

.dropdown-item.active, 
.dropdown-item:active {
    color: #fff;
    background-color: var(--zville-green);
}




/* ---  Component Overrides --- */
.btn-primary {
    --bs-btn-bg: var(--zville-green);
    --bs-btn-border-color: var(--zville-green);
    --bs-btn-hover-bg: var(--zville-brick);
    --bs-btn-hover-border-color: var(--zville-brick);
    --bs-btn-active-bg: var(--zville-brick);
    --bs-btn-active-border-color: var(--zville-brick);
}





/* --- Page Specific Styles --- */

/* Home Page Hero - COMPACT UPDATE */
.home-hero {
    background: linear-gradient(135deg, var(--zville-green) 0%, #00332a 100%);
    color: white;
    padding: 2.5rem 2rem; /* Reduced padding for compactness */
    border-radius: 0.5rem;
    border-bottom: 5px solid var(--zville-gold);
}

.home-hero h1, .home-hero p {
    color: white;
}

.home-hero .btn-light {
    color: var(--zville-green);
    font-weight: bold;
}

/* Subdivision List Cards */
.subdivision-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid var(--zville-green);
}

.subdivision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)!important;
}

.subdivision-card h3 a {
    color: var(--zville-brick);
}

.badge-amenity {
    background-color: var(--zville-green) !important;
    font-weight: normal;
}

/* Subdivision Detail Page - Header Badges */
.subdivision-header-badge {
    background-color: var(--zville-gold);
    color: #333;
    font-weight: 600;
}

/* Subdivision Detail Page - Sidebar */
.card-sidebar {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.card-sidebar .card-header {
    background-color: var(--zville-green);
    border-bottom: none;
    padding: 1rem 1.25rem;
    font-family: 'Merriweather', serif;
}

/* Force white text in sidebar headers */
.card-sidebar .card-header h5, 
.card-sidebar .card-header .h5 {
    color: white !important;
    margin-bottom: 0;
}

.card-sidebar .card-body {
    background-color: #fff;
    padding: 1.25rem;
}

/* Detail Lists (Key Stats, etc) */
.detail-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.detail-list li:last-child {
    border-bottom: none;
}
.detail-label {
    color: #666;
    font-size: 0.95rem;
}
.detail-value {
    font-weight: 600;
    color: #333;
    text-align: right;
}

/* Amenity Icons */
.amenity-icon-box {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.amenity-icon-circle {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 77, 64, 0.1); /* zville-green opacity */
    color: var(--zville-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}
.amenity-text {
    line-height: 1.2;
}

/* Map Overrides */
#subdivisionMap:fullscreen {
    height: 100% !important;
    width: 100% !important;
}

/* Content Page Styling */
.content-item {
    border-left: 4px solid var(--zville-brick);
}

/* Helper Classes */
.text-zville-green { color: var(--zville-green) !important; }
.text-zville-brick { color: var(--zville-brick) !important; }
.bg-zville-green { background-color: var(--zville-green) !important; }
.bg-zville-brick { background-color: var(--zville-brick) !important; }




/* --- Subdivision Hero Section --- */
.sub-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 8px; /* Matches bootstrap rounded class */
    overflow: hidden;
    color: #fff;
    /* Ensure it has a background color if image fails to load */
    background-color: var(--zville-green); 
}

.sub-hero-overlay {
    /* Dark gradient overlay to ensure text readability on any image */
    background: linear-gradient(to right, rgba(0, 77, 64, 0.9), rgba(0, 77, 64, 0.6), rgba(0,0,0,0.1));
    width: 100%;
    height: 100%;
    /* Padding defines the height - it grows with content */
    padding: 3rem 2rem; 
}

/* Override text colors specifically inside the hero */
.sub-hero h1, 
.sub-hero h2 {
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.sub-hero .text-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* .sub-hero .text-dark {
    color: #fff !important;
} */

/* Adjust the icon colors in the hero to pop against dark bg */
.sub-hero .bi-geo-alt-fill {
    color: var(--zville-gold) !important;
}

/* --- Mobile Header Fixes --- */
@media (max-width: 576px) {
    /* Shrink the logo slightly */
    .site-logo {
        height: 40px;
        margin-right: 10px;
    }

    /* Reduce Title Size */
    header.site-header hgroup h1 a {
        font-size: 2.0rem; /* Reduced from 2.5rem */
    }
    
    /* Ensure the header container doesn't add too much height */
    header.site-header hgroup {
        margin-top: 0;
    }
}