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

:root {
    --itbs-bg: #f7f9fc;
    --itbs-surface: #ffffff;
    --itbs-accent: #2563eb;
    --itbs-accent-2: #22c55e;
    --itbs-text: #0f172a;
    --itbs-subtext: #6b7280;
    --itbs-green: #10b981;
    --itbs-orange: #f59e0b;
    --itbs-border: #e5e7eb;
}

.itbs-pack-shell {
    max-width: 1180px;
    margin: 0 auto;
    font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--itbs-text);
    padding: 24px 16px 90px;
    background: radial-gradient(circle at 18% 20%, rgba(37,99,235,0.08), transparent 30%),
                radial-gradient(circle at 80% 18%, rgba(34,197,94,0.07), transparent 30%),
                linear-gradient(135deg, #ffffff 0%, #f4f7fb 40%, #edf2fb 100%);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.itbs-pack-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border: 1px solid rgba(14,165,233,0.55);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
    backdrop-filter: blur(4px);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.itbs-pack-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.3);
    border-color: rgba(14,165,233,0.75);
}
.itbs-pack-back .back-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.itbs-pack-back .back-text {
    font-size: 15px;
    letter-spacing: 0.2px;
    color: #fff;
}

/* Hero */
.itbs-pack-hero {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
    border: 1px solid var(--itbs-border);
    border-radius: 20px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    box-shadow: 0 18px 45px rgba(15,23,42,0.08);
}

.itbs-hero-badge {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 14px;
    border-radius: 999px;
    background: rgba(37,99,235,0.1);
    color: #1d4ed8;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.itbs-pack-hero h1 {
    font-size: 32px;
    margin: 14px 0 10px;
    line-height: 1.1;
    color: #0f172a;
}

.itbs-hero-lead {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    max-width: 640px;
}
.itbs-timeline { display:flex; align-items:center; gap:12px; margin:16px 0 10px; flex-wrap:nowrap; position:static; z-index:auto; }
.tl-item { position:static; z-index:0; background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:8px 10px; min-width:140px; text-align:center; box-shadow:0 10px 30px rgba(15,23,42,0.05); flex:1 1 0; }
.tl-base { position:static; }
.tl-day { font-size:12px; font-weight:800; color:#6b7280; text-transform:uppercase; letter-spacing:0.4px; }
.tl-thumb { width:64px; height:64px; border-radius:50%; margin:6px auto; background-size:cover; background-position:center; border:2px solid #ffffff; box-shadow:0 6px 16px rgba(15,23,42,0.14); }
.tl-title { font-weight:800; color:#0f172a; font-size:13px; }
.tl-badge { margin-top:4px; display:inline-block; padding:6px 10px; border-radius:10px; font-size:12px; font-weight:800; line-height:1.35; }
.tl-fixed { background:#ecfdf3; color:#166534; border:1px solid #bbf7d0; }
.tl-swap { background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; }
.tl-small { display:block; font-weight:700; font-size:12px; color:#8b4513; }
.tl-arrow { font-size:16px; font-weight:900; color:#9ca3af; flex:0 0 auto; }
.itbs-hero-checks { list-style:none; padding:0; margin:12px 0 0; display:flex; flex-wrap:wrap; gap:12px 18px; color:#0f172a; font-weight:800; }
.itbs-hero-checks li { position:relative; padding-left:18px; font-size:13px; }
.itbs-hero-checks li::before { content:'✓'; position:absolute; left:0; color:#16a34a; font-weight:900; }
.itbs-usp-list { list-style:none; padding:0; margin:14px 0 0; display:flex; flex-direction:column; gap:6px; color:#0f172a; font-weight:800; }
.itbs-usp-list li { position:relative; padding-left:18px; font-size:13px; }
.itbs-usp-list li::before { content:'✓'; position:absolute; left:0; color:#16a34a; font-weight:900; }
.hidden-trip { display:none !important; }

.itbs-hero-stats {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
    gap:12px;
    margin-top:18px;
}
.itbs-stat {
    padding:14px 16px;
    border-radius: 14px;
    background: #ffffff;
    border:1px solid var(--itbs-border);
}
.itbs-stat.highlight { background:#ecfdf3; border-color:#bbf7d0; }
.itbs-stat small { color: var(--itbs-subtext); font-weight: 600; letter-spacing:0.2px;}
.itbs-stat strong { display:block; color:#0f172a; font-size:20px; margin-top:6px; letter-spacing:0.2px;}

.itbs-pack-pricecard {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(15,23,42,0.08);
}
.itbs-pack-pricecard h3 { margin:0 0 12px; color:#0f172a; font-size:18px; }
.itbs-pack-pricecard .line { display:flex; justify-content:space-between; color:#4b5563; font-size:14px; margin:6px 0; }
.itbs-pack-pricecard .total { border-top:1px dashed #e5e7eb; margin-top:12px; padding-top:12px; font-size:17px; font-weight:800; color:#1d4ed8; }
.itbs-pack-pricecard .mini-note { color: #2563eb; font-size:12px; margin-top:8px; }
.itbs-pack-pricecard .itbs-usp-list { margin-top:16px; }

.itbs-section-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin: 30px 4px 14px;
    gap: 10px;
}
.itbs-section-head h2 { margin:0; color:#0f172a; font-size:22px; letter-spacing:0.2px; }
.itbs-section-head p { margin:0; color: var(--itbs-subtext); }
.itbs-section-head.mobile-stack { flex-direction:column; align-items:flex-start; }

@media (max-width: 768px) {
    .itbs-section-head { flex-direction:column; align-items:flex-start; gap:4px; }
    .itbs-section-head h2 { font-size: 20px; }
}

.itbs-pack-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap:18px;
}
.itbs-tour-card {
    background: #ffffff;
    border:1px solid var(--itbs-border);
    border-radius: 16px;
    overflow:hidden;
    box-shadow:0 16px 38px rgba(15,23,42,0.08);
    display:flex;
    flex-direction:column;
    min-height: 320px;
}
.itbs-tour-media {
    position:relative;
    height: 230px;
    background: radial-gradient(circle at 20% 20%, rgba(37,99,235,0.1), rgba(34,197,94,0.06));
    background-size: cover;
    background-position: center;
}
.itbs-tour-media::after {
    content:'';
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(15,23,42,0.28));
}
.itbs-tour-chip {
    position:absolute;
    top:12px; left:12px;
    padding:6px 12px;
    border-radius: 12px;
    background: rgba(15,23,42,0.9);
    color:#e0f2fe;
    font-weight:700;
    font-size:12px;
    border:1px solid rgba(255,255,255,0.15);
    z-index:2;
}
.itbs-tour-chip.badge-orange {
    background:#ff6b00;
    color:#fff;
    border-color:rgba(255,107,0,0.7);
}
.itbs-tour-chip.ghost {
    left:auto;
    right:12px;
    background: rgba(255,255,255,0.92);
    color:#0f172a;
    border-color: rgba(15,23,42,0.08);
}
.itbs-tour-rating-badge {
    position:absolute;
    left:12px;
    bottom:12px;
    background:#111827;
    color:#fbbf24;
    padding:6px 10px;
    border-radius:10px;
    font-weight:800;
    font-size:13px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.itbs-tour-topbar { display:flex; justify-content:space-between; align-items:center; padding:12px 18px 0; gap:10px; }
.itbs-tour-loc { color:#4b5563; font-weight:800; font-size:13px; }
.itbs-tour-body { padding:14px 18px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
.itbs-tour-body h3 { margin:0; color:#0f172a; font-size:18px; }
.itbs-tour-body p { margin:0; color:#4b5563; line-height:1.5; }
.itbs-tour-more { text-align:center; margin-top:-6px; }
.itbs-tour-link { font-size:13px; font-weight:700; color:#2563eb; text-decoration:none; }
.itbs-tour-link:hover { text-decoration:underline; }
.itbs-tour-link.disabled { color:#9ca3af; pointer-events:none; text-decoration:none; cursor:default; }
.itbs-tour-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.itbs-tour-rating { color:#f59e0b; font-weight:800; font-size:14px; }
.itbs-tour-meta-top { display:flex; justify-content:space-between; color:#6b7280; font-weight:700; }
.itbs-tour-title { margin:4px 0 0; font-size:20px; font-weight:900; color:#0f172a; }
.itbs-tour-tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.itbs-tour-tags.center { justify-content:center; }
.itbs-tour-tags .itbs-pill { border-radius: 18px; padding:9px 14px; font-weight:800; }
.itbs-tour-meta { display:flex; gap:10px; flex-wrap:wrap; }
.itbs-tour-tags { display:flex; gap:8px; flex-wrap:wrap; }
.itbs-tour-tag {
    padding:8px 12px;
    border-radius:10px;
    background: #f8fafc;
    border:1px solid var(--itbs-border);
    font-size:12px;
    color:#1f2937;
    font-weight:700;
}
.itbs-tour-tag.warning { color:#b45309; border-color:rgba(245,158,11,0.45); background: #fffbeb; }
.itbs-tour-tags .itbs-pill { background:#f8fafc; border:1px solid var(--itbs-border); }
.itbs-tour-tags .itbs-pill.warn { background:#fffbeb; border-color:rgba(245,158,11,0.45); color:#b45309; }

.itbs-tour-datarow { display:grid; grid-template-columns: 1.1fr 0.9fr; gap:12px; margin-top:8px; }
.itbs-tour-label { font-size:13px; color:#6b7280; margin-bottom:4px; font-weight:700; }
.itbs-tour-dates { display:flex; flex-direction:column; gap:6px; color:#0f172a; font-weight:700; }
.itbs-tour-dates div { display:flex; align-items:center; gap:6px; }
.itbs-tour-dates div::before { content:'\\2713'; color:#16a34a; font-weight:900; font-size:14px; }
.itbs-card-note { color:#6b7280; font-weight:600; }

.itbs-tour-bottom {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-top:20px;
    padding-top:10px;
}
.itbs-tour-price { display:flex; flex-direction:row; gap:6px; align-items:baseline; flex-wrap:nowrap; white-space:nowrap; }
.itbs-tour-price-main { font-size:18px; font-weight:900; color:#2563eb; line-height:1.1; }
.itbs-tour-price-sub { color:#6b7280; font-weight:700; font-size:12px; }
.itbs-tour-cta {
    background: linear-gradient(135deg, #ff7a00, #ff6b35);
    color:#fff;
    border:none;
    border-radius:12px;
    padding:12px 18px;
    font-weight:800;
    cursor:pointer;
    box-shadow: 0 10px 22px rgba(255,122,0,0.22);
    transition: transform 0.15s, box-shadow 0.2s;
    font-size:15px;
    min-width: 160px;
    text-align:center;
}
.itbs-tour-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,122,0,0.28); }
.itbs-tour-cta.selected {
    background: linear-gradient(135deg, #a3e635, #22c55e);
    box-shadow: 0 10px 24px rgba(34,197,94,0.22);
}
.itbs-tour-selected-date { margin-top:6px; font-size:12px; color:#0f172a; font-weight:700; min-height:14px; }

/* Form layout */
.itbs-pack-main {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    background: #ffffff;
    border:1px solid var(--itbs-border);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(15,23,42,0.08);
}
.itbs-pack-form {
    display:grid;
    grid-template-columns: minmax(0, 1.05fr) 320px;
    gap:24px;
    padding:24px;
}
.itbs-form-main { display:flex; flex-direction:column; gap:16px; }
.itbs-pack-row { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; margin:0; }
.itbs-pack-row.wide { grid-template-columns: 1fr; }

label { font-size:13px; color: var(--itbs-subtext); margin-bottom:6px; display:block; font-weight:700; letter-spacing:0.2px; }
.itbs-pack-input, .itbs-pack-select-alt {
    width:100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--itbs-border);
    background: #f8fafc;
    color:#0f172a;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.itbs-pack-input:focus, .itbs-pack-select-alt:focus {
    outline:none;
    border-color: rgba(37,99,235,0.65);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.14);
}
option { color:#0f172a; }

.itbs-pack-trip {
    background: #ffffff;
    border: 1px solid var(--itbs-border);
    border-radius: 14px;
    padding: 16px;
    transition: border-color 0.2s, transform 0.2s;
}
.itbs-pack-trip:hover { border-color: rgba(37,99,235,0.4); transform: translateY(-2px); }
.itbs-trip-header {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:12px;
}
.itbs-pack-title { margin:0; font-weight:800; font-size:17px; color:#0f172a; }
.itbs-pack-title { margin:0; font-weight:800; font-size:17px; color:#0f172a; }
.itbs-trip-info small { color:var(--itbs-subtext); font-weight:700; letter-spacing:0.2px; }
.itbs-trip-select-wrap { width: 220px; }

.itbs-trip-dates { display:none; }
.itbs-date-chips {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.itbs-date-chip {
    border:1px solid var(--itbs-border);
    background: #f8fafc;
    color:#1f2937;
    border-radius: 12px;
    padding: 9px 12px;
    font-weight:700;
    font-size:13px;
    cursor:pointer;
    transition: all 0.15s;
}
.itbs-date-chip[data-state="soon"] { border-color: rgba(245,158,11,0.35); color:#b45309; background: #fffbeb; }
.itbs-date-chip[data-state="low"] { border-color: rgba(239,68,68,0.3); color:#b91c1c; background:#fef2f2; }
.itbs-date-chip:hover, .itbs-date-chip.active {
    background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(37,204,167,0.12));
    border-color: rgba(37,99,235,0.55);
    color:#0f172a;
}
.itbs-date-chip.loading { opacity:0.7; cursor:default; }

.itbs-date-inline {
    display:flex;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
}
.itbs-date-status {
    font-size:13px;
    font-weight:700;
    padding:8px 10px;
    border-radius:10px;
    border:1px solid var(--itbs-border);
    background: #f8fafc;
    color: var(--itbs-subtext);
}
.itbs-date-status[data-state="ok"] { color:#15803d; border-color: rgba(34,197,94,0.45); background: rgba(34,197,94,0.12); }
.itbs-date-status[data-state="error"] { color:#b91c1c; border-color: rgba(248,113,113,0.4); background: #fef2f2; }
.itbs-date-status[data-state="loading"] { color:#1d4ed8; border-color: rgba(59,130,246,0.35); background: rgba(59,130,246,0.1); }

.itbs-pack-error {
    background: #fef2f2;
    color: #b91c1c;
    border:1px solid #fecdd3;
    padding: 12px 14px;
    border-radius: 10px;
    display:none;
    font-weight:700;
}
.itbs-pack-note { font-size:12px; color: var(--itbs-subtext); margin:0; text-align:left; }
.itbs-pack-trip-grid { display:flex; flex-direction:column; gap:14px; }

.itbs-sticky-sidebar {
    position: sticky;
    top: 12px;
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    border:1px solid var(--itbs-border);
    box-shadow: 0 12px 30px rgba(15,23,42,0.1);
}
.itbs-sticky-sidebar h3 { margin:0 0 6px; color:#0f172a; }
.itbs-pack-price { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-size:14px; color:#4b5563; }
.itbs-pack-price strong { color:#0f172a; }
.itbs-pack-total { font-size:26px; font-weight:800; color:#2563eb; }
.itbs-pack-cta {
    width:100%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color:#ffffff;
    font-weight:800;
    padding: 14px;
    border-radius: 12px;
    border:none;
    cursor:pointer;
    font-size:16px;
    margin-top:12px;
    transition: transform 0.15s, box-shadow 0.2s;
}
.itbs-pack-cta-amber {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 12px 25px rgba(249,115,22,0.28);
}
.itbs-pack-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(249,115,22,0.32); }

.itbs-summary-list { margin:6px 0 12px 0; padding-left: 18px; color:#111827; font-size:13px; }
.itbs-summary-list li { margin-bottom:6px; }

.itbs-pack-sticky-bottom {
    display:none;
    position:fixed;
    bottom:0; left:0; right:0;
    background: rgba(12,18,32,0.96);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-top:1px solid var(--itbs-border);
    padding:10px 14px;
    z-index: 120;
}
.itbs-pack-sticky-inner {
    max-width:1180px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.itbs-pill {
    display:inline-flex;
    align-items:center;
    gap:6px;
    background: #f8fafc;
    border:1px solid var(--itbs-border);
    border-radius: 999px;
    padding:8px 12px;
    color:#1f2937;
    font-weight:700;
    font-size:12px;
}

/* Modal */
.itbs-pack-modal-backdrop {
    position: fixed;
    inset:0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(6px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index: 3000;
}
.itbs-pack-modal {
    background:#fff;
    border-radius:16px;
    padding:20px;
    width: 480px;
    max-width: 94vw;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border:1px solid #e5e7eb;
}
.itbs-modal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.itbs-modal-head h3 { margin:0; font-size:18px; color:#0f172a; }
.itbs-modal-subtitle { font-size:13px; color:#6b7280; margin-top:2px; }
.itbs-modal-close { background:none; border:none; font-size:20px; cursor:pointer; color:#6b7280; }
.itbs-modal-title { display:flex; flex-direction:column; gap:2px; }
.itbs-modal-switch-wrap { display:flex; flex-direction:column; gap:6px; background:#f9fafb; padding:8px 10px; border-radius:12px; border:1px solid #eef2f7; min-width:220px; margin-right:12px; }
.itbs-modal-switch-label { font-size:12px; font-weight:800; color:#4b5563; text-transform:uppercase; letter-spacing:0.3px; }
.itbs-modal-switch { width:100%; font-weight:800; }
.itbs-modal-switch-wrap select { margin:0; }
.itbs-modal-row { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-bottom:10px; }
.itbs-modal-row label { font-size:13px; color:#6b7280; margin-bottom:4px; display:block; }
.itbs-modal-row input { width:100%; padding:10px; border:1px solid #e5e7eb; border-radius:10px; }
.itbs-modal-chips { display:grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap:8px; margin:8px 0; }
.itbs-modal-status { font-size:13px; font-weight:700; padding:8px 10px; border-radius:10px; border:1px solid #e5e7eb; background:#f8fafc; color:#6b7280; }
.itbs-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }
.itbs-btn-secondary { padding:10px 14px; border-radius:10px; border:1px solid #e5e7eb; background:#f8fafc; cursor:pointer; }
.itbs-btn-primary { padding:10px 16px; border-radius:10px; border:none; background: linear-gradient(135deg, #2563eb, #22c55e); color:#fff; font-weight:800; cursor:pointer; }
.itbs-modal-pager { display:flex; justify-content:space-between; gap:8px; margin:4px 0 6px; }
.itbs-modal-prev { flex:1; }
.itbs-modal-more { flex:1; text-align:center; }
.itbs-modal-switch { width:100%; }
.itbs-modal-more { width:100%; text-align:center; margin-top:6px; }

@media (max-width: 960px) {
    .itbs-pack-hero { grid-template-columns: 1fr; }
    .itbs-pack-form { grid-template-columns: 1fr; }
    .itbs-sticky-sidebar { position:relative; top:0; }
    .itbs-timeline { flex-direction:column; align-items:flex-start; }
    .tl-arrow { display:none; }
    .tl-item { width:100%; flex:1 1 auto; }
    .itbs-hero-stats { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:8px; }
}

@media (max-width: 720px) {
    .itbs-pack-shell { padding: 18px 14px 90px; }
    .itbs-pack-row { grid-template-columns: 1fr; }
    .itbs-trip-header { flex-direction: column; }
    .itbs-trip-select-wrap { width:100%; }
    .itbs-hero-stats { grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); }
    .itbs-pack-sticky-bottom { display:block; }
    .itbs-pack-hero h1 { font-size: 28px; }
    .itbs-pack-cta { margin-top:10px; }
}
