/* Custom styles for Choices.js in dark mode */
.choices__inner {
    background-color: #111827; /* gray-900 - Darker for better contrast */
    border: 2px solid #4b5563; /* gray-600 - Thicker border */
    color: white;
    border-radius: 0.5rem;
}

.choices__list--dropdown, .choices__list[aria-expanded] {
    background-color: #374151; /* gray-700 */
    border-color: #4b5563; /* gray-600 */
    /* Ensure dropdown appears above other content */
    z-index: 10;
}

.choices__item--choice {
    color: white;
}

/* FIX: Improved contrast for hovered/highlighted items in dark mode */
.choices__item--choice.is-highlighted {
    background-color: #3b82f6; /* blue-500 */
    color: white;
}

/* FIX: Make placeholder text visible in dark mode */
.choices__input::placeholder, .choices__placeholder {
    color: #d1d5db; /* gray-300 */
    opacity: 1;
}

/* Typeahead input text color */
.choices__input {
    background-color: transparent ; /* Ensure input background is transparent */
    color: white; /* Make typed text white */
}


/* Styling for selected items in multi-select */
.choices__list--multiple .choices__item {
    background-color: #0ea5e9; /* sky-500 */
    border-color: #0284c7; /* sky-600 */
    color: white;
    position: relative; /* Needed for pseudo-element positioning */
    /* UPDATED: Removed extra padding-right */
    /* padding-right: 1.5rem; */
    cursor: pointer; /* Indicate clickable */
    transition: background-color 0.2s ease;
}

/* Hide the default remove button ('x') */
.choices__list--multiple .choices__item .choices__button {
    display: none;
}

/* Show red background on hover */
.choices__list--multiple .choices__item:hover {
    background-color: #dc2626; /* red-600 */
    border-color: #b91c1c; /* red-700 */
}


/* Make all buttons in settings views larger */
#advanced-settings-view button[type="submit"],
#wizard-nav button {
    padding-top: 0.75rem;    /* py-3 */
    padding-bottom: 0.75rem; /* py-3 */
    padding-left: 1.5rem;   /* px-6 */
    padding-right: 1.5rem;  /* px-6 */
    font-size: 1rem;         /* text-base */
    line-height: 1.5rem;
    border-radius: 0.5rem; /* rounded-lg */
}

/* Slide-in nav buttons use .mobile-nav-button styles in wonderful_window.php */

/* Make Choices.js dropdowns larger and more touch-friendly */
.choices__inner {
    font-size: 1rem; /* text-base */
    min-height: 48px; /* Taller */
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

/* Make dropdown list items larger */
.choices__list--dropdown .choices__item--choice {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
}

/* NEW: Brighter highlight for hover/selected item in dropdown */
.choices__item--choice.is-highlighted {
    background-color: #3b82f6; /* blue-500 */
    color: white;
}
/* Ensure dark mode override also uses the bright color */
.choices__list--dropdown .choices__item--choice.is-highlighted,
.choices__list[aria-expanded] .choices__item--choice.is-highlighted {
    background-color: #3b82f6; /* blue-500 */
    color: white;
}

/* Make selected items in multi-select larger */
.choices__list--multiple .choices__item {
    font-size: 0.875rem; /* text-sm */
    padding-top: 0.35rem; /* Maintain vertical padding */
    padding-bottom: 0.35rem;
    padding-left: 0.75rem; /* Maintain left padding */
    /* padding-right adjusted above for remove text */
    margin-top: 0.4rem;
    border-radius: 0.375rem; /* rounded-md */
}

/* --- NEW: Wizard Preview Display (Base container) --- */
#wizard-preview-display {
    /* Copy of #display-view base styles */
    font-family: 'Inter', sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-f, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    position: relative;
    color: white;
    perspective: 1000px;
    overflow: hidden;
    /* Needs to be 100% of the scaler */
    width: 100%;
    height: 100%;
    /* No flex/padding needed here, layout is done via absolute children */
    display: block; /* Change from flex */
}

#wizard-preview-display::before {
    /* Copy of #display-view::before overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay */
    z-index: 1;
}


#wizard-preview-welcome-screen-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Below editable elements, above overlay */
    display: none; /* Hidden by default */
}


@media (max-width: 1024px), (max-height: 700px) {
    #wizard-view {
        flex-direction: column;
        /* MODIFIED: Make view full height and handle overflow internally */
        /* UPDATED: 100vh to 100% */
        height: 100%; 
        overflow: hidden;
    }
    #wizard-settings-panel {
        width: 100%;
        /* MODIFIED: Set explicit vh heights */
        /* UPDATED: 100vh to 100% */
        height: 100%; /* 100% of parent height for settings */
        overflow-y: auto; /* This panel scrolls */
        order: 1; /* Settings are on top */
    }
    #wizard-preview-panel {
        /* MODIFIED: Hide preview panel entirely on mobile */
        display: none;
    }
    /* Make scaler full width but allow height to be auto */
    #wizard-preview-scaler {
        width: 100% ;
        height: auto ;
        transform: scale(1) ; /* Disable scaling on mobile */
    }
}


#wizard-preview-music-placeholder {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 30px; /* Skinny bar */
    background-color: rgba(0, 0, 0, 0.4);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
}

#wizard-preview-music-placeholder span {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem; /* Will be scaled by parent */
    letter-spacing: 0.1em;
}

.choices__input {
    background-color: transparent; /* Ensure input background is transparent */
    color: white; /* Make typed text white */
}

/* --- Fix for datetime-local input text color --- */
#countdown-datetime,
#countdown-datetime::-webkit-datetime-edit-fields-wrapper,
#countdown-datetime::-webkit-datetime-edit-text,
#countdown-datetime::-webkit-datetime-edit-month-field,
#countdown-datetime::-webkit-datetime-edit-day-field,
#countdown-datetime::-webkit-datetime-edit-year-field,
#countdown-datetime::-webkit-datetime-edit-hour-field,
#countdown-datetime::-webkit-datetime-edit-minute-field,
#countdown-datetime::-webkit-datetime-edit-ampm-field {
    color: #f3f4f6; /* gray-100 (white) */
}

/* NEW: Fix for number input text color */
#interval-input,
#welcome-frequency {
    color: #f3f4f6;
    color-scheme: dark;
}

/* NEW: Fix for text input color */
#welcome-family-name {
    color: #f3f4f6;
    color-scheme: dark;
}

/* NEW: Styles for Chip Selection (Parks & Attractions) */
.selection-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.selection-chip {
    display: flex;
    align-items: center;
    background-color: #374151; /* gray-700 */
    border: 1px solid #4b5563; /* gray-600 */
    color: #f3f4f6; /* gray-100 */
    padding: 0.5rem 0.75rem;
    border-radius: 9999px; /* rounded-full */
    font-size: 0.875rem; /* text-sm */
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.selection-chip:hover {
    background-color: #4b5563; /* gray-600 */
    border-color: #6b7280; /* gray-500 */
}

.selection-chip.active {
    background-color: #3b82f6; /* blue-500 */
    border-color: #2563eb; /* blue-600 */
    color: white;
}

.selection-chip.active:hover {
    background-color: #2563eb; /* blue-600 */
}

.selection-chip .remove-icon {
    margin-left: 0.5rem;
    color: #9ca3af; /* gray-400 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-chip:hover .remove-icon {
    color: #f3f4f6;
}

/* Specific styling for the park grid */
.park-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .park-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.park-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1f2937; /* gray-800 */
    border: 2px solid #374151; /* gray-700 */
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.park-tile:hover {
    border-color: #4b5563;
    transform: translateY(-2px);
}

.park-tile.active {
    border-color: #3b82f6 !important;
    background-color: #3b82f6 !important;
    color: white !important;
}

.park-tile img {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.5rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.park-tile span {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Search bar styling */
.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background-color: #374151;
    border: 1px solid #4b5563;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-top: none;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.875rem;
    border-bottom: 1px solid #374151;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #374151;
}

.search-result-item .park-name {
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
}

/* Empty state styling */
.empty-selection-text {
    color: #9ca3af;
    font-size: 0.875rem;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    background-color: #1f2937;
    border: 1px dashed #4b5563;
    border-radius: 0.5rem;
    width: 100%;
}

.remove-all-btn {
    font-size: 0.75rem;
    color: #ef4444;
    cursor: pointer;
    text-decoration: underline;
}

.remove-all-btn:hover {
    color: #f87171;
}

/* Hide Choices.js UI for the park selector since we use tiles */
#park-select + .choices {
    display: none !important;
}

/* IMPROVED CONTRAST: Search result items */
.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem; /* Slightly larger */
    border-bottom: 1px solid #374151;
    color: #ffffff !important; /* Pure white for maximum contrast */
    background-color: #1f2937;
}

.search-result-item:hover {
    background-color: #3b82f6; /* Blue background on hover */
    color: #ffffff !important;
}

.search-result-item .park-name {
    font-size: 0.8rem;
    color: #cbd5e1; /* Brighter gray (slate-300) for better readability */
    display: block;
    margin-top: 0.1rem;
}

.search-result-item:hover .park-name {
    color: #e2e8f0; /* Even brighter on hover */
}

/* IMPROVED CONTRAST: Search Input */
.search-input {
    width: 100%;
    background-color: #111827; /* Darker background for better input contrast */
    border: 2px solid #4b5563;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-input::placeholder {
    color: #9ca3af;
}

/* IMPROVED CONTRAST: Selected Chips */
.selection-chip.active {
    background-color: #2563eb; /* Deeper blue */
    border-color: #1d4ed8;
    color: #ffffff;
    font-weight: 500;
}

/* NEW: Park Filter Buttons (Same as Park Companion) */
.filter-btn {
    padding: 8px 16px;
    border: 2px solid #4b5563; /* gray-600 */
    border-radius: 9999px; /* Pill style */
    background-color: #1f2937; /* gray-800 */
    color: #d1d5db; /* gray-300 */
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #374151; /* gray-700 */
    border-color: #6b7280; /* gray-500 */
    color: white;
}

.filter-btn.selected {
    background-color: #3b82f6 !important; /* blue-500 */
    border-color: #2563eb !important; /* blue-600 */
    color: white !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.filter-btn.danger-btn {
    border-color: #dc2626;
    color: #f87171;
}

.filter-btn.danger-btn:hover {
    background-color: #dc2626;
    color: white;
}

/* NEW: Custom Dropdown Menu (Dark Mode) */
.custom-dropdown-menu {
    background-color: #1f2937 !important; /* gray-800 */
    border: 1px solid #374151 !important; /* gray-700 */
    color: #f3f4f6 !important; /* gray-100 */
}

.custom-dropdown-menu div:hover {
    background-color: #374151 !important; /* gray-700 */
}

.custom-dropdown-menu .actions-row {
    background-color: #111827 !important; /* gray-900 */
    border-bottom: 1px solid #374151 !important;
}

/* Custom Dropdown Trigger Button */
.custom-dropdown-trigger {
    background-color: #1f2937 !important;
    border: 1px solid #4b5563 !important;
    border-radius: 9999px !important;
    padding: 8px 16px !important;
    color: #f3f4f6 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 160px;
    transition: all 0.2s ease;
}

.custom-dropdown-trigger:hover {
    border-color: #3b82f6 !important;
    background-color: #374151 !important;
}

/* ==========================================================================
   GUIDED DEVICE SETUP WIZARD OVERHAUL (STEPS, CARDS, SWITCHES, TOOLTIPS)
   ========================================================================== */

/* 5-Step Progress Stepper Pills */
.wizard-step-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.65rem;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-width: 0;
}

.wizard-step-pill:hover {
    background: rgba(51, 65, 85, 0.7);
    color: #f8fafc;
    border-color: rgba(56, 189, 248, 0.35);
}

.wizard-step-num {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.wizard-step-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard-step-pill.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(14, 165, 233, 0.2));
    border-color: rgba(56, 189, 248, 0.75);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.wizard-step-pill.active .wizard-step-num {
    background: #0ea5e9;
    border-color: #38bdf8;
    color: #ffffff;
}

.wizard-step-pill.completed {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #d1fae5;
}

.wizard-step-pill.completed .wizard-step-num {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
}

/* Step Header Banner */
.wizard-step-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.wizard-step-banner-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.wizard-step-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
    margin-bottom: 0.15rem;
}

.wizard-step-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.wizard-step-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-top: 0.25rem;
    line-height: 1.45;
}

/* Setting Cards */
.wizard-card {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.95rem;
    padding: 1.1rem 1.2rem;
    margin-bottom: 0.9rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-card--compact {
    padding: 0.85rem 1.1rem;
}

.wizard-card:hover,
.wizard-card:focus-within {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.wizard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.wizard-card-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.wizard-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

.wizard-card-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    line-height: 1.4;
}

.wizard-card-sub {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
}

.wizard-sub-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    margin-bottom: 0.45rem;
}

/* Badges & Mini Action Buttons */
.wizard-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
}

.wizard-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.wizard-mini-btn--primary {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

.wizard-mini-btn--primary:hover {
    background: #2563eb;
    color: #ffffff;
}

.wizard-mini-btn--danger {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.wizard-mini-btn--danger:hover {
    background: #dc2626;
    color: #ffffff;
}

/* iOS-Style Toggle Switch */
.wizard-switch {
    position: relative;
    display: inline-block;
    width: 2.9rem;
    height: 1.6rem;
    flex-shrink: 0;
    cursor: pointer;
}

.wizard-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wizard-switch-slider {
    position: absolute;
    inset: 0;
    background-color: #334155;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-switch-slider::before {
    position: absolute;
    content: "";
    height: 1.2rem;
    width: 1.2rem;
    left: 0.16rem;
    bottom: 0.14rem;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-switch input:checked + .wizard-switch-slider {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.45);
}

.wizard-switch input:checked + .wizard-switch-slider::before {
    transform: translateX(1.28rem);
}

/* Interactive Question-Mark Tooltips */
.wizard-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.35rem;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: help;
    vertical-align: middle;
    outline: none;
    transition: all 0.18s ease;
}

.wizard-tooltip:hover,
.wizard-tooltip:focus {
    background: #0ea5e9;
    color: #ffffff;
    transform: scale(1.08);
}

.wizard-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 250px;
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.55);
    color: #f1f5f9;
    font-size: 0.73rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 9999;
}

.wizard-tooltip:hover::after,
.wizard-tooltip:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Visual Park Tile Cards in Step 1 */
.park-tile {
    position: relative;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 0.75rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 98px;
}

.park-tile:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
}

.park-tile.active {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.15));
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.28);
}

.park-tile-check {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.68rem;
    font-weight: 900;
    transition: all 0.2s ease;
}

.park-tile.active .park-tile-check {
    background: #0ea5e9;
    border-color: #7dd3fc;
    color: #ffffff;
}

.park-tile img {
    width: 2.3rem;
    height: 2.3rem;
    object-fit: contain;
    margin-bottom: 0.35rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.park-tile span.park-tile-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.park-tile span.park-tile-region {
    font-size: 0.63rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 0.15rem;
}

/* Live Preview Spotlight Pulse Effect */
@keyframes wizardSpotlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 2px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.75);
    }
    50% {
        box-shadow: 0 0 0 4px #7dd3fc, 0 0 28px rgba(56, 189, 248, 0.95);
    }
}

.wizard-spotlight-active {
    outline: none !important;
    border-radius: 0.65rem;
    animation: wizardSpotlightPulse 1.5s infinite ease-in-out;
    z-index: 60 !important;
}

/* ==========================================================================
   QUICK SCENES & SAVED PROFILES CARDS
   ========================================================================== */
.quick-scene-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.quick-scene-card:hover {
    background: rgba(30, 58, 138, 0.45);
    border-color: rgba(56, 189, 248, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.quick-scene-card.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(14, 165, 233, 0.2));
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.3);
}

.quick-scene-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.quick-scene-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.quick-scene-subtitle {
    font-size: 0.66rem;
    color: #94a3b8;
    margin-top: 0.1rem;
    line-height: 1.25;
}

.saved-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.saved-profile-chip:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: #fbbf24;
    color: #ffffff;
}

.saved-profile-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.35);
    color: #fca5a5;
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 0.15rem;
    transition: all 0.15s ease;
}

.saved-profile-delete:hover {
    background: #dc2626;
    color: #ffffff;
}




