/* ── LetsGoHiking Theme — Brown & Orange (Redesign) ────────────────────────── */

:root {
    /* Core palette */
    --lgh-brown: #5C3317;
    --lgh-brown-dark: #231206;
    --lgh-brown-darker: #120803;
    --lgh-brown-light: #8B5A2B;
    --lgh-brown-muted: #F0E5D8;
    --lgh-orange: #D4601A;
    /*    --lgh-orange-dark:  #B04010;*/
    --lgh-orange-dark: #af561c;
    --lgh-orange-light: #FBE8D3;
    --lgh-earth: #7D5A3C;
    /*    --lgh-cream: #EDE8DD;*/
    --lgh-cream: #fbf4e3;
    --lgh-text: #1A0A00;
    --lgh-text-muted: #8B7355;
    --lgh-border: #E8DDD5;
    --lgh-green: #2E7D32;
    /* Spacing & shape */
    --lgh-radius-sm: 8px;
    --lgh-radius-md: 12px;
    --lgh-radius-lg: 16px;
    /* Shadows */
    --lgh-shadow-sm: 0 1px 3px rgba(35, 18, 6, 0.06);
    --lgh-shadow: 0 2px 8px rgba(35, 18, 6, 0.08);
    --lgh-shadow-md: 0 4px 16px rgba(35, 18, 6, 0.12);
    --lgh-shadow-lg: 0 8px 30px rgba(35, 18, 6, 0.16);
    /* Motion */
    --lgh-transition: 0.2s ease;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */

html, body {
    font-family: 'Cabin', 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--lgh-cream);
    color: var(--lgh-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito Sans', 'Cabin', sans-serif;
    font-weight: 700;
    color: var(--lgh-brown-dark);
    letter-spacing: -0.01em;
}

h1:focus { outline: none; }

a, .btn-link {
    color: var(--lgh-brown);
    transition: color var(--lgh-transition);
}

a:hover {
    color: var(--lgh-orange);
}

/* ── Page title & subtitle ─────────────────────────────────────────────────── */

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--lgh-brown-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--lgh-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.section-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lgh-brown-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Navbar ─────────────────────────────────────────────────────────────────── */

.lgh-navbar {
    background-color: #231206 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.lgh-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    transition: color 0.15s;
}

.lgh-navbar .navbar-nav .nav-link:hover,
.lgh-navbar .navbar-nav .nav-link.active {
    color: #fff !important;
}

.lgh-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.4) !important;
}

.lgh-navbar .dropdown-menu {
    background-color: #231206;
    border-color: rgba(255,255,255,0.12);
    border-radius: var(--lgh-radius-sm);
}

.lgh-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.88);
}

.lgh-navbar .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.15);
    color: #fff;
}

.navbar-logo {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.navbar-subtitle {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--lgh-orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Main content area below navbar */
.lgh-main {
    min-height: calc(100vh - 60px);
}

/* ── Site Footer ────────────────────────────────────────────────────────────── */

.lgh-footer {
    background-color: var(--lgh-brown-dark);
    color: rgba(255,255,255,0.75);
    margin-top: 3rem;
}

.lgh-footer-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.lgh-footer-tagline {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    margin-top: 2px;
}

.lgh-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    opacity: 0.88;
    transition: opacity 0.15s, transform 0.15s;
}

.lgh-footer-social:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.lgh-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
}

.lgh-footer-indemnity-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: underline;
    transition: color 0.15s;
}

.lgh-footer-indemnity-btn:hover {
    color: #fff;
}

.lgh-footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.lgh-footer-contact-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}

.lgh-footer-contact-link:hover {
    color: #fff;
}

/* ── Bootstrap Button Overrides ────────────────────────────────────────────── */

/* Primary = orange CTA */
.btn-primary {
    background-color: var(--lgh-orange);
    border-color: var(--lgh-orange-dark);
    color: #fff;
    font-weight: 600;
    border-radius: var(--lgh-radius-sm);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 0.5rem 1.25rem;
    transition: all var(--lgh-transition);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--lgh-orange-dark);
    border-color: var(--lgh-orange-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 96, 26, 0.3);
}

/* Outline primary — brown */
.btn-outline-primary {
    color: var(--lgh-brown);
    border-color: var(--lgh-brown);
    border-radius: var(--lgh-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 0.5rem 1.25rem;
    transition: all var(--lgh-transition);
}
.btn-outline-primary:hover {
    background-color: var(--lgh-brown);
    border-color: var(--lgh-brown-dark);
    color: #fff;
}

/* Outline brown — mockup "DETAILS" button */
.btn-outline-brown {
    color: var(--lgh-brown);
    border: 2px solid var(--lgh-brown);
    background: transparent;
    border-radius: var(--lgh-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 0.45rem 1.15rem;
    transition: all var(--lgh-transition);
}
.btn-outline-brown:hover {
    background-color: var(--lgh-brown);
    color: #fff;
}

/* Secondary — medium brown */
.btn-secondary {
    background-color: var(--lgh-brown);
    border-color: var(--lgh-brown-dark);
    color: #fff;
    font-weight: 600;
    border-radius: var(--lgh-radius-sm);
    transition: all var(--lgh-transition);
}
.btn-secondary:hover {
    background-color: var(--lgh-brown-dark);
    border-color: var(--lgh-brown-darker);
    color: #fff;
}

/* Success */
.btn-success { background-color: var(--lgh-green) !important; border-color: #256b29 !important; color: #fff !important; font-weight: 600; border-radius: var(--lgh-radius-sm); }
.btn-success:hover { background-color: #256b29 !important; }
.bg-success { background-color: var(--lgh-green) !important; }

/* Warning — shares orange CTA */
.btn-accent, .btn-warning {
    background-color: var(--lgh-orange);
    border-color: var(--lgh-orange-dark);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--lgh-radius-sm);
}
.btn-accent:hover, .btn-warning:hover {
    background-color: var(--lgh-orange-dark);
    border-color: var(--lgh-orange-dark);
    color: #fff !important;
}

/* Outline secondary */
.btn-outline-secondary {
    color: var(--lgh-text-muted);
    border-color: var(--lgh-border);
    border-radius: var(--lgh-radius-sm);
    transition: all var(--lgh-transition);
}
.btn-outline-secondary:hover {
    background-color: var(--lgh-border);
    color: var(--lgh-text);
}

/* Light outline */
.btn-outline-light {
    border-radius: var(--lgh-radius-sm);
    font-weight: 600;
}

/* Sizing */
.btn-sm {
    padding: 0.35rem 0.875rem;
    font-size: 0.8rem;
    border-radius: var(--lgh-radius-sm);
}

.btn-lg {
    border-radius: var(--lgh-radius-sm);
}

/* Focus ring */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 96, 26, 0.30);
    border-color: var(--lgh-orange);
    outline: none;
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */

.card {
    border: 1px solid var(--lgh-border);
    border-radius: var(--lgh-radius-md);
    box-shadow: var(--lgh-shadow-sm);
    background: #fff;
    transition: box-shadow var(--lgh-transition), transform var(--lgh-transition);
}

/* Interactive cards with hover lift */
.card-hover:hover {
    box-shadow: var(--lgh-shadow-md);
    transform: translateY(-3px);
}

/* Card accent strips — left border instead of top */
.card-accent         { border-left: 4px solid var(--lgh-orange) !important; }
.card-accent-brown   { border-left: 4px solid var(--lgh-brown) !important; }
.card-accent-danger  { border-left: 4px solid #dc3545 !important; }
.card-accent-success { border-left: 4px solid var(--lgh-green) !important; }
.card-accent-warning { border-left: 4px solid var(--lgh-orange) !important; }

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--lgh-border);
    border-radius: var(--lgh-radius-md) var(--lgh-radius-md) 0 0 !important;
    font-weight: 600;
    color: var(--lgh-brown-dark);
    padding: 1rem 1.25rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--lgh-border);
    border-radius: 0 0 var(--lgh-radius-md) var(--lgh-radius-md) !important;
    padding: 0.75rem 1.25rem;
}

.card-img-top {
    border-radius: var(--lgh-radius-md) var(--lgh-radius-md) 0 0;
    object-fit: cover;
    height: 200px;
}

.card-body {
    padding: 1.25rem;
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.badge {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35em 0.65em;
}

.badge.bg-primary   { background-color: var(--lgh-orange) !important; }
.badge.bg-success   { background-color: var(--lgh-green) !important; }
.badge.bg-warning   { background-color: var(--lgh-orange) !important; color: #fff !important; }
.badge.bg-info      { background-color: #3A86A8 !important; color: #fff !important; }
.badge.bg-secondary { background-color: var(--lgh-brown) !important; color: #fff !important; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */

.form-control, .form-select {
    border-color: var(--lgh-border);
    border-radius: var(--lgh-radius-sm);
    background-color: #fff;
    transition: border-color var(--lgh-transition), box-shadow var(--lgh-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--lgh-orange);
}

.form-label {
    font-weight: 600;
    color: var(--lgh-brown-dark);
    font-size: 0.875rem;
}

/* Rounded search bar (pill-shaped) */
.search-bar {
    background: #fff;
    border: 2px solid var(--lgh-border);
    border-radius: 25px;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    font-size: 0.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238B7355' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.85rem center;
    background-size: 15px;
    transition: border-color var(--lgh-transition), box-shadow var(--lgh-transition);
    width: 100%;
}
.search-bar:focus {
    border-color: var(--lgh-orange);
    box-shadow: 0 0 0 0.2rem rgba(212, 96, 26, 0.15);
    outline: none;
}

/* Filter bar wrapper */
.filter-bar {
    background: #fff;
    border-radius: var(--lgh-radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--lgh-shadow-sm);
    border: 1px solid var(--lgh-border);
    margin-bottom: 1.5rem;
}

/* ── Stat cards (detail pages) ─────────────────────────────────────────────── */

.stat-card {
    text-align: center;
    padding: 1rem;
    border-radius: var(--lgh-radius-md);
    background: #fff;
    border: 1px solid var(--lgh-border);
    transition: box-shadow var(--lgh-transition);
}

.stat-card:hover {
    box-shadow: var(--lgh-shadow);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lgh-brown-dark);
    line-height: 1.3;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--lgh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ── Info row (detail pages — icon + label + value) ────────────────────────── */

.info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--lgh-border);
}
.info-row:last-child { border-bottom: none; }

.info-row .info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lgh-orange-light);
    color: var(--lgh-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.info-row .info-label {
    font-size: 0.75rem;
    color: var(--lgh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.info-row .info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lgh-brown-dark);
}

/* ── Avatar circles ────────────────────────────────────────────────────────── */

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lgh-border);
}

.avatar-circle-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lgh-border);
}

.avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lgh-orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Participant row ───────────────────────────────────────────────────────── */

.participant-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    background: var(--lgh-cream);
    border-radius: 25px;
    border: 1px solid var(--lgh-border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--lgh-brown-dark);
}

/* ── Club hero section ─────────────────────────────────────────────────────── */

.lgh-club-hero {
    background: var(--lgh-brown-dark);
    color: #fff;
    padding: 2rem 2rem;
    border-radius: var(--lgh-radius-lg);
    margin-bottom: 2rem;
}

.lgh-club-hero h2 {
    color: #fff;
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.1rem;
}

.lgh-club-hero .club-tagline {
    color: var(--lgh-orange);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    margin-bottom: 0;
}

.lgh-club-hero .club-divider {
    height: 2px;
    background: var(--lgh-orange);
    width: 60px;
    margin: 0.65rem 0;
    border: none;
}

.lgh-club-hero .club-description {
    color: #D4BFA8;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.lgh-club-hero .club-contact {
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
}

.lgh-club-hero .club-contact a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
}

.lgh-club-hero .club-contact a:hover {
    color: #fff;
}

.lgh-club-hero .indemnity-link {
    color: var(--lgh-orange);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.lgh-club-hero .indemnity-link:hover { color: #fff; }

/* ── Hike card (list pages) ────────────────────────────────────────────────── */

.hike-card {
    border-radius: var(--lgh-radius-md);
    overflow: hidden;
    border: 1px solid var(--lgh-border);
    background: #fff;
    box-shadow: var(--lgh-shadow-sm);
    transition: box-shadow var(--lgh-transition), transform var(--lgh-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.hike-card:hover {
    box-shadow: var(--lgh-shadow-md);
    transform: translateY(-3px);
}

.hike-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    position: relative;
}

.hike-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hike-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lgh-brown-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.hike-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--lgh-text-muted);
}

.hike-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.hike-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

/* Status overlay on card image */
.hike-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.hike-card-live {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

/* ── Photo gallery grid ────────────────────────────────────────────────────── */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

.photo-grid-item {
    border-radius: var(--lgh-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--lgh-shadow-sm);
    transition: box-shadow var(--lgh-transition), transform var(--lgh-transition);
}
.photo-grid-item:hover {
    box-shadow: var(--lgh-shadow-md);
    transform: translateY(-2px);
}

.photo-grid-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.photo-grid-item .photo-main-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 193, 7, 0.9);
    color: #231206;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ── Alerts ─────────────────────────────────────────────────────────────────── */

.alert {
    border-radius: var(--lgh-radius-sm);
}

.alert-info {
    background-color: #FFF3CD;
    border-color: #FBBF24;
    color: #92400E;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background-color: var(--lgh-orange-light);
    border-color: #f5c6a0;
    color: #7a3010;
}

.alert-danger {
    background-color: #fde8e8;
    border-color: #f5a0a0;
    color: #7f1d1d;
}

/* ── Tables ─────────────────────────────────────────────────────────────────── */

.table {
    --bs-table-striped-bg: var(--lgh-cream);
    border-radius: var(--lgh-radius-sm);
}

.table th {
    color: var(--lgh-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--lgh-border);
    padding: 0.75rem 1rem;
    background: var(--lgh-cream);
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* ── Content area ───────────────────────────────────────────────────────────── */

.content {
    padding-top: 0.5rem;
}

/* Page header row */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--lgh-border);
}

/* ── Pagination ────────────────────────────────────────────────────────────── */

.page-item.active .page-link {
    background-color: var(--lgh-orange);
    border-color: var(--lgh-orange);
}

.page-link {
    color: var(--lgh-brown);
    border-radius: var(--lgh-radius-sm);
    margin: 0 2px;
    transition: all var(--lgh-transition);
    border: 1px solid var(--lgh-border);
}

.page-link:hover {
    background-color: var(--lgh-orange-light);
    color: var(--lgh-orange-dark);
    border-color: var(--lgh-orange-light);
}

.page-item.disabled .page-link {
    color: var(--lgh-text-muted);
    opacity: 0.5;
}

/* ── Carousel ───────────────────────────────────────────────────────────────── */

.carousel-item img {
    object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* ── Modals ─────────────────────────────────────────────────────────────────── */

.modal-content {
    border-radius: var(--lgh-radius-lg);
    border: none;
    box-shadow: var(--lgh-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--lgh-border);
    padding: 1.25rem 1.5rem;
    border-radius: var(--lgh-radius-lg) var(--lgh-radius-lg) 0 0;
}

.modal-footer {
    border-top: 1px solid var(--lgh-border);
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--lgh-radius-lg) var(--lgh-radius-lg);
}

/* ── Login ─────────────────────────────────────────────────────────────────── */

.login-page {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    display: flex;
    width: 100%;
    max-width: 860px;
    border-radius: var(--lgh-radius-lg);
    box-shadow: var(--lgh-shadow-lg), 0 20px 60px rgba(35, 18, 6, 0.22);
    overflow: hidden;
    border: none;
}

/* Brand panel */
.login-brand {
    flex: 0 0 320px;
    background: linear-gradient(155deg, var(--lgh-brown-dark) 0%, #3d1e08 55%, var(--lgh-brown) 100%);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(212, 96, 26, 0.18);
    pointer-events: none;
}

.login-brand::after {
    content: '';
    position: absolute;
    bottom: -90px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-brand-logo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    overflow: hidden;
}

.login-brand-logo img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.login-brand h2 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.login-brand > .login-brand-content > p {
    color: rgba(255,255,255,0.62);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.login-brand-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.14);
}

.login-brand-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-brand-stat i {
    font-size: 1.3rem;
    color: var(--lgh-orange);
}

/* Form panel */
.login-form-panel {
    flex: 1;
    background: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
}

.login-form-content {
    width: 100%;
}

.login-form-content h3 {
    color: var(--lgh-brown-dark);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: var(--lgh-text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.login-form-content .form-label {
    color: var(--lgh-brown-dark);
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

/* Icon inputs */
.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lgh-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 5;
}

.login-input {
    padding-left: 2.4rem !important;
    border: 1.5px solid var(--lgh-border) !important;
    border-radius: var(--lgh-radius-md) !important;
    padding-top: 0.68rem !important;
    padding-bottom: 0.68rem !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.login-input:focus {
    border-color: var(--lgh-orange) !important;
    box-shadow: 0 0 0 3px rgba(212, 96, 26, 0.12) !important;
}

.login-submit-btn {
    background: var(--lgh-orange);
    color: #fff;
    border: none;
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--lgh-radius-md);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.login-submit-btn:hover:not(:disabled) {
    background: var(--lgh-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 96, 26, 0.35);
    color: #fff;
}

.login-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    color: #fff;
}

/* Mobile: stack panels */
@media (max-width: 700px) {
    .login-card {
        flex-direction: column;
    }

    .login-brand {
        flex: none;
        padding: 2rem 1.5rem;
    }

    .login-brand-stats {
        display: none;
    }

    .login-form-panel {
        padding: 2rem 1.5rem;
    }
}

/* ── Upload dropzone ───────────────────────────────────────────────────────── */

.upload-dropzone {
    border: 2px dashed var(--lgh-border);
    border-radius: var(--lgh-radius-md);
    padding: 2rem;
    text-align: center;
    background: var(--lgh-cream);
    color: var(--lgh-text-muted);
    transition: border-color var(--lgh-transition);
}

.upload-dropzone:hover {
    border-color: var(--lgh-orange);
}

/* ── Social media buttons (compact) ────────────────────────────────────────── */

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    border: none;
    text-decoration: none;
    transition: opacity var(--lgh-transition), transform var(--lgh-transition);
}
.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.social-btn svg { width: 16px; height: 16px; }

/* ── Cancelled ribbon ──────────────────────────────────────────────────────── */

.cancelled-ribbon {
    position: absolute;
    top: 18px;
    right: -32px;
    background: #dc3545;
    color: #fff;
    padding: 5px 44px;
    transform: rotate(45deg);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* ── Welcome greeting ──────────────────────────────────────────────────────── */

.welcome-section {
    margin-bottom: 1.5rem;
}

.welcome-section h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--lgh-brown-dark);
    margin-bottom: 0.25rem;
}

.welcome-section p {
    color: var(--lgh-text-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ── Notes panel ───────────────────────────────────────────────────────────── */

.note-item {
    background: var(--lgh-cream);
    border-radius: var(--lgh-radius-sm);
    padding: 1rem;
    border: 1px solid var(--lgh-border);
    margin-bottom: 0.5rem;
}

/* ── Validation ─────────────────────────────────────────────────────────────── */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--lgh-green);
}

.invalid {
    outline: 1px solid #dc2626;
}

.validation-message {
    color: #dc2626;
    font-size: 0.8rem;
}

/* ── Blazor internals ───────────────────────────────────────────────────────── */

#blazor-error-ui {
    color-scheme: light only;
    background: #fef9c3;
    border-top: 2px solid var(--lgh-orange);
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.15);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--lgh-text);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #fee2e2;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #7f1d1d;
    border-radius: var(--lgh-radius-sm);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Loading spinner */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e8ddd5;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--lgh-orange);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--lgh-brown-dark);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: var(--lgh-earth);
}

/* Floating label fixes */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Responsive helpers ────────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .page-title {
        font-size: 1.4rem;
    }

    .card-img-top {
        height: 160px;
    }

    .hike-card-img {
        height: 160px;
    }

    .filter-bar {
        padding: 0.75rem 1rem;
    }
}
