/* ============================================
   The Wandering Thompsons — Family RV Travel
   Warm, Airbnb-inspired design language
   ============================================ */

/* Variables */
:root {
    --bg: #faf8f5;
    --card-bg: #ffffff;
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --secondary: #d4a373;
    --secondary-light: #e6c9a8;
    --coral: #e76f51;
    --coral-light: #f4a261;
    --text: #222222;
    --text-secondary: #6a6a6a;
    --text-dim: #999999;
    --success: #40916c;
    --border: #e8e4df;
    --border-light: #f0ece7;
    --shadow: rgba(0,0,0,0.02) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 6px, rgba(0,0,0,0.1) 0px 4px 8px;
    --shadow-sm: rgba(0,0,0,0.02) 0px 0px 0px 1px, rgba(0,0,0,0.03) 0px 1px 3px;
    --shadow-lg: rgba(0,0,0,0.04) 0px 0px 0px 1px, rgba(0,0,0,0.06) 0px 4px 12px, rgba(0,0,0,0.12) 0px 8px 24px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 24px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--text); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

/* ============ TOP NAV ============ */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.nav-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.2;
}

.nav-brand-tagline {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(45, 106, 79, 0.06);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(45, 106, 79, 0.08);
}

/* ============ BOTTOM NAV (mobile) ============ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    z-index: 100;
    padding: 0.4rem 0.25rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s;
    font-weight: 500;
}

.bottom-nav-item .nav-icon { font-size: 1.2rem; }

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

.bottom-nav-item:hover { color: var(--primary); }

/* ============ FOOTER ============ */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.main-content.map-page, .main-content.chat-page {
    padding: 0;
    max-width: 100%;
}

/* ============ DASHBOARD ============ */
.dashboard {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-greeting {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-content {}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card.accent .stat-number { color: var(--primary); }
.stat-card.highlight .stat-number { color: var(--secondary); }

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.dash-section h2 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Card list */
.card-list { display: flex; flex-direction: column; gap: 0.5rem; }

.list-card {
    padding: 0.85rem 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.list-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.08);
}

.list-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.list-card-sub {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.list-card-meta {
    color: var(--text-dim);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.list-card-countdown {
    display: inline-block;
    background: rgba(45, 106, 79, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    margin-top: 0.3rem;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.empty-state a {
    color: var(--coral);
    font-weight: 600;
}

/* Quick actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.15s;
    border: 2px solid var(--border);
    color: var(--text);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.action-btn.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.action-btn.primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}

/* ============ MAP ============ */
#map-container {
    height: calc(100vh - 64px);
    position: relative;
    display: flex;
}

#map { flex: 1; z-index: 1; }

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 500;
}

.map-control-toggle {
    background: var(--card-bg);
    color: var(--text);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.15s;
}

.map-control-toggle:hover {
    box-shadow: var(--shadow-lg);
}

.map-control-panel {
    display: none;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.5rem;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
}

.map-control-panel.open { display: block; }

.control-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.control-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.control-item select {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
}

.map-stats {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.filter-section-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0 4px;
    font-weight: 600;
}

.filter-section-label:first-child { margin-top: 0; }

/* Map popups */
.leaflet-popup-content-wrapper {
    background: var(--card-bg) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    color: var(--text) !important;
}

.leaflet-popup-tip { background: var(--card-bg) !important; }

.popup-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.popup-location { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 4px; }
.popup-stars { color: #e6a817; font-size: 0.85rem; margin-bottom: 4px; }
.popup-badge {
    display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill);
    font-size: 0.72rem; font-weight: 600; margin: 2px 2px 2px 0;
}
.popup-badge.fits { background: rgba(45, 106, 79, 0.12); color: var(--primary); }
.popup-badge.unknown { background: rgba(212, 163, 115, 0.15); color: var(--secondary); }
.popup-badge.small { background: rgba(231, 111, 81, 0.12); color: var(--coral); }
.popup-badge.tag { background: rgba(45, 106, 79, 0.08); color: var(--primary-light); }
.popup-link { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--primary); font-weight: 600; }

/* ============ CHAT ============ */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    background: var(--bg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 85%;
}

.message.user {
    align-self: flex-end;
}

.message.assistant {
    align-self: flex-start;
}

.message-bubble {
    padding: 0.85rem 1.1rem;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.55;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.message.assistant .message-bubble {
    background: #ffffff;
    color: var(--text);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.message-bubble strong { font-weight: 700; }
.message-bubble code {
    background: rgba(0,0,0,0.06);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}
.message.user .message-bubble code {
    background: rgba(255,255,255,0.15);
}

.message-bubble a {
    color: var(--coral);
    text-decoration: underline;
}
.message.user .message-bubble a { color: #fff; }

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.suggestion-btn {
    background: transparent;
    border: 1.5px solid var(--secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    font-weight: 500;
}

.suggestion-btn:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: #fff;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
    opacity: 0.4;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.tool-indicator { align-self: flex-start; }

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(45, 106, 79, 0.08);
    border: 1px solid rgba(45, 106, 79, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 500;
}

.tool-badge.done {
    background: rgba(45, 106, 79, 0.06);
    border-color: rgba(45, 106, 79, 0.1);
    color: var(--primary-light);
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.chat-input-area {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.chat-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    transition: border-color 0.15s;
}

.chat-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.chat-input-wrap textarea {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    outline: none;
    padding: 0.3rem 0.5rem;
    line-height: 1.4;
}

.chat-input-wrap textarea::placeholder { color: var(--text-dim); }

.chat-input-wrap button {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.chat-input-wrap button:hover { background: var(--primary-light); }
.chat-input-wrap button:disabled { background: var(--border); cursor: not-allowed; }

/* ============ CAMPGROUNDS ============ */
.campgrounds-page {
    max-width: 1200px;
    margin: 0 auto;
}

.search-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-bar {
    flex: 1;
    display: flex;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
    color: var(--text);
    outline: none;
}

.search-bar input::placeholder { color: var(--text-dim); }

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.15s;
}

.search-btn:hover { background: var(--primary-light); }

.filter-toggle {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
}

.filter-toggle:hover { border-color: var(--primary); color: var(--primary); }

.content-with-sidebar {
    display: flex;
    gap: 1.5rem;
}

.filter-sidebar {
    width: 280px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 80px;
    flex-shrink: 0;
}

.filter-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-group select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    background: var(--card-bg);
    color: var(--text);
}

.filter-group input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.apply-btn {
    width: 100%;
    padding: 0.65rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s;
}

.apply-btn:hover { background: var(--primary-light); }

.results-area { flex: 1; min-width: 0; }

.results-info {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.campground-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.campground-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.card-location {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.card-rating {
    color: #e6a817;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.card-amenities {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.5px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: rgba(45, 106, 79, 0.08);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
}

.card-link {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-green { background: rgba(45, 106, 79, 0.12); color: var(--primary); }
.badge-red { background: rgba(231, 111, 81, 0.12); color: var(--coral); }
.badge-yellow { background: rgba(212, 163, 115, 0.15); color: #b8860b; }

.badge-dreaming { background: rgba(212, 163, 115, 0.15); color: var(--secondary); }
.badge-planning { background: rgba(45, 106, 79, 0.1); color: var(--primary-light); }
.badge-booked { background: rgba(45, 106, 79, 0.15); color: var(--primary); }
.badge-active { background: rgba(231, 111, 81, 0.12); color: var(--coral); }
.badge-completed { background: rgba(106, 106, 106, 0.1); color: var(--text-dim); }
.badge-cancelled { background: rgba(106, 106, 106, 0.08); color: var(--text-dim); }

.load-more { text-align: center; margin-top: 1.5rem; }

.load-more-btn {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    padding: 0.65rem 2rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s;
}

.load-more-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ============ TRIPS ============ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 { margin: 0; }

.trip-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

.trip-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid var(--border-light);
    position: relative;
}

.trip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.trip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.trip-card-link {
    text-decoration: none;
    color: var(--text);
    flex: 1;
    min-width: 0;
}

.trip-card-link h3 { margin: 0; font-size: 1.1rem; }

.trip-card-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.trip-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.trip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.trip-stats-bar {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

/* Status dropdown */
.status-dropdown-wrap { position: relative; }
.status-badge-click { cursor: pointer; }
.status-badge-click:hover { filter: brightness(0.9); }

.status-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    z-index: 100;
    min-width: 150px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.status-dropdown div {
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    font-size: 0.82rem;
    white-space: nowrap;
    color: var(--text);
}

.status-dropdown div:hover { background: rgba(45, 106, 79, 0.06); }

/* Icon buttons */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.icon-btn:hover { opacity: 1; }
.icon-btn-danger:hover { background: rgba(231, 111, 81, 0.1); }

.icon-btn-sm {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0.1rem 0.2rem;
    opacity: 0.5;
}

.icon-btn-sm:hover { opacity: 1; }
.icon-btn-sm.icon-btn-danger:hover { background: rgba(231, 111, 81, 0.1); }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal h2 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s;
}

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

.btn-primary:hover { background: var(--primary-light); }

.btn-secondary {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--text-dim); }

.btn-danger {
    background: var(--coral);
    color: #fff;
}

.btn-danger:hover { background: #d45a3d; }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }

.btn-coral {
    background: var(--coral);
    color: #fff;
}

.btn-coral:hover { background: #d45a3d; }

/* ============ TRIP DETAIL ============ */
.trip-detail-page { padding-bottom: 0 !important; }

.trip-header {
    padding: 0.75rem 1rem;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.trip-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.trip-header h1 {
    margin: 0.3rem 0 0.4rem;
    font-size: 1.4rem;
    cursor: pointer;
}

.trip-header h1:hover { color: var(--primary); }

.trip-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.trip-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trip-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

.trip-summary-bar {
    margin: 0 1rem 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.summary-val {
    color: var(--text);
    font-weight: 700;
}

.trip-section {
    margin: 0 1rem 0.75rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-header h2 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
}

.graph-scroll-container,
.timeline-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

.graph-scroll-container::-webkit-scrollbar,
.timeline-scroll-container::-webkit-scrollbar { height: 6px; }

.graph-scroll-container::-webkit-scrollbar-track,
.timeline-scroll-container::-webkit-scrollbar-track { background: var(--bg); }

.graph-scroll-container::-webkit-scrollbar-thumb,
.timeline-scroll-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.trip-graph { min-height: 130px; }
.trip-graph svg, .trip-timeline svg { display: block; }
.trip-timeline { min-height: 80px; }

.trip-split {
    display: flex;
    flex: 1;
    min-height: 0;
    height: calc(100vh - 520px);
    min-height: 300px;
}

.trip-stops-panel {
    width: 460px;
    min-width: 340px;
    overflow-y: auto;
    border-right: 1px solid var(--border-light);
    padding: 0 0 1rem;
    background: var(--card-bg);
}

.trip-map-panel {
    flex: 1;
    position: relative;
}

#tripMap { width: 100%; height: 100%; }

.stops-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 2;
    border-bottom: 1px solid var(--border-light);
}

.stops-header h2 { margin: 0; font-size: 1rem; }

.stop-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.stop-card:hover { background: var(--bg); }

.stop-order {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.stop-info { flex: 1; min-width: 0; }
.stop-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.stop-location { color: var(--text-dim); font-size: 0.75rem; }
.stop-dates, .stop-drive { font-size: 0.75rem; color: var(--text-secondary); }
.stop-notes-preview { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }

.stop-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.stop-status-select {
    padding: 0.15rem 0.3rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
}

.stop-actions { display: flex; gap: 0.15rem; }

.nights-calc {
    font-size: 0.82rem;
    color: var(--primary);
    margin: -0.5rem 0 0.5rem;
    font-weight: 500;
}

.trip-notes-section {
    margin: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.trip-notes-section h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--text);
}

.trip-notes-section textarea {
    width: 100%;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.trip-notes-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.search-results {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.search-result-item {
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-light);
}

.search-result-item:hover { background: rgba(45, 106, 79, 0.06); }
.search-result-item .sr-name { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.search-result-item .sr-meta { font-size: 0.72rem; color: var(--text-dim); }

.selected-campground {
    padding: 0.5rem 0.6rem;
    background: rgba(45, 106, 79, 0.06);
    border: 1px solid rgba(45, 106, 79, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.res-picker-item {
    padding: 0.6rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.res-picker-item:hover { background: rgba(45, 106, 79, 0.06); }

.empty-state-sm {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
}

/* ============ BOOKINGS ============ */
.bookings-page {
    max-width: 900px;
    margin: 0 auto;
}

.bookings-page h1 {
    color: var(--text);
    margin-bottom: 1.25rem;
}

.booking-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tab-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.15s;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.bookings-page .card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.bookings-page .card h3 {
    color: var(--primary);
    margin: 0 0 0.85rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.res-row {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
    transition: border-color 0.15s;
}

.res-row:hover { border-color: var(--primary); }

.res-name { color: var(--primary); font-weight: 600; }
.res-dates { color: var(--text); font-size: 0.85rem; }
.res-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-pill);
    display: inline-block;
}
.res-cost { color: var(--success); font-weight: 600; }

.gmail-item {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.gmail-item:hover { border-color: var(--primary); }
.gmail-item .gmail-from { color: var(--primary); font-size: 0.85rem; }
.gmail-item .gmail-subject { color: var(--text); font-weight: 600; margin: 4px 0; }
.gmail-item .gmail-date { color: var(--text-dim); font-size: 0.78rem; }
.gmail-item .gmail-preview { color: var(--text-secondary); font-size: 0.85rem; margin-top: 4px; }

.gmail-import-btn {
    background: rgba(45, 106, 79, 0.08);
    color: var(--primary);
    border: 1px solid rgba(45, 106, 79, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: inherit;
    margin-top: 6px;
}

/* ============ CALENDAR ============ */
.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text);
    min-width: 220px;
    text-align: center;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    background: var(--card-bg);
    color: var(--text);
    border: 1.5px solid var(--border);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.15s;
}

.calendar-nav button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-nav button.today-btn {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
}

.calendar-nav button.today-btn:hover {
    background: #d45a3d;
}

.calendar-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.calendar-dow {
    background: var(--card-bg);
    color: var(--text-secondary);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.calendar-day {
    background: var(--card-bg);
    min-height: 90px;
    padding: 0.25rem;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    overflow: hidden;
}

.calendar-day:hover { background: var(--bg); }
.calendar-day.other-month { background: var(--bg); opacity: 0.5; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--coral); }

.day-number {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 2px 4px;
    font-weight: 500;
}

.today .day-number { color: var(--coral); font-weight: 700; }

.calendar-event {
    font-size: 0.72rem;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    line-height: 1.3;
    transition: opacity 0.15s;
}

.calendar-event:hover { opacity: 0.85; }

.calendar-event.span-start { border-radius: 3px 0 0 3px; margin-right: 0; }
.calendar-event.span-middle { border-radius: 0; margin-left: 0; margin-right: 0; }
.calendar-event.span-end { border-radius: 0 3px 3px 0; margin-left: 0; }
.calendar-event.type-travel { border-left: 3px solid #3498db; }
.calendar-event.type-booking_window { font-weight: 600; }

.event-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.event-modal-overlay.active { display: flex; }

.event-modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 420px;
    width: 90%;
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.event-modal h3 { margin: 0 0 0.75rem; color: var(--text); }

.event-modal .event-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.event-modal .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}

.event-modal .detail-label { color: var(--text-secondary); }

.event-modal .modal-close {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 1rem;
    font-family: inherit;
    font-weight: 600;
}

.event-modal .modal-close:hover { background: var(--primary-light); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .top-nav .nav-links { display: none; }
    .bottom-nav { display: flex; }

    .main-content { padding: 1rem; padding-bottom: 5rem; }
    .main-content.map-page { padding: 0; padding-bottom: 0; }
    .main-content.chat-page { padding: 0; padding-bottom: 0; }

    #map-container { height: calc(100vh - 64px - 60px); }
    .chat-container { height: calc(100vh - 64px - 60px); }

    .hero-greeting { font-size: 1.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-sections { grid-template-columns: 1fr; }

    .content-with-sidebar { flex-direction: column; }
    .filter-sidebar {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        z-index: 999;
        border-radius: 0;
        padding: 2rem 1.5rem;
    }
    .filter-sidebar.open { display: block; }

    .card-grid { grid-template-columns: 1fr; }
    .trips-grid { grid-template-columns: 1fr; }

    .trip-split { flex-direction: column; height: auto; }
    .trip-stops-panel {
        width: 100%;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .trip-map-panel { height: 40vh; }
    .trip-section { margin: 0 0.5rem 0.5rem; }
    .trip-title-row { flex-direction: column; align-items: flex-start; }
    .trip-summary-bar { flex-direction: column; gap: 0.3rem; }

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

    .calendar-day { min-height: 60px; }
    .calendar-event { font-size: 0.62rem; }
    .calendar-header h2 { font-size: 1.1rem; }

    .quick-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .bottom-nav-item { font-size: 0.6rem; padding: 0.2rem 0.3rem; }
}

/* Leaflet overrides for light theme */
.leaflet-container { background: #f2efe9; }

/* ============================================
   Lucide Icon System
   ============================================ */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 28px;
    height: 28px;
}

.icon-stat {
    width: 36px;
    height: 36px;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 10px;
    flex-shrink: 0;
}

.icon-circle-green {
    background: rgba(45, 106, 79, 0.12);
    color: var(--primary);
}

.icon-circle-amber {
    background: rgba(212, 163, 115, 0.15);
    color: var(--secondary);
}

.icon-circle-coral {
    background: rgba(231, 111, 81, 0.12);
    color: var(--coral);
}

/* Nav icon alignment */
.nav-link .icon,
.bottom-nav-item .icon {
    margin-right: 4px;
}

.bottom-nav-item .icon {
    margin-right: 0;
    width: 22px;
    height: 22px;
}

/* Stat card icon layout */
.stat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button icon alignment */
.btn .icon,
.action-btn .icon {
    margin-right: 6px;
    vertical-align: -2px;
}

.icon-btn .icon {
    width: 18px;
    height: 18px;
}

.icon-btn-sm .icon {
    width: 16px;
    height: 16px;
}

/* Section header icons */
.section-header .icon,
.dash-section h2 .icon {
    margin-right: 6px;
    vertical-align: -3px;
    color: var(--primary);
}

/* Stop card icons */
.stop-location .icon,
.stop-dates .icon,
.stop-drive .icon {
    width: 14px;
    height: 14px;
    margin-right: 3px;
    vertical-align: -2px;
    opacity: 0.7;
}

/* Card location icons */
.card-location .icon,
.list-card-sub .icon,
.list-card-meta .icon {
    width: 14px;
    height: 14px;
    margin-right: 3px;
    vertical-align: -2px;
    opacity: 0.7;
}

/* Chat send button icon */
#sendBtn .icon {
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Summary bar icons */
.summary-item .icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -2px;
    opacity: 0.7;
}

/* Popup icons */
.popup-location .icon {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 2px;
}

/* Filter/Search button icons */
.search-btn .icon,
.filter-toggle .icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
}

/* Badge icons inside fit indicators */
.badge .icon {
    width: 14px;
    height: 14px;
    margin-right: 3px;
    vertical-align: -2px;
}

/* Amenity icons */
.amenity-icon {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.amenity-icon .icon {
    width: 16px;
    height: 16px;
}

/* Tool indicator icons */
.tool-badge .icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -2px;
}
