/* ============================================================
   STYLES ADDITIONS — Edit Buttons, Content Blocks, Price Edit
   Add this file AFTER styles.css in index.html
   ============================================================ */

/* ── HERO PRICE CARD EDIT BUTTONS ── */
.hpc-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hero-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    flex-shrink: 0;
    backdrop-filter: blur(6px);
    opacity: 0;
}

.hero-price-card:hover .hero-edit-btn {
    opacity: 1;
}

.hero-edit-btn:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.55);
    color: #fff;
    transform: scale(1.08);
}

.hero-edit-btn:active {
    transform: scale(0.95);
}

/* Duration edit button — sits next to the stats */
.hero-edit-duration-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    align-self: center;
    margin-left: 0.25rem;
}

.hpc-stat-editable {
    cursor: default;
    position: relative;
}

/* ── TOUR COST PRICE EDIT BUTTON ── */
.tc-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.tc-price-display .tc-per {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 2px;
}

.tc-price-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
    cursor: pointer;
    transition: all 0.18s;
    vertical-align: middle;
    flex-shrink: 0;
    opacity: 0;
}

.tc-row:hover .tc-price-edit-btn {
    opacity: 1;
}

.tc-price-edit-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: scale(1.1);
}

/* ── ICON BUTTON OVERRIDES (reserved for future use) ── */
.hpc-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 0.65rem;
    flex-wrap: nowrap;
}

/* Ensure edit btn in stats doesn't break layout */
.hpc-stats .hero-edit-btn {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    opacity: 0;
}

.hero-price-card:hover .hpc-stats .hero-edit-btn {
    opacity: 1;
}

/* ── REGIONAL ACTIVITIES PANEL ── */
.region-activities-panel {
    width: 380px;
    min-width: 340px;
    max-width: 420px;
    background: #ffffff;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 100;
    position: relative;
}

/* Sidebar Tag Flex Layout */
.sidebar-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 8px 20px;
    min-height: 40px;
}

.sidebar-tag span {
    transition: opacity 0.2s;
    white-space: nowrap;
}

/* Toggle Button Styles */
.panel-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: all 0.2s;
    z-index: 10;
}

.panel-toggle-btn:hover {
    background: #f1f5f9;
    color: var(--accent);
    border-color: var(--accent);
}

/* Collapsed States */
.left-panel, .region-activities-panel {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-panel.collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
}

.region-activities-panel.collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
}

.collapsed .sidebar-tag {
    padding: 8px;
    justify-content: center;
}

.collapsed .sidebar-tag span {
    display: none;
}

.collapsed .panel-toggle-btn svg {
    transform: rotate(180deg);
}

.left-panel.collapsed > *:not(.sidebar-tag),
.region-activities-panel.collapsed > *:not(.sidebar-tag) {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Panel is permanent now */

.rap-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.rap-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.rap-region-name {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
}

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

.spin {
    animation: spin 1s linear infinite;
}

/* ── RAP TABS ── */
.rap-tabs {
    display: flex;
    padding: 0 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.rap-tab {
    flex: 1;
    padding: 10px 10px;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.rap-tab:hover {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
}

.rap-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: white;
}

/* ── SIDE PANEL SEARCH ── */
.side-panel-search {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.side-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.side-search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
}

#side-panel-search-input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#side-panel-search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

#side-panel-search-input::placeholder {
    color: #94a3b8;
}

.rap-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.rap-list::-webkit-scrollbar { width: 6px; }
.rap-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.rap-list::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.rap-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

.rap-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.rap-card:active {
    cursor: grabbing;
}

.rap-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    display: block;
}

.rap-card-content {
    padding: 1rem;
}

.rap-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.rap-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rap-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.rap-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-secondary);
}

.rap-empty-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    opacity: 0.4;
}

.rap-empty p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── ITINERARY BOTTOM ACTIONS ── */
.itin-bottom-actions {
    display: flex;
    gap: 1.25rem;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    justify-content: center;
    margin-top: 3rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.btn-itin-whatsapp, 
.btn-itin-json {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem 2.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    min-width: 240px;
}

.btn-itin-whatsapp {
    background: #10b981;
    color: white;
}

.btn-itin-whatsapp:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.25);
}

.btn-itin-json {
    background: white;
    color: #ef4444;
    border: 2px solid #ef4444;
}

.btn-itin-json:hover {
    background: #fef2f2;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.15);
}

.btn-itin-whatsapp:active,
.btn-itin-json:active {
    transform: translateY(-1px);
}

.btn-itin-whatsapp svg, 
.btn-itin-json svg {
    flex-shrink: 0;
}
/* ── SUGGESTION PILLS ── */
.suggestions-pills-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    scrollbar-width: none;
    min-height: 48px;
    align-items: center;
}

.suggestions-pills-container::-webkit-scrollbar {
    display: none;
}

.suggestion-pill {
    background: #f8fafc;
    color: #475569;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    animation: pillPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pillPop {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.suggestion-pill:hover {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(3, 105, 161, 0.12);
}

.suggestion-pill::before {
    content: '✨';
    font-size: 0.9rem;
}

.suggestion-pill.satisfied {
    background: #ecfdf5;
    color: #059669;
    border-color: #10b981;
    cursor: default;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.suggestion-pill.satisfied::before {
    content: '✅';
}

.suggestion-pill.satisfied:hover {
    transform: none;
    background: #ecfdf5;
    color: #059669;
    border-color: #10b981;
}

/* ── FLAVOR TOGGLE ── */
.itin-flavor-toggle-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.flavor-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: #f1f5f9;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flavor-toggle-btn:hover {
    background: #e2e8f0;
    color: var(--accent);
    transform: translateY(-2px);
}

.flavor-toggle-btn.active {
    background: #ffffff;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.15);
}

.flavor-toggle-btn span {
    font-size: 1.1rem;
}

/* ── HIGHLIGHTS FLAVOR ── */
.highlights-container {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.highlights-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
}

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

.highlight-flavor-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.highlight-flavor-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.highlight-flavor-card .day-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 14px;
    border-bottom-left-radius: 16px;
}

.highlight-flavor-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
}

.highlight-flavor-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.highlights-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    margin-top: 1rem;
}



/* ── PREMIUM STORYTELLING VIEW ── */
.story-container {
    padding: 0;
    background: #ffffff;
    position: relative; /* Parent for absolute map */
    width: 100%;
    min-height: 100vh;
}

.story-intro {
    text-align: center;
    padding: 160px 40px 100px; /* Increased top padding to avoid overlap with toggle */
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* Above map */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    text-shadow: 0 0 20px rgba(255,255,255,0.8); /* Better contrast over map */
}

.story-intro::before {
    content: '“';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 120px;
    color: var(--gold);
    opacity: 0.1;
    font-family: serif;
}

.story-map-split {
    display: block;
    position: relative;
    padding: 0;
    max-width: none;
    margin: 0;
    width: 100%;
}

.story-list {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center cards */
    padding-top: 50px;
    padding-bottom: 300px;
    pointer-events: auto; /* Enable scrolling */
}

.story-day {
    margin-bottom: 60vh; /* Large gap for background visibility */
    position: relative;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.3; /* More visible by default */
    transform: scale(0.9) translateY(40px);
    scroll-snap-align: center;
    scroll-margin-top: 10vh; /* Better snap point */
    overflow: hidden;
    width: 600px;
    max-width: 90vw;
    min-height: auto; 
}

.story-day.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 50px 120px rgba(0,0,0,0.2);
    border: 2px solid var(--gold);
}

/* ── RECOMMENDATION PILLS ── */
.rap-pill-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: capitalize;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 8px;
}

.badge-accommodation { background: #fffbeb !important; color: #b45309 !important; border-color: #fde68a !important; }
.badge-activity      { background: #eff6ff !important; color: #1d4ed8 !important; border-color: #bfdbfe !important; }
.badge-skills        { background: #fdf2f8 !important; color: #9d174d !important; border-color: #fbcfe8 !important; }
.badge-default       { background: #f8fafc !important; color: #475569 !important; border-color: #e2e8f0 !important; }

.expert-card {
    border: none;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    position: relative;
    overflow: hidden;
}

.expert-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.story-day {
    margin-bottom: 200px;
    position: relative;
    padding: 0;
    background: #ffffff;
    border-radius: 40px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.4;
    transform: scale(0.96) translateY(30px);
    scroll-snap-align: center;
    scroll-margin-top: 150px;
    overflow: hidden;
    min-height: 750px;
    display: flex;
    flex-direction: column;
}

.story-day.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    border-color: var(--gold);
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
}

.story-day.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    border-color: var(--gold);
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
}

.story-card-inner {
    padding: 50px;
}

.story-hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 400px;
    background: #f1f5f9; /* Fallback background color */
    overflow: hidden;
}

.story-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-day.active .story-hero-image {
    transform: scale(1.1);
}

.story-day-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.story-day-badge .day-num {
    font-size: 20px;
    font-weight: 900;
    color: var(--gold);
}

.story-day-badge .day-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.story-coord-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 12px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: monospace;
    transition: all 0.4s ease;
}

.story-day.active .story-coord-badge {
    background: var(--gold);
    color: white;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.story-day h3 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.1;
}

.story-day .subtitle {
    font-size: 13px;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 24px;
    display: block;
}

.story-day .content {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 40px;
}

.story-progress {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 100;
    padding: 30px 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.progress-dot {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.progress-dot.active {
    background: var(--gold);
    transform: scale(2);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.4);
}

.progress-dot::after {
    content: attr(data-day);
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.progress-dot:hover::after {
    opacity: 1;
    left: 30px;
}

.story-map-fixed-container {
    position: sticky; /* Sticky relative to story-container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height background */
    background: #f1f5f9;
    z-index: 1; /* Behind content */
    margin-bottom: -100vh; /* Pull subsequent content up over the map */
    transition: all 0.5s ease;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Interactive continue button ── */
.continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold);
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.2);
}

.continue-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.3);
    filter: brightness(1.05);
}

.continue-btn svg {
    transition: transform 0.4s ease;
}

.continue-btn:hover svg {
    transform: translateX(6px);
}

#astarSection.story-mode {
    display: block !important;
    height: 100%;
}

#astarSection.story-mode .astar-map-card {
    border: none;
    box-shadow: none;
    height: 100%;
    background: transparent;
}

#astarSection.story-mode .section-label,
#astarSection.story-mode .astar-map-header,
#astarSection.story-mode .route-stats {
    display: none !important;
}

#astarSection.story-mode #routeMapDiv {
    height: 100% !important;
    width: 100% !important;
    border-radius: 32px;
}

/* ── STORY MAP MARKERS ── */
.story-marker-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-marker-dot {
    width: 32px;
    height: 32px;
    background: white;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-marker-dot .day-num {
    font-size: 14px;
    font-weight: 900;
    color: var(--gold);
}

.story-marker-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    z-index: 1;
}

.story-marker-wrapper.active {
    transform: scale(1.4);
}

.story-marker-wrapper.active .story-marker-dot {
    background: var(--gold);
    border-color: white;
}

.story-marker-wrapper.active .story-marker-dot .day-num {
    color: white;
}

.story-marker-wrapper.active .story-marker-pulse {
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

@media (max-width: 1000px) {
    .story-map-split {
        grid-template-columns: 1fr;
    }
    .story-map-fixed-container {
        position: relative;
        top: 0;
        width: 100%;
        height: 400px;
        margin-bottom: 40px;
    }
}



@media (max-width: 768px) {
    .itin-flavor-toggle-bar {
        padding: 1rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .flavor-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}
/* ── DAY PLACEHOLDER STYLES ── */
.day-placeholder-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    text-align: center;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.day-placeholder-block:hover {
    border-color: var(--accent);
    background: #f0f9ff;
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0.5);
}

.placeholder-text {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    max-width: 400px;
    line-height: 1.6;
}

.placeholder-actions {
    display: flex;
    gap: 1rem;
}

.btn-generate-ai, .btn-manual-add {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-generate-ai {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-generate-ai:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-manual-add {
    background: white;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.btn-manual-add:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.day-card.is-placeholder .day-number-badge {
    background: #94a3b8;
}

.day-card.is-placeholder .day-title {
    color: #94a3b8;
    font-style: italic;
}
