/* Enhanced Waterfall Directory - CSS with Taller Maps */

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

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    color: #1e3a2e;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2e 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #7fb069;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3a2e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.state-dropdown {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 250px;
    background: white;
    color: #2c3e50;
}

.explore-btn, .btn-primary {
    background: #7fb069;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.explore-btn:hover, .btn-primary:hover {
    background: #6a9c54;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-secondary {
    background: transparent;
    color: #2d5a3d;
    border: 2px solid #2d5a3d;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #2d5a3d;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #7fb069;
    border: 2px solid #7fb069;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #7fb069;
    color: white;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    margin: 4rem 0;
}

.text-center {
    text-align: center;
}

/* Waterfall Grid */
.waterfall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.waterfall-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.waterfall-card.compact .waterfall-info {
    padding: 1rem;
}

.waterfall-card.compact h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Image Placeholders */
.waterfall-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.waterfall-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.waterfall-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.waterfall-state {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.waterfall-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem;
    z-index: 3;
}

.waterfall-overlay h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.waterfall-info {
    padding: 1.5rem;
}

.location {
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.waterfall-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.waterfall-meta span {
    background: #f0f8f0;
    color: #2d5a3d;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
}

.difficulty {
    background: #e8f4fd;
    color: #1976d2;
}

.accessibility {
    background: #f3e5f5;
    color: #7b1fa2;
}

.peak-season {
    background: #fff3e0;
    color: #f57c00;
}

.rating {
    background: #fff8e1;
    color: #f9a825;
}

.description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* State Grid */
.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.state-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.state-card:hover {
    transform: translateY(-5px);
}

.state-count {
    font-size: 2.5rem;
    font-weight: bold;
    color: #7fb069;
    margin: 1rem 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Content Sections */
.content-section, .all-waterfalls, .featured-waterfalls, .explore-states {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 3rem 0;
}

/* Map Styles - TALLER MAPS */
.map-container {
    width: 100%;
    height: 600px; /* INCREASED from 400px */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.individual-map {
    height: 400px; /* INCREASED from 300px */
}

/* Footer */
.footer {
    background: #1e3a2e;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    
    .state-dropdown {
        width: 100%;
        max-width: 300px;
    }
    
    .waterfall-grid {
        grid-template-columns: 1fr;
    }
    
    .compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .state-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .map-container {
        height: 400px; /* INCREASED for mobile */
    }
    
    .individual-map {
        height: 300px; /* INCREASED for mobile */
    }
}

html {
    scroll-behavior: smooth;
}