/**
 * fp-itinerary-builder.css
 * Part of SouthKorea theme — extracted from fp-itinerary-builder.php
 * @package SouthKorea
 */

/* ══════════════════════════════════════════════════
   ITINERARY BUILDER v2 — MISSION CONTROL
══════════════════════════════════════════════════ */

.sk-itv2 {
    padding: 80px 48px;
    position: relative;
    background: linear-gradient(180deg, rgba(123,95,255,.03) 0%, transparent 50%);
}
.sk-itv2::before {
    content: '';
    position: absolute; top: 0; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123,95,255,.2), transparent);
}

/* ── Header ─────────────────────────────────────── */
.sk-itv2-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.sk-itv2-social-proof {
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,200,255,.05);
    border: 1px solid rgba(0,200,255,.12);
    padding: 8px 16px;
    font-size: 12px; color: rgba(255,255,255,.55);
    font-family: 'DM Sans', sans-serif;
}
.sk-itv2-proof-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #00c8ff;
    box-shadow: 0 0 8px rgba(0,200,255,.8);
    animation: sk-dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.sk-itv2-social-proof strong { color: #00c8ff; font-weight: 700; }

/* ── Layout: 2-col ──────────────────────────────── */
.sk-itv2-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* ── Wizard (left) ──────────────────────────────── */
.sk-itv2-wizard {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 24px;
}
.sk-itv2-step {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
    border-bottom: none;
    overflow: hidden;
}
.sk-itv2-step:last-child { border-bottom: 1px solid rgba(255,255,255,.07); }
.sk-itv2-step-label {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    background: rgba(0,0,0,.2);
}
.sk-itv2-step-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px; letter-spacing: 2px;
    color: rgba(255,255,255,.15); line-height: 1;
}
.sk-itv2-step-title {
    font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}

/* City grid 4-col */
.sk-itv2-city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.sk-itv2-city-btn {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px;
    padding: 14px 6px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
    cursor: pointer; color: inherit;
    transition: background .15s;
    overflow: hidden;
}
.sk-itv2-city-btn:hover { background: rgba(255,255,255,.04); }
.sk-itv2-city-btn.sk-selected {
    background: color-mix(in srgb, var(--acc) 8%, transparent);
    border-color: color-mix(in srgb, var(--acc) 20%, transparent);
}
.sk-itv2-city-btn.sk-selected::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--acc);
}
.sk-itv2-city-emoji { font-size: 20px; line-height: 1; }
.sk-itv2-city-name  { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.8); letter-spacing: .5px; }
.sk-itv2-city-kr    { font-family: 'Noto Serif KR', serif; font-size: 9px; color: rgba(255,255,255,.3); }
.sk-itv2-city-tag   { font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.25); margin-top: 1px; }
.sk-itv2-city-check {
    position: absolute; top: 4px; right: 5px;
    font-size: 9px; color: var(--acc);
    opacity: 0; transition: opacity .15s;
    font-weight: 700;
}
.sk-itv2-city-btn.sk-selected .sk-itv2-city-check { opacity: 1; }

/* Settings row */
.sk-itv2-settings-row {
    display: flex; flex-direction: column; gap: 14px;
    padding: 16px 18px;
}
.sk-itv2-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sk-itv2-setting-lbl { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.35); }
.sk-itv2-counter-ctrl { display: flex; align-items: center; gap: 8px; }
.sk-itv2-cnt-btn {
    width: 26px; height: 26px; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5);
    font-size: 16px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: all .15s; font-family: monospace;
}
.sk-itv2-cnt-btn:hover { border-color: rgba(255,255,255,.25); color: #fff; }
.sk-itv2-cnt-val { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.8); min-width: 20px; text-align: center; }

.sk-itv2-style-btns { display: flex; gap: 4px; }
.sk-itv2-style-btn {
    padding: 5px 10px; font-size: 10px; font-weight: 700; letter-spacing: .5px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.4); cursor: pointer; font-family: 'DM Sans', sans-serif;
    transition: all .15s;
}
.sk-itv2-style-btn:hover { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.7); }
.sk-itv2-style-btn.sk-active {
    background: rgba(0,200,255,.1); border-color: rgba(0,200,255,.35); color: #00c8ff;
}

/* Affiliate cards */
.sk-itv2-aff-cards {
    display: flex; flex-direction: column; gap: 1px;
    background: rgba(255,255,255,.04);
}
.sk-itv2-aff-card {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 18px;
    text-decoration: none; color: inherit;
    background: rgba(8,10,14,0.9);
    border-left: 3px solid transparent;
    transition: border-color .2s, background .2s;
}
.sk-itv2-aff-card:hover { background: rgba(255,255,255,.03); }
.sk-itv2-aff-card--esim:hover  { border-left-color: #5fffb0; }
.sk-itv2-aff-card--wise:hover  { border-left-color: #4a9eff; }
.sk-itv2-aff-card--visa:hover  { border-left-color: #c8a96e; }
.sk-itv2-aff-icon { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
.sk-itv2-aff-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sk-itv2-aff-name   { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); }
.sk-itv2-aff-detail { font-size: 10px; color: rgba(255,255,255,.35); line-height: 1.4; }
.sk-itv2-aff-cta {
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,.25); white-space: nowrap;
    transition: color .2s;
}
.sk-itv2-aff-card:hover .sk-itv2-aff-cta { color: rgba(255,255,255,.7); }

/* ── Preview panel (right) ──────────────────────── */
.sk-itv2-preview {
    background: rgba(4,6,10,.8);
    border: 1px solid rgba(255,255,255,.07);
    display: flex; flex-direction: column;
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

/* Subtle grid bg texture */
.sk-itv2-preview::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none; z-index: 0;
}
.sk-itv2-preview > * { position: relative; z-index: 1; }

/* Empty state */
.sk-itv2-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex: 1; padding: 60px 32px; gap: 14px;
    text-align: center;
}
.sk-itv2-empty-map { opacity: .5; margin-bottom: 8px; }
.sk-itv2-empty-title { font-size: 16px; color: rgba(255,255,255,.4); font-weight: 600; }
.sk-itv2-empty-sub { font-size: 13px; color: rgba(255,255,255,.22); line-height: 1.6; max-width: 260px; }

/* Preview header */
.sk-itv2-preview-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-wrap: wrap; gap: 8px;
    background: rgba(0,0,0,.3);
}
.sk-itv2-preview-route {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px; font-weight: 700;
    color: rgba(255,255,255,.6);
    letter-spacing: .5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%;
}
.sk-itv2-preview-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.4); }
.sk-itv2-meta-sep { color: rgba(255,255,255,.15); }
#itv2-budget-est { color: #c8a96e; font-weight: 700; }

/* Day cards */
.sk-itv2-days { display: flex; flex-direction: column; flex: 1; }

.sk-itv2-day {
    border-bottom: 1px solid rgba(255,255,255,.06);
    animation: sk-day-in .3s cubic-bezier(.2,.8,.2,1) both;
    overflow: hidden;
}
@keyframes sk-day-in { from { opacity:0; transform: translateX(12px); } to { opacity:1; transform:none; } }

.sk-itv2-day-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px 10px;
    gap: 12px;
    flex-wrap: wrap;
}
.sk-itv2-day-info { display: flex; align-items: center; gap: 10px; }
.sk-itv2-day-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px; letter-spacing: 2px;
    color: rgba(255,255,255,.18); line-height: 1;
    min-width: 52px;
}
.sk-itv2-day-city { display: flex; flex-direction: column; gap: 1px; }
.sk-itv2-day-name {
    font-size: 15px; font-weight: 700;
    color: rgba(255,255,255,.88);
}
.sk-itv2-day-kr { font-size: 10px; color: rgba(255,255,255,.3); font-family: 'Noto Serif KR', serif; }
.sk-itv2-day-actions { display: flex; align-items: center; gap: 8px; }
.sk-itv2-nights-ctrl { display: flex; align-items: center; gap: 6px; }
.sk-itv2-nights-btn {
    width: 22px; height: 22px; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.4);
    font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.sk-itv2-nights-btn:hover { border-color: rgba(255,255,255,.2); color: #fff; }
.sk-itv2-nights-val { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.6); min-width: 32px; text-align: center; }
.sk-itv2-remove-btn {
    background: transparent; border: 1px solid rgba(255,80,80,.12);
    color: rgba(255,120,120,.3); font-size: 10px; padding: 3px 8px;
    cursor: pointer; font-family: 'DM Sans', sans-serif; letter-spacing: .5px;
    transition: all .15s;
}
.sk-itv2-remove-btn:hover { border-color: rgba(255,80,80,.3); color: rgba(255,120,120,.6); }

/* Affiliate row inside day card */
.sk-itv2-day-aff {
    display: flex; gap: 8px;
    padding: 0 20px 14px;
    flex-wrap: wrap;
}
.sk-itv2-day-aff-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.45);
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
}
.sk-itv2-day-aff-link:hover {
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.06);
}
.sk-itv2-day-aff-link[data-cat="hotels"]:hover    { border-color: rgba(74,158,255,.4); color: #4a9eff; }
.sk-itv2-day-aff-link[data-cat="activities"]:hover { border-color: rgba(200,169,110,.4); color: #c8a96e; }
.sk-itv2-day-aff-link[data-cat="esim"]:hover      { border-color: rgba(95,255,176,.4); color: #5fffb0; }

/* Activity chips */
.sk-itv2-acts {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 0 20px 14px;
}
.sk-itv2-act-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    font-size: 10px; color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.sk-itv2-act-chip:hover { border-color: var(--day-acc,#c8a96e); color: var(--day-acc,#c8a96e); }
.sk-itv2-act-chip-badge {
    font-size: 8px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--day-acc,#c8a96e); opacity: .7;
    border-left: 1px solid rgba(255,255,255,.1); padding-left: 5px; margin-left: 2px;
}
.sk-itv2-act-chip-price { color: var(--day-acc,#c8a96e); font-weight: 700; }

/* Accent bar on left of day */
.sk-itv2-day { border-left: 3px solid var(--day-acc, rgba(255,255,255,.08)); }

/* Bottom bar */
.sk-itv2-bottom-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(0,0,0,.3);
    flex-wrap: wrap; gap: 10px;
}
.sk-itv2-bottom-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-itv2-bottom-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    text-decoration: none; font-family: 'DM Sans', sans-serif;
    transition: all .2s;
}
.sk-itv2-bottom-btn--flight {
    background: rgba(0,200,255,.08);
    border: 1px solid rgba(0,200,255,.25);
    color: #00c8ff;
}
.sk-itv2-bottom-btn--flight:hover {
    background: rgba(0,200,255,.16);
    border-color: rgba(0,200,255,.5);
}
.sk-itv2-export-btns { display: flex; gap: 6px; }
.sk-itv2-export-btn {
    padding: 7px 14px; font-size: 10px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45);
    cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.sk-itv2-export-btn:hover { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.8); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1200px) {
    .sk-itv2-layout { grid-template-columns: 320px 1fr; }
}
@media (max-width: 1024px) {
    .sk-itv2-layout { grid-template-columns: 1fr; }
    .sk-itv2-wizard { position: static; }
    .sk-itv2-preview { min-height: 400px; }
}
@media (max-width: 640px) {
    .sk-itv2 { padding: 48px 16px; }
    .sk-itv2-city-grid { grid-template-columns: repeat(4, 1fr); }
    .sk-itv2-day-top { flex-direction: column; align-items: flex-start; }
    .sk-itv2-header { flex-direction: column; align-items: flex-start; }
    .sk-itv2-acts { gap: 4px; }
}
@media (max-width: 380px) {
    .sk-itv2-city-grid { grid-template-columns: repeat(2, 1fr); }
}