:root {
    --paper: #F4F0E4;
    --paper-deep: #ECE6D4;
    --ink: #16231C;
    --forest: #0F3D2E;
    --forest-light: #1C5A42;
    --river: #1C6B74;
    --gold: #D9A544;
    --red: #B23A2E;
    --line: rgba(15,35,26,0.14);
    --card: #FFFDF6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

.bn {
    font-family: 'Noto Sans Bengali', sans-serif;
}

a {
    color: inherit;
}

img, svg {
    display: block;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.contour-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

/* HERO 3D PARALLAX SCENE */
.hero-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    perspective: 1000px;
}

.hero-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform .25s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
}

.hero-cloud {
    animation: drift 22s ease-in-out infinite;
}

    .hero-cloud.c2 {
        animation-duration: 28s;
        animation-delay: -6s;
    }

    .hero-cloud.c3 {
        animation-duration: 34s;
        animation-delay: -14s;
    }

@keyframes drift {
    0% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(28px);
    }

    100% {
        transform: translateX(0px);
    }
}

.hero-route-line {
    stroke-dasharray: 2 12;
    animation: march 6s linear infinite;
}

@keyframes march {
    to {
        stroke-dashoffset: -140;
    }
}

.hero-marker {
    animation: bob 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes bob {
    0%,100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-layer {
        transition: none;
    }

    .hero-cloud, .hero-route-line, .hero-marker {
        animation: none !important;
    }
}

/* NAV */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244,240,228,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    flex: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .logo-text .bn {
        font-size: 15px;
        color: var(--forest);
        font-weight: 700;
    }

    .logo-text .en {
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--river);
        font-family: 'IBM Plex Mono',monospace;
    }

.navlinks {
    display: flex;
    gap: 18px;
    font-size: 13.5px;
    font-weight: 500;
    flex-wrap: nowrap;
    white-space: nowrap;
}

    .navlinks a {
        text-decoration: none;
        opacity: 0.75;
        transition: opacity .15s;
    }

        .navlinks a:hover {
            opacity: 1;
        }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex: none;
}

.lang-toggle {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    gap: 6px;
    cursor: pointer;
    background: var(--card);
}

    .lang-toggle span.active {
        color: var(--forest);
        font-weight: 600;
    }

.btn {
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    font-family: 'IBM Plex Sans', sans-serif;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-primary {
    background: var(--forest);
    color: var(--paper);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--forest);
    color: var(--forest);
}

.btn-sos {
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-chip {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12.5px;
    color: var(--forest);
    opacity: 0.85;
}

/* NAV TOGGLE (mobile hamburger) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex: none;
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--forest);
        margin: 5px 0;
        transition: transform .2s, opacity .2s;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 40px;
}

    .hero .wrap {
        position: relative;
        z-index: 1;
    }

.eyebrow {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--river);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

    .eyebrow::before {
        content: '';
        width: 26px;
        height: 1px;
        background: var(--river);
    }

.hero h1 {
    font-size: clamp(30px,5vw,54px);
    max-width: 820px;
    line-height: 1.08;
    color: var(--forest);
}

    .hero h1 .accent {
        color: var(--gold);
        font-style: normal;
    }

.hero p.lede {
    max-width: 560px;
    font-size: 16px;
    color: #2C382F;
    margin-top: 20px;
    opacity: 0.88;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ESTIMATOR */
.estimator {
    margin-top: 48px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 60px -30px rgba(15,35,26,0.35);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
}

.estimator-form {
    padding: 30px 32px;
    border-right: 1px solid var(--line);
}

    .estimator-form h3 {
        font-size: 19px;
        margin-bottom: 4px;
    }

    .estimator-form .sub {
        font-size: 12.5px;
        color: var(--river);
        font-family: 'IBM Plex Mono',monospace;
        margin-bottom: 20px;
        display: block;
    }

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 7px;
        color: #3A473C;
    }

select, input[type=range] {
    width: 100%;
}

select {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-family: 'IBM Plex Sans';
    font-size: 14px;
    color: var(--ink);
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.range-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.range-val {
    font-family: 'IBM Plex Mono',monospace;
    font-weight: 600;
    color: var(--forest);
    min-width: 60px;
    text-align: right;
    font-size: 13.5px;
}

input[type=range] {
    accent-color: var(--forest);
    height: 4px;
}

.chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 11px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    transition: border-color .15s, background .15s;
    user-select: none;
}

    .chip input {
        accent-color: var(--forest);
    }

    .chip.on {
        border-color: var(--forest);
        background: #F0F4EE;
    }

    .chip .price {
        margin-left: auto;
        font-family: 'IBM Plex Mono',monospace;
        font-size: 11.5px;
        opacity: 0.6;
    }

.estimator-result {
    background: var(--forest);
    color: var(--paper);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .estimator-result .sub {
        font-family: 'IBM Plex Mono',monospace;
        font-size: 11.5px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        opacity: 0.65;
    }

.total-figure {
    font-size: 40px;
    font-weight: 700;
    margin: 10px 0 2px;
    font-family: 'Space Grotesk';
}

    .total-figure sup {
        font-size: 15px;
        opacity: 0.75;
        font-weight: 500;
    }

.per-person {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12.5px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.breakdown {
    border-top: 1px solid rgba(244,240,228,0.2);
    padding-top: 14px;
    margin-top: auto;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 5px 0;
    opacity: 0.9;
}

    .breakdown-row span:last-child {
        font-family: 'IBM Plex Mono',monospace;
    }

/* SECTIONS */
section {
    padding: 80px 0;
    position: relative;
}

    section:first-of-type {
        padding-top: 56px;
    }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
}

    .section-head h2 {
        font-size: clamp(24px,3vw,34px);
        color: var(--forest);
    }

    .section-head .tag {
        font-family: 'IBM Plex Mono',monospace;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--river);
        margin-bottom: 10px;
        display: block;
    }

    .section-head p {
        max-width: 420px;
        font-size: 14px;
        color: #3A473C;
        opacity: 0.85;
    }

.divider {
    height: 1px;
    background: var(--line);
    border: none;
    margin: 0;
}

/* DESTINATIONS */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.dest-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
    text-decoration: none;
}

    .dest-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -24px rgba(15,35,26,0.4);
    }

.dest-photo {
    height: 140px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

    .dest-photo::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(15,35,26,0) 30%, rgba(10,20,15,0.75));
        z-index: 0;
    }

    .dest-photo span {
        position: relative;
        z-index: 1;
        font-family: 'IBM Plex Mono',monospace;
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        background: rgba(0,0,0,0.35);
        padding: 4px 8px;
        border-radius: 20px;
    }

.dest-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

    .dest-body h3 {
        font-size: 17px;
    }

    .dest-body .region {
        font-family: 'IBM Plex Mono',monospace;
        font-size: 11px;
        color: var(--river);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

.dest-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    padding-top: 11px;
}

    .dest-meta div {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .dest-meta .k {
        opacity: 0.6;
    }

    .dest-meta .v {
        font-family: 'IBM Plex Mono',monospace;
        font-weight: 500;
        text-align: right;
    }

.checkpoint-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.cp-tag {
    font-size: 10.5px;
    font-family: 'IBM Plex Mono',monospace;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cp-army .cp-dot {
    background: #7A5C2E;
}

.cp-bgb .cp-dot {
    background: var(--river);
}

.cp-police .cp-dot {
    background: var(--red);
}

/* ROUTE PANEL */
.route-panel {
    background: var(--forest);
    border-radius: 20px;
    padding: 40px 36px;
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

    .route-panel .section-head h2, .route-panel .section-head p, .route-panel .tag {
        color: var(--paper);
    }

    .route-panel .tag {
        color: var(--gold) !important;
    }

    .route-panel .section-head p {
        opacity: 0.75;
    }

.route-svg {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.route-legend {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

    .route-legend div {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-family: 'IBM Plex Mono',monospace;
    }

    .route-legend .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

/* FACILITIES */
.fac-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.fac-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 16px;
}

    .fac-card .icon {
        width: 32px;
        height: 32px;
        margin-bottom: 14px;
        color: var(--forest);
    }

    .fac-card h4 {
        font-size: 14.5px;
        margin-bottom: 6px;
    }

    .fac-card p {
        font-size: 12px;
        opacity: 0.7;
        line-height: 1.5;
    }

/* TABLE */
.table-wrap {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 520px;
}

th {
    text-align: left;
    padding: 13px 18px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--paper-deep);
    color: #3A473C;
    border-bottom: 1px solid var(--line);
}

td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
}

tr:last-child td {
    border-bottom: none;
}

td.num, th.num {
    font-family: 'IBM Plex Mono',monospace;
    text-align: right;
}

tr.highlight td {
    background: #F0F4EE;
    font-weight: 600;
}

/* AID */
.aid-section {
    background: var(--paper-deep);
}

.aid-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
}

.sos-card {
    background: var(--red);
    color: #fff;
    border-radius: 18px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

    .sos-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .sos-card p {
        font-size: 13px;
        opacity: 0.9;
        max-width: 340px;
        margin-bottom: 20px;
    }

.pulse-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    color: var(--red);
    border: none;
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

    .pulse-btn::before {
        content: '';
        position: absolute;
        inset: -8px;
        border: 2px solid rgba(255,255,255,0.5);
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

    .contact-row:last-child {
        border-bottom: none;
    }

    .contact-row .name {
        font-size: 13.5px;
        font-weight: 600;
    }

    .contact-row .role {
        font-size: 11.5px;
        opacity: 0.6;
    }

    .contact-row .num {
        font-family: 'IBM Plex Mono',monospace;
        font-weight: 600;
        color: var(--forest);
        font-size: 14.5px;
    }

/* FOOTER */
footer {
    background: var(--forest);
    color: var(--paper);
    padding: 50px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(244,240,228,0.15);
}

footer h4 {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'IBM Plex Mono',monospace;
    opacity: 0.6;
    margin-bottom: 15px;
}

footer .flinks {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
    opacity: 0.85;
}

    footer .flinks a {
        text-decoration: none;
    }

.foot-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 11.5px;
    opacity: 0.6;
    font-family: 'IBM Plex Mono',monospace;
    flex-wrap: wrap;
    gap: 8px;
}

/* GENERIC AUTH FORMS / DASHBOARD CARDS (used by Account, Admin, Vendor, Tourist views) */
.auth-wrap {
    max-width: 440px;
    margin: 60px auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px;
}

    .auth-wrap h2 {
        margin-bottom: 22px;
    }

    .auth-wrap .field input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-family: 'IBM Plex Sans';
        font-size: 14px;
    }

    .auth-wrap .field textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-family: 'IBM Plex Sans';
        font-size: 14px;
    }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
}

    .stat-card .label {
        font-family: 'IBM Plex Mono',monospace;
        font-size: 11px;
        text-transform: uppercase;
        opacity: 0.6;
        margin-bottom: 6px;
    }

    .stat-card .value {
        font-size: 26px;
        font-weight: 700;
        color: var(--forest);
        font-family: 'Space Grotesk';
    }

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-family: 'IBM Plex Mono',monospace;
    text-transform: uppercase;
}

.badge-pending {
    background: #FBE8C6;
    color: #7A5C2E;
}

.badge-confirmed {
    background: #DCEEE6;
    color: var(--forest);
}

.badge-cancelled {
    background: #F6D9D6;
    color: var(--red);
}

.badge-completed {
    background: #E4E4E4;
    color: #444;
}

.alert-box {
    background: #F0F4EE;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 13.5px;
}

@media (max-width:960px) {
    .nav-toggle {
        display: block;
    }

    .navlinks {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 4px;
        padding: 14px 0 6px;
    }

        .navlinks.open {
            display: flex;
        }

        .navlinks a {
            padding: 10px 4px;
            border-bottom: 1px solid var(--line);
        }

    .nav-cta {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
        padding: 6px 0 14px;
    }

        .nav-cta.open {
            display: flex;
        }

        .nav-cta .btn {
            text-align: center;
            width: 100%;
        }

        .nav-cta .user-chip {
            text-align: center;
        }

    nav {
        flex-wrap: wrap;
    }

    .estimator {
        grid-template-columns: 1fr;
    }

    .estimator-form {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .dest-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fac-grid {
        grid-template-columns: 1fr 1fr;
    }

    .aid-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:640px) {
    .dest-grid, .fac-grid {
        grid-template-columns: 1fr;
    }

    .row2, .chip-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
