*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html {
    scroll-behavior: smooth;
}

body{
    background:url("../images/cemetery-bg.jpg") no-repeat center center/cover;
    min-height:100vh;
    overflow:hidden;
}

.cemetery-location-marker {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #0f766e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.map-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.map-controls span {
    color: #555;
    font-size: 0.9rem;
}

.overlay{
    position:fixed;
    inset:0;
    background:rgba(10,35,20,.72);
}

.container{
    position:relative;
    display:flex;
    height:100vh;
    z-index:2;
}

/* ===========================
LEFT PANEL
=========================== */

.left-panel{
    width:50%;
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:70px;
}

.logo i{
    font-size:70px;
    color:#C9A227;
    margin-bottom:15px;
}

.logo h1{
    font-size:40px;
    font-weight:700;
}

.logo p{
    margin-top:10px;
    font-size:18px;
    opacity:.9;
    line-height:1.7;
}

.description{
    margin-top:60px;
}

.description h2{
    font-size:32px;
    margin-bottom:15px;
}

.description p{
    width:80%;
    line-height:1.9;
    font-size:16px;
    opacity:.9;
}

/* ===========================
RIGHT PANEL
=========================== */

.right-panel{
    width:50%;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* ===========================
CARD
=========================== */

.card{

    width:430px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.25);

    border-radius:20px;

    padding:40px;

    color:#fff;

    box-shadow:0 15px 40px rgba(0,0,0,.35);

}

.card h2{
    text-align:center;
    margin-bottom:8px;
}

.card p{
    text-align:center;
    opacity:.9;
    margin-bottom:30px;
}

/* ===========================
ROLE CARD
=========================== */

.role{

    background:#fff;

    color:#1B5E20;

    border-radius:15px;

    padding:22px;

    margin-bottom:20px;

    cursor:pointer;

    transition:.35s;

    text-align:center;

}

.role:hover{

    transform:translateY(-8px);

    background:#1B5E20;

    color:#fff;

    box-shadow:0 12px 25px rgba(0,0,0,.25);

}

.role i{

    font-size:42px;

    margin-bottom:12px;

}

.role h3{

    margin-bottom:10px;

}

.role span{

    font-size:14px;

    line-height:1.6;

}

/* ===========================
BACK BUTTON
=========================== */

.backBtn{

    background:none;

    border:none;

    color:white;

    cursor:pointer;

    margin-bottom:20px;

    font-size:15px;

}

.backBtn:hover{

    color:#C9A227;

}

/* ===========================
INPUTS
=========================== */

.inputBox{

    display:flex;

    align-items:center;

    background:white;

    border-radius:10px;

    margin-bottom:18px;

    padding:14px;

}

.inputBox i{

    color:#1B5E20;

    margin-right:12px;

}

.inputBox input{

    border:none;

    outline:none;

    width:100%;

    font-size:15px;

}

/* ===========================
LOGIN BUTTON
=========================== */

.loginButton{

    width:100%;

    padding:15px;

    border:none;

    border-radius:10px;

    background:#1B5E20;

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.loginButton:hover{

    background:#2E7D32;

}

/* ===========================
RESPONSIVE
=========================== */

@media(max-width:900px){

.container{

    flex-direction:column;

}

.left-panel{

    width:100%;

    height:40vh;

    text-align:center;

    padding:40px;

}

.description p{

    width:100%;

}

.right-panel{

    width:100%;

    height:60vh;

}

.card{

    width:90%;

}

} 

/* ==========================================
   ADMIN DASHBOARD
========================================== */

.dashboard-body{
    background:#f4f7fa;
    overflow-x:hidden;
    overflow-y:auto;
}

/* SIDEBAR */

.sidebar{
    position:fixed;
    left:0;
    top:0;
    width:260px;
    height:100vh;
    background:#14532D;
    color:#fff;
    padding:25px;
    box-shadow:5px 0 20px rgba(0,0,0,.08);
}

.sidebar-logo{
    text-align:center;
    margin-bottom:40px;
}

.sidebar-logo i{
    font-size:45px;
    color:#C9A227;
}

.sidebar-logo h2{
    margin-top:10px;
    font-size:24px;
}

.sidebar-logo p{
    opacity:.8;
    font-size:14px;
}

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    margin-bottom:12px;
}

.sidebar ul li a{
    display:flex;
    align-items:center;
    gap:15px;
    color:white;
    text-decoration:none;
    padding:14px;
    border-radius:10px;
    transition:.3s;
}

.sidebar ul li a:hover,
.sidebar ul .active a{
    background:#1B7A42;
}

.sidebar i{
    width:20px;
    text-align:center;
}

/* MAIN */

.main-content{
    margin-left:260px;
    padding:30px;
}

/* TOPBAR */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
}

.search-box{
    width:420px;
    display:flex;
    align-items:center;
    background:white;
    padding:12px 18px;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
}

.search-box i{
    color:#777;
}

.search-box input{
    border:none;
    outline:none;
    margin-left:10px;
    width:100%;
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:nowrap;
}

.topbar-right button{
    border:none;
    background:white;
    width:48px;
    height:48px;
    border-radius:50%;
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.topbar-right .notification-btn{
    width:auto;
    height:auto;
    min-height:48px;
    padding:10px 16px;
    border-radius:9999px;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.admin-profile{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
}

.profile-trigger{
    color:inherit;
    text-align:left;
    padding:0;
    width:auto;
    height:auto;
    border-radius:0;
    box-shadow:none;
}

.profile-trigger:hover{
    background:transparent;
}

.admin-profile img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
}

.admin-profile span{
    color:#777;
    font-size:13px;
}

.profile-backdrop{
    position:fixed;
    inset:0;
    z-index:20;
    background:rgba(15,23,42,.34);
}

.profile-backdrop[hidden]{
    display:none;
}

.profile-sidebar{
    position:fixed;
    top:0;
    right:0;
    z-index:21;
    width:min(390px, 100vw);
    height:100vh;
    padding:28px;
    overflow-y:auto;
    background:#fff;
    box-shadow:-12px 0 32px rgba(15,23,42,.16);
    transform:translateX(100%);
    transition:transform .25s ease;
}

.profile-sidebar.is-open{
    transform:translateX(0);
}

.profile-sidebar-header,
.profile-identity{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.profile-eyebrow{
    display:block;
    color:#C9A227;
    font-size:12px;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.profile-sidebar-header h2{
    margin-top:5px;
    color:#14532D;
    font-size:21px;
    line-height:1.25;
}

.profile-close-btn{
    border:0;
    background:#f1f5f2;
    color:#14532D;
    width:38px;
    height:38px;
    border-radius:50%;
    cursor:pointer;
    flex-shrink:0;
}

.profile-identity{
    justify-content:flex-start;
    margin:30px 0 26px;
    padding-bottom:24px;
    border-bottom:1px solid #e5ebe7;
}

.profile-identity img{
    width:64px;
    height:64px;
    border-radius:50%;
    object-fit:cover;
}

.profile-identity h3{
    color:#1f2937;
    font-size:18px;
}

.profile-identity p,
.profile-details dt{
    color:#718078;
    font-size:12px;
}

.profile-info-section{
    padding:19px 0;
    border-bottom:1px solid #e5ebe7;
}

.profile-info-section h3{
    display:flex;
    align-items:center;
    gap:9px;
    margin-bottom:15px;
    color:#14532D;
    font-size:14px;
}

.profile-info-section h3 i{
    color:#C9A227;
    width:18px;
    text-align:center;
}

.profile-details{
    display:grid;
    gap:13px;
}

.profile-details > div{
    display:flex;
    justify-content:space-between;
    gap:18px;
}

.profile-details dt{
    flex-shrink:0;
}

.profile-details dd{
    color:#1f2937;
    font-size:13px;
    font-weight:600;
    text-align:right;
    overflow-wrap:anywhere;
}

/* PAGE TITLE */

.page-header{
    margin-bottom:25px;
}

.page-header h1{
    font-size:30px;
    color:#14532D;
}

.page-header p{
    color:#666;
    margin-top:6px;
}

/* STATISTICS */

.cards{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
    margin-bottom:35px;
}

.stat-card{
    background:white;
    padding:20px;
    border-radius:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-5px);
}

.stat-card h2{
    color:#14532D;
    font-size:30px;
}

.stat-card p{
    color:#666;
    margin-top:6px;
}

.stat-card i{
    font-size:38px;
    color:#1B7A42;
}

/* GIS MAP */

.gis-section{
    margin-bottom:30px;
}

.section-title h2{
    color:#14532D;
    margin-bottom:15px;
}

.map-placeholder{
    background:white;
    height:420px;
    border-radius:18px;
    border:2px dashed #1B7A42;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
    overflow:hidden;
    padding:0;
}

.map-placeholder #map,
.map-placeholder #adminMap{
    width:100%;
    height:100%;
    min-height:420px;
    display:block;
    position:relative;
    z-index:1;
}

.map-placeholder h3{
    color:#14532D;
}

.map-placeholder p{
    color:#777;
    margin-top:10px;
    width:60%;
    text-align:center;
}

/* GIS DETAILS */

.gis-details{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:30px;
}

.coordinate-card,
.legend-card{
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

.coordinate-card h3,
.legend-card h3{
    color:#14532D;
    margin-bottom:18px;
}

.coordinate-card p{
    margin-bottom:10px;
}

.coordinate-card span{
    color:#777;
    font-size:14px;
}

.legend-card ul{
    list-style:none;
}

.legend-card li{
    display:flex;
    align-items:center;
    margin-bottom:14px;
}

.legend{
    width:18px;
    height:18px;
    border-radius:4px;
    margin-right:12px;
}

.available{
    background:#22C55E;
}

.occupied{
    background:#DC2626;
}

.reserved{
    background:#FACC15;
}

.pathway{
    background:#94A3B8;
}

/* ==========================================
   RECENT ACTIVITY
========================================== */

.activity-section{
    margin-bottom:30px;
}

.activity-card{
    background:#fff;
    border-radius:15px;
    padding:25px;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

.activity-card h2{
    color:#14532D;
    margin-bottom:25px;
}

.activity{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 0;
    border-bottom:1px solid #ececec;
}

.activity:last-child{
    border-bottom:none;
}

.activity i{
    width:55px;
    height:55px;
    border-radius:50%;
    background:#E8F5E9;
    color:#14532D;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
}

.activity div{
    flex:1;
    margin-left:18px;
}

.activity h4{
    color:#14532D;
    font-size:16px;
}

.activity p{
    color:#777;
    margin-top:4px;
    font-size:14px;
}

.activity span{
    color:#888;
    font-size:13px;
}

/* ==========================================
   MODAL / FORM
========================================== */

.records-panel{
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:14px;
    background:#f9fafb;
}

.records-panel-header{
    margin-bottom:12px;
    color:#64748b;
}

.table-action-btn{
    border:none;
    border-radius:8px;
    padding:7px 10px;
    margin-right:6px;
    cursor:pointer;
    background:#e8f5e9;
    color:#14532D;
}

.table-action-btn:hover{
    background:#d1fae5;
}

.table-action-btn[data-action="reservation"],
.table-action-btn[data-action="toggle-reservation"]{
    background:#15803D;
    color:white;
}

.table-action-btn[data-action="reservation"]:hover,
.table-action-btn[data-action="toggle-reservation"]:hover{
    background:#166534;
}

.table-action-btn[data-reservation-status="available"]{
    background:#15803D;
    color:white;
}

.table-action-btn[data-reservation-status="available"]:hover{
    background:#166534;
}

.table-action-btn[data-reservation-status="occupied"]{
    background:#DC2626;
    color:white;
}

.table-action-btn[data-reservation-status="occupied"]:hover{
    background:#B91C1C;
}

.table-action-btn.delete-btn{
    background:#fee2e2;
    color:#b91c1c;
}

.table-action-btn.delete-btn:hover{
    background:#fecaca;
}

.notification-section {
    margin: 20px 0;
}

.notification-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    background: #f8fafc;
}

.notification-card h2 {
    margin-bottom: 12px;
}

.notification-btn {
    display: inline-flex;
    align-items: center;
    border: none;
    border-radius: 9999px;
    padding: 10px 16px;
    gap: 8px;
    background: #2563eb;
    color: #030303;
    font-weight: 600;
    cursor: pointer;
}

.notification-btn i {
    font-size: 0.95rem;
}

.notification-btn:hover {
    background: #1d4ed8;
}

.notification-badge {
    display: none;
    min-width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: #f43f5e;
    color: #ffffff;
    font-size: 0.75rem;
    text-align: center;
    line-height: 20px;
    padding: 0 6px;
}

.notification-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    margin-bottom: 10px;
}

.notification-item p {
    margin: 0;
    color: #334155;
    font-size: 14px;
}

.notification-item span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

.notification-empty {
    color: #64748b;
    font-size: 14px;
}

.table-row-hidden{
    display:none;
}

.table-row-highlight{
    background:#fef3c7;
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:2000;
}

.modal.hidden{
    display:none;
}

.modal-content{
    background:#fff;
    width:min(560px, 92vw);
    max-height:calc(100vh - 32px);
    overflow-y:auto;
    border-radius:16px;
    padding:24px;
    box-shadow:0 15px 40px rgba(0,0,0,.2);
}

.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.modal-close{
    border:none;
    background:transparent;
    font-size:28px;
    cursor:pointer;
    color:#666;
}

.record-form{
    display:grid;
    gap:14px;
    max-height:calc(100vh - 150px);
    overflow-y:auto;
    padding-right:8px;
}

.record-form label{
    display:grid;
    gap:6px;
    font-weight:600;
    color:#14532D;
}

.record-form input,
.record-form select{
    padding:10px 12px;
    border:1px solid #d1d5db;
    border-radius:8px;
    font:inherit;
}

.password-input-wrapper{
    position:relative;
    display:flex;
    align-items:center;
}

.password-input-wrapper input{
    width:100%;
    padding-right:44px;
}

.password-toggle{
    position:absolute;
    right:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    padding:0;
    border:0;
    background:transparent;
    color:#64748b;
    cursor:pointer;
}

.password-toggle:hover{
    color:#14532D;
}

.form-actions{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.secondary-btn{
    background:#e5e7eb;
    color:#111827;
    border:none;
    border-radius:10px;
    padding:10px 16px;
    cursor:pointer;
}

.record-form h4,
.application-review h4{
    margin:8px 0 0;
    color:#14532D;
}

.application-note{
    display:none;
    margin:0;
    padding:12px;
    border-radius:8px;
    background:#ecfdf5;
    color:#166534;
    font-weight:600;
}

.application-note.visible{
    display:block;
}

.application-review p{
    margin:8px 0;
    color:#374151;
}

.danger-btn{
    border:none;
    border-radius:10px;
    padding:10px 16px;
    background:#DC2626;
    color:white;
    cursor:pointer;
}

.danger-btn:hover{
    background:#B91C1C;
}

/* ==========================================
   USER ACCOUNT MANAGEMENT
========================================== */

.form-message{
    margin-top:14px;
    font-size:14px;
    font-weight:600;
}

.form-message.success{
    color:#14532D;
}

.form-message.error{
    color:#b91c1c;
}

.empty-state{
    text-align:center;
    color:#64748b;
    padding:24px 12px;
}

/* ==========================================
   TABLE
========================================== */

.table-section{
    margin-top:35px;
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

.table-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.table-header h2{
    color:#14532D;
}

.add-btn{
    background:#14532D;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

.add-btn:hover{
    background:#1B7A42;
}

table{
    width:100%;
    border-collapse:collapse;
}

thead{
    background:#14532D;
    color:white;
}

thead th{
    padding:15px;
    text-align:left;
}

tbody tr{
    border-bottom:1px solid #ececec;
    transition:.2s;
}

tbody tr:hover{
    background:#F5F9F6;
}

tbody td{
    padding:15px;
}

/* ==========================================
   STATUS BADGES
========================================== */

.status{
    padding:6px 14px;
    border-radius:25px;
    color:white;
    font-size:13px;
    font-weight:500;
}

.status.occupied{
    background:#DC2626;
}

.status.available{
    background:#16A34A;
}

.status.reserved{
    background:#F59E0B;
}

/* ==========================================
   TABLE BUTTONS
========================================== */

td button{
    border:none;
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
    margin-right:6px;
    transition:.3s;
}

td button:first-child{
    background:#14532D;
    color:white;
}

td button:first-child:hover{
    background:#1B7A42;
}

td button:last-child{
    background:#E5E7EB;
}

td button:last-child:hover{
    background:#D1D5DB;
}

/* ==========================================
   FOOTER
========================================== */

.footer{
    margin-top:40px;
    text-align:center;
    color:#666;
    padding:20px;
    font-size:14px;
}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#14532D;
    border-radius:20px;
}

::-webkit-scrollbar-track{
    background:#F1F1F1;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:1200px){

.cards{
    grid-template-columns:repeat(2,1fr);
}

.gis-details{
    grid-template-columns:1fr;
}

}

@media(max-width:992px){

.sidebar{
    width:85px;
}

.sidebar-logo h2,
.sidebar-logo p,
.sidebar ul li a{
    display:none;
}

.main-content{
    margin-left:85px;
}

.topbar{
    flex-direction:column;
    gap:20px;
    align-items:flex-start;
}

.search-box{
    width:100%;
}

}

@media(max-width:768px){

.cards{
    grid-template-columns:1fr;
}

.activity{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}

.table-section{
    overflow-x:auto;
}

table{
    min-width:900px;
}

.map-placeholder{
    height:300px;
}

.map-placeholder p{
    width:90%;
}

}

@media(max-width:576px){

body.dashboard-body{
    overflow-x:hidden;
}

.sidebar{
    width:118px;
    padding:18px 8px;
}

.sidebar-logo{
    margin-bottom:28px;
}

.sidebar-logo i{
    font-size:30px;
}

.sidebar-logo h2,
.sidebar-logo p{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.sidebar-logo h2{
    font-size:14px;
}

.sidebar-logo p{
    font-size:9px;
}

.sidebar ul li a{
    display:flex;
    justify-content:flex-start;
    gap:7px;
    padding:11px 7px;
    font-size:10px;
    white-space:nowrap;
}

.sidebar i{
    width:auto;
    font-size:18px;
}

.main-content{
    width:calc(100% - 118px);
    margin-left:118px;
    padding:18px 10px;
}

.topbar{
    margin-bottom:24px;
    gap:14px;
}

.topbar-right{
    width:100%;
    justify-content:space-between;
    min-width:0;
}

.admin-profile{
    margin-left:auto;
}

.admin-profile div{
    display:none;
}

.page-header{
    margin-bottom:22px;
}

.page-header h1{
    font-size:24px;
}

.stat-card h2{
    font-size:24px;
}

.admin-profile img{
    width:40px;
    height:40px;
}

.table-section,
.search-card,
.coordinate-card,
.legend-card,
.activity-card,
.notification-card{
    padding:18px;
    min-width:0;
}

.page-header p,
.coordinate-card,
.legend-card,
.activity-card,
.notification-card{
    overflow-wrap:anywhere;
}

.search-box{
    width:100%;
}

.map-controls{
    align-items:flex-start;
    flex-direction:column;
}

.map-controls .add-btn{
    width:100%;
}

.gis-details{
    gap:14px;
}

.form-actions{
    flex-direction:column;
}

.form-actions button{
    width:100%;
}

}

/* ==========================================
   VISITOR DASHBOARD
========================================== */

.search-section{
    margin-bottom:30px;
}

.search-card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.search-card h2{
    color:#14532D;
    margin-bottom:20px;
}

.search-input{
    display:flex;
    gap:15px;
}

.search-input input{
    flex:1;
    padding:14px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
    font-size:15px;
}

.search-input button{
    background:#14532D;
    color:#fff;
    border:none;
    padding:14px 25px;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

.search-input button:hover{
    background:#1B7A42;
}

/* ==========================================
   BURIAL INFORMATION
========================================== */

.burial-card{
    background:#fff;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    margin-top:25px;
}

.burial-card h2{
    color:#14532D;
    margin-bottom:20px;
}

.info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.info-box{
    background:#F5F9F6;
    border-radius:10px;
    padding:18px;
}

.info-box h4{
    color:#14532D;
    margin-bottom:8px;
}

.info-box p{
    color:#555;
}

/* ==========================================
   MAP
========================================== */

.visitor-map{
    background:#fff;
    margin-top:30px;
    border-radius:15px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.visitor-map h2{
    color:#14532D;
    margin-bottom:20px;
}

#map{
    height:500px;
    border-radius:12px;
    border:2px dashed #1B7A42;
}

/* ==========================================
   NAVIGATION BUTTON
========================================== */

.navigate-btn{
    margin-top:20px;
    background:#14532D;
    color:#fff;
    padding:14px 25px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

.navigate-btn:hover{
    background:#1B7A42;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:768px){

.info-grid{
    grid-template-columns:1fr;
}

.search-input{
    flex-direction:column;
}

#map{
    height:300px;
}

}

/* ==========================================
   SHARED RESPONSIVE OVERRIDES
========================================== */

img,
svg,
video,
canvas {
    max-width:100%;
}

button,
input,
select,
textarea {
    max-width:100%;
}

.dashboard-body {
    overflow-x:hidden;
}

.mobile-menu-toggle,
.mobile-menu-button {
    display:none;
}

.main-content,
.topbar,
.table-section,
.records-panel,
.coordinate-card,
.legend-card,
.activity-card {
    min-width:0;
}

.table-section {
    overflow:hidden;
}

table {
    display:block;
    max-width:100%;
    overflow-x:auto;
    white-space:nowrap;
}

.map-placeholder {
    height:clamp(280px, 42vw, 420px);
}

.map-placeholder #map,
.map-placeholder #adminMap {
    min-height:0;
}

.record-form input,
.record-form select,
.inputBox input,
.search-box input {
    min-width:0;
}

@media (max-width: 1100px) {
    .sidebar {
        width:72px;
        padding:20px 10px;
    }

    .sidebar-logo {
        margin-bottom:28px;
    }

    .sidebar-logo h2,
    .sidebar-logo p {
        display:none;
    }

    .sidebar ul li a {
        justify-content:center;
        padding:14px 8px;
        font-size:0;
    }

    .sidebar ul li a i,
    .sidebar i {
        width:auto;
        margin:0;
        font-size:18px;
    }

    .main-content {
        width:calc(100% - 72px);
        margin-left:72px;
        padding:24px;
    }

    .topbar {
        gap:18px;
    }

    .topbar-right {
        gap:16px;
    }

    .cards {
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .cards[style] {
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding:20px 16px;
    }

    .topbar {
        align-items:stretch;
    }

    .topbar-right {
        justify-content:flex-end;
    }

    .topbar-right:has(#profileButton) {
        width:100%;
        min-width:0;
        gap:10px;
    }

    .topbar-right:has(#profileButton) .notification-btn {
        flex:1 1 auto;
        min-width:0;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .topbar-right:has(#profileButton) #profileButton {
        width:48px;
        min-width:48px;
        flex:0 0 48px;
    }

    .topbar-right:has(#profileButton) #profileButton > div {
        display:none;
    }

    .page-header h1 {
        font-size:clamp(22px, 5vw, 30px);
    }

    .page-header p {
        line-height:1.5;
    }

    .table-header {
        align-items:flex-start;
        flex-wrap:wrap;
        gap:12px;
    }

    .table-header .add-btn {
        width:100%;
    }

    .table-section,
    .coordinate-card,
    .legend-card,
    .activity-card {
        padding:20px;
    }

    .gis-details {
        grid-template-columns:1fr;
    }

    .map-controls {
        flex-wrap:wrap;
    }

    .record-form {
        padding-right:0;
    }

    .modal {
        align-items:flex-start;
        padding:16px 0;
        overflow-y:auto;
    }

    .modal-content {
        width:min(560px, calc(100% - 24px));
    }
}

@media (max-width: 600px) {
    .main-content {
        width:calc(100% - 72px);
        padding:16px 12px;
    }

    .topbar {
        display:block;
        margin-bottom:22px;
    }

    .topbar > .search-box {
        margin-bottom:14px;
    }

    .topbar-right {
        width:100%;
        justify-content:space-between;
    }

    .admin-profile div {
        display:none;
    }

    .search-box {
        padding:11px 13px;
    }

    .cards,
    .cards[style] {
        grid-template-columns:1fr !important;
        gap:14px !important;
    }

    .stat-card {
        padding:18px;
    }

    .stat-card h2 {
        font-size:24px;
    }

    .table-section,
    .coordinate-card,
    .legend-card,
    .activity-card {
        padding:16px;
    }

    .table-header h2,
    .section-title h2,
    .activity-card h2 {
        font-size:20px;
    }

    .map-placeholder {
        height:clamp(260px, 78vw, 340px);
    }

    .map-controls .add-btn,
    .form-actions button,
    .coordinate-card > .add-btn {
        width:100%;
    }

    .form-actions {
        flex-direction:column;
    }

    .notification-btn {
        padding:10px 12px;
        font-size:13px;
    }

    .footer {
        overflow-wrap:anywhere;
    }
}

@media (max-width: 900px) {
    .container {
        min-height:100vh;
        height:auto;
        overflow-y:auto;
    }

    .left-panel {
        height:auto;
        min-height:36vh;
        padding:40px 28px 24px;
    }

    .right-panel {
        height:auto;
        min-height:64vh;
        padding:20px 16px 40px;
    }

    .card {
        width:min(430px, 100%);
        padding:28px 22px;
    }
}

@media (max-width: 480px) {
    .logo i {
        font-size:52px;
    }

    .logo h1 {
        font-size:clamp(26px, 8vw, 36px);
        line-height:1.15;
    }

    .logo p {
        font-size:14px;
        line-height:1.5;
    }

    .description {
        margin-top:28px;
    }

    .description h2 {
        font-size:25px;
    }

    .description p {
        font-size:14px;
        line-height:1.6;
    }
}

@media (max-width: 768px) {
    body.dashboard-body:has(.mobile-menu-toggle:checked)::before {
        content:"";
        position:fixed;
        inset:0;
        z-index:2900;
        background:rgba(0,0,0,.42);
    }

    .mobile-menu-toggle {
        position:absolute;
        opacity:0;
        pointer-events:none;
    }

    .mobile-menu-button {
        display:flex;
        position:fixed;
        top:12px;
        left:12px;
        z-index:3100;
        width:42px;
        height:42px;
        align-items:center;
        justify-content:center;
        border-radius:10px;
        background:#14532D;
        color:#fff;
        box-shadow:0 4px 12px rgba(0,0,0,.18);
        cursor:pointer;
    }

    .mobile-menu-toggle:checked + .mobile-menu-button {
        background:#C9A227;
        color:#14532D;
    }

    .sidebar {
        width:260px;
        padding:25px;
        transform:translateX(-105%);
        transition:transform .25s ease;
        z-index:3000;
        overflow-y:auto;
        overscroll-behavior:contain;
        box-shadow:8px 0 24px rgba(0,0,0,.25);
    }

    .sidebar-logo h2,
    .sidebar-logo p,
    .sidebar ul li a {
        display:flex;
    }

    .sidebar-logo h2,
    .sidebar-logo p {
        display:block;
    }

    .sidebar ul li a {
        justify-content:flex-start;
        gap:15px;
        padding:14px;
        font-size:inherit;
    }

    .sidebar ul li a i,
    .sidebar i {
        width:20px;
        font-size:inherit;
    }

    .mobile-menu-toggle:checked ~ .sidebar {
        transform:translateX(0);
    }

    .main-content {
        width:100%;
        margin-left:0;
    }

    .mobile-menu-toggle:checked ~ .main-content {
        pointer-events:none;
        user-select:none;
    }

    .topbar {
        padding-top:52px;
    }
}