/* ──────────────────────────────────────────
   CSS Custom Properties
────────────────────────────────────────── */
:root {
    --primary:      #4361EE;
    --primary-dark: #3451d1;
    --accent:       #F72585;
    --teal:         #2EC4B6;
    --orange:       #FF9F1C;
    --green:        #06D6A0;
    --bg:           #F5F7FA;
    --surface:      #FFFFFF;
    --border:       #E5E9F0;
    --text:         #1A1A2E;
    --muted:        #6B7280;
    --nav-height:   60px;
    --sidebar-w:    220px;
    --radius:       12px;
    --shadow:       0 2px 12px rgba(0,0,0,.08);
    --shadow-md:    0 4px 24px rgba(0,0,0,.12);
}

/* ──────────────────────────────────────────
   Base
────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

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

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

.app-main {
    flex: 1;
    padding: 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ──────────────────────────────────────────
   Navigation
────────────────────────────────────────── */
.app-nav {
    height: var(--nav-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand-icon { font-size: 1.4rem; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-user-name {
    font-weight: 500;
    color: var(--muted);
    font-size: .9rem;
    text-decoration: none;
}
.nav-user-name:hover { color: var(--primary); text-decoration: none; }

/* ──────────────────────────────────────────
   Page Header
────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.page-title { font-size: 1.8rem; font-weight: 800; margin: 0; }
.page-subtitle { color: var(--muted); margin: 4px 0 0; font-size: .9rem; }

/* ──────────────────────────────────────────
   Filter Tabs
────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    width: fit-content;
}

.filter-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
}
.filter-tab:hover { color: var(--text); background: var(--bg); }
.filter-tab.active { background: var(--primary); color: white; }
.filter-count {
    background: rgba(255,255,255,.25);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: .75rem;
}
.filter-tab:not(.active) .filter-count { background: var(--border); color: var(--muted); }

/* ──────────────────────────────────────────
   Trip Grid & Cards
────────────────────────────────────────── */
.trip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.trip-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.trip-card-cover {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.trip-card-emoji { font-size: 3rem; }

.trip-card-status {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.badge-upcoming { background: rgba(255,255,255,.9); color: var(--primary); }
.badge-ongoing  { background: rgba(6,214,160,.9);  color: #fff; }
.badge-past     { background: rgba(0,0,0,.35);     color: #fff; }

.trip-card-body { padding: 14px 16px 16px; }
.trip-card-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.trip-card-dest  { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.trip-card-meta  { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.trip-card-stats { display: flex; gap: 8px; }
.trip-stat {
    background: var(--bg);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--muted);
}

.trip-card-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,.3);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: .7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
}
.trip-card:hover .trip-card-delete { opacity: 1; }

/* ──────────────────────────────────────────
   Trip Hero Banner
────────────────────────────────────────── */
.trip-hero {
    margin: -24px -32px 0;
    padding: 20px 32px 24px;
    color: white;
}

.trip-hero-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.trip-hero-back {
    color: rgba(255,255,255,.85);
    font-size: .875rem;
    display: inline-block;
}
.trip-hero-back:hover { color: white; text-decoration: none; }

.trip-edit-btn {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    color: white;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all .2s;
}
.trip-edit-btn:hover {
    background: rgba(255,255,255,.3);
    border-color: rgba(255,255,255,.5);
    transform: scale(1.05);
}

.trip-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}
.trip-hero-emoji  { font-size: 3.5rem; }
.trip-hero-title  { font-size: 2rem; font-weight: 800; margin: 0 0 6px; }
.trip-hero-meta   { opacity: .9; font-size: .9rem; margin: 0; }
.trip-hero-desc   { opacity: .8; font-size: .875rem; margin: 6px 0 0; }
.trip-hero-location { opacity: .8; font-size: .875rem; margin: 6px 0 0; }

.trip-hero-countries { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.country-flag-badge  { width: 1.4em; line-height: 1em; border-radius: 2px; cursor: default; box-shadow: 0 0 1px rgba(0,0,0,.3); }
.country-flag-tile-img { width: 2rem; line-height: 1.5rem; border-radius: 3px; box-shadow: 0 0 2px rgba(0,0,0,.25); }

.trip-hero-stats  { display: flex; gap: 24px; }
.hero-stat        { text-align: center; }
.hero-stat-value  { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.hero-stat-label  { font-size: .75rem; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }

/* ──────────────────────────────────────────
   Tab Navigation
────────────────────────────────────────── */
.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin: 20px 0 28px;
}
.tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 12px 20px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-content-area { min-height: 400px; }

/* ──────────────────────────────────────────
   Itinerary / Journal Layout
────────────────────────────────────────── */
.itinerary-layout,
.journal-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: 24px;
    align-items: start;
}

.day-sidebar {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: calc(var(--nav-height) + 16px);
}

.day-tab {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.day-tab:last-child { border-bottom: none; }
.day-tab:hover { background: var(--bg); }
.day-tab.active { background: rgba(67,97,238,.08); border-left: 3px solid var(--primary); }

.day-tab-num   { font-size: .8rem; font-weight: 700; color: var(--primary); }
.day-tab-date  { font-size: .8rem; color: var(--muted); }
.day-tab-count { font-size: .72rem; color: var(--muted); }
.day-tab-has-entry { font-size: .75rem; color: var(--teal); }

.day-tab-hotel-badges { display: flex; gap: 3px; margin-top: 2px; }
.day-tab-badge { font-size: .65rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.day-tab-badge-in  { background: rgba(46,196,182,.18); color: #1a8a82; }
.day-tab-badge-out { background: rgba(247,37,133,.12); color: #c01870; }

.day-nav-btn { padding: 2px 9px; font-size: 1.1rem; line-height: 1.2; border-radius: 6px; }

.day-content, .journal-content { min-height: 300px; }

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.day-header > div { min-width: 0; }
.day-title { font-size: 1.2rem; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ──────────────────────────────────────────
   Activity Cards
────────────────────────────────────────── */
.activity-list { display: flex; flex-direction: column; gap: 12px; }

.activity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: box-shadow .15s;
}
.activity-card:hover { box-shadow: var(--shadow-md); }

/* Spanning (multi-day) activity cards */
.activity-card-span        { cursor: pointer; opacity: .88; }
.span-staying              { border-left-color: var(--muted); background: color-mix(in srgb, var(--surface) 92%, var(--muted)); }
.span-end                  { border-left-color: var(--orange); background: color-mix(in srgb, var(--surface) 92%, var(--orange)); }
.span-start                { border-left-color: var(--teal); background: color-mix(in srgb, var(--surface) 92%, var(--teal)); }
.span-status-badge         { font-size: .7rem; padding: 2px 7px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.span-badge-staying        { background: var(--muted); color: #fff; }
.span-badge-end            { background: var(--orange); color: #fff; }
.span-badge-start          { background: var(--teal); color: #fff; }
.span-badge-depart         { background: var(--primary); color: #fff; }

.type-attraction  { border-left-color: var(--primary); }
.type-restaurant  { border-left-color: var(--orange); }
.type-hotel       { border-left-color: #7B2FBE; }
.type-transport   { border-left-color: var(--teal); }
.type-parking     { border-left-color: #0ea5e9; }
.type-other       { border-left-color: var(--muted); }

.activity-type-badge {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
}

.activity-info { flex: 1; }
.activity-name  { font-weight: 600; font-size: .95rem; margin-bottom: 4px; min-width: 0; }
.activity-address, .activity-time, .activity-notes, .activity-cost {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 2px;
}
.activity-notes {
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 6px;
    font-style: italic;
}

.activity-actions { display: flex; gap: 4px; flex-shrink: 0; }

.btn-icon {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0.6;
    transition: background .15s, opacity .15s;
}
.btn-icon:hover { background: var(--bg); opacity: 1; }
.btn-icon-danger:hover { background: #fee2e2; }

/* ──────────────────────────────────────────
   Map
────────────────────────────────────────── */
.map-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 65vh;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.map-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 12px;
}

.map-sidebar-title {
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    margin: 0 0 10px;
}

.map-stop-item {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    border: 1px solid transparent;
    transition: all .15s;
}
.map-stop-item:hover { background: var(--bg); border-color: var(--border); }
.map-stop-item.no-coords { opacity: .5; cursor: default; }

.map-stop-day   { font-size: .7rem; font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.map-stop-name  { font-size: .85rem; font-weight: 500; }
.map-stop-addr  { font-size: .75rem; color: var(--muted); }
.map-stop-nocoords { font-size: .72rem; color: var(--accent); font-style: italic; }

.map-area { position: relative; }
.leaflet-map { width: 100%; height: 100%; }

.custom-map-pin { background: none; border: none; }
.map-pin-inner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.map-pin-num { transform: rotate(45deg); color: white; font-size: .7rem; font-weight: 700; }
.map-popup { font-size: .875rem; }

/* ──────────────────────────────────────────
   Journal
────────────────────────────────────────── */
.journal-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.journal-editor {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.mood-picker { display: flex; gap: 8px; flex-wrap: wrap; }

.mood-btn {
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1.5rem;
    padding: 4px 8px;
    cursor: pointer;
    transition: all .15s;
}
.mood-btn:hover { border-color: var(--border); transform: scale(1.1); }
.mood-btn.selected { border-color: var(--primary); background: rgba(67,97,238,.08); }

.journal-textarea { font-size: 1rem; line-height: 1.7; resize: vertical; min-height: 200px; }

.journal-entry {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.journal-entry-mood  { font-size: 2.5rem; margin-bottom: 10px; }
.journal-entry-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 6px; }
.journal-entry-meta  { margin-bottom: 20px; }
.journal-entry-content { line-height: 1.8; }
.journal-entry-content p { margin-bottom: 14px; }

/* ──────────────────────────────────────────
   Modals
────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 200;
    animation: fadeIn .15s;
}

.modal-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border-radius: 16px;
    width: min(520px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 201;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: slideUp .2s ease;
}

.modal-panel-large {
    width: min(720px, 95vw);
}

.modal-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}
.modal-header-bar h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }

.modal-close {
    background: var(--bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: .9rem;
    cursor: pointer;
    color: var(--muted);
}
.modal-close:hover { background: var(--border); }

.modal-body-content { padding: 20px 24px 24px; }

.family-member-card {
    background: var(--bg);
    transition: border-color .2s;
}
.family-member-card:hover {
    border-color: var(--primary) !important;
}

/* ──────────────────────────────────────────
   Empty / Loading States
────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state-icon { font-size: 3.5rem; display: block; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.2rem; color: var(--text); margin: 0 0 8px; }

.day-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.day-empty span { font-size: 2.5rem; display: block; margin-bottom: 8px; }

.loading-state { display: flex; justify-content: center; padding: 60px; }

/* ──────────────────────────────────────────
   Auth Pages
────────────────────────────────────────── */
.auth-body {
    background: linear-gradient(135deg, #4361EE 0%, #7B2FBE 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-container { width: 100%; max-width: 420px; padding: 16px; }
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center;
}
.auth-logo-icon { font-size: 2rem; }
.auth-logo-text { font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 0; }
.auth-title    { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; text-align: center; }
.auth-subtitle { color: var(--muted); text-align: center; margin-bottom: 28px; font-size: .9rem; }
.btn-auth      { height: 44px; font-weight: 600; font-size: 1rem; margin-top: 4px; }
.auth-footer   { text-align: center; margin: 20px 0 0; font-size: .875rem; color: var(--muted); }

/* ──────────────────────────────────────────
   Colour Picker
────────────────────────────────────────── */
.color-picker-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--text); transform: scale(1.15); }

/* ──────────────────────────────────────────
   Bootstrap overrides
────────────────────────────────────────── */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

/* ──────────────────────────────────────────
   Blazor Error UI
────────────────────────────────────────── */
#blazor-error-ui {
    background: #ffdd57;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ──────────────────────────────────────────
   Animations
────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translate(-50%, -45%); opacity: 0; }
    to   { transform: translate(-50%, -50%); opacity: 1; }
}

/* ──────────────────────────────────────────
   Responsive
────────────────────────────────────────── */
@media (max-width: 960px) {
    .itinerary-layout,
    .journal-layout { grid-template-columns: 160px 1fr; gap: 16px; }
    .day-tab { padding: 10px 10px; }
    .day-tab-num  { font-size: .75rem; }
    .day-tab-date { font-size: .72rem; }
}

@media (max-width: 768px) {
    .app-main { padding: 16px; }
    .trip-hero { margin: -16px -16px 0; padding: 16px; }
    .itinerary-layout,
    .journal-layout { grid-template-columns: 1fr; }
    .day-sidebar { position: static; }
    .map-container { grid-template-columns: 1fr; height: auto; }
    .map-sidebar { max-height: 180px; }
    .map-area { height: 50vh; }
    .trip-hero-content { flex-direction: column; gap: 10px; text-align: center; }
    .trip-hero-stats { justify-content: center; }
}

/* ──────────────────────────────────────────
   Subscription / Billing
────────────────────────────────────────── */

/* Nav badges */
.nav-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f72585, #7b2fbe);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
    margin-right: 8px;
}
.btn-upgrade-nav {
    background: linear-gradient(135deg, #f72585, #7b2fbe);
    color: #fff;
    border: none;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 14px;
}
.btn-upgrade-nav:hover { opacity: .88; color: #fff; }

/* Upgrade CTA button (used in Billing page and UpgradePrompt) */
.btn-upgrade {
    background: linear-gradient(135deg, #f72585, #7b2fbe);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
}
.btn-upgrade:hover { opacity: .88; color: #fff; }

/* UpgradePrompt component */
.upgrade-prompt {
    text-align: center;
    padding: 60px 24px;
    max-width: 480px;
    margin: 0 auto;
}
.upgrade-prompt-icon { font-size: 3rem; margin-bottom: 16px; }
.upgrade-prompt-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.upgrade-prompt-body  { color: var(--text-muted); margin-bottom: 24px; }

/* Billing page — current plan */
.billing-current-plan { display: flex; align-items: center; gap: 8px; }
.billing-tier-badge {
    font-size: .85rem; font-weight: 700;
    padding: 4px 14px; border-radius: 20px;
}
.badge-free { background: var(--surface-2); color: var(--text-muted); }
.badge-pro  {
    background: linear-gradient(135deg, #f72585, #7b2fbe);
    color: #fff;
}

/* Plan comparison cards */
.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 720px;
}
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
    background: var(--surface-1);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
}
.plan-card-current { border-color: var(--primary); }
.plan-card-pro     { border-color: #c77dff; }

.plan-card-header  { margin-bottom: 20px; }
.plan-badge {
    display: inline-block;
    font-size: .7rem; font-weight: 700;
    background: linear-gradient(135deg, #f72585, #7b2fbe);
    color: #fff; padding: 2px 10px; border-radius: 20px;
    margin-bottom: 8px;
}
.plan-name  { font-size: 1.5rem; font-weight: 700; margin: 0; }
.plan-price { font-size: 2rem; font-weight: 800; margin-top: 4px; }
.plan-period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.plan-features {
    list-style: none; padding: 0; margin: 0;
}
.plan-features li { padding: 6px 0; font-size: .95rem; }
.plan-feature-locked { color: var(--text-muted); }
.plan-current-label {
    margin-top: 16px; text-align: center;
    color: var(--primary); font-weight: 600; font-size: .9rem;
}


/* ──────────────────────────────────────────
   Country Autocomplete
────────────────────────────────────────── */
.country-autocomplete { position: relative; }
.country-dropdown     { z-index: 1050; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; background: white; }
.z-dropdown           { z-index: 1050; }

/* ──────────────────────────────────────────
   Profile Page
────────────────────────────────────────── */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}
.profile-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
}
.profile-stat-highlight {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.profile-stat-highlight .profile-stat-label { color: rgba(255,255,255,.8); }
.profile-stat-value { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.profile-stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-top: 4px; }

.section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.section-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.section-card-title { font-size: 1.1rem; font-weight: 700; margin: 0; }

/* Flag wall */
.country-flag-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
}
.country-flag-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    min-width: 72px;
    cursor: default;
    transition: transform .15s, box-shadow .15s;
}
.country-flag-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.country-flag-tile-emoji { font-size: 2rem; line-height: 1; }
.country-flag-tile-name  { font-size: .65rem; font-weight: 600; text-align: center; color: var(--muted); max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.country-breakdown { padding: 0 4px; }

/* ──────────────────────────────────────────
   Day Weather Widget
────────────────────────────────────────── */
.weather-widget {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .85rem;
    white-space: nowrap;
}
.weather-emoji  { font-size: 1.1rem; line-height: 1; }
.weather-temp   { font-weight: 600; font-size: .85rem; }
.weather-temp-min { font-weight: 400; opacity: .75; }
.weather-loading { min-width: 48px; justify-content: center; }

/* ──────────────────────────────────────────
   Packing List
────────────────────────────────────────── */
.packing-luggage-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); }
.packing-luggage-tab {
    background: none; border: none; padding: 8px 16px; font-size: .9rem;
    color: var(--muted); cursor: pointer; border-radius: 6px 6px 0 0;
    display: flex; align-items: center; gap: 6px;
}
.packing-luggage-tab .tab-count {
    background: var(--border); color: var(--muted);
    font-size: .72rem; padding: 1px 6px; border-radius: 10px; font-weight: 600;
}
.packing-luggage-tab.active {
    color: var(--primary); border-bottom: 2px solid var(--primary);
    font-weight: 600; margin-bottom: -2px;
}
.packing-luggage-tab.active .tab-count { background: var(--primary); color: white; }

.packing-category-header {
    font-size: .85rem; padding: 6px 2px; display: flex; align-items: center;
}

.packing-item {
    display: flex; align-items: center; cursor: pointer; user-select: none;
    padding: 8px 12px; gap: 6px;
}
.packing-item-packed .packing-item-name { text-decoration: line-through; color: var(--muted); }
.packing-item-name { flex: 1; font-size: .9rem; }

.packing-luggage-pill {
    font-size: .8rem; padding: 1px 6px; border-radius: 10px;
    background: var(--border); margin-left: auto;
}
.pill-hand { background: #e8f4fd; }
.pill-hold { background: #f3f0ff; }

.packing-delete-btn {
    background: none; border: none; color: var(--muted); font-size: .8rem;
    padding: 2px 6px; border-radius: 4px; cursor: pointer; opacity: 0;
    transition: opacity .15s;
}
.packing-item:hover .packing-delete-btn { opacity: 1; }
.packing-delete-btn:hover { background: #fee2e2; color: #dc2626; }

/* ──────────────────────────────────────────
   Booking Status
────────────────────────────────────────── */
.activity-name-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.booking-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .72rem; font-weight: 600; padding: 2px 8px;
    border-radius: 20px; white-space: nowrap;
}
.booking-badge-booked  { background: #d1fae5; color: #065f46; }
.booking-badge-unbooked { background: #fef3c7; color: #92400e; }

.activity-card.needs-booking {
    border-left: 3px solid #f59e0b;
}

.activity-booking-ref {
    font-size: .82rem; margin-top: 4px; color: var(--text);
}

/* Booking Checklist */
.booking-checklist {
    margin-bottom: 16px;
    border: 1.5px solid #fde68a; border-radius: var(--radius);
    background: #fffbeb; overflow: hidden;
}

.booking-checklist-header {
    width: 100%; display: flex; justify-content: space-between;
    align-items: center; padding: 10px 16px;
    background: none; border: none; cursor: pointer;
    font-weight: 600; font-size: .9rem; color: #92400e;
}
.booking-checklist-header:hover { background: #fef3c7; }
.booking-checklist-toggle { font-size: .75rem; }

.booking-checklist-body {
    border-top: 1px solid #fde68a; padding: 4px 0;
}

.booking-checklist-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px; font-size: .88rem;
    border-bottom: 1px solid #fef3c7;
}
.booking-checklist-row:last-child { border-bottom: none; }
.booking-checklist-day  { color: var(--muted); white-space: nowrap; width: 44px; flex-shrink: 0; }
.booking-checklist-name { flex: 1; min-width: 0; font-weight: 500; }
.booking-checklist-actions { display: flex; gap: 6px; flex-shrink: 0; }

.btn-xs { padding: 2px 8px; font-size: .75rem; border-radius: 6px; }

/* Booking Modal Section */
.booking-section { background: var(--bg); border-radius: 8px; padding: 14px; }
.booking-section-title { font-size: .95rem; font-weight: 700; margin: 0 0 12px; }

/* ──────────────────────────────────────────
   Parking Tab
────────────────────────────────────────── */
.parking-wrap    { max-width: 800px; margin: 24px auto; padding: 0 16px; }
.parking-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.unbooked-badge  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
                   border-radius: 20px; padding: 4px 12px; font-size: .82rem; font-weight: 600; }

.parking-empty      { text-align: center; padding: 60px 20px; color: var(--muted); }
.parking-empty-icon { font-size: 3rem; margin-bottom: 12px; }

.parking-grid { display: flex; flex-direction: column; gap: 14px; }

.parking-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid #0ea5e9;
    border-radius: var(--radius);
    padding: 16px;
}
.parking-card-warn { border-left-color: #f59e0b; }

.parking-card-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.parking-card-name { font-weight: 700; font-size: 1rem; }

.parking-status-badge { padding: 2px 8px; border-radius: 20px; font-size: .75rem;
                        font-weight: 600; white-space: nowrap; }
.parking-status-booked      { background: #d1fae5; color: #065f46; }
.parking-status-unbooked    { background: #fef3c7; color: #92400e; }
.parking-status-notrequired { background: var(--bg); color: var(--muted);
                               border: 1px solid var(--border); }

.parking-detail      { display: flex; align-items: flex-start; gap: 8px;
                        font-size: .88rem; margin-bottom: 6px; color: var(--text); }
.parking-detail-icon { flex-shrink: 0; width: 18px; }
.parking-notes       { margin-top: 10px; font-size: .85rem; color: var(--muted);
                        background: var(--bg); border-radius: 6px; padding: 8px 10px; }
.parking-card-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px;
                         border-top: 1px solid var(--border); }

/* ──────────────────────────────────────────
   Admin Panel
────────────────────────────────────────── */
.admin-wrap   { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.admin-header { margin-bottom: 20px; }
.admin-title  { font-size: 1.6rem; font-weight: 700; margin: 0; }

.admin-loading,
.admin-denied { text-align: center; padding: 80px 20px; }
.admin-empty  { padding: 40px; text-align: center; color: var(--muted); }

.admin-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.admin-tab  { background: none; border: none; border-bottom: 2px solid transparent;
              margin-bottom: -2px; padding: 8px 18px; font-size: .9rem;
              cursor: pointer; color: var(--muted); transition: color .15s; }
.admin-tab:hover  { color: var(--text); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.admin-stat-card  { background: var(--card); border: 1px solid var(--border);
                    border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.admin-stat-card.accent-pro   { border-color: #6c63ff; }
.admin-stat-card.accent-trip  { border-color: #06b6d4; }
.admin-stat-card.accent-admin { border-color: #f59e0b; }
.admin-stat-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.admin-stat-label { font-size: .78rem; color: var(--muted); margin-top: 6px; }

.admin-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-search  { max-width: 320px; }
.admin-payment-filters { display: flex; gap: 6px; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { padding: 8px 12px; text-align: left; font-size: .78rem; text-transform: uppercase;
                  letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg); }
.admin-row-admin td { background: #fffbeb; }
.admin-cell-email { font-size: .82rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-actions-row { display: flex; gap: 6px; flex-wrap: wrap; }

.tier-badge { padding: 2px 8px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.tier-pro   { background: #ede9fe; color: #6c63ff; }
.tier-free  { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

.payment-status    { padding: 2px 8px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.payment-succeeded { background: #d1fae5; color: #065f46; }
.payment-failed    { background: #fee2e2; color: #991b1b; }
.payment-refunded  { background: #fef3c7; color: #92400e; }

.nav-admin-link { font-size: .82rem; color: var(--muted); text-decoration: none;
                  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); }
.nav-admin-link:hover { color: var(--text); background: var(--bg); }

.modal-panel-sm { max-width: 440px; }

/* ──────────────────────────────────────────
   OAuth Buttons
────────────────────────────────────────── */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--muted); font-size: .85rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.oauth-buttons { display: flex; flex-direction: column; gap: 10px; }
.oauth-buttons form { display: flex; flex-direction: column; gap: 10px; }

.btn-oauth {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px 16px; border-radius: 8px; font-weight: 500;
    font-size: .95rem; border: 1.5px solid var(--border);
    background: #fff; color: var(--text); cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-oauth:hover { background: var(--bg); border-color: #c0c8d8; }
.btn-oauth-apple { background: #000; color: #fff; border-color: #000; }
.btn-oauth-apple:hover { background: #222; border-color: #222; }

/* ──────────────────────────────────────────
   Place Search
────────────────────────────────────────── */
.place-search-row {
    display: flex; gap: 8px;
}
.place-search-row .form-control { flex: 1; }

.place-results {
    border: 1px solid var(--border); border-radius: 8px;
    margin-top: 6px; max-height: 220px; overflow-y: auto;
    background: #fff; box-shadow: var(--shadow);
}
.place-result-item {
    display: flex; flex-direction: column; gap: 2px;
    width: 100%; text-align: left; padding: 10px 14px;
    background: none; border: none; cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}
.place-result-item:last-child { border-bottom: none; }
.place-result-item:hover { background: var(--bg); }
.place-result-name    { font-weight: 600; font-size: .9rem; color: var(--text); }
.place-result-address { font-size: .8rem; color: var(--muted); }

/* ──────────────────────────────────────────
   Sharing Modal
────────────────────────────────────────── */
.modal-panel-wide { max-width: 560px; }

.share-section { margin-bottom: 4px; }
.share-section-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }

.share-link-row {
    display: flex; gap: 8px; align-items: center;
}
.share-link-row .form-control { flex: 1; font-size: .8rem; }

.invite-row {
    display: flex; gap: 8px; align-items: center;
}
.invite-row .form-control { flex: 1; }
.invite-role-select { width: 120px; flex-shrink: 0; }

.members-list { display: flex; flex-direction: column; gap: 10px; }
.member-row {
    display: flex; align-items: center; gap: 10px;
}
.member-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-weight: 600; font-size: .9rem; }
.member-email { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-role-badge { font-size: .75rem; }

.invite-pending-row {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; font-size: .9rem;
}

/* ──────────────────────────────────────────
   Shared Trip Banner
────────────────────────────────────────── */
.shared-banner {
    background: linear-gradient(90deg, #4361ee, #7b2fbe);
    color: #fff; padding: 10px 24px;
    display: flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 500;
}

/* ──────────────────────────────────────────
   Map Links (in read-only activity cards)
────────────────────────────────────────── */
.map-links {
    margin-left: 8px; display: inline-flex; gap: 6px;
}
.map-link {
    font-size: .75rem; padding: 1px 8px;
    border: 1px solid var(--border); border-radius: 20px;
    background: #fff; color: var(--primary);
    white-space: nowrap;
}
.map-link:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ──────────────────────────────────────────
   Shared trip cards on dashboard
────────────────────────────────────────── */
.trip-card-shared-badge {
    font-size: .7rem; padding: 2px 8px; border-radius: 20px;
    background: #e0f0ff; color: var(--primary); font-weight: 600;
    display: inline-block; margin-top: 4px;
}

/* ──────────────────────────────────────────
   Trip Bookings Summary
────────────────────────────────────────── */
.bookings-container { max-width: 860px; margin: 0 auto; }

.bookings-tab-bar {
    display: flex; gap: 4px; overflow-x: auto;
    border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.bookings-tab {
    background: none; border: none; padding: 8px 14px;
    font-size: .9rem; color: var(--text-muted); cursor: pointer;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    white-space: nowrap; display: flex; align-items: center; gap: 6px;
    transition: color .15s;
}
.bookings-tab:hover { color: var(--text); }
.bookings-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; border-radius: 10px;
    background: var(--primary); color: #fff;
    font-size: .72rem; font-weight: 700; padding: 0 5px;
}
.tab-badge-empty { background: var(--border); color: var(--text-muted); }

.booking-cards-list { display: flex; flex-direction: column; gap: 14px; }

.booking-summary-card {
    border: 1px solid var(--border); border-radius: 10px;
    background: #fff; overflow: hidden;
    transition: box-shadow .15s;
}
.booking-summary-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }

.booking-summary-meta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px; background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
}
.booking-day-label { font-weight: 600; color: var(--text-muted); }

.booking-status-pill {
    font-size: .75rem; padding: 2px 10px; border-radius: 12px; font-weight: 600;
}
.pill-booked   { background: #d4edda; color: #155724; }
.pill-unbooked { background: #fff3cd; color: #856404; }

.booking-card-body { padding: 14px 16px; }

.booking-card-title {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; font-size: 1rem;
}
.booking-type-emoji { font-size: 1.2rem; }

.booking-route {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-secondary); border-radius: 8px;
    padding: 10px 14px; margin: 8px 0;
}
.booking-route-point { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.route-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.route-value { font-weight: 700; font-size: .95rem; }
.route-time  { font-size: .8rem; color: var(--text-muted); }
.route-arrow { font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }

.booking-detail-row {
    display: flex; align-items: center; gap: 6px;
    font-size: .88rem; color: var(--text); padding: 3px 0;
}
.detail-icon { width: 20px; text-align: center; font-size: 1rem; }

.booking-notes {
    margin-top: 8px; padding: 8px 10px; background: #fffbf0;
    border-left: 3px solid #ffc107; border-radius: 4px;
    font-size: .85rem; color: var(--text);
}

.booking-card-actions {
    padding: 10px 16px; border-top: 1px solid var(--border);
    background: var(--bg-secondary); display: flex; justify-content: flex-end;
}

/* Error alerts — pre-wrap so dev stack traces render with correct line breaks */
.alert-danger {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.8rem;
}

/* ── Discover / Find Activity tab ─────────────────────────────────────────── */

.discover-container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.discover-search-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.discover-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.discover-search-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.discover-input {
    flex: 1;
    min-width: 0;
}

.discover-search-btn {
    flex-shrink: 0;
}

.discover-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discover-filter-btn {
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.discover-filter-btn:hover { background: var(--bg-hover, #f0f0f0); }
.discover-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.discover-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted, #6c757d);
}

.discover-results-header {
    padding: 0 4px;
}

.discover-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.discover-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}
.discover-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }

.discover-card-body {
    display: flex;
    gap: 12px;
    padding: 14px;
    flex: 1;
}

.discover-card-emoji {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.discover-card-info {
    min-width: 0;
}

.discover-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.discover-card-address {
    font-size: 0.78rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.discover-type-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.discover-type-restaurant { background: #fff3cd; color: #856404; }
.discover-type-hotel      { background: #cff4fc; color: #055160; }
.discover-type-attraction { background: #d1e7dd; color: #0a3622; }
.discover-type-transport  { background: #e2e3e5; color: #383d41; }
.discover-type-other, .discover-type-place { background: #f0e6ff; color: #4a235a; }

.discover-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.discover-day-select {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
}

.discover-add-btn {
    flex-shrink: 0;
}

.discover-empty-state {
    text-align: center;
    padding: 60px 20px 40px;
}

.discover-empty-state h3 {
    font-size: 1.3rem;
    margin: 12px 0 8px;
}

.discover-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted, #6c757d);
}

.discover-empty-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.discover-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.discover-suggestion-chip {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px dashed var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}
.discover-suggestion-chip:hover {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}


/* ── Activity card expand panel ───────────────────────────────────────────── */

.activity-card-expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.activity-expand-panel {
    background: #f8f9ff;
    border: 1px solid #c7d2fe;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.expand-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
    color: #374151;
}

.expand-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: .04em;
    min-width: 80px;
    flex-shrink: 0;
}

.expand-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e7ff;
}

.expand-map-links .map-link {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: #e0e7ff;
    color: #3730a3;
    text-decoration: none;
    white-space: nowrap;
}
.expand-map-links .map-link:hover {
    background: #c7d2fe;
}

/* ── Booking dashboard page ───────────────────────────────────────────────── */

.booking-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.booking-trip-group {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.booking-trip-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
}

.booking-dashboard-table {
    padding: 0;
}

.booking-dashboard-table table {
    margin-bottom: 0;
}

/* ── Activity form section label ──────────────────────────────────────────── */

.form-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: 12px;
}

/* ── Nav icon link ────────────────────────────────────────────────────────── */

.nav-link-icon {
    font-size: 1.1rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.nav-link-icon:hover { opacity: 1; }

/* ── Cookie consent banner ────────────────────────────────────────────────── */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: #f9fafb;
    z-index: 9999;
    padding: 12px 24px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 960px;
    margin: 0 auto;
    font-size: 0.9rem;
}
.cookie-link { color: #93c5fd; }
