/* =====================================================
   DISNEY TRIP PLANNER — STYLES
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    --mk:        #006EBF;
    --mk-light:  #4a9fd4;
    --mk-dark:   #004a82;
    --ep:        #00A79D;
    --ep-light:  #4dc5bd;
    --ep-dark:   #007a72;
    --hs:        #C0392B;
    --hs-light:  #e05a4a;
    --hs-dark:   #8e2920;
    --ak:        #2E7D32;
    --ak-light:  #60ad5e;
    --ak-dark:   #1b5e20;
    --rs:        #6A1B9A;
    --rs-light:  #9c4dcc;
    --rs-dark:   #4a0072;

    --gold:      #FFD700;
    --dark:      #0D1B2A;
    --dark-2:    #1a2b3e;
    --text:      #1a1a2e;
    --text-light:#666;
    --white:     #ffffff;
    --off-white: #f7f8fa;
    --border:    #e2e6ea;
    --shadow:    0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.20);

    --font-heading: 'Cinzel', serif;
    --font-body:    'Lato', sans-serif;
    --container-max: 1200px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    background: linear-gradient(135deg, #0D1B2A 0%, #142236 45%, #0D1B2A 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 18%, rgba(255,255,255,.65) 0%, transparent 100%),
        radial-gradient(1px 1px   at 22% 55%, rgba(255,255,255,.4)  0%, transparent 100%),
        radial-gradient(2px 2px   at 38% 8%,  rgba(255,215,0,.6)    0%, transparent 100%),
        radial-gradient(1px 1px   at 50% 42%, rgba(255,255,255,.5)  0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 65% 22%, rgba(255,255,255,.55) 0%, transparent 100%),
        radial-gradient(1px 1px   at 78% 68%, rgba(255,255,255,.4)  0%, transparent 100%),
        radial-gradient(2px 2px   at 15% 78%, rgba(255,215,0,.45)   0%, transparent 100%),
        radial-gradient(1px 1px   at 88% 38%, rgba(255,255,255,.6)  0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 93% 12%, rgba(255,255,255,.5) 0%, transparent 100%),
        radial-gradient(1px 1px   at 44% 88%, rgba(255,255,255,.35) 0%, transparent 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,215,0,.06) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(100,149,237,.08) 0%, transparent 45%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.castle-icon {
    font-size: 76px;
    display: block;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 24px rgba(255,215,0,.55));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255,215,0,.4);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.trip-dates { margin-bottom: 28px; }

.date-badge {
    display: inline-block;
    background: rgba(255,215,0,.12);
    border: 1px solid rgba(255,215,0,.35);
    color: var(--gold);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: .95rem;
    letter-spacing: .5px;
}

.hero-couples {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.couple-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    padding: 10px 22px;
    border-radius: 50px;
}

.couple-emoji { font-size: 1.5rem; }
.couple-name  { font-weight: 600; color: var(--white); }

.sparkle {
    font-size: 1.5rem;
    animation: sparkle 2.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg);    opacity: 1; }
    50%       { transform: scale(1.3) rotate(20deg); opacity: .75; }
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 60px;
    background: var(--off-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* =====================================================
   PARK NAV
   ===================================================== */
.park-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.park-nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    overflow-x: auto;
    gap: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.park-nav-inner::-webkit-scrollbar { display: none; }

.park-btn {
    flex-shrink: 0;
    padding: 14px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all .2s ease;
    white-space: nowrap;
}

.park-btn:hover       { color: var(--dark); }
.park-btn.active      { color: var(--dark);  border-bottom-color: var(--gold); }
.park-btn.mk.active   { color: var(--mk);    border-bottom-color: var(--mk);  }
.park-btn.ep.active   { color: var(--ep);    border-bottom-color: var(--ep);  }
.park-btn.hs.active   { color: var(--hs);    border-bottom-color: var(--hs);  }
.park-btn.ak.active   { color: var(--ak);    border-bottom-color: var(--ak);  }
.park-btn.rs.active   { color: var(--rs);    border-bottom-color: var(--rs);  }

/* =====================================================
   CONTAINER & SECTION HEADINGS
   ===================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--dark);
    text-align: center;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* =====================================================
   OVERVIEW / CALENDAR
   ===================================================== */
.overview-section {
    padding: 60px 20px;
    background: var(--white);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.calendar-day {
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.calendar-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.calendar-day.mk { background: linear-gradient(135deg, var(--mk),  var(--mk-dark));  }
.calendar-day.ep { background: linear-gradient(135deg, var(--ep),  var(--ep-dark));  }
.calendar-day.hs { background: linear-gradient(135deg, var(--hs),  var(--hs-dark));  }
.calendar-day.ak { background: linear-gradient(135deg, var(--ak),  var(--ak-dark));  }
.calendar-day.rs { background: linear-gradient(135deg, var(--rs),  var(--rs-dark));  }

.cal-day-num  { font-size: .68rem; font-weight: 700; letter-spacing: .5px; opacity: .85; text-transform: uppercase; }
.cal-day-emoji { font-size: 1.8rem; margin: 4px 0; }
.cal-day-date  { font-size: .65rem; opacity: .8; margin-bottom: 4px; }
.cal-day-name  { font-size: .68rem; font-weight: 600; line-height: 1.25; }

.park-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    color: var(--text-light);
}

.legend-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-dot.mk { background: var(--mk); }
.legend-dot.ep { background: var(--ep); }
.legend-dot.hs { background: var(--hs); }
.legend-dot.ak { background: var(--ak); }
.legend-dot.rs { background: var(--rs); }

/* =====================================================
   ITINERARY CARDS
   ===================================================== */
.itinerary-section { padding: 60px 20px; }

.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .itinerary-grid { grid-template-columns: 1fr; }
}

.day-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--border);
}

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

.day-card.mk { border-top-color: var(--mk); }
.day-card.ep { border-top-color: var(--ep); }
.day-card.hs { border-top-color: var(--hs); }
.day-card.ak { border-top-color: var(--ak); }
.day-card.rs { border-top-color: var(--rs); }

@keyframes pulse-highlight {
    0%, 100% { box-shadow: var(--shadow); }
    50%       { box-shadow: 0 0 0 4px var(--gold), var(--shadow-lg); }
}
.day-card.highlight { animation: pulse-highlight 1.8s ease; }

.day-card-header { padding: 20px 20px 16px; }

.day-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.day-badge {
    background: var(--dark);
    color: var(--white);
    padding: 3px 11px;
    border-radius: 50px;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.day-date { font-size: .8rem; color: var(--text-light); }

.day-card-park {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.park-emoji-large { font-size: 2.5rem; }

.park-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-light);
}

.day-card.mk .park-label { color: var(--mk); }
.day-card.ep .park-label { color: var(--ep); }
.day-card.hs .park-label { color: var(--hs); }
.day-card.ak .park-label { color: var(--ak); }
.day-card.rs .park-label { color: var(--rs); }

.day-title { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; }

/* Lock / edit-mode button */
.edit-lock-btn {
    flex-shrink: 0;
    margin-left: auto;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all .2s;
    white-space: nowrap;
    align-self: center;
}

.edit-lock-btn:hover { border-color: var(--gold); color: var(--dark); }
.edit-lock-btn.unlocked { background: #fff8e1; border-color: var(--gold); color: #b8860b; }

/* Card sections — inline itinerary content */
.card-section {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.card-section-title {
    font-family: var(--font-heading);
    font-size: .85rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 600;
}


/* Activities */
.activity-list { display: flex; flex-direction: column; }

.activity-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}

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

.activity-time {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    min-width: 52px;
    flex-shrink: 0;
}

.activity-desc { font-size: .875rem; color: var(--text); line-height: 1.45; flex: 1; }

/* Edit controls — only shown in edit mode */
.act-btns {
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: opacity .15s;
    flex-shrink: 0;
}

.activity-item.editable:hover .act-btns { opacity: 1; }
.activity-item.editing .act-btns         { opacity: 1; }

.act-btn {
    width: 26px; height: 26px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

.act-btn.edit   { background: #e3f2fd; color: #1565c0; }
.act-btn.delete { background: #ffebee; color: #c62828; }
.act-btn.save   { background: #e8f5e9; color: #2e7d32; }
.act-btn.cancel { background: #f5f5f5; color: #666;    }

.act-btn.edit:hover   { background: #bbdefb; }
.act-btn.delete:hover { background: #ffcdd2; }
.act-btn.save:hover   { background: #c8e6c9; }
.act-btn.cancel:hover { background: #e0e0e0; }

/* Editing row */
.activity-item.editing {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    background: var(--off-white);
    border-radius: 8px;
    padding: 10px;
    border-bottom: none;
    margin-bottom: 4px;
}

.edit-time {
    width: 72px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-light);
}

.edit-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.edit-desc {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: .875rem;
    color: var(--text);
}

.ride-picker {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: .8rem;
    color: var(--text-light);
    background: var(--white);
    cursor: pointer;
}

.edit-time:focus, .edit-desc:focus, .ride-picker:focus {
    outline: none;
    border-color: #90caf9;
    box-shadow: 0 0 0 2px rgba(33,150,243,.15);
}

/* Add activity button */
.add-activity-row { padding: 8px 0 2px; }

.add-activity-btn {
    width: 100%;
    padding: 7px;
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: none;
    font-family: var(--font-body);
    font-size: .82rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all .15s;
}

.add-activity-btn:hover {
    border-color: #90caf9;
    color: #1565c0;
    background: #f0f7ff;
}

/* Rides */
.rides-list { display: flex; flex-direction: column; gap: 8px; }

.ride-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--off-white);
    border-left: 4px solid transparent;
    gap: 10px;
}

.ride-item.priority-1 { border-left-color: #e53935; }
.ride-item.priority-2 { border-left-color: #fb8c00; }
.ride-item.priority-3 { border-left-color: #43a047; }

.ride-info { flex: 1; min-width: 0; }
.ride-name { font-weight: 700; font-size: .88rem; color: var(--text); }
.ride-land { font-size: .73rem; color: var(--text-light); margin-top: 2px; }

.ride-badges { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.ride-type {
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ride-type.thrill       { background: #ffebee; color: #c62828; }
.ride-type.family       { background: #e3f2fd; color: #1565c0; }
.ride-type.classic      { background: #f3e5f5; color: #6a1b9a; }
.ride-type.educational  { background: #e8f5e9; color: #2e7d32; }
.ride-type.show         { background: #fff8e1; color: #e65100; }

.priority-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 50px;
    background: #fff3e0;
    color: #e65100;
}

/* Dining */
.dining-list { display: flex; flex-direction: column; gap: 10px; }

.dining-item {
    background: var(--off-white);
    border-radius: 10px;
    padding: 14px;
}

.dining-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.dining-name  { font-weight: 700; font-size: .9rem; color: var(--text); }

.dining-type {
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    background: #fff8e1;
    color: #e65100;
    text-transform: uppercase;
    flex-shrink: 0;
}

.dining-notes { font-size: .82rem; color: var(--text-light); line-height: 1.5; }

/* Tips */
.tips-list { display: flex; flex-direction: column; gap: 8px; }

.tip-item {
    background: #fffde7;
    border: 1px solid #fff176;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .85rem;
    color: var(--text);
    line-height: 1.5;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.65);
    text-align: center;
    padding: 40px 20px;
}

.footer-text { font-size: 1.15rem; color: var(--gold); margin-bottom: 6px; }
.footer-sub  { font-size: .83rem; opacity: .55; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .hero { padding: 60px 20px 100px; }
    .castle-icon { font-size: 58px; }
    .calendar-grid { grid-template-columns: repeat(7, 1fr); }
}

@media (max-width: 540px) {
    .calendar-grid { grid-template-columns: repeat(4, 1fr); }
    .cal-day-emoji  { font-size: 1.4rem; }
    .hero-couples   { flex-direction: column; gap: 10px; }
    .ride-item      { flex-direction: column; align-items: flex-start; }
    .ride-badges    { justify-content: flex-start; }
}
