:root {
    --g: #315f47;
    --gd: #244836;
    --m: #727a74;
    --bg: #f6f7f6;
    --w: #fff;
    --line: #dde4df;
    --stone: #ece8df;
    --danger: #a1463d;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    color: #2a302c;
    background: var(--bg);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
}

.hidden {
    display: none !important;
}


/* =========================================================
   HEADER
   ========================================================= */

.top {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 3vw;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gd);
}

.brandmark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1f4937;
    color: #fff;
    box-shadow:
        inset 0 0 0 5px
        rgba(255, 255, 255, 0.09);

    flex: 0 0 auto;
}

.brandmark svg {
    width: 21px;
    height: 21px;
}

.brandtext strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #1f4937;
}

.brandtext small {
    display: block;
    color: var(--m);
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-top: 1px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
    display: flex;
    gap: 20px;
}

.nav a,
.nav button {
    border: 0;
    background: none;
    font-size: 13px;
    color: #657069;
    font-weight: 400;
}

.login {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;

    color: var(--gd);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   GENERAL CONTAINER
   ========================================================= */

.container {
    width: min(1480px, 94vw);
    margin: auto;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    width: min(1480px, 94vw);
    margin: 22px auto 0;

    display: grid;
    grid-template-columns: 1.55fr 0.45fr;

    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}

.hero-copy {
    padding: 50px 56px;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.03;

    margin: 10px 0 14px;

    color: #223b2d;
}

.hero p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--m);
}

.hero img {
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #77917e;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 46px 0 10px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 18px;
}

.section-head h2 {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    margin: 5px 0;
    color: #233d2e;
}

.section-head p {
    max-width: 620px;
    color: var(--m);
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   GRID
   ========================================================= */

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}


/* =========================================================
   CARDS / PANELS
   ========================================================= */

.card,
.panel,
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.card {
    overflow: hidden;
}

.card img {
    height: 210px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    margin: 7px 0;
}

.small,
.card p {
    font-size: 10px;
    color: var(--m);
    line-height: 1.55;
}

.meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;

    font-size: 9px;
    color: #858d87;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;

    font-size: 11px;
    font-weight: 400;
}

.primary {
    background: var(--g);
    color: #fff;
}

.secondary {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--gd);
}

.soft {
    background: #edf3ef;
    color: var(--gd);
}

.danger {
    background: #fff0ee;
    color: var(--danger);
}


/* =========================================================
   PANELS / STATS
   ========================================================= */

.panel,
.stat {
    padding: 17px;
}

.stat small {
    font-size: 8px;
    text-transform: uppercase;
    color: #89918b;
}

.stat strong {
    display: block;
    font-size: 27px;
    font-weight: 300;
    color: #284531;
    margin: 7px 0;
}

.two {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.search,
.chip {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;

    padding: 9px 10px;
    font-size: 10px;
}

.search input {
    border: 0;
    outline: 0;
    background: transparent;
}


/* =========================================================
   TABLES
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
}

th {
    text-align: left;
    font-size: 8px;
    text-transform: uppercase;
    color: #89918b;
    font-weight: 400;

    padding: 9px;

    border-bottom:
        1px solid var(--line);
}

td {
    padding: 10px 9px;
    border-bottom: 1px solid #edf0ee;
    white-space: nowrap;
}

.status {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 999px;

    background: #edf3ef;
    color: var(--gd);

    font-size: 8px;
}

.pending {
    background: #f7efe1;
    color: #896735;
}


/* =========================================================
   FORMS
   ========================================================= */

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.field {
    display: grid;
    gap: 5px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 8px;
    text-transform: uppercase;
    color: #7d857f;
}

.field input,
.field select,
.field textarea {
    border: 1px solid var(--line);
    border-radius: 9px;

    padding: 10px;

    background: #fbfcfb;

    font-size: 10px;
}

.field textarea {
    min-height: 80px;
}

.notice {
    background: #f3f6f4;

    border: 1px solid var(--line);
    border-radius: 10px;

    padding: 10px;

    font-size: 9px;
    color: #657069;
    line-height: 1.55;
}


/* =========================================================
   MEMBER / ADMIN LAYOUT
   ========================================================= */

.layout {
    width: min(1480px, 94vw);
    margin: 24px auto 50px;

    display: grid;
    grid-template-columns: 225px 1fr;
    gap: 16px;
}

.side {
    background: #213f30;
    color: #fff;

    border-radius: 17px;

    padding: 17px;

    min-height: 760px;
}

.side h4 {
    font-size: 8px;
    text-transform: uppercase;
    color: #a4b7aa;

    margin: 22px 8px 6px;
}

.side button {
    width: 100%;
    text-align: left;

    border: 0;
    background: none;

    color: #d8e1db;

    padding: 9px 10px;

    border-radius: 8px;

    font-size: 9px;
}

.side button.active,
.side button:hover {
    background: rgba(
        255,
        255,
        255,
        0.09
    );
}

.sub {
    display: none;
}

.sub.active {
    display: block;
}


/* =========================================================
   REVIEWS
   ========================================================= */

.review {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 6px;
}

.stars {
    color: #95723e;
}


/* =========================================================
   IMAGE PREVIEW
   ========================================================= */

.preview {
    height: 190px;

    border:
        1px dashed #b9c6bc;

    border-radius: 12px;

    overflow: hidden;

    display: grid;
    place-items: center;

    background: #eef3ef;
}

.preview img {
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   MODAL
   ========================================================= */

.modalback {
    position: fixed;
    inset: 0;

    background:
        rgba(18, 29, 22, 0.6);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 100;

    padding: 18px;
}

.modalback.open {
    display: flex;
}

.modal {
    width: min(650px, 100%);
    max-height: 90vh;

    overflow: auto;

    background: #fff;

    border-radius: 18px;
}

.modal-head {
    display: flex;
    justify-content: space-between;

    padding: 17px;

    border-bottom:
        1px solid var(--line);
}

.modal-body {
    padding: 18px;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;

    right: 18px;
    top: 84px;

    background: #213f30;
    color: #fff;

    padding: 11px 13px;

    border-radius: 10px;

    font-size: 9px;

    opacity: 0;

    transition: 0.2s;
}

.toast.show {
    opacity: 1;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-single {
    max-width: 430px;
    margin: 0 auto;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 16px 0;

    color: #929893;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
    content: "";

    height: 1px;

    background: var(--line);

    flex: 1;
}

.create-user-note {
    text-align: center;

    font-size: 10px;

    color: var(--m);

    margin: 0 0 8px;
}


/* =========================================================
   EVENT TRAIL DETAILS
   ========================================================= */

.trail-details {
    margin-top: 14px;
}

.trail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    padding: 10px 0;

    border-bottom:
        1px solid #e7ebe8;
}

.trail-row span {
    flex: 0 0 42%;

    color: #737c76;

    font-size: 11px;

    line-height: 1.45;
}

.trail-row strong {
    flex: 1;

    color: #24382f;

    font-size: 11px;

    font-weight: 500;

    line-height: 1.45;

    text-align: right;
}

.trail-divider {
    height: 14px;

    border-bottom:
        1px solid var(--line);

    margin-bottom: 5px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-top: 50px;

    background: #1f3d2e;

    color: #d8e2db;

    padding: 30px 4vw;
}

.footer-grid {
    width: min(1480px, 94vw);

    margin: auto;

    display: grid;

    grid-template-columns:
        1.2fr
        0.8fr
        0.8fr
        0.8fr;

    gap: 20px;
}

.footer p,
.footer a {
    font-size: 9px;
    line-height: 1.7;
}


/* Footer TRAILORA uses same typography as header */

.footer-brand {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    font-weight: 400;

    letter-spacing: 0.04em;

    color: #ffffff;

    margin-bottom: 10px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero img {
        min-height: 220px;
    }

    .grid3 {
        grid-template-columns:
            1fr 1fr;
    }

    .two,
    .layout {
        grid-template-columns: 1fr;
    }

    .side {
        min-height: auto;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .hero {
        width:
            calc(100% - 20px);
    }

    .hero-copy {
        padding: 28px 18px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .grid3,
    .grid4,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .section-head {
        display: block;
    }

    .trail-row {
        gap: 12px;
    }

    .trail-row span,
    .trail-row strong {
        font-size: 10px;
    }
}

/* =========================================================
   FULL EVENT DESCRIPTION
   ========================================================= */

.event-full-description {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.event-full-description h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: #233d2e;
    margin: 0 0 10px;
}

.event-full-description p {
    font-size: 13px;
    line-height: 1.75;
    color: #59645d;
    white-space: pre-line;
}

/* =========================================================
   CREATE USER POPUP - COMPACT DESKTOP LAYOUT
   ========================================================= */

#createUserForm {
    max-width: 620px;
    margin: 0 auto;
}

.create-user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.create-user-title {
    grid-column: 1 / -1;

    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;

    color: #233d2e;

    margin: 0 0 4px;
}

.create-user-grid .field {
    gap: 4px;
}

.create-user-grid .field label {
    font-size: 8px;
}

.create-user-grid .field input {
    padding: 8px 9px;
    font-size: 10px;
}

.create-user-actions {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 4px;
}

.create-user-actions .btn {
    width: 100%;
}


/* Make event login modal compact */

#eventLoginModal .modal {
    width: min(700px, 96vw) !important;
    max-height: 92vh;
    overflow: hidden;
}

#eventLoginModal .modal-body {
    padding: 16px 18px;
}


/* Mobile */

@media (max-width: 700px) {

    .create-user-grid {
        grid-template-columns: 1fr;
    }

    .create-user-title,
    .create-user-actions {
        grid-column: auto;
    }

    .create-user-actions {
        grid-template-columns: 1fr;
    }

    #eventLoginModal .modal {
        max-height: 94vh;
        overflow-y: auto;
    }
}

.modal-head button {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
    height: auto;
    font-size: 18px;
    color: #2a302c;
}

/* =========================================================
   LOGOUT BUTTON - NO BORDER
   ========================================================= */

.top button[onclick="logout()"] {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: var(--gd);
}

/* =========================================================
   HEADER BACK BUTTON - NO BORDER
   ========================================================= */

.top a[href="index.html"].btn.secondary {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.top .event-back {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: var(--gd);
}

/* =========================================================
   COMPACT ROTATING REVIEWS
   ========================================================= */

.compact-review {
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 12px;
}

.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.review-name {
    font-size: 13px;
    font-weight: 600;
    color: #223b2d;
    line-height: 1.2;
}

.review-stars {
    color: #95723e;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.review-text {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
}

/* =========================================================
   FOOTER LINKS
   ========================================================= */

.footer-links {
    font-size: 14px;
    line-height: 2;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   FOOTER LEGAL LINKS
   ========================================================= */

.footer-links a[href="privacy.html"],
.footer-links a[href="terms.html"] {
    font-size: 15px;
    line-height: 2;
    font-weight: 500;
}

/* =========================================================
   LEGAL SIDE DRAWER
   ========================================================= */

.legal-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;

    display: flex;
    justify-content: flex-end;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.legal-drawer.open {
    opacity: 1;
    visibility: visible;
}

.legal-drawer-panel {
    width: min(620px, 92vw);
    height: 100vh;

    background: #ffffff;
    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform 0.28s ease;
}

.legal-drawer.open .legal-drawer-panel {
    transform: translateX(0);
}

.legal-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.legal-drawer-head h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    color: #233d2e;
}

.legal-drawer-head button {
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.legal-drawer-body {
    flex: 1;
    min-height: 0;
}

.legal-drawer-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   CREATE ACCOUNT LEGAL CONSENT
   ========================================================= */

.legal-consent {
    grid-column: 1 / -1;

    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-top: 4px;

    font-size: 10px;
    line-height: 1.5;
    color: #59645d;
}

.legal-consent input {
    width: auto;
    margin-top: 2px;
}

.legal-consent a {
    color: #233d2e;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================================================
   MEMBER HOME HERO CAROUSEL
   ========================================================= */

.member-hero-carousel {
    position: relative;
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 26px;
    background: #dfe8e1;
}

.member-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.member-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.member-hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(18, 39, 27, 0.82) 0%,
            rgba(18, 39, 27, 0.55) 42%,
            rgba(18, 39, 27, 0.10) 100%
        );
}

.member-hero-content {
    position: absolute;
    z-index: 2;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    width: min(480px, 65%);
    color: #ffffff;
}

.member-hero-eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.88;
}

.member-hero-content h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 1.08;
    font-weight: 400;
    color: #ffffff;
}

.member-hero-content p {
    margin: 0 0 20px;
    max-width: 430px;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.90);
}

.member-hero-content .btn {
    border-color: rgba(255, 255, 255, 0.32);
}


.member-hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);

    display: flex;
    gap: 7px;
}

.member-hero-dots button {
    width: 7px;
    height: 7px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;

    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.member-hero-dots button.active {
    width: 22px;
    border-radius: 10px;
    background: #ffffff;
}


/* =========================================================
   MEMBER WELCOME
   ========================================================= */

.member-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 4px 0 20px;
}

.member-welcome h2 {
    margin: 4px 0 4px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 400;

    color: #223b2d;
}

.member-welcome p {
    margin: 0;
    font-size: 12px;
    color: #7a847e;
}


/* =========================================================
   MEMBER HERO MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .member-hero-carousel {
        height: 360px;
        border-radius: 16px;
    }

    .member-hero-content {
        left: 28px;
        width: calc(100% - 56px);
    }

    .member-hero-content h2 {
        font-size: 31px;
    }

    .member-hero-content p {
        font-size: 12px;
    }

}


/* =========================================================
   MEMBER FIXED SIDEBAR
   ========================================================= */

.layout {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
}


/* LOCK SIDEBAR TO SCREEN */

.member-side-sticky {
    position: fixed !important;

    top: 82px;
    left: 16px;

    width: 220px;

    height: auto !important;
    max-height: none !important;

    overflow: hidden !important;

    z-index: 50;
}


/* KEEP MEMBER CONTENT IN RIGHT COLUMN */

.layout > main {
    grid-column: 2;
    min-width: 0;
}


/* =========================================================
   SMALL SCREEN
   ========================================================= */

@media (max-width: 900px) {

    .layout {
        display: block;
    }

    .member-side-sticky {
        position: static !important;

        width: auto;

        height: auto !important;
        max-height: none !important;

        overflow: visible !important;
    }

    .layout > main {
        grid-column: auto;
    }

}


/* =========================================================
   TRAILORA COMMUNITY HUB
   ========================================================= */

.community-head {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:22px;
}

.community-head h2 {
    margin:3px 0 7px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:34px;
    line-height:1.1;
    font-weight:400;
    color:#223b2d;
}

.community-head p {
    margin:0;
    max-width:650px;
    font-size:12px;
    line-height:1.65;
    color:#7a847e;
}

.community-head-actions {
    display:flex;
    align-items:center;
    gap:10px;
}

.community-mini-stat {
    min-width:115px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:11px 13px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
}

.community-mini-stat small {
    display:block;
    font-size:8px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#8a938d;
}

.community-mini-stat strong {
    display:block;
    margin-top:2px;
    color:#244332;
    font-size:16px;
}

.community-status-dot {
    width:9px;
    height:9px;
    flex:0 0 9px;
    border-radius:50%;
}

.community-status-dot.online {
    background:#38a169;
}


/* =========================================================
   COMMUNITY WORKSPACE
   ========================================================= */

.community-workspace {
    display:grid;
    grid-template-columns:
        minmax(230px, .78fr)
        minmax(420px, 1.7fr)
        minmax(250px, .86fr);
    gap:14px;
    align-items:stretch;
    min-height:670px;
}

.community-directory,
.community-conversation,
.community-profile-panel {
    min-width:0;
}

.community-directory,
.community-conversation {
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    overflow:hidden;
}

.community-profile-panel {
    display:flex;
    flex-direction:column;
    gap:14px;
}


/* =========================================================
   DIRECTORY
   ========================================================= */

.community-panel-head {
    padding:18px 18px 12px;
}

.community-panel-head small,
.community-chat-head small,
.community-profile-block > small,
.community-profile-title small {
    display:block;
    margin-bottom:3px;
    font-size:8px;
    font-weight:700;
    letter-spacing:.10em;
    text-transform:uppercase;
    color:#89938d;
}

.community-panel-head h3,
.community-chat-head h3,
.community-profile-block h3,
.community-profile-title h3 {
    margin:0;
    color:#243d30;
    font-weight:500;
}

.community-search {
    padding:0 14px 10px;
}

.community-search input {
    width:100%;
    padding:11px 12px;
    box-sizing:border-box;
    border:1px solid var(--line);
    border-radius:12px;
    background:#f8faf8;
    font-size:11px;
}

.community-filters {
    display:flex;
    gap:5px;
    padding:0 14px 12px;
    overflow-x:auto;
}

.community-filters button {
    border:1px solid var(--line);
    border-radius:999px;
    padding:7px 10px;
    background:#fff;
    color:#66736b;
    font-size:9px;
    cursor:pointer;
    white-space:nowrap;
}

.community-filters button.active {
    background:#234d38;
    border-color:#234d38;
    color:#fff;
}

.community-member-list {
    max-height:570px;
    overflow-y:auto;
    border-top:1px solid #edf1ee;
}

.community-member {
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 14px;
    border:0;
    border-bottom:1px solid #eef1ef;
    background:#fff;
    text-align:left;
    cursor:pointer;
    transition:
        background .18s ease,
        transform .18s ease;
}

.community-member:hover {
    background:#f6f9f6;
}

.community-member.active {
    background:#eef6f0;
}

.community-avatar,
.community-message-avatar,
.community-selected-avatar {
    display:grid;
    place-items:center;
    flex:0 0 auto;
    border-radius:50%;
    background:#e5eee7;
    color:#284937;
    font-weight:700;
}

.community-avatar {
    position:relative;
    width:40px;
    height:40px;
    font-size:11px;
}

.community-presence {
    position:absolute;
    right:-1px;
    bottom:1px;
    width:9px;
    height:9px;
    border:2px solid #fff;
    border-radius:50%;
}

.community-presence.online {
    background:#38a169;
}

.community-presence.offline {
    background:#abb4ae;
}

.community-member-main {
    min-width:0;
    flex:1;
}

.community-member-top,
.community-member-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}

.community-member-top strong {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11px;
    color:#28372f;
}

.community-mood {
    font-size:16px;
}

.community-member-bottom {
    margin-top:4px;
    justify-content:flex-start;
    font-size:8px;
    color:#8b938e;
}

.community-role {
    display:inline-flex;
    align-items:center;
    width:max-content;
    padding:4px 7px;
    border-radius:999px;
    font-size:8px;
    font-weight:700;
}

.community-role.member {
    background:#edf4ef;
    color:#376149;
}

.community-role.admin {
    background:#263f32;
    color:#fff;
}


/* =========================================================
   CHAT
   ========================================================= */

.community-conversation {
    display:flex;
    flex-direction:column;
}

.community-chat-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding:17px 18px;
    border-bottom:1px solid var(--line);
}

.community-chat-tabs {
    display:flex;
    gap:5px;
    padding:4px;
    border-radius:10px;
    background:#f1f5f2;
}

.community-chat-tabs button {
    border:0;
    padding:7px 10px;
    border-radius:8px;
    background:transparent;
    color:#7b8580;
    font-size:9px;
    cursor:pointer;
}

.community-chat-tabs button.active {
    background:#fff;
    color:#234d38;
    box-shadow:0 1px 4px rgba(0,0,0,.07);
}

.community-chat-feed {
    flex:1;
    min-height:410px;
    max-height:475px;
    padding:18px;
    overflow-y:auto;
    background:#fbfcfb;
}

.community-day-label {
    width:max-content;
    margin:0 auto 18px;
    padding:5px 9px;
    border-radius:999px;
    background:#eef2ef;
    color:#8a928e;
    font-size:8px;
}

.community-message {
    display:flex;
    align-items:flex-start;
    gap:9px;
    margin-bottom:17px;
}

.community-message-avatar {
    width:34px;
    height:34px;
    font-size:9px;
}

.community-message-body {
    max-width:78%;
}

.community-message-meta {
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:5px;
    font-size:8px;
    color:#909792;
}

.community-message-meta strong {
    color:#35443b;
    font-size:9px;
}

.community-message-meta .admin {
    padding:2px 5px;
    border-radius:5px;
    background:#244b36;
    color:#fff;
}

.community-message-meta time {
    margin-left:auto;
}

.community-message-bubble {
    padding:11px 13px;
    border:1px solid #e6ebe7;
    border-radius:5px 14px 14px 14px;
    background:#fff;
    color:#4d5a52;
    font-size:11px;
    line-height:1.6;
}

.community-message-bubble.admin {
    background:#eff6f1;
    border-color:#dce9e0;
}

.community-composer {
    padding:14px;
    border-top:1px solid var(--line);
    background:#fff;
}

.community-composer textarea {
    width:100%;
    min-height:75px;
    resize:vertical;
    box-sizing:border-box;
    padding:11px 12px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fbfcfb;
    font:inherit;
    font-size:11px;
}

.community-composer-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:9px;
}

.community-composer-bottom span {
    font-size:9px;
    color:#8a938d;
}


/* =========================================================
   RIGHT PROFILE
   ========================================================= */

.community-profile-block {
    padding:17px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
}

.community-profile-title {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.community-big-mood {
    font-size:31px;
}

.community-profile-help {
    margin:9px 0 12px;
    color:#7b8580;
    font-size:10px;
    line-height:1.55;
}

.community-mood-picker {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:7px;
}

.community-mood-picker button {
    height:38px;
    border:1px solid #e3e9e5;
    border-radius:10px;
    background:#f9fbf9;
    font-size:18px;
    cursor:pointer;
    transition:
        transform .15s ease,
        background .15s ease;
}

.community-mood-picker button:hover {
    transform:translateY(-2px);
    background:#eef6f0;
}

.community-selected-member {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    margin:13px 0 15px;
}

.community-selected-avatar {
    width:64px;
    height:64px;
    margin-bottom:9px;
    font-size:16px;
}

.community-selected-member h3 {
    margin-bottom:7px;
}

.community-selected-badges {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}

.community-online-label {
    font-size:8px;
    color:#338258;
}

.community-member-stats {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:13px;
}

.community-member-stats > div {
    padding:10px;
    border-radius:11px;
    background:#f5f8f6;
    text-align:center;
}

.community-member-stats small {
    display:block;
    margin-bottom:3px;
    font-size:7px;
    text-transform:uppercase;
    letter-spacing:.07em;
    color:#909792;
}

.community-member-stats strong {
    color:#284937;
    font-size:15px;
}

.community-safe-profile {
    margin-bottom:13px;
    border-top:1px solid #edf0ee;
}

.community-safe-profile > div {
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:9px 0;
    border-bottom:1px solid #edf0ee;
    font-size:9px;
}

.community-safe-profile span {
    color:#8a938d;
}

.community-safe-profile strong {
    text-align:right;
    color:#4a5850;
}

.community-privacy-note {
    margin-bottom:13px;
    padding:9px 10px;
    border-radius:10px;
    background:#f6f8f6;
    color:#7b8580;
    font-size:8px;
    line-height:1.5;
}

.community-rule p {
    margin:7px 0 0;
    font-size:9px;
    line-height:1.6;
    color:#7d8781;
}


/* =========================================================
   COMMUNITY RESPONSIVE
   ========================================================= */

@media(max-width:1200px) {

    .community-workspace {
        grid-template-columns:
            230px
            minmax(0,1fr);
    }

    .community-profile-panel {
        grid-column:1 / -1;
        display:grid;
        grid-template-columns:
            repeat(3,1fr);
    }

}


@media(max-width:820px) {

    .community-head {
        align-items:flex-start;
        flex-direction:column;
    }

    .community-workspace {
        grid-template-columns:1fr;
    }

    .community-directory,
    .community-conversation,
    .community-profile-panel {
        grid-column:auto;
    }

    .community-profile-panel {
        display:flex;
    }

    .community-member-list {
        max-height:350px;
    }

    .community-chat-feed {
        max-height:430px;
    }

}


@media(max-width:520px) {

    .community-head-actions {
        width:100%;
    }

    .community-mini-stat {
        flex:1;
    }

    .community-chat-head {
        align-items:flex-start;
        flex-direction:column;
    }

}

/* =========================================================
   COMMUNITY CONNECTION REQUESTS
   ========================================================= */

.community-request-box {
    margin:0 14px 12px;
    padding:11px;
    border:1px solid #dce8df;
    border-radius:13px;
    background:#f4f8f5;
}

.community-request-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:9px;
}

.community-request-head small {
    display:block;
    margin-bottom:2px;
    font-size:7px;
    letter-spacing:.08em;
    color:#8a938d;
}

.community-request-head strong {
    font-size:10px;
    color:#2d4938;
}

.community-request-count {
    display:grid;
    place-items:center;
    min-width:22px;
    height:22px;
    padding:0 5px;
    border-radius:999px;
    background:#244b36;
    color:#fff;
    font-size:9px;
    font-weight:700;
}

.community-request-item {
    padding:9px 0;
    border-top:1px solid #e4ebe6;
}

.community-request-item:first-child {
    border-top:0;
}

.community-request-person {
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
}

.community-request-avatar {
    width:31px;
    height:31px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#e0ebe3;
    color:#284937;
    font-size:9px;
    font-weight:700;
}

.community-request-person strong {
    display:block;
    font-size:10px;
    color:#33463a;
}

.community-request-person span {
    display:block;
    margin-top:2px;
    font-size:8px;
    color:#89918c;
}

.community-request-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
}

.community-request-actions button {
    padding:7px;
    border-radius:8px;
    font-size:8px;
}

/* =========================================================
   COMMUNITY MESSAGE REACTIONS
   ========================================================= */

.community-reaction-area {
    position:relative;
    margin-top:6px;
}

.community-reaction-summary {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:5px;
}

.community-reaction-count,
.community-add-reaction {
    height:25px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:3px;

    padding:0 7px;

    border:1px solid #e0e7e2;
    border-radius:999px;

    background:#fff;

    font-size:11px;

    cursor:pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.community-reaction-count:hover,
.community-add-reaction:hover {
    transform:translateY(-1px);
    background:#f3f7f4;
}

.community-reaction-count span {
    font-size:8px;
    color:#69756e;
}

.community-reaction-count.mine {
    background:#eaf4ed;
    border-color:#bfd9c6;
}

.community-add-reaction {
    color:#7b8580;
    font-size:10px;
}


.community-reaction-picker {
    position:absolute;

    left:0;
    bottom:31px;

    display:none;
    align-items:center;
    gap:3px;

    padding:6px;

    background:#fff;

    border:1px solid #dfe7e1;
    border-radius:14px;

    box-shadow:
        0 8px 28px
        rgba(25,50,35,.13);

    z-index:100;
}

.community-reaction-picker.open {
    display:flex;
}

.community-reaction-picker button {
    width:31px;
    height:31px;

    display:grid;
    place-items:center;

    padding:0;

    border:0;
    border-radius:9px;

    background:transparent;

    font-size:17px;

    cursor:pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.community-reaction-picker button:hover {
    background:#edf5ef;
    transform:scale(1.12);
}

/* =========================================================
   COMMUNITY V1 FINAL
   ========================================================= */

.community-nav-badge,
.community-chat-badge {
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:18px;
    height:18px;

    margin-left:5px;
    padding:0 5px;

    border-radius:999px;

    background:#c95845;
    color:#fff;

    font-size:8px;
    line-height:1;
    font-weight:700;
}


.community-notification-box {
    margin:0 14px 12px;
    padding:11px;

    border:1px solid #dde8e0;
    border-radius:13px;

    background:#f8faf8;
}


.community-notification-head {
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:8px;
}


.community-notification-head small {
    display:block;

    font-size:7px;
    letter-spacing:.08em;

    color:#89928d;
}


.community-notification-head strong {
    display:block;

    margin-top:2px;

    font-size:10px;

    color:#32493a;
}


.community-notification-item {
    padding:8px 5px;

    border-top:1px solid #e7ece8;

    color:#667069;

    font-size:9px;
    line-height:1.45;
}


.community-notification-item.unread {
    color:#274537;
    font-weight:600;

    background:#f0f6f2;
}


.community-notification-item small {
    display:block;

    margin-top:3px;

    color:#929993;

    font-size:7px;
}


.community-notification-read {
    width:100%;

    margin-top:7px;
    padding:6px;

    border:0;

    background:transparent;

    color:#47705a;

    font-size:8px;

    cursor:pointer;
}


.community-message-menu {
    position:relative;

    margin-left:auto;
}


.community-message-menu summary {
    width:25px;
    height:25px;

    display:grid;
    place-items:center;

    list-style:none;

    border-radius:50%;

    cursor:pointer;

    color:#7b847f;
}


.community-message-menu summary::-webkit-details-marker {
    display:none;
}


.community-message-menu summary:hover {
    background:#eef3ef;
}


.community-message-menu-box {
    position:absolute;

    right:0;
    top:28px;

    z-index:150;

    width:90px;

    padding:5px;

    border:1px solid #e0e7e2;
    border-radius:9px;

    background:#fff;

    box-shadow:
        0 7px 20px
        rgba(28,49,35,.12);
}


.community-message-menu-box button {
    width:100%;

    padding:7px;

    border:0;
    border-radius:6px;

    background:transparent;

    text-align:left;

    color:#48554d;

    font-size:9px;

    cursor:pointer;
}


.community-message-menu-box button:hover {
    background:#f1f5f2;
}


.community-load-earlier {
    display:block;

    margin:0 auto 12px;
    padding:7px 13px;

    border:1px solid #dce6df;
    border-radius:999px;

    background:#fff;

    color:#4b6b58;

    font-size:8px;

    cursor:pointer;
}


.community-load-earlier:hover {
    background:#f1f6f2;
}


.community-empty-chat {
    padding:45px 20px;

    text-align:center;

    color:#8a938d;

    font-size:11px;
    line-height:1.7;
}


/* =========================================================
   MEMBER LEVELING PANEL
   ========================================================= */

.member-welcome {
    display: grid;
    grid-template-columns:
        minmax(260px, .75fr)
        minmax(500px, 1.25fr);
    gap: 28px;
    align-items: center;
}


/* LEFT WELCOME SIDE */

.member-welcome-info {
    min-width: 0;
}


/* RIGHT LEVEL PANEL */

.member-level-panel {
    padding: 18px 20px 14px;
    border: 1px solid #dfe8e2;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f6faf7 100%
        );
}


/* HEADER */

.member-level-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}


.member-level-header small {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #7d8981;
}


.member-level-header strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #234332;
}


#memberLevelTrailCount {
    font-size: 12px;
    color: #718078;
    white-space: nowrap;
}


/* =========================================================
   TRAIL TRACK
   ========================================================= */

.member-level-track-wrap {
    position: relative;
    margin-top: 8px;
    padding-top: 40px;
}


.member-level-track {
    display: flex;
    height: 11px;
    gap: 3px;
    overflow: hidden;
    border-radius: 999px;
}


/* LEVEL WIDTHS */

.member-level-part.beginner {
    flex: 10;
}

.member-level-part.intermediate {
    flex: 15;
}

.member-level-part.advanced {
    flex: 15;
}

.member-level-part.expert {
    flex: 20;
}


/* EMPTY LEVEL BAR */

.member-level-part {
    position: relative;
    overflow: hidden;
    background: #e4eae6;
}


/* INNER FILL */

.member-level-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    transition:
        width .7s ease;
}


/* LEVEL COLORS */

.beginner
.member-level-fill {
    background: #84b58e;
}


.intermediate
.member-level-fill {
    background: #4f9879;
}


.advanced
.member-level-fill {
    background: #d5a14f;
}


.expert
.member-level-fill {
    background: #274d37;
}


/* =========================================================
   HIKER
   ========================================================= */

.member-level-hiker {
    position: absolute;
    top: -4px;
    left: 2%;
    width: 46px;
    height: 46px;
    transform: translateX(-50%);
    z-index: 5;

    transition:
        left .8s ease;

    animation:
        trailoraHikerWalk 1.2s ease-in-out infinite;
}


.member-level-hiker svg {
    display: block;
    width: 100%;
    height: 100%;

    filter:
        drop-shadow(
            0 2px 2px
            rgba(0,0,0,.15)
        );
}


/* SMALL FUN WALKING MOTION */

@keyframes trailoraHikerWalk {

    0% {
        transform:
            translateX(-50%)
            translateY(0)
            rotate(0deg);
    }

    25% {
        transform:
            translateX(-50%)
            translateY(-2px)
            rotate(-2deg);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(0)
            rotate(1deg);
    }

    75% {
        transform:
            translateX(-50%)
            translateY(-2px)
            rotate(-1deg);
    }

    100% {
        transform:
            translateX(-50%)
            translateY(0)
            rotate(0deg);
    }

}


/* =========================================================
   LEVEL LABELS
   ========================================================= */

.member-level-labels {
    display: grid;

    grid-template-columns:
        10fr 15fr 15fr 20fr;

    gap: 3px;

    margin-top: 8px;
}


.member-level-labels span {
    text-align: center;
    font-size: 10px;
    color: #526159;
}


.member-level-labels small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    color: #98a29b;
}


/* MESSAGE UNDER BAR */

.member-level-message {
    margin-top: 10px;
    text-align: right;
    font-size: 11px;
    color: #64736a;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (
    max-width: 1000px
) {

    .member-welcome {
        grid-template-columns: 1fr;
    }

}


@media (
    max-width: 600px
) {

    .member-level-panel {
        padding:
            16px 12px 12px;
    }


    .member-level-labels span {
        font-size: 8px;
    }


    .member-level-hiker {
        width: 40px;
        height: 40px;
    }

}

/* =========================================================
   EVENT MEMBER REVIEWS
   ========================================================= */

.trail-member-reviews {
    overflow: hidden;
}


.trail-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}


.trail-review-head h2 {
    margin: 0;
}


.trail-review-head span {
    font-size: 11px;
    color: #7c8981;
}


/* KEEP THE REVIEW AREA COMPACT */

.trail-review-list {
    max-height: 260px;
    overflow-y: auto;
}


/* ONE REVIEW = ONE SMALL ROW */

.trail-review-row {
    display: grid;

    grid-template-columns:
        135px
        92px
        minmax(0, 1fr)
        90px;

    gap: 12px;

    align-items: center;

    min-height: 38px;

    padding: 8px 4px;

    border-bottom:
        1px solid #e8ede9;
}


.trail-review-row:last-child {
    border-bottom: 0;
}


.trail-review-member {
    font-size: 12px;
    font-weight: 600;
    color: #294233;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.trail-review-stars {
    font-size: 13px;
    letter-spacing: 1px;
    color: #c6923b;
    white-space: nowrap;
}


.trail-review-comment {
    font-size: 12px;
    line-height: 1.35;
    color: #59655e;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.trail-review-date {
    font-size: 11px;
    color: #8a958e;
    text-align: right;
    white-space: nowrap;
}


.trail-review-empty {
    padding: 12px 4px;
    font-size: 12px;
    color: #7c8981;
}


/* MOBILE */

@media (max-width: 700px) {

    .trail-review-row {

        grid-template-columns:
            1fr auto;

        gap: 5px 10px;

    }


    .trail-review-comment {
        grid-column:
            1 / -1;

        white-space: normal;
    }


    .trail-review-date {
        text-align: right;
    }

}

/* =========================================================
   EVENT SHARE ACTIONS
   ========================================================= */

.event-share-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    gap: 8px;

    margin-top: 14px;
}


.event-share-actions .btn {
    width: 100%;
}


@media (max-width: 650px) {

    .event-share-actions {
        grid-template-columns:
            1fr;
    }

}

/* =========================================================
   ADMIN CONTROL CENTER
   ========================================================= */

.admin-layout {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
}

.admin-side-sticky {
    position: fixed !important;
    top: 82px;
    left: 16px;
    width: 220px;
    max-height: calc(100vh - 98px);
    overflow-y: auto;
    z-index: 45;
}

.admin-main {
    grid-column: 2;
    min-width: 0;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-sync-state {
    font-size: 10px;
    color: #6f7c74;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f2;
    border: 1px solid var(--line);
}

.admin-side-sticky button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-nav-badge {
    min-width: 18px;
    min-height: 18px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 9px;
    line-height: 1;
    background: rgba(255,255,255,.15);
    color: #fff;
}

.admin-nav-badge:empty {
    display: none;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-panel-head h3 {
    margin: 3px 0 0;
}

.admin-attention-row {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: #56645b;
}

.admin-attention-row:last-child {
    border-bottom: 0;
}

.admin-workspace {
    display: grid;
    grid-template-columns: minmax(420px, .9fr) minmax(520px, 1.1fr);
    gap: 16px;
    align-items: start;
}

.admin-list-panel,
.admin-editor-panel {
    min-width: 0;
}

.admin-editor-panel {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-toolbar-wrap {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.admin-toolbar input,
.admin-toolbar select {
    width: 100%;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.admin-table th {
    text-align: left;
    padding: 9px 8px;
    border-bottom: 1px solid var(--line);
    color: #6d7971;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #edf0ee;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: #f7faf8;
}

.admin-selected-row {
    background: #eef5f0 !important;
}

.admin-form-group {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfb;
    overflow: hidden;
}

.admin-form-group summary {
    cursor: pointer;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #2a4736;
    background: #f4f7f5;
    border-bottom: 1px solid transparent;
}

.admin-form-group[open] summary {
    border-bottom-color: var(--line);
}

.admin-form-group .admin-form-grid,
.admin-form-group .admin-adjustment-grid,
.admin-form-group .admin-check-grid {
    padding: 14px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-form-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-form-grid .full {
    grid-column: 1 / -1;
}

.admin-form-grid .field,
.admin-carousel-card .field {
    min-width: 0;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.admin-carousel-card input,
.admin-carousel-card select,
.admin-carousel-card textarea {
    width: 100%;
}

.admin-form-grid textarea,
.admin-carousel-card textarea {
    min-height: 78px;
    resize: vertical;
}

.admin-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #526158;
    padding: 9px 0;
}

.admin-check input {
    width: auto;
}

.admin-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-image-editor {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 12px;
}

.admin-image-preview {
    width: 150px;
    height: 105px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #eef3ef;
    display: none;
}

.admin-image-editor label,
.admin-adjustment-grid label {
    display: block;
    font-size: 10px;
    color: #647168;
    margin-bottom: 6px;
}

.admin-image-editor input {
    width: 100%;
    margin-bottom: 7px;
}

.admin-inline-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f7f5;
    border: 1px solid var(--line);
    color: #66736b;
    font-size: 10px;
    line-height: 1.55;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.admin-review-list,
.admin-community-list {
    display: grid;
    gap: 9px;
}

.admin-review-row,
.admin-community-item,
.admin-directory-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.admin-review-row.selected,
.admin-directory-row.selected {
    background: #eef5f0;
    border-color: #cbdacf;
}

.admin-review-row p,
.admin-community-item p {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #536159;
}

.admin-review-main {
    min-width: 0;
}

.admin-review-main .stars {
    color: #b78a39;
    letter-spacing: 1px;
    margin-right: 8px;
}

.admin-adjustment-grid {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.admin-inline-controls {
    display: grid;
    grid-template-columns: 90px minmax(100px, .7fr) minmax(140px, 1fr) auto;
    gap: 7px;
}

.admin-inline-controls input,
.admin-inline-controls select {
    width: 100%;
}

.admin-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-check-card {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 10px;
}

.admin-check-card input {
    margin-top: 2px;
}

.admin-check-card span {
    display: grid;
    gap: 2px;
}

.admin-check-card small {
    color: #7b867f;
}

.admin-directory-row {
    align-items: center;
    margin-bottom: 8px;
}

.admin-carousel-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-carousel-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfb;
}

.admin-carousel-card .field {
    margin-top: 9px;
}

.admin-key-value {
    display: grid;
    gap: 0;
    margin-top: 8px;
}

.admin-key-value > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}

.admin-key-value > div:last-child {
    border-bottom: 0;
}

.admin-key-value span {
    color: #6c7970;
}

.admin-file-button {
    position: relative;
    overflow: hidden;
}

.admin-file-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .admin-workspace,
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-editor-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .admin-layout {
        display: block;
    }

    .admin-side-sticky {
        position: static !important;
        width: auto;
        max-height: none;
        overflow: visible;
        margin-bottom: 16px;
    }

    .admin-main {
        grid-column: auto;
    }

    .admin-top-actions {
        gap: 5px;
    }

    .admin-sync-state {
        display: none;
    }
}

@media (max-width: 650px) {
    .admin-stats,
    .admin-form-grid,
    .admin-form-grid-4,
    .admin-check-grid,
    .admin-carousel-editor {
        grid-template-columns: 1fr;
    }

    .admin-toolbar,
    .admin-toolbar-wrap {
        grid-template-columns: 1fr;
    }

    .admin-image-editor {
        grid-template-columns: 1fr;
    }

    .admin-image-preview {
        width: 100%;
        height: 180px;
    }

    .admin-inline-controls {
        grid-template-columns: 1fr;
    }

    .admin-review-row,
    .admin-community-item,
    .admin-directory-row {
        flex-direction: column;
    }

    .admin-top-actions .btn {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 10px;
    }
}

/* =========================================================
   HIKING-LEBANON
   GUEST EXPERIENCE V1
   Desktop Header + Mobile Menu + Mobile Bottom Navigation
   ========================================================= */


/* ---------------------------------------------------------
   GUEST BRAND TOKENS
   --------------------------------------------------------- */

body.guest-view {

    --guest-forest:
        #1B3A2E;

    --guest-evergreen:
        #2E533F;

    --guest-sage:
        #8DA695;

    --guest-ivory:
        #F8F5EB;

    --guest-stone:
        #D7D0C4;

    --guest-text:
        #24352D;

    --guest-muted:
        #718078;

    --guest-line:
        rgba(
            27,
            58,
            46,
            0.12
        );

    background:
        var(--guest-ivory);

    color:
        var(--guest-text);
}


/* =========================================================
   GUEST HEADER
   ========================================================= */

.guest-topbar {

    position:
        sticky;

    top:
        0;

    z-index:
        1000;

    width:
        100%;

    min-height:
        78px;

    display:
        flex;

    align-items:
        center;

    gap:
        28px;

    padding:
        12px 4vw;

    background:
        rgba(
            248,
            245,
            235,
            0.96
        );

    border-bottom:
        1px solid
        var(--guest-line);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


/* =========================================================
   BRAND
   ========================================================= */

.guest-brand {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    margin-right:
        auto;

    color:
        var(--guest-forest);

    text-decoration:
        none;

    min-width:
        0;
}


.guest-brand-mark {

    width:
        48px;

    height:
        48px;

    flex:
        0 0 48px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    overflow:
        hidden;

    background:
        var(--guest-forest);
}


.guest-brand-mark img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}


.guest-brand-copy {

    min-width:
        0;
}


.guest-brand-title {

    display:
        block;

    margin:
        0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        22px;

    line-height:
        1;

    font-weight:
        600;

    letter-spacing:
        0.015em;

    color:
        var(--guest-forest);

    white-space:
        nowrap;
}


.guest-brand-subtitle {

    display:
        block;

    margin-top:
        5px;

    font-size:
        10px;

    line-height:
        1;

    font-weight:
        500;

    letter-spacing:
        0.28em;

    color:
        var(--guest-evergreen);

    white-space:
        nowrap;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.guest-desktop-nav {

    display:
        flex;

    align-items:
        center;

    gap:
        28px;
}


.guest-desktop-nav a {

    position:
        relative;

    padding:
        10px 0;

    font-size:
        13px;

    font-weight:
        600;

    letter-spacing:
        0.035em;

    color:
        var(--guest-evergreen);

    text-decoration:
        none;
}


.guest-desktop-nav a::after {

    content:
        "";

    position:
        absolute;

    left:
        0;

    right:
        0;

    bottom:
        3px;

    height:
        1px;

    background:
        var(--guest-forest);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform
        0.2s
        ease;
}


.guest-desktop-nav a:hover::after,
.guest-desktop-nav a.active::after {

    transform:
        scaleX(1);
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.guest-header-actions {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;
}


/* =========================================================
   HIKING-LEBANON BUTTON SYSTEM
   ========================================================= */

.guest-btn {

    min-height:
        42px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    padding:
        10px 18px;

    border-radius:
        9px;

    border:
        1px solid
        transparent;

    font-size:
        12px;

    line-height:
        1;

    font-weight:
        700;

    letter-spacing:
        0.035em;

    text-decoration:
        none;

    cursor:
        pointer;

    transition:
        transform
        0.18s
        ease,
        background
        0.18s
        ease,
        color
        0.18s
        ease,
        border-color
        0.18s
        ease;
}


.guest-btn:hover {

    transform:
        translateY(-1px);
}


/* PRIMARY */

.guest-btn-primary {

    background:
        var(--guest-forest);

    color:
        var(--guest-ivory);

    border-color:
        var(--guest-forest);
}


.guest-btn-primary:hover {

    background:
        var(--guest-evergreen);

    border-color:
        var(--guest-evergreen);
}


/* SECONDARY */

.guest-btn-secondary {

    background:
        transparent;

    color:
        var(--guest-forest);

    border-color:
        rgba(
            27,
            58,
            46,
            0.35
        );
}


.guest-btn-secondary:hover {

    background:
        rgba(
            141,
            166,
            149,
            0.12
        );
}


/* SOFT */

.guest-btn-soft {

    background:
        rgba(
            141,
            166,
            149,
            0.16
        );

    color:
        var(--guest-forest);
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.guest-menu-toggle {

    width:
        44px;

    height:
        44px;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        0;

    border:
        1px solid
        var(--guest-line);

    border-radius:
        10px;

    background:
        transparent;

    color:
        var(--guest-forest);

    cursor:
        pointer;
}


.guest-menu-toggle svg {

    width:
        22px;

    height:
        22px;
}


/* =========================================================
   MOBILE DRAWER BACKDROP
   ========================================================= */

.guest-mobile-menu-backdrop {

    position:
        fixed;

    inset:
        0;

    z-index:
        1190;

    background:
        rgba(
            17,
            31,
            24,
            0.42
        );

    opacity:
        0;

    visibility:
        hidden;

    transition:
        opacity
        0.22s
        ease,
        visibility
        0.22s
        ease;
}


.guest-mobile-menu-backdrop.open {

    opacity:
        1;

    visibility:
        visible;
}


/* =========================================================
   MOBILE DRAWER
   ========================================================= */

.guest-mobile-menu {

    position:
        fixed;

    top:
        0;

    right:
        0;

    z-index:
        1200;

    width:
        min(
            360px,
            88vw
        );

    height:
        100dvh;

    padding:
        22px;

    display:
        flex;

    flex-direction:
        column;

    background:
        var(--guest-ivory);

    border-left:
        1px solid
        var(--guest-line);

    box-shadow:
        -16px
        0
        45px
        rgba(
            17,
            31,
            24,
            0.12
        );

    transform:
        translateX(105%);

    transition:
        transform
        0.25s
        ease;
}


.guest-mobile-menu.open {

    transform:
        translateX(0);
}


.guest-mobile-menu-head {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;

    padding-bottom:
        18px;

    border-bottom:
        1px solid
        var(--guest-line);
}


.guest-mobile-menu-label {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        22px;

    color:
        var(--guest-forest);
}


.guest-mobile-menu-close {

    width:
        42px;

    height:
        42px;

    display:
        grid;

    place-items:
        center;

    padding:
        0;

    border:
        0;

    background:
        transparent;

    color:
        var(--guest-forest);

    font-size:
        28px;

    cursor:
        pointer;
}


.guest-mobile-menu-links {

    display:
        grid;

    gap:
        4px;

    margin-top:
        18px;
}


.guest-mobile-menu-links a {

    display:
        flex;

    align-items:
        center;

    min-height:
        52px;

    padding:
        0 6px;

    border-bottom:
        1px solid
        var(--guest-line);

    font-size:
        16px;

    font-weight:
        600;

    color:
        var(--guest-evergreen);
}


.guest-mobile-menu-actions {

    display:
        grid;

    gap:
        10px;

    margin-top:
        auto;

    padding-top:
        24px;
}


.guest-mobile-menu-actions .guest-btn {

    width:
        100%;

    min-height:
        48px;
}


/* =========================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================= */

.guest-mobile-bottom {

    display:
        none;

    position:
        fixed;

    left:
        10px;

    right:
        10px;

    bottom:
        max(
            8px,
            env(
                safe-area-inset-bottom
            )
        );

    z-index:
        1100;

    min-height:
        66px;

    padding:
        7px 6px;

    grid-template-columns:
        repeat(
            5,
            1fr
        );

    align-items:
        center;

    background:
        rgba(
            248,
            245,
            235,
            0.98
        );

    border:
        1px solid
        var(--guest-line);

    border-radius:
        17px;

    box-shadow:
        0
        10px
        35px
        rgba(
            27,
            58,
            46,
            0.16
        );

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}


.guest-bottom-item {

    min-width:
        0;

    min-height:
        52px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        4px;

    padding:
        4px 2px;

    border:
        0;

    border-radius:
        11px;

    background:
        transparent;

    color:
        #78847D;

    text-decoration:
        none;

    cursor:
        pointer;
}


.guest-bottom-item svg {

    width:
        20px;

    height:
        20px;

    stroke:
        currentColor;
}


.guest-bottom-item span {

    overflow:
        hidden;

    max-width:
        100%;

    font-size:
        9px;

    line-height:
        1;

    font-weight:
        600;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.guest-bottom-item.active {

    background:
        rgba(
            141,
            166,
            149,
            0.16
        );

    color:
        var(--guest-forest);
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (
    max-width:
        1000px
) {

    .guest-topbar {

        min-height:
            68px;

        padding:
            10px 16px;

        gap:
            12px;
    }


    .guest-desktop-nav,
    .guest-header-actions {

        display:
            none;
    }


    .guest-menu-toggle {

        display:
            inline-flex;
    }


    .guest-brand-mark {

        width:
            42px;

        height:
            42px;

        flex-basis:
            42px;
    }


    .guest-brand-title {

        font-size:
            18px;
    }


    .guest-brand-subtitle {

        margin-top:
            4px;

        font-size:
            8px;

        letter-spacing:
            0.20em;
    }

}


/* =========================================================
   MOBILE ONLY
   ========================================================= */

@media (
    max-width:
        700px
) {

    body.guest-view {

        padding-bottom:
            92px;
    }


    .guest-mobile-bottom {

        display:
            grid;
    }


    .guest-brand-title {

        font-size:
            17px;
    }


    .guest-brand-subtitle {

        font-size:
            7.5px;
    }

}


/* VERY SMALL PHONES */

@media (
    max-width:
        380px
) {

    .guest-brand-subtitle {

        display:
            none;
    }


    .guest-brand-title {

        font-size:
            16px;
    }


    .guest-mobile-bottom {

        left:
            6px;

        right:
            6px;
    }


    .guest-bottom-item span {

        font-size:
            8px;
    }

}
