/* =========================
    GLOBAL STYLES & RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: Georgia, 'Segoe UI', serif;
    background-color: #1F3D2B; /* Dark Green */
    color: #F4F1E8; /* Off-white/Cream */
    margin-bottom: 60px;
}

/* =========================
    NAVBAR & NAVIGATION
========================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    background-color: #355E3B;
    border-bottom: 3px solid #7FB069;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

    .nav-links a {
        color: #F4F1E8 !important;
        text-decoration: none;
        font-size: 18px;
        transition: color 0.3s ease;
    }

        .nav-links a:hover {
            color: #D4A373; /* Tan/Gold hover */
        }

/* Fixes vertical stacking of LoginPartial links */
.navbar div:last-child ul {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* =========================
    HOME PAGE HERO IMAGE
========================= */
.hero-image {
    display: block;
    margin: 30px auto;
    max-width: 800px;
    width: 90%;
    height: auto;
    border-radius: 15px;
    border: 3px solid #7FB069;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =========================
    TYPOGRAPHY
========================= */
h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 42px;
    color: #F4F1E8;
}

p {
    text-align: center;
    font-size: 18px;
    max-width: 700px;
    margin: 20px auto;
    line-height: 1.6;
}

/* =========================
    FORMS & INPUTS
========================= */
input[type=text],
input[type=password],
input[type=email],
select,
textarea,
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 6px;
    margin-bottom: 16px;
    background-color: white;
    color: #333;
}

.btn-primary {
    background-color: #7FB069 !important;
    border: none !important;
    color: white !important;
    padding: 12px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

    .btn-primary:hover {
        background-color: #5f8f4f !important;
    }

/* =========================
    IDENTITY / LOGIN CARD FIX
========================= */
#account, .card, .login-container {
    color: #1F3D2B; /* Dark text inside the white card */
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

    #account h2, #account h4, .form-label, .form-check-label {
        color: #1F3D2B !important;
        text-align: left;
    }

/* =========================
    ADMIN / CRUD TABLES
========================= */
.table {
    width: 100%;
    background-color: #F4F1E8;
    color: #1F3D2B;
    border-radius: 8px;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

    .table thead {
        background-color: #7FB069;
        color: white;
    }

    .table th, .table td {
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .table a {
        color: #355E3B;
        font-weight: bold;
        margin-right: 10px;
        text-decoration: none;
    }

        .table a:hover {
            color: #7FB069;
            text-decoration: underline;
        }

/* =========================
    MAP & GALLERY
========================= */
#map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 2px solid #7FB069;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 40px auto;
}

    .image-grid img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 12px;
    }

/* =========================
    FOOTER
========================= */
.footer {
    background-color: #355E3B;
    color: #F4F1E8;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: absolute;
    bottom: 0;
}

    .footer a {
        color: #D4A373;
    }

/* =========================
    RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}
