:root {
    --forest-green: #2d5a27;
    --forest-dark: #1a3518;
    --forest-light: #4a7c43;
    --earth-brown: #8b5a2b;
    --cream: #f5f5dc;
    --light-green: #e8f5e9;
    --moss: #3d5c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
}

.bg-forest {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-green) 100%);
}

.bg-forest-gradient {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-green) 50%, var(--forest-light) 100%);
}

.bg-light-green {
    background-color: var(--light-green);
}

.text-forest {
    color: var(--forest-green);
}

.btn-forest {
    background-color: var(--forest-green);
    border-color: var(--forest-green);
    color: white;
}

.btn-forest:hover {
    background-color: var(--forest-dark);
    border-color: var(--forest-dark);
    color: white;
}

.btn-outline-forest {
    color: var(--forest-green);
    border-color: var(--forest-green);
}

.btn-outline-forest:hover,
.btn-outline-forest.active {
    background-color: var(--forest-green);
    border-color: var(--forest-green);
    color: white;
}

.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    /*background: url('/trails/static/defaultImage.jpg') center/cover no-repeat;*/
    background: url('/trails/static/defaultImage.jpg') center/cover;
    background-repeat: no-repeat;
    /* background-size: auto;*/
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 53, 24, 0.45) 0%, rgba(45, 90, 39, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.trail-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.trail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.trail-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

.trail-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

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

.species-card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.species-card:hover {
    transform: scale(1.02);
}

.feature-card {
    background: white;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-green);
    border-radius: 50%;
}

.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top right, #fafafa 50%, transparent 50%);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.4rem;
}

.observation-item {
    border-left: 3px solid var(--forest-green);
}

.poi-card {
    transition: background-color 0.3s ease;
}

.poi-card:hover {
    background-color: var(--light-green) !important;
}

.chat-bubble {
    max-width: 85%;
}

.avatar-placeholder {
    font-weight: bold;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.observation-list {
    max-height: 500px;
    overflow-y: auto;
}

.trail-users-list {
    max-height: 200px;
    overflow-y: auto;
}

footer {
    background: var(--forest-dark);
    color: white;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

footer .address-text{
    text-align: justify;
}

footer iframe{
    width: -webkit-fill-available;
    height: 15rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.footer-logo:hover {
    color: var(--light-green);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.social-link {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    margin: .5em;
}

.social-link:hover {
    color: var(--light-green);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header.bg-forest {
    border-bottom: none;
}

.table th {
    border-top: none;
    color: var(--forest-green);
}

@media (max-width: 768px) {
    .hero-section {
        height: 90vh;
        min-height: 400px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        margin-bottom: 5px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-green);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-dark);
}
