@import url('variables.css');
@import url('components/navbar.css');
@import url('components/cards.css');
@import url('components/footer.css');
@import url('animations.css');
@import url('responsive.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 2.5rem;
}

.section-tag {
    display: inline-block;
    background: var(--light-green);
    color: var(--dark-green);
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    font-weight: 700;
}

.highlight {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--light-green);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text .hero-badge {
    background: var(--card-bg);
    color: var(--dark-green);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 90%;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--main-gradient);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--card-bg);
    color: var(--text-dark);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.hero-graphic {
    background: var(--main-gradient);
    border-radius: 40px 20px 40px 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.hero-graphic i {
    font-size: 5rem;
    opacity: 0.9;
}

.hero-graphic h3 {
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* ===== VISITOR UPDATES ===== */
.updates-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.update-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.update-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.update-header h4 {
    color: var(--dark-green);
    font-size: 1.1rem;
}

.update-header small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.update-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.no-updates {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    background: var(--white);
    border-radius: 20px;
    border: 2px dashed var(--border-color);
}

/* ===== MAP LAYOUT ===== */
.map-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 100%;
    overflow: hidden;
}

/* ===== LEGEND PANEL ===== */
.legend-panel {
    background: var(--dark-green);
    padding: 1.5rem 1.2rem;
    border-radius: 20px;
    color: white;
    max-height: 500px;
    overflow-y: auto;
    width: 100%;
}

.legend-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--light-green);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.legend-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.legend-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(4px);
}

.legend-item.active {
    background: rgba(143,188,69,0.25);
}

.legend-num {
    width: 24px;
    height: 24px;
    background: #cc2200;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.legend-text {
    font-size: 0.75rem;
    color: #d8f0d8;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-divider {
    height: 1px;
    background: rgba(143,188,69,0.3);
    margin: 10px 0;
}

.legend-extras {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.legend-extra {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #b8e6b8;
    font-size: 0.72rem;
    font-weight: 700;
}

.legend-extra-icon {
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.15);
    border: 2px solid #8fbc45;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    font-weight: 900;
}

/* ===== MAP AREA CONTAINMENT ===== */
.map-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(160deg, #e8f5e0, #d4edcc 60%, #c8e8c0);
    border-radius: 16px;
    min-height: 450px;
    max-height: 500px;
    border: 4px solid var(--primary-green);
}

.map-wrap svg.map-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transform-origin: 0 0;
    transition: transform 0.05s ease-out;
}

/* ===== MAP ELEMENTS ===== */
.park-boundary {
    position: absolute;
    inset: 12px;
    border: 3px dashed rgba(45,122,45,0.4);
    border-radius: 20px 20px 60px 60px;
    pointer-events: none;
    z-index: 1;
}

.compass {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    border: 3px solid var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 5;
}

.compass-labels {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-n {
    position: absolute;
    top: 5px;
    font-size: 0.6rem;
    font-weight: 900;
    color: #cc2200;
}

.compass-s {
    position: absolute;
    bottom: 5px;
    font-size: 0.6rem;
    font-weight: 900;
    color: #1a4a1a;
}

.trees {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #5ab55a, #2d7a2d);
    box-shadow: inset -4px -4px 8px rgba(0,0,0,0.2), 0 3px 8px rgba(0,0,0,0.15);
}

.water {
    position: absolute;
    background: radial-gradient(ellipse, #7ec8e3, #5ba3c9);
    border-radius: 50%;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.map-path {
    position: absolute;
    background: #f5f0d8;
    border: 1px solid #d4c88a;
}

.building {
    position: absolute;
    background: linear-gradient(135deg, #f5e6c8, #e8d4a8);
    border: 2px solid #c8a060;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: #6a4010;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    z-index: 3;
}

.zipline {
    position: absolute;
    height: 3px;
    background: repeating-linear-gradient(
        to right, #c0a000 0px, #c0a000 8px, transparent 8px, transparent 14px
    );
    transform-origin: left center;
    z-index: 4;
}

/* ===== PINS ===== */
.pin {
    position: absolute;
    width: 28px;
    height: 28px;
    background: #cc2200;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 10;
}

.pin:hover, .pin.active {
    transform: rotate(-45deg) scale(1.3);
    box-shadow: 0 6px 16px rgba(204,34,0,0.5);
}

.pin-inner {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 900;
    color: #cc2200;
    transform: rotate(45deg) translate(-35%, -35%);
}

/* ===== INFO PANEL ===== */
.info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(20,60,20,.93);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    border: 1px solid rgba(143,188,69,.5);
    transform: translateY(120%);
    opacity: 0;
    transition: all .3s ease;
    z-index: 20;
}

.info-panel.show {
    transform: translateY(0);
    opacity: 1;
}

.info-panel-name { color: #8fbc45; font-weight: 700; margin-bottom: 4px; }
.info-panel-desc { color: #c8e6c8; font-size: 0.9rem; line-height: 1.4; }
.info-close {
    position: absolute; top: 6px; right: 10px;
    background: none; border: none;
    color: #8fbc45; font-size: 1.2rem; cursor: pointer;
}

/* ===== IMAGE VIEWER ===== */
.image-viewer {
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.viewer-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.image-container {
    flex: 1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 10px;
    border: 2px dashed var(--border-color);
    padding: 0.5rem;
}

#currentImage {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    display: none;
}

.image-placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
}

.nav-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.nav-btn:hover { background: var(--dark-green); transform: scale(1.05); }
.nav-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== MAP CONTROLS ===== */
.map-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 20;
}

.map-control-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.3s;
    color: var(--text-dark);
}

.map-control-btn:hover {
    background: var(--primary-green);
    color: white;
}

@keyframes float {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-3px); }
}

.pin:hover {
    animation: float 1s ease-in-out infinite;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-body {
    background: var(--main-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 480px;
}

.login-card {
    background: var(--white);
    border-radius: 40px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeSlideUp 0.8s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.login-logo i {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.login-logo h2 {
    font-size: 1.8rem;
    color: var(--dark-green);
}

.login-logo h2 span {
    color: var(--primary-green);
    font-weight: 300;
}

.login-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-green);
}

.form-group input {
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(109, 187, 60, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.remember-me input {
    accent-color: var(--primary-green);
}

.forgot-password {
    color: var(--primary-green);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 50px;
    margin-top: 0.5rem;
}

.login-btn i {
    margin-right: 0.5rem;
}

.login-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    animation: fadeSlideUp 0.3s ease;
}

.login-error.hidden {
    display: none;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: 0.3s;
}

.login-footer a:hover {
    color: var(--primary-green);
}

.login-footer i {
    margin-right: 0.5rem;
}

/* ===== PASSWORD TOGGLE ===== */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    padding-right: 50px !important;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-color);
    box-sizing: border-box;
}

.password-input-container input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(109, 187, 60, 0.15);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-light);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.toggle-password:hover {
    color: var(--primary-green);
    background: var(--card-bg);
}

/* ===== ADMIN SECTION ===== */
.admin-section {
    padding: 4rem 0;
    background: var(--white);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2rem 0;
}

.admin-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 30px;
}

.admin-form h4 {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    margin: 0.5rem 0 1rem;
    font-size: 1rem;
    transition: 0.3s;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(109, 187, 60, 0.15);
}

.admin-database {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 30px;
}

.admin-database h4 {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.db-item {
    background: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.db-item span {
    font-weight: 500;
}

.db-item small {
    color: var(--text-light);
}

/* ===== DELETE BUTTON ===== */
.btn-delete {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* ===== LOGOUT BUTTON ===== */
.btn-logout {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.btn-logout i {
    font-size: 0.9rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.about-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 40px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}