:root {
    --brand-green: #0a6138;
    --soft-bg: #e8f7ec;
    --gradient-start: #0a6138;
    --gradient-end: #0d8048;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--soft-bg);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #012908;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    font-size: 1.3rem;
    line-height: 150%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav-buttons {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.nav-buttons button {
    background: var(--brand-green);
    border: none;
    padding: 1.0rem 1.5rem;
    border-radius: 20px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-buttons button:hover {
    opacity: 0.9;
}

.cm-logo {
    height: 100px;
    object-fit: cover;
    margin-left: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../../images/mining.jpg");
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    filter: grayscale(10%) contrast(95%) blur(1px) brightness(0.85);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(227, 245, 236, 0.7), rgba(227, 245, 236, 0.7));
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    left: 8%;
    color: var(--brand-green);
    font-size: 3.4rem;
    font-weight: 800;
    max-width: 460px;
    line-height: 1.05;
    letter-spacing: 1px;
}

/* Sections */
.section {
    justify-content: flex-start;
    padding: 3rem 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 80vh;
    background: linear-gradient(135deg, #f8fdfa 0%, #e8f7ec 100%);
}

.section-title {
    font-size: 1.6rem;
    color: var(--brand-green);
    font-weight: 800;
    width: 45%;
    min-width: 180px;
}

.section-box {
    margin-left: 12%;
    align-self: flex-start;
    background: #a6d3db;
    flex: 0 0 85%;
    max-width: 45%;
    height: 550px;
    border-radius: 20px;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
}

/* Highlight Description Styles */
.highlight-description {
    background: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--soft-bg);
}

.highlight-description h2 {
    color: var(--brand-green);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-description p {
    color: #333;
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight-accent {
    display: inline-block;
    height: 4px;
    width: 80px;
    background: var(--brand-green);
    margin-bottom: 2rem;
}

#map-portal-section {
    padding-left: 0;
    padding-right: 0;
}

#map-portal-section .section-title {
    width: 100%;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

#map-portal-section .section-box {
    max-width: 100%;
    flex: 0 0 100%;
    margin-left: 0;
    border-radius: 0;
    padding: 0;
}

#map-portal-section .map-iframe {
    border-radius: 0;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.open-map-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.open-map-btn:hover {
    opacity: 0.9;
}

/* smaller screens adjust */
/* smaller screens adjust */
@media (max-width: 900px) {
    .hero {
        height: 320px;
    }

    .hero-text {
        left: 6%;
        font-size: 1.6rem;
    }

    .section {
        padding: 2rem;
    }

    .section-title {
        width: 100%;
        margin-bottom: .75rem;
    }

    .section-box {
        max-width: 100%;
        flex-basis: 100%;
        margin-left: 0;
    }

    .highlight-description h2 {
        font-size: 1.8rem;
    }

    .highlight-description p {
        font-size: 1rem;
    }

    /* Stack Split Sections */
    .split-section {
        flex-direction: column;
        height: auto;
    }

    .split-left,
    .split-right {
        width: 100%;
        flex: none;
        height: auto;
    }

    .split-left .card {
        max-height: 500px; /* Limit table height on mobile */
    }
    
    .map-container {
        height: 400px; /* Give map fixed height when stacked */
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-buttons button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        flex: 1 1 auto; /* Grow to fill space */
        justify-content: center;
    }

    .cm-logo {
        display: none; /* Hide CM logo on very small screens to save space, or keep it if preferred */
    }
    
    .hero-text {
        font-size: 1.4rem;
        max-width: 90%;
        left: 5%;
    }
}

.clickable {
    cursor: pointer;
}

.placeholder-table {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7a86;
    font-weight: 700;
}

/* Table Common Styling */
.vacant-table thead th {
    border: none;
    font-weight: 700;
    letter-spacing: .03em;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    text-align: center;
}

.vacant-table tbody tr:hover {
    background: #f1faf4;
}

.vacant-table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #e5f2ea;
}

.vacant-table .fw-bold.text-success.ps-4 {
    font-weight: bold;
    color: var(--brand-green);
}

/* Badges */
.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

/* Form Controls */
.form-select-sm.rounded-pill {
    border-radius: 50px;
}

/* Split Section Layout */
.split-section {
    height: 650px;
    display: flex;
    gap: 1.5rem;
}

.split-left,
.split-right {
    flex: 1;
    height: 100%;
    display: flex;
}

/* Table Area */
.split-left .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.split-left .table-responsive {
    flex: 1;
    overflow-y: auto;
}

/* Map Placeholder */
.map-placeholder {
    height: 100%;
    background: repeating-linear-gradient(45deg,
            #f1faf4,
            #f1faf4 10px,
            #e2f2e8 10px,
            #e2f2e8 20px);
    border-radius: 1rem;
    border: 2px dashed #9ccfb3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0a6138;
    font-weight: 700;
    font-size: 1.3rem;
}

/* Table Columns */
.vacant-table th:nth-child(1),
.vacant-table td:nth-child(1) {
    width: 15%;
}

.vacant-table th:nth-child(2),
.vacant-table td:nth-child(2) {
    width: 20%;
}

.vacant-table th:nth-child(3),
.vacant-table td:nth-child(3),
.vacant-table th:nth-child(4),
.vacant-table td:nth-child(4),
.vacant-table th:nth-child(5),
.vacant-table td:nth-child(5),
.vacant-table th:nth-child(6),
.vacant-table td:nth-child(6),
.vacant-table th:nth-child(7),
.vacant-table td:nth-child(7),
.vacant-table th:nth-child(8),
.vacant-table td:nth-child(8) {
    width: 12%;
    text-align: center;
}

/* Map Placement and Container */
.map-container {
    height: 100%;
    width: 100%;
    min-height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

#vacant-map {
    height: 100%;
    width: 100%;
}