/* CampCritter — Mobile-First App Theme */

:root {
    --cc-green: #2d6a4f;
    --cc-green-dark: #1b4332;
    --cc-green-light: #52b788;
    --cc-green-pale: #d8f3dc;
    --cc-earth: #8b5e3c;
    --cc-earth-light: #c49a6c;
    --cc-sky: #48cae4;
    --cc-bg: #f0f4f1;
    --cc-surface: #ffffff;
    --cc-border: #dde6e0;
    --cc-text: #1b2d22;
    --cc-text-muted: #6b7f72;
    --cc-radius: 16px;
    --cc-radius-sm: 10px;
    --cc-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --cc-shadow-card: 0 4px 20px rgba(0,0,0,0.09);
    --bottom-nav-height: 72px;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #e4ebe4;
    color: var(--cc-text);
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ---- App Shell ---- */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    background: var(--cc-bg);
    box-shadow: 0 0 60px rgba(0,0,0,0.15);
}

.app-content {
    flex: 1;
    padding-bottom: calc(var(--bottom-nav-height) + 8px);
    overflow-x: hidden;
}

/* ---- Mobile App Header ---- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    background: var(--cc-surface);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--cc-border);
}

/* ---- Bottom Navigation ---- */
.cc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bottom-nav-height);
    background: var(--cc-surface);
    border-top: 1px solid var(--cc-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    padding: 0 0.25rem;
}

.cc-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--cc-text-muted);
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 12px;
    transition: all 0.15s;
    flex: 1;
}

.cc-bottom-nav-item.active { color: var(--cc-green); }
.cc-bottom-nav-item.active svg { stroke: var(--cc-green); }

.cc-bottom-nav-add {
    width: 52px;
    height: 52px;
    background: var(--cc-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 16px rgba(45,106,79,0.45);
    flex-shrink: 0;
    margin-bottom: 10px;
    transition: all 0.15s;
}

.cc-bottom-nav-add:hover { background: var(--cc-green-dark); transform: scale(1.05); }

/* ---- Nav Badge ---- */
.cc-nav-badge-wrap {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.cc-nav-badge {
    background: #e63946;
    color: white;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    border-radius: 100px;
    min-width: 1.1rem;
    text-align: center;
}

/* ---- Invite Cards ---- */
.invite-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--cc-surface);
    border: 1.5px solid var(--cc-green);
    border-radius: var(--cc-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 2px 8px rgba(45,106,79,0.1);
}

.invite-card-info { flex: 1; min-width: 0; }

.invite-card-trip {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--cc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invite-card-meta {
    font-size: 0.75rem;
    color: var(--cc-text-muted);
    margin-top: 0.15rem;
}

.invite-card-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* ---- Trip Cards ---- */
.trip-card {
    background: var(--cc-surface);
    border-radius: var(--cc-radius);
    overflow: hidden;
    box-shadow: var(--cc-shadow-card);
    margin: 0 1.25rem 1.25rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s, box-shadow 0.15s;
}

.trip-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.13); }

.trip-card-hero {
    position: relative;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.trip-card-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.trip-card-hero-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.trip-card-hero-date {
    color: rgba(255,255,255,0.88);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    position: relative;
    z-index: 1;
}

.trip-card-body {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trip-card-meta {
    font-size: 0.82rem;
    color: var(--cc-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* ---- Gradient palettes ---- */
.trip-gradient-0 { background: linear-gradient(155deg, #1b4332 0%, #40916c 100%); }
.trip-gradient-1 { background: linear-gradient(155deg, #023e8a 0%, #0096c7 100%); }
.trip-gradient-2 { background: linear-gradient(155deg, #7c2d12 0%, #c2410c 100%); }
.trip-gradient-3 { background: linear-gradient(155deg, #4a1d96 0%, #7c3aed 100%); }
.trip-gradient-4 { background: linear-gradient(155deg, #134e4a 0%, #0d9488 100%); }

/* ---- Avatar Groups ---- */
.cc-avatar-group { display: flex; align-items: center; }

/* Standalone avatar (feed rows, log entries, etc.) */
.cc-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cc-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.cc-avatar-group .cc-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--cc-surface);
    object-fit: cover;
    margin-left: -8px;
    background: var(--cc-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.cc-avatar-group .cc-avatar-sm:first-child { margin-left: 0; }

.cc-avatar-group .cc-avatar-more {
    background: rgba(0,0,0,0.22);
    border-color: rgba(255,255,255,0.4);
    font-size: 0.62rem;
}

/* ---- Trip Hero (Dashboard) ---- */
.trip-hero {
    position: relative;
    height: 240px;
    background: linear-gradient(155deg, #1b4332 0%, #40916c 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    overflow: hidden;
}

.trip-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.trip-hero-content { position: relative; z-index: 1; }

.trip-hero-name {
    color: white;
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.trip-hero-date {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.trip-hero-actions { display: flex; align-items: center; gap: 0.75rem; }

.trip-hero-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.trip-hero-back,
.trip-hero-more {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.28);
    color: white;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.trip-hero-back:hover, .trip-hero-more:hover { background: rgba(0,0,0,0.45); }

/* ---- Progress ---- */
.cc-progress-bar {
    background: var(--cc-border);
    border-radius: 100px;
    height: 7px;
    overflow: hidden;
}

.cc-progress-bar-fill {
    background: var(--cc-green-light);
    height: 100%;
    border-radius: 100px;
    transition: width 0.4s ease;
}

.cc-progress-section {
    padding: 0.9rem 1.25rem;
    background: var(--cc-surface);
    border-bottom: 1px solid var(--cc-border);
}

.cc-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--cc-text);
    margin-bottom: 0.45rem;
}

/* ---- Tabs ---- */
.cc-tabs {
    display: flex;
    background: var(--cc-surface);
    border-bottom: 1px solid var(--cc-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 40;
}

.cc-tabs::-webkit-scrollbar { display: none; }

.cc-tab {
    flex: 1;
    padding: 0.8rem 0.5rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cc-text-muted);
    border-bottom: 2.5px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
    min-width: 0;
}

.cc-tab.active { color: var(--cc-green); border-bottom-color: var(--cc-green); }

/* ---- Category Sections ---- */
.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    background: #f6f9f7;
    border-top: 1px solid var(--cc-border);
    border-bottom: 1px solid var(--cc-border);
    margin-top: 0.5rem;
}

.cc-category-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cc-text);
}

.cc-category-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    background: var(--cc-green-pale);
}

.cc-category-count { font-size: 0.78rem; color: var(--cc-text-muted); font-weight: 500; }

/* ---- Checklist Items ---- */
.cc-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.25rem;
    background: var(--cc-surface);
    border-bottom: 1px solid var(--cc-border);
    transition: background 0.1s;
}

.cc-checklist-item.packed { background: rgba(216, 243, 220, 0.35); }
.cc-checklist-item.packed .item-name { text-decoration: line-through; color: var(--cc-text-muted); }

.cc-check-circle {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid var(--cc-border);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    background: transparent;
    color: transparent;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.cc-check-circle.checked { background: var(--cc-green-light); border-color: var(--cc-green-light); color: white; }

.cc-item-qty {
    display: inline-flex;
    align-items: center;
    background: var(--cc-border);
    border-radius: 6px;
    padding: 0.05rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cc-text-muted);
    margin-left: 0.3rem;
}

.cc-item-assignee {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
}

/* ---- Cards ---- */
.cc-card {
    background: var(--cc-surface);
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cc-card-mx { margin-left: 1.25rem; margin-right: 1.25rem; }

/* ---- Section Headers ---- */
.cc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    margin-bottom: 1rem;
}

.cc-section-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--cc-text); margin: 0; }

/* ---- Buttons ---- */
.btn-cc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-cc-primary { background: var(--cc-green); color: white; }
.btn-cc-primary:hover { background: var(--cc-green-dark); color: white; }

.btn-cc-secondary { background: var(--cc-green-pale); color: var(--cc-green); border: 1.5px solid var(--cc-green-light); }
.btn-cc-secondary:hover { background: #b7e4c7; }

.btn-cc-outline { background: transparent; color: var(--cc-green); border: 1.5px solid var(--cc-green); }
.btn-cc-outline:hover { background: var(--cc-green-pale); }

.btn-cc-danger { background: #dc3545; color: white; }
.btn-cc-danger:hover { background: #b02a37; }

.btn-cc-ghost {
    background: transparent;
    color: var(--cc-text-muted);
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cc-ghost:hover { background: var(--cc-border); }

.btn-cc-invite {
    background: rgba(255,255,255,0.22);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.65);
    font-size: 0.8rem;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: background 0.15s;
}

.btn-cc-invite:hover { background: rgba(255,255,255,0.32); }

/* ---- Campsite Cards ---- */
.campsite-card {
    background: var(--cc-surface);
    border-radius: var(--cc-radius);
    overflow: hidden;
    box-shadow: var(--cc-shadow-card);
    margin: 0 1.25rem 0.85rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: stretch;
    transition: transform 0.15s, box-shadow 0.15s;
}

.campsite-card:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }

.campsite-card-thumb {
    width: 95px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1b4332 0%, #40916c 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
}

.campsite-card-body {
    flex: 1;
    padding: 0.85rem 1rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

.campsite-card-name { font-size: 0.95rem; font-weight: 700; color: var(--cc-text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campsite-card-rating { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--cc-text-muted); }
.campsite-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }

/* ---- Campsite Detail ---- */
.campsite-detail-hero {
    height: 260px;
    background: linear-gradient(155deg, #1b4332 0%, #40916c 100%);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem;
    overflow: hidden;
}

.campsite-detail-hero-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 0.85rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 2;
}

.campsite-detail-header {
    padding: 1.25rem;
    background: var(--cc-surface);
    border-bottom: 1px solid var(--cc-border);
}

.campsite-detail-name { font-size: 1.35rem; font-weight: 700; color: var(--cc-text); margin: 0 0 0.4rem; }

/* ---- Metric Bars ---- */
.cc-metric-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; }
.cc-metric-label { font-size: 0.8rem; color: var(--cc-text-muted); min-width: 92px; flex-shrink: 0; }
.cc-metric-bar-track { flex: 1; height: 6px; background: var(--cc-border); border-radius: 100px; overflow: hidden; }
.cc-metric-bar-fill { height: 100%; border-radius: 100px; background: var(--cc-green-light); transition: width 0.4s ease; }
.cc-metric-bar-fill.low { background: #f97316; }
.cc-metric-bar-fill.mid { background: #eab308; }
.cc-metric-value { font-size: 0.8rem; font-weight: 700; color: var(--cc-text); min-width: 26px; text-align: right; }

/* ---- Tags/Chips ---- */
.cc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: var(--cc-green-pale);
    color: var(--cc-green);
    border-radius: 100px;
    padding: 0.18rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.cc-tag-muted { background: var(--cc-border); color: var(--cc-text-muted); }

/* ---- Filter chips ---- */
.cc-filter-chips {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.25rem 0.85rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.cc-filter-chips::-webkit-scrollbar { display: none; }

.cc-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid var(--cc-border);
    background: var(--cc-surface);
    color: var(--cc-text-muted);
    transition: all 0.15s;
}

.cc-chip.active { background: var(--cc-green-pale); border-color: var(--cc-green-light); color: var(--cc-green); }

/* ---- Search bar ---- */
.cc-search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--cc-surface);
    border: 1.5px solid var(--cc-border);
    border-radius: 100px;
    padding: 0.55rem 1rem;
    margin: 0.85rem 1.25rem 0.5rem;
}

.cc-search-bar input { flex: 1; border: none; outline: none; font-size: 0.9rem; background: transparent; color: var(--cc-text); }
.cc-search-bar input::placeholder { color: var(--cc-text-muted); }

/* ---- Rating stars ---- */
.cc-stars { color: #f59e0b; font-size: 0.88rem; }

/* ---- Badges ---- */
.cc-badge {
    display: inline-block;
    border-radius: 100px;
    padding: 0.15rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cc-badge-car      { background: #d1fae5; color: #065f46; }
.cc-badge-hikein   { background: #fef3c7; color: #92400e; }
.cc-badge-boatonly { background: #dbeafe; color: #1e40af; }
.cc-badge-unknown  { background: var(--cc-border); color: var(--cc-text-muted); }
.cc-badge-organizer { background: #fde68a; color: #92400e; }
.cc-badge-member   { background: var(--cc-border); color: var(--cc-text-muted); }

/* ---- Forms ---- */
.cc-form-group { margin-bottom: 1.25rem; }

.cc-form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--cc-text); font-size: 0.875rem; }

.cc-form-group input,
.cc-form-group textarea,
.cc-form-group select {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--cc-border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    color: var(--cc-text);
    transition: border-color 0.15s;
}

.cc-form-group input:focus,
.cc-form-group textarea:focus,
.cc-form-group select:focus {
    border-color: var(--cc-green-light);
    outline: 2px solid rgba(82,183,136,0.2);
}

.cc-page-padded { padding: 1.25rem; }

/* ---- Modal (bottom sheet) ---- */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.cc-modal {
    background: white;
    border-radius: var(--cc-radius) var(--cc-radius) 0 0;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.cc-modal h3 { margin-top: 0; color: var(--cc-green); font-size: 1.25rem; }
.cc-modal p  { color: var(--cc-text-muted); margin-bottom: 1.5rem; }
.cc-modal-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* ---- Empty state ---- */
.cc-empty { text-align: center; padding: 3rem 1.5rem; color: var(--cc-text-muted); }
.cc-empty-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.cc-empty h3 { color: var(--cc-text); margin-bottom: 0.5rem; font-size: 1.1rem; }

/* ---- Discover: filter tabs ---- */
.discover-filters {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--cc-border);
    background: var(--cc-surface);
}
.discover-filters::-webkit-scrollbar { display: none; }

.discover-filter-tab {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--cc-border);
    background: transparent;
    color: var(--cc-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.discover-filter-tab.active {
    background: var(--cc-primary);
    color: #fff;
    border-color: var(--cc-primary);
}

/* ---- Discover: body clamp / show more ---- */
.discover-body-clamp {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.discover-more-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cc-primary);
    cursor: pointer;
}

/* ---- Discover: skeleton loader ---- */
.discover-skeleton { display: flex; flex-direction: column; }
.discover-skeleton-card {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--cc-border);
}
.discover-skeleton-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.discover-skeleton-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--cc-border);
    animation: cc-shimmer 1.4s ease infinite;
}
.discover-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.discover-skeleton-line {
    height: 10px; border-radius: 6px;
    background: var(--cc-border);
    animation: cc-shimmer 1.4s ease infinite;
}
.discover-skeleton-photo {
    width: 100%; aspect-ratio: 16/9; border-radius: 8px;
    background: var(--cc-border);
    animation: cc-shimmer 1.4s ease infinite;
}
@keyframes cc-shimmer {
    0%   { opacity: 1; }
    50%  { opacity: 0.45; }
    100% { opacity: 1; }
}

/* ---- Alert ---- */
.cc-alert { border-radius: 10px; padding: 0.75rem 1rem; margin: 0 1.25rem 1rem; font-size: 0.875rem; }
.cc-alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.cc-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* ---- Action bar ---- */
.cc-action-bar {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--cc-surface);
    border-top: 1px solid var(--cc-border);
}

.cc-action-bar .btn-cc { flex: 1; justify-content: center; }

/* ---- Avatars ---- */
.cc-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.cc-avatar-initials {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--cc-green-light);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* ---- Reviews ---- */
.cc-review-card { padding: 1.25rem; border-bottom: 1px solid var(--cc-border); background: var(--cc-surface); }
.cc-review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }

/* ---- Participants list ---- */
.cc-participant-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--cc-border); background: var(--cc-surface); }

/* ---- Hero (landing) ---- */
.cc-hero { background: linear-gradient(135deg, var(--cc-green) 0%, var(--cc-green-light) 100%); color: white; padding: 2.5rem 1.5rem; text-align: center; }
.cc-hero h1 { font-size: 1.9rem; margin-bottom: 0.75rem; }
.cc-hero p  { font-size: 1rem; opacity: 0.9; margin-bottom: 1.75rem; }
.cc-hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.btn-cc-hero-primary  { background: white; color: var(--cc-green); padding: 0.7rem 1.75rem; font-size: 0.95rem; }
.btn-cc-hero-secondary { background: rgba(255,255,255,0.15); color: white; border: 2px solid rgba(255,255,255,0.6); padding: 0.7rem 1.75rem; font-size: 0.95rem; }

/* ---- Google sign-in ---- */
.btn-cc-google { background: white; color: #3c4043; border: 1.5px solid #dadce0; box-shadow: 0 1px 3px rgba(0,0,0,0.12); padding: 0.6rem 1.5rem; border-radius: 100px; }
.btn-cc-google:hover { background: #f8f9fa; }

    --cc-green-pale: #d8f3dc;
    --cc-earth: #8b5e3c;
    --cc-earth-light: #c49a6c;
    --cc-sky: #48cae4;
    --cc-bg: #f8f9f4;
    --cc-surface: #ffffff;
    --cc-border: #d0ddd6;
    --cc-text: #1b2d22;
    --cc-text-muted: #5a7160;
    --cc-radius: 12px;
    --cc-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--cc-bg);
    color: var(--cc-text);
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* ---- Layout ---- */
.cc-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.cc-nav {
    background-color: var(--cc-green);
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.cc-nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cc-nav-brand span.logo-icon { font-size: 1.6rem; }

.cc-nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.cc-nav-links a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.15s;
}

.cc-nav-links a:hover, .cc-nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.cc-nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cc-green-light);
}

.cc-avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cc-green-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.cc-main {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ---- Cards ---- */
.cc-card {
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.15s;
}

.cc-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

.cc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* ---- Buttons ---- */
.btn-cc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-cc-primary {
    background: var(--cc-green);
    color: white;
}

.btn-cc-primary:hover { background: #245a41; color: white; }

.btn-cc-secondary {
    background: var(--cc-green-pale);
    color: var(--cc-green);
    border: 1px solid var(--cc-green-light);
}

.btn-cc-secondary:hover { background: #b7e4c7; }

.btn-cc-outline {
    background: transparent;
    color: var(--cc-green);
    border: 1px solid var(--cc-green);
}

.btn-cc-outline:hover { background: var(--cc-green-pale); }

.btn-cc-danger {
    background: #dc3545;
    color: white;
}

.btn-cc-danger:hover { background: #b02a37; }

.btn-cc-google {
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    padding: 0.5rem 1.25rem;
}

.btn-cc-google:hover { background: #f8f9fa; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }

/* ---- Hero ---- */
.cc-hero {
    background: linear-gradient(135deg, var(--cc-green) 0%, var(--cc-green-light) 100%);
    color: white;
    border-radius: var(--cc-radius);
    padding: 3.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.cc-hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.cc-hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 2rem; }
.cc-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-cc-hero-primary {
    background: white;
    color: var(--cc-green);
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-cc-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* ---- Forms ---- */
.cc-form-group { margin-bottom: 1rem; }
.cc-form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--cc-text); font-size: 0.9rem; }
.cc-form-group input,
.cc-form-group textarea,
.cc-form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--cc-border);
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: var(--cc-text);
    transition: border-color 0.15s;
}

.cc-form-group input:focus,
.cc-form-group textarea:focus,
.cc-form-group select:focus {
    border-color: var(--cc-green-light);
    outline: 2px solid rgba(82,183,136,0.25);
}

/* ---- Tags ---- */
.cc-tag {
    display: inline-block;
    background: var(--cc-green-pale);
    color: var(--cc-green);
    border-radius: 100px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0.1rem;
}

/* ---- Rating stars ---- */
.cc-stars { color: #f4a261; font-size: 1rem; }

/* ---- Section headings ---- */
.cc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.cc-section-header h2 { margin: 0; font-size: 1.5rem; color: var(--cc-green); }

/* ---- Checklist ---- */
.cc-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    margin-bottom: 0.5rem;
    transition: background 0.1s;
}

.cc-checklist-item.packed {
    background: var(--cc-green-pale);
    border-color: var(--cc-green-light);
}

.cc-checklist-item.packed .item-name { text-decoration: line-through; color: var(--cc-text-muted); }

.cc-progress-bar {
    background: var(--cc-border);
    border-radius: 100px;
    height: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.cc-progress-bar-fill {
    background: var(--cc-green-light);
    height: 100%;
    border-radius: 100px;
    transition: width 0.3s ease;
}

/* ---- Badges ---- */
.cc-badge {
    display: inline-block;
    border-radius: 100px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cc-badge-organizer { background: var(--cc-earth-light); color: white; }
.cc-badge-member { background: var(--cc-border); color: var(--cc-text-muted); }
.cc-badge-car { background: #74c69d; color: #1b4332; }
.cc-badge-hikein { background: #f4a261; color: #7c3a00; }
.cc-badge-boatonly { background: var(--cc-sky); color: #023e8a; }
.cc-badge-unknown { background: var(--cc-border); color: var(--cc-text-muted); }

/* ---- Modal ---- */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cc-modal {
    background: white;
    border-radius: var(--cc-radius);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.cc-modal h3 { margin-top: 0; color: var(--cc-green); font-size: 1.4rem; }
.cc-modal p { color: var(--cc-text-muted); margin-bottom: 1.5rem; }
.cc-modal-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* ---- Empty state ---- */
.cc-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--cc-text-muted);
}

.cc-empty-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.cc-empty h3 { color: var(--cc-text); margin-bottom: 0.5rem; }

/* ---- Alert ---- */
.cc-alert {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cc-alert-error { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.cc-alert-success { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }

/* ---- Tabs ---- */
.cc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--cc-border);
    margin-bottom: 1.5rem;
}

.cc-tab {
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cc-text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}

.cc-tab.active {
    color: var(--cc-green);
    border-bottom-color: var(--cc-green);
}

.cc-tab:hover { color: var(--cc-green); }

/* ---- Filters ---- */
.cc-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.cc-filters select, .cc-filters input {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--cc-border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    min-width: 140px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .cc-hero h1 { font-size: 1.75rem; }
    .cc-hero-actions { flex-direction: column; align-items: stretch; }
    .cc-card-grid { grid-template-columns: 1fr; }
    .cc-nav-links { display: none; }
    .cc-main { padding: 1rem; }
    .cc-tabs { overflow-x: auto; }
}

/* ---- Map Picker ---- */
.cc-map-picker {
    width: 100%;
    height: 280px;
    border-radius: var(--cc-radius);
    border: 1.5px solid var(--cc-border);
    overflow: hidden;
    position: relative;
    z-index: 0;
}

/* ---- Form Section Label ---- */
.cc-form-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cc-text-muted);
    margin: 1.25rem 0 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cc-border);
}

/* ---- Photo Upload ---- */
.cc-photo-upload-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border: 1.5px dashed var(--cc-border);
    border-radius: var(--cc-radius);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--cc-text-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    margin-top: 0.5rem;
}
.cc-photo-upload-btn:hover { border-color: var(--cc-green); color: var(--cc-green); }

.cc-photo-strip {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.cc-photo-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--cc-border);
    flex-shrink: 0;
}
.cc-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cc-photo-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ---- Photo Grid (Detail view) ---- */
.cc-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 0;
}
.cc-photo-grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--cc-border);
}
.cc-photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}
.cc-photo-grid-item:first-child {
    grid-column: span 3;
    aspect-ratio: 16/9;
}
.cc-photo-grid-item img:hover { transform: scale(1.03); }

/* ---- Profile Page ---- */
.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem 1.5rem;
    background: linear-gradient(160deg, var(--cc-green-dark) 0%, var(--cc-green) 100%);
    text-align: center;
}

.profile-avatar-wrap {
    margin-bottom: 0.9rem;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.55);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.profile-avatar-fallback {
    background: var(--cc-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.25rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.profile-email {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.profile-stats {
    display: flex;
    align-items: center;
    background: var(--cc-surface);
    border-bottom: 1px solid var(--cc-border);
    box-shadow: var(--cc-shadow);
}

.profile-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 0.15rem;
}

.profile-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--cc-text);
    line-height: 1;
}

.profile-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--cc-border);
    flex-shrink: 0;
}

.profile-section-group {
    margin-top: 1.5rem;
    background: var(--cc-surface);
    border-top: 1px solid var(--cc-border);
    border-bottom: 1px solid var(--cc-border);
}

.profile-section-title {
    padding: 0.5rem 1.25rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cc-text-muted);
}

.profile-list-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--cc-border);
    text-decoration: none;
    color: var(--cc-text);
    transition: background 0.12s;
    cursor: pointer;
    background: var(--cc-surface);
}

.profile-list-item:hover { background: #f6f9f7; }

.profile-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-list-icon-green { background: var(--cc-green-pale); color: var(--cc-green); }
.profile-list-icon-green svg { stroke: var(--cc-green); }

.profile-list-icon-sky { background: #e0f7fa; color: #0277bd; }
.profile-list-icon-sky svg { stroke: #0277bd; }

.profile-list-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.profile-list-chevron {
    color: var(--cc-text-muted);
    flex-shrink: 0;
}

.btn-cc-signout {
    width: 100%;
    justify-content: center;
    background: transparent;
    color: #c0392b;
    border: 1.5px solid #e8b4b8;
    border-radius: var(--cc-radius);
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.55rem;
    transition: background 0.15s, border-color 0.15s;
}

.btn-cc-signout svg { stroke: #c0392b; }
.btn-cc-signout:hover { background: #fdf0f0; border-color: #e57373; color: #a93226; }

/* Active avatar ring in bottom nav */
.nav-avatar-active {
    border: 2px solid var(--cc-green) !important;
    box-shadow: 0 0 0 2px var(--cc-green-pale);
}

/* ── Invite card (AcceptInvite page) ─────────────────────────────────── */
.invite-card {
    max-width: 420px;
    margin: 2rem auto;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.invite-card-hero {
    background: linear-gradient(135deg, var(--cc-green) 0%, #52b788 100%);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    color: #fff;
}
.invite-trip-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.5rem 0 0;
    line-height: 1.25;
}
.invite-card-body {
    padding: 1.5rem;
    background: var(--cc-surface);
}
.invite-from {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.invite-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--cc-text-muted);
    margin-bottom: 0.5rem;
}
.invite-meta-label {
    font-weight: 600;
    color: var(--cc-text);
    font-size: 0.85rem;
}

/* ── Pending badge ──────────────────────────────────────────────────── */
.cc-badge-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* ── Ghost icon button ──────────────────────────────────────────────── */
.btn-cc-ghost {
    background: transparent;
    border: none;
    color: var(--cc-text-muted);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.btn-cc-ghost:hover {
    background: var(--cc-green-pale);
    color: var(--cc-green);
}

/* ── Toast notification ─────────────────────────────────────────────── */
.cc-toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-height, 64px) + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    background: #1b4332;
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}

/* ---- Trip Campsite Chip (list card) ---- */
.trip-campsite-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--cc-green);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---- Trip Hero Campsite Chip (detail) ---- */
.trip-hero-campsite-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 100px;
    margin-top: 0.5rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.15s;
}
.trip-hero-campsite-chip:hover { background: rgba(255,255,255,0.28); color: white; }

/* ---- Campsite Panel (trip detail tab) ---- */
.campsite-panel-photos {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--cc-bg);
    border-bottom: 1px solid var(--cc-border);
}
.campsite-panel-photos::-webkit-scrollbar { display: none; }

.campsite-panel-photo {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: var(--cc-border);
}

.campsite-panel-body {
    padding: 1.25rem;
    background: var(--cc-surface);
}

.campsite-panel-header { margin-bottom: 1rem; }

.campsite-panel-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cc-text);
    margin: 0;
}

.campsite-panel-desc {
    font-size: 0.9rem;
    color: var(--cc-text-muted);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.campsite-panel-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.campsite-panel-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.campsite-panel-view-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ---- Checklist additions ---- */

.cc-add-form,
.cc-edit-form {
    padding: 1.25rem;
    background: var(--cc-surface);
    border-bottom: 1px solid var(--cc-border);
}

.cc-edit-form {
    background: #f6faf8;
}

/* Suggestion autocomplete dropdown */
.cc-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--cc-surface);
    border: 1.5px solid var(--cc-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    list-style: none;
    margin: 2px 0 0;
    padding: 0.25rem 0;
    max-height: 260px;
    overflow-y: auto;
}

.cc-suggestions-dropdown li {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--cc-text);
    transition: background 0.1s;
}

.cc-suggestions-dropdown li:hover {
    background: var(--cc-green-pale);
    color: var(--cc-green-dark);
}

/* Catalog-style suggestion rows (with photo / icon + name + category) */
.cc-catalog-item {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.75rem !important;
}

.cc-catalog-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--cc-border);
    flex-shrink: 0;
}

.cc-catalog-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: var(--cc-green-pale);
    border-radius: 6px;
}

.cc-catalog-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cc-catalog-cat {
    font-size: 0.75rem;
    color: var(--cc-text-muted);
    flex-shrink: 0;
}

/* Item photo thumbnail in list */
.cc-item-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid var(--cc-border);
    flex-shrink: 0;
}

/* Photo preview in add/edit forms */
.cc-item-photo-preview {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid var(--cc-border);
}

/* Public suggestion badge */
.cc-item-public-badge {
    font-size: 0.72rem;
    margin-left: 0.3rem;
    opacity: 0.65;
    vertical-align: middle;
}

