/* ============ LAND UNIT CONVERTER PAGE ============ */

/* Normal scrolling page (no fixed-shell layout) so the footer is reachable. */
body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
}

.navigation {
    background: white;
}

/* Give the active nav-item underline a small gap below the text */
@media (min-width: 996px) {
    .nav-items .active::before {
        bottom: 0.1rem;
    }
}

/* Page loader — same as the landing page loader */
.loaderContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader {
    height: 10rem;
    width: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loaderContainer.fade-out {
    opacity: 0;
}

body.no-scroll {
    overflow: hidden;
}

.luc-page,
.luc-page * {
    font-family: "Satoshi-Variable", "Satoshi-Regular", sans-serif;
}

.luc-page {
    background: #ffffff;
    min-height: calc(100vh - 80px);
    padding-bottom: 64px;
}

/* ============ HERO ============ */
.luc-hero {
    /* Brand-green gradient layered over a topographic relief map of Zimbabwe.
       The gradient is heavier on the left (where the text sits) and thins out to
       the right so the terrain reads through — on-theme for a land tool, and
       lightweight (one ~288K image, no extra JS). */
    background-color: #0c2b1a;
    background-image:
        linear-gradient(110deg,
            rgba(8, 38, 21, 0.96) 0%,
            rgba(15, 51, 32, 0.90) 42%,
            rgba(20, 83, 45, 0.62) 78%,
            rgba(28, 107, 58, 0.42) 100%),
        url("assets/images/background-banners/aerial-drone-view-of-the-cane-hill-area-in-coulsdo-2026-03-26-23-57-38-utc.webp");
    background-size: cover, cover;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
    color: #ffffff;
    padding: 56px 24px 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid rgba(159, 224, 180, 0.35);
}

.luc-hero::before {
    /* soft green glow accent, top-right, to add depth over the map */
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 160%;
    background: radial-gradient(circle, rgba(56, 161, 105, 0.45) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.luc-hero::after {
    /* subtle dotted texture, brand-consistent with the footer's pattern */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.luc-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.luc-hero-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.luc-hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #9fe0b4;
    margin-bottom: 6px;
}

.luc-hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.luc-hero-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    max-width: 810px;
    margin: 0;
}

/* ============ LAYOUT ============ */
.luc-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    /* pull the cards up so they overlap the hero band */
    margin-top: -28px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.luc-card {
    /* Soft sage gradient now lives on the cards (page itself is white) */
    background: linear-gradient(160deg, #eef4f0 0%, #dfeae2 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 128, 0, 0.12);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 51, 32, 0.08);
}

.luc-workspace {
    flex: 1.3;
    max-width: 620px;
}

.luc-sidebar {
    flex: 0.9;
    max-width: 380px;
}

.luc-panel-title {
    font-size: 1.1rem;
    font-family: 'Satoshi-Bold',  sans-serif;
    color: #0f3320;
    margin-bottom: 4px;
}

.luc-panel-subtitle {
    font-size: 0.85rem;
    color: #7a9282;
    margin-bottom: 28px;
}

.luc-unit-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

/* Swap From/To units */
.luc-swap {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin-bottom: 1px;
    border-radius: 50%;
    border: 1px solid #dedede;
    background: #ffffff;
    color: #008000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}

.luc-swap:hover {
    background: #008000;
    color: #ffffff;
    border-color: #008000;
    box-shadow: 0 0 18px rgba(0, 128, 0, 0.45);
}

@keyframes luc-swap-spin-desk {
    from { transform: rotate(0deg); }
    to   { transform: rotate(180deg); }
}

.luc-swap.luc-spinning {
    animation: luc-swap-spin-desk 0.38s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.luc-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.luc-form-group label {
    font-size: 0.72rem !important;
    font-family: 'Satoshi-Medium',  sans-serif;
    color: #4a6b54;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.luc-form-group select,
.luc-form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #dedede;
    background-color: #ffffff;
    font-size: 0.9rem;
    color: #1a2b1e;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.3s ease;
}

.luc-select-wrap {
    position: relative;
}

.luc-select-wrap select {
    width: 100%;
    padding-right: 44px;
}

.luc-select-wrap::after {
    content: "";
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a6b54' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-size: 20px;
    transition: transform 0.2s ease;
}

.luc-select-wrap:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

.luc-form-group select:focus,
.luc-form-group input[type="number"]:focus {
    /* generalSearch-style green focus glow */
    border-color: #008000;
    box-shadow: 0 0 0 0.3rem rgba(0, 128, 0, 0.18);
}

.luc-form-group select:hover,
.luc-form-group input[type="number"]:hover {
    border-color: #b5c9bc;
}

.luc-results {
    margin-top: 24px;
    padding: 22px 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 128, 0, 0.18);
    border-left: 2px solid #008000;
    box-shadow: 0 6px 18px rgba(15, 51, 32, 0.06);
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.luc-results.luc-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes luc-output-flash {
    0%   { opacity: 0.35; transform: scale(0.97); }
    100% { opacity: 1;    transform: scale(1); }
}

.luc-output.luc-flash {
    animation: luc-output-flash 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.luc-results-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #008000;
    margin-bottom: 8px;
}

.luc-output {
    font-size: 1.35rem;
    color: #0f3320;
    line-height: 1.65;
}

.luc-output strong {
    font-weight: 700;
}

.luc-ref-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.luc-ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 128, 0, 0.1);
    font-size: 0.92rem;
}

.luc-ref-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.luc-ref-label {
    color: #2e4436;
    font-size: 0.88rem;
    font-family: 'Satoshi-Medium',  sans-serif;
}

.luc-ref-val {
    /* light-green pill chip, matching the generalSearch active-chip style */
    background: #C7E3C7;
    color: #008000;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 4px 12px;
    border-radius: 10rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
    .luc-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .luc-workspace,
    .luc-sidebar {
        max-width: 100%;
    }

    .luc-unit-row {
        flex-direction: column;
        align-items: stretch;
    }

    /* Center the swap control and let it rotate to read top-to-bottom on stacked layout */
    .luc-swap {
        align-self: center;
        margin: 2px 0;
        transform: rotate(90deg);
    }

    @keyframes luc-swap-spin-mob {
        from { transform: rotate(90deg); }
        to   { transform: rotate(270deg); }
    }

    .luc-swap.luc-spinning {
        animation: luc-swap-spin-mob 0.38s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
    }
}

@media (max-width: 600px) {
    .luc-hero {
        padding: 36px 20px 44px;
    }

    .luc-hero-inner {
        gap: 16px;
    }

    .luc-hero-icon {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }

    .luc-hero-title {
        font-size: 1.45rem;
    }

    .luc-hero-desc {
        font-size: 0.88rem;
    }
}