/* ==========================================================================
   LocalDayOut Brand & Theme
   Loaded AFTER styles.css — overrides Airbnb-pink palette with teal/amber.
   ========================================================================== */

:root {
    --lr-primary: #0f766e;
    --lr-primary-hover: #115e59;
    --lr-primary-light: #14b8a6;
    --lr-primary-50: #f0fdfa;
    --lr-primary-100: #ccfbf1;
    --lr-accent: #f59e0b;
    --lr-accent-hover: #d97706;
    --lr-accent-light: #fef3c7;
    --lr-text: #0f172a;
    --lr-text-secondary: #475569;
    --lr-text-muted: #94a3b8;
    --lr-border: #e2e8f0;
    --lr-bg: #ffffff;
    --lr-bg-subtle: #f8fafc;
    --lr-radius: 16px;
    --lr-radius-sm: 8px;
    --lr-radius-full: 9999px;
}

/* ==========================================================================
   Global Brand Color Overrides
   ========================================================================== */

/* Search buttons */
.search-btn {
    background: var(--lr-primary) !important;
}
.search-btn:hover {
    background: var(--lr-primary-hover) !important;
}

/* Rating stars */
.activity-rating svg {
    fill: var(--lr-accent) !important;
}

/* Mobile nav active state */
.mobile-nav-item.active {
    color: var(--lr-primary) !important;
}
.mobile-nav-item.active .mobile-nav-icon {
    stroke: var(--lr-primary) !important;
}
.mobile-nav-item.active .mobile-nav-icon[fill="currentColor"] {
    fill: var(--lr-primary) !important;
    stroke: none !important;
}

/* Filter & primary buttons */
.filter-show-btn,
.btn-primary {
    background: var(--lr-primary) !important;
    border-color: var(--lr-primary) !important;
}
.filter-show-btn:hover,
.btn-primary:hover {
    background: var(--lr-primary-hover) !important;
    border-color: var(--lr-primary-hover) !important;
}

/* Activity action buttons */
.activity-action-btn:not(.secondary) {
    background: var(--lr-primary) !important;
}
.activity-action-btn:not(.secondary):hover {
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25) !important;
}

/* Card hover highlight */
.activity-card.hover-highlight {
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3) !important;
    outline-color: var(--lr-primary) !important;
}

/* Top-pick / cost badge */
.activity-cost {
    color: var(--lr-primary) !important;
    background: var(--lr-primary-50) !important;
}

/* Mobile search CTA */
.mobile-search-btn {
    background: var(--lr-primary) !important;
}
.mobile-search-btn:hover {
    background: var(--lr-primary-hover) !important;
}

/* Curated badge */
.curated-badge.personalized {
    background: linear-gradient(135deg, var(--lr-primary) 0%, var(--lr-primary-hover) 100%) !important;
}

/* Favorites toggle */
.favorites-toggle-btn.active {
    background: var(--lr-primary) !important;
    border-color: var(--lr-primary) !important;
}

/* Personalization status dot */
.results-subline .status-dot {
    background: var(--lr-primary-light) !important;
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6) !important;
}

/* Activity date (curated) */
.activity-date {
    color: var(--lr-primary) !important;
}

/* Curated card personalized border */
.curated-event-card.personalized {
    border-color: var(--lr-primary-light) !important;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.03) 0%, rgba(15, 118, 110, 0.08) 100%) !important;
}

/* Curated gradient */
.curated-image-container {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
}
.curated-event-card.personalized .curated-image-container {
    background: linear-gradient(135deg, var(--lr-primary) 0%, var(--lr-primary-hover) 100%) !important;
}

/* Favorite chip selected */
.favorite-chip input:checked ~ span,
.mobile-favorite-chip input:checked ~ span {
    background: var(--lr-primary-50);
    border-color: var(--lr-primary);
    color: var(--lr-primary);
}

/* ==========================================================================
   LocalDayOut Logo & Brand Mark
   ========================================================================== */
.lr-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    line-height: 1;
}

.lr-icon {
    width: clamp(40px, 7vw, 64px);
    height: clamp(40px, 7vw, 64px);
    flex: 0 0 auto;
}

.lr-wordmark {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lr-text);
}

.lr-wordmark-local {
    color: var(--lr-primary);
}

@media (max-width: 768px) {
    .lr-brand {
        gap: 10px;
    }
    .lr-icon {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Landing Page Overrides
   ========================================================================== */

/* Allow landing page to scroll for new sections */
.landing-page {
    min-height: auto !important;
    overflow-y: auto !important;
    height: auto !important;
}

/* Hero — override styles.css flex:1 so the page scrolls */
.landing-hero.lr-hero-section {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 24px 48px;
    position: relative;
    box-sizing: border-box;
}

.lr-headline {
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 700;
    color: var(--lr-text);
    max-width: 640px;
    margin-bottom: 10px;
    line-height: 1.15;
}

.lr-subtitle {
    font-size: clamp(15px, 2.5vw, 17px);
    color: var(--lr-text-secondary);
    max-width: 480px;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ── Simplified search bar on landing ── */
.lr-search-simple .landing-search-bar {
    max-width: 560px;
    margin: 0 auto;
}

.lr-search-simple .search-section-where.lr-search-where-full {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
}

.lr-search-simple .lr-search-icon {
    flex-shrink: 0;
}

.lr-search-simple .search-section-label {
    display: none;
}

/* Hide favorites & who sections on landing hero */
.lr-hidden-section {
    display: none !important;
}

/* Hide the vertical dividers when sections are hidden */
.lr-search-simple .search-divider-v {
    display: none;
}

/* Quick-start location buttons */
.lr-quickstart {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    max-width: 600px;
}

.lr-quickstart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius-full);
    background: white;
    color: var(--lr-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.lr-quickstart-btn:hover {
    border-color: var(--lr-primary);
    color: var(--lr-primary);
    background: var(--lr-primary-50);
}

.lr-quickstart-btn.lr-location-btn {
    background: var(--lr-primary-50);
    border-color: var(--lr-primary-light);
    color: var(--lr-primary);
    font-weight: 600;
}

.lr-quickstart-btn.lr-location-btn:hover {
    background: var(--lr-primary-100);
}

/* ==========================================================================
   Example Results Section
   ========================================================================== */
.lr-section {
    padding: 64px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .lr-section {
        padding: 80px 40px;
    }
}

.lr-section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--lr-text);
    text-align: center;
    margin-bottom: 8px;
}

.lr-section-subtitle {
    font-size: 16px;
    color: var(--lr-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.lr-example-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 550px) {
    .lr-example-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .lr-example-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lr-example-card {
    border-radius: var(--lr-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.lr-example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.lr-example-image {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Photo-based cards */
.lr-example-photo {
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.lr-example-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--lr-radius-full);
    color: var(--lr-primary);
}

.lr-example-info {
    padding: 10px 2px 4px;
}

.lr-example-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--lr-text);
    margin-bottom: 2px;
}

.lr-example-meta {
    font-size: 13px;
    color: var(--lr-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lr-star {
    color: var(--lr-accent);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.lr-how-it-works {
    background: var(--lr-bg-subtle);
    border-top: 1px solid var(--lr-border);
    border-bottom: 1px solid var(--lr-border);
}

.lr-steps {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 700px) {
    .lr-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
}

.lr-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lr-step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lr-step-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--lr-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.lr-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--lr-text);
    margin-bottom: 8px;
}

.lr-step-desc {
    font-size: 14px;
    color: var(--lr-text-secondary);
    line-height: 1.5;
    max-width: 260px;
}

/* ==========================================================================
   Who It's For Section
   ========================================================================== */
.lr-usecases {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 550px) {
    .lr-usecases {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lr-usecase {
    background: white;
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius);
    padding: 28px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lr-usecase:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.lr-usecase-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.lr-usecase-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--lr-text);
    margin-bottom: 8px;
}

.lr-usecase-desc {
    font-size: 14px;
    color: var(--lr-text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Email Capture Section
   ========================================================================== */
.lr-email-section {
    background: linear-gradient(135deg, var(--lr-primary) 0%, #0d6e68 50%, #115e59 100%);
    color: white;
    text-align: center;
    max-width: none !important;
    border-radius: 24px;
    margin-left: 24px;
    margin-right: 24px;
}

.lr-email-section .lr-section-title {
    color: white;
}

.lr-email-section .lr-section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.lr-email-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.lr-email-input {
    flex: 1;
    min-width: 240px;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--lr-radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.lr-email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.lr-email-input:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
}

.lr-email-btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--lr-radius-full);
    background: var(--lr-accent);
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lr-email-btn:hover {
    background: var(--lr-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.lr-email-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
    width: 100%;
}

.lr-email-success {
    display: none;
    font-size: 16px;
    font-weight: 600;
    color: white;
    padding: 20px;
}

.lr-email-success.active {
    display: block;
}

/* ==========================================================================
   Features / Differentiators Strip — minimal dot-separated
   ========================================================================== */
.lr-features-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 6px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--lr-border);
    background: var(--lr-bg-subtle);
}

.lr-feature-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--lr-text-muted);
}

.lr-feature-dot {
    color: var(--lr-text-muted);
    font-size: 13px;
}

/* ==========================================================================
   Updated Landing Footer
   ========================================================================== */
.landing-footer {
    padding: 32px 24px !important;
    text-align: center;
    border-top: 1px solid var(--lr-border);
}

/* ==========================================================================
   Card Improvements
   ========================================================================== */

/* Better card hover */
.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Loading skeleton animation */
.lr-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: lr-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--lr-radius-sm);
}

@keyframes lr-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Improved description line spacing */
.activity-description div {
    margin-bottom: 3px;
}

/* Subtle card container */
.activity-card {
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.activity-card:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Responsive Tweaks
   ========================================================================== */

@media (max-width: 768px) {
    .lr-hero-section {
        min-height: auto;
        padding: 72px 20px 36px;
    }

    .lr-section {
        padding: 48px 20px;
    }

    .lr-quickstart {
        gap: 6px;
    }

    .lr-quickstart-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .lr-email-form {
        flex-direction: column;
        align-items: stretch;
    }

    .lr-email-input {
        min-width: auto;
    }

    .lr-feature-dot {
        display: none;
    }

    .lr-features-strip {
        gap: 4px 16px;
    }
}

/* Make sure new landing sections don't get padding-bottom from mobile-bottom-nav */
@media (max-width: 768px) {
    .landing-page {
        padding-bottom: 70px;
    }
}

/* ==========================================================================
   "Who" Dropdown – broader audience labels
   ========================================================================== */
.lr-group-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.lr-group-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius-full);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    background: white;
    color: var(--lr-text);
}

.lr-group-chip:hover {
    border-color: var(--lr-primary);
    background: var(--lr-primary-50);
}

.lr-group-chip.active {
    background: var(--lr-primary);
    border-color: var(--lr-primary);
    color: white;
}

/* Hide kid ages unless family mode */
.lr-kid-ages-section {
    display: none;
    margin-top: 12px;
}

.lr-kid-ages-section.visible {
    display: block;
}

/* ==========================================================================
   Quick Mode Buttons (landing page)
   ========================================================================== */
.lr-quick-modes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    max-width: 600px;
}

.lr-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    text-decoration: none;
}

.lr-mode-btn:hover {
    border-color: var(--lr-primary);
    background: var(--lr-primary-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.12);
}

.lr-mode-btn:active {
    transform: translateY(0);
}

.lr-mode-emoji {
    font-size: 28px;
    line-height: 1;
}

.lr-mode-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lr-text);
}

@media (max-width: 768px) {
    .lr-quick-modes {
        gap: 8px;
    }
    .lr-mode-btn {
        padding: 12px 14px;
        min-width: 80px;
    }
    .lr-mode-emoji {
        font-size: 24px;
    }
    .lr-mode-label {
        font-size: 12px;
    }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.ldo-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: var(--lr-radius-full);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ldo-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Save & Share Buttons (on activity cards)
   ========================================================================== */
.activity-share-btn,
.activity-save-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: white !important;
    color: var(--lr-text-secondary) !important;
    border: 1px solid var(--lr-border) !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: var(--lr-radius-full) !important;
    cursor: pointer;
    transition: all 0.2s;
}

.activity-share-btn:hover,
.activity-save-btn:hover {
    border-color: var(--lr-primary) !important;
    color: var(--lr-primary) !important;
    background: var(--lr-primary-50) !important;
    box-shadow: none !important;
}

.activity-save-btn.saved {
    background: var(--lr-primary-50) !important;
    color: var(--lr-primary) !important;
    border-color: var(--lr-primary) !important;
}

.activity-share-btn svg,
.activity-save-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ==========================================================================
   Staying In Cards
   ========================================================================== */
.staying-in-heading {
    text-align: center;
    padding: 24px 0 16px;
}

.staying-in-heading h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--lr-text);
    margin-bottom: 8px;
}

.staying-in-heading p {
    font-size: 15px;
    color: var(--lr-text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.staying-in-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-tip {
    margin-top: 6px;
    font-size: 13px;
    color: var(--lr-text-secondary);
    padding: 8px 12px;
    background: var(--lr-primary-50);
    border-radius: var(--lr-radius-sm);
    border-left: 3px solid var(--lr-primary-light);
}

/* ==========================================================================
   Weather Banner (top of results)
   ========================================================================== */
.ldo-weather-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--lr-primary-50);
    border: 1px solid var(--lr-primary-100);
    border-radius: var(--lr-radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--lr-text);
    flex-wrap: wrap;
}

.ldo-weather-icon {
    font-size: 20px;
    line-height: 1;
}

.ldo-weather-text {
    color: var(--lr-text);
}

.ldo-weather-tip {
    font-size: 13px;
    color: var(--lr-primary);
    font-weight: 500;
    margin-left: auto;
}

@media (max-width: 600px) {
    .ldo-weather-tip {
        margin-left: 0;
        width: 100%;
    }
}

/* ==========================================================================
   "Why it's great" Reason Hook
   ========================================================================== */
.activity-reason {
    font-size: 13px;
    font-weight: 600;
    color: var(--lr-primary);
    padding: 4px 0;
    line-height: 1.4;
}

/* ==========================================================================
   Activity Actions Row — better layout
   ========================================================================== */
.activity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* ==========================================================================
   "Build a Day" Planner
   ========================================================================== */

/* ── Add-to-Day button (inline on activity cards) ── */
.activity-add-day-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: var(--lr-accent-light) !important;
    color: var(--lr-accent-hover) !important;
    border: 1px solid var(--lr-accent) !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: var(--lr-radius-full) !important;
    cursor: pointer;
    transition: all 0.2s;
}

.activity-add-day-btn:hover {
    background: var(--lr-accent) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

.activity-add-day-btn.added {
    background: var(--lr-accent) !important;
    color: #0f172a !important;
    border-color: var(--lr-accent-hover) !important;
}

.activity-add-day-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Floating "My Day" pill — sticks above mobile nav ── */
.ldo-day-fab {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--lr-accent);
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--lr-radius-full);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    opacity: 0;
    pointer-events: none;
}

.ldo-day-fab.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ldo-day-fab:hover {
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5);
    transform: translateX(-50%) translateY(-2px);
}

.ldo-day-fab:active {
    transform: translateX(-50%) translateY(0);
}

.ldo-day-fab-icon {
    font-size: 18px;
    line-height: 1;
}

.ldo-day-fab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: white;
    color: var(--lr-accent-hover);
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .ldo-day-fab {
        bottom: 70px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ── Planner Panel (slide-up modal) ── */
.ldo-planner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.ldo-planner-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ldo-planner-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
}

.ldo-planner-panel.active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .ldo-planner-panel {
        max-width: 520px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        border-radius: 24px 24px 0 0;
    }
    .ldo-planner-panel.active {
        transform: translateX(-50%) translateY(0);
    }
}

/* ── Planner header ── */
.ldo-planner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--lr-border);
    flex-shrink: 0;
}

.ldo-planner-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--lr-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldo-planner-title-emoji {
    font-size: 22px;
}

.ldo-planner-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--lr-bg-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ldo-planner-close:hover {
    background: var(--lr-border);
}

.ldo-planner-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--lr-text);
}

/* ── Planner body — scrollable ── */
.ldo-planner-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    -webkit-overflow-scrolling: touch;
}

/* ── Time-of-day sections ── */
.ldo-slot-section {
    margin-bottom: 20px;
}

.ldo-slot-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.ldo-slot-label-emoji {
    font-size: 16px;
}

.ldo-slot-label-line {
    flex: 1;
    height: 1px;
    background: var(--lr-border);
}

/* ── Individual planner item ── */
.ldo-plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--lr-bg-subtle);
    border: 1px solid var(--lr-border);
    border-radius: var(--lr-radius-sm);
    margin-bottom: 8px;
    transition: box-shadow 0.2s;
    cursor: grab;
}

.ldo-plan-item:active {
    cursor: grabbing;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ldo-plan-item-drag {
    flex-shrink: 0;
    color: var(--lr-text-muted);
    cursor: grab;
}

.ldo-plan-item-body {
    flex: 1;
    min-width: 0;
}

.ldo-plan-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--lr-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldo-plan-item-meta {
    font-size: 12px;
    color: var(--lr-text-muted);
    margin-top: 2px;
}

.ldo-plan-item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--lr-text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ldo-plan-item-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

.ldo-plan-item-remove svg {
    width: 14px;
    height: 14px;
}

/* Move to different time slot */
.ldo-plan-item-slot-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--lr-border);
    background: white;
    color: var(--lr-text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ldo-plan-item-slot-btn:hover {
    border-color: var(--lr-primary);
    color: var(--lr-primary);
    background: var(--lr-primary-50);
}

/* ── Empty state ── */
.ldo-planner-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--lr-text-muted);
}

.ldo-planner-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.ldo-planner-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--lr-text);
    margin-bottom: 6px;
}

.ldo-planner-empty-desc {
    font-size: 14px;
    line-height: 1.5;
}

/* ── Planner footer actions ── */
.ldo-planner-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--lr-border);
    flex-shrink: 0;
    background: white;
}

.ldo-planner-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--lr-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ldo-planner-btn.primary {
    background: var(--lr-primary);
    color: white;
}

.ldo-planner-btn.primary:hover {
    background: var(--lr-primary-hover);
}

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

.ldo-planner-btn.secondary:hover {
    background: var(--lr-border);
}

.ldo-planner-btn.danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.ldo-planner-btn.danger:hover {
    background: #fee2e2;
}

