/* ==========================================================================
   Werdana CRM · Island Builder module — Frontend Styles (v3.0.0)
   Design system: "Ocean Pearl" (sky #0284c7 · coral #f97316 · teal #0d9488 · navy #0c2340)
   Fonts: Plus Jakarta Sans (headlines) + Manrope (body)
   ========================================================================== */

body .wib-wrap {
    --wib-primary: #0284c7;
    --wib-primary-dark: #0369a1;
    --wib-cyan: #0891b2;
    --wib-secondary: #f97316;
    --wib-secondary-2: #ff5a36;
    --wib-teal: #0d9488;
    --wib-teal-50: #f0fdfa;
    --wib-navy: #0c2340;
    --wib-ink: #0f172a;
    --wib-text: #475569;
    --wib-muted: #64748b;
    --wib-sky-50: #f0f9ff;
    --wib-sky-100: #e0f2fe;
    --wib-sky-200: #bae6fd;
    --wib-slate-50: #f8fafc;
    --wib-slate-100: #f1f5f9;
    --wib-border: #e0f2fe;
    --wib-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(2, 132, 199, 0.05);
    --wib-shadow-md: 0 4px 25px -4px rgba(2, 132, 199, 0.10);
    --wib-shadow-xl: 0 20px 40px -12px rgba(12, 35, 64, 0.16);
    --wib-radius-3xl: 24px;
    --wib-radius-2xl: 20px;
    --wib-radius-xl: 16px;
    --wib-radius-lg: 12px;
    --wib-font-head: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --wib-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    max-width: 1200px;
    margin: 8px auto 48px;
    padding: 0 15px;
    font-family: var(--wib-font-body) !important;
    color: var(--wib-text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Halve top space between navigation bar and hero */
.traveltour-content-area:has(.wib-wrap),
.traveltour-container:has(.wib-wrap) {
    padding-top: 15px !important;
}

body .wib-wrap *,
body .wib-wrap *::before,
body .wib-wrap *::after {
    box-sizing: border-box;
    font-family: var(--wib-font-body);
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

body .wib-wrap h1, body .wib-wrap h2, body .wib-wrap h3, body .wib-wrap h4,
body .wib-wrap strong, body .wib-wrap .wib-btn, body .wib-wrap label {
    font-family: var(--wib-font-head) !important;
}

body .wib-wrap ::selection { background: rgba(249, 115, 22, 0.18); color: var(--wib-secondary); }

/* ==========================================================================
   HERO — tropical pearl gradient (soft pink & vibrant orange on left,
   cyan & amber on right)
   ========================================================================== */
body .wib-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 6% 25%, rgba(254, 205, 211, 0.60) 0%, transparent 42%),
        radial-gradient(circle at 18% 86%, rgba(249, 115, 22, 0.22) 0%, transparent 46%),
        radial-gradient(circle at 94% 20%, rgba(103, 232, 249, 0.45) 0%, transparent 48%),
        radial-gradient(circle at 82% 88%, rgba(254, 215, 170, 0.48) 0%, transparent 48%),
        linear-gradient(135deg, #fff7f7 0%, #fff1eb 18%, #f0f9ff 62%, #e0f2fe 100%);
    border: 1px solid var(--wib-sky-100);
    border-radius: var(--wib-radius-3xl);
    padding: 38px 42px;
    margin-bottom: 22px;
    box-shadow: var(--wib-shadow-md);
}

body .wib-hero::before,
body .wib-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}
body .wib-hero::before { width: 380px; height: 380px; right: -80px; top: -140px; background: rgba(103, 232, 249, 0.35); }
body .wib-hero::after  { width: 260px; height: 260px; right: 22%; bottom: -150px; background: rgba(254, 215, 170, 0.45); }

body .wib-hero-content { position: relative; z-index: 1; max-width: 860px; }

body .wib-hero-badge,
body h1.wib-hero-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 16px !important;
    border-radius: 9999px;
    background: var(--wib-sky-50);
    border: 1px solid rgba(186, 230, 253, 0.8);
    color: var(--wib-primary) !important;
    font-family: var(--wib-font-head) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4 !important;
    margin: 0 0 18px 0 !important;
}

body .wib-hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wib-teal);
    flex-shrink: 0;
    animation: wibPulse 1.8s ease-in-out infinite;
}

@keyframes wibPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.45); }
    50% { opacity: .6; box-shadow: 0 0 0 6px rgba(13, 148, 136, 0); }
}

body .wib-hero h2 {
    margin: 0 0 14px !important;
    font-family: var(--wib-font-head) !important;
    font-size: 40px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    letter-spacing: -0.02em;
    line-height: 1.15 !important;
    text-transform: none !important;
    background: linear-gradient(90deg, #0c2340 0%, #0c2340 45%, #0284c7 75%, #0d9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--wib-navy) !important;
}

body .wib-hero p {
    margin: 0 !important;
    max-width: 720px;
    color: var(--wib-text) !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}

/* ==========================================================================
   HERO NOTICE — highlighted message block under subtitle
   ========================================================================== */
body .wib-hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 12px;
    max-width: 780px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: all .2s ease;
}

body .wib-hero-notice-text {
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

/* Notice color variants */
body .wib-hero-notice.wib-notice-blue {
    background: rgba(240, 249, 255, 0.95);
    border: 1.5px solid #38bdf8;
    color: #075985;
}
body .wib-hero-notice.wib-notice-blue .wib-hero-notice-text {
    color: #0369a1;
}

body .wib-hero-notice.wib-notice-amber {
    background: rgba(254, 252, 232, 0.95);
    border: 1.5px solid #facc15;
    color: #854d0e;
}
body .wib-hero-notice.wib-notice-amber .wib-hero-notice-text {
    color: #713f12;
}

body .wib-hero-notice.wib-notice-emerald {
    background: rgba(236, 253, 245, 0.95);
    border: 1.5px solid #34d399;
    color: #065f46;
}
body .wib-hero-notice.wib-notice-emerald .wib-hero-notice-text {
    color: #047857;
}

body .wib-hero-notice.wib-notice-coral {
    background: rgba(255, 241, 242, 0.95);
    border: 1.5px solid #fda4af;
    color: #9f1239;
}
body .wib-hero-notice.wib-notice-coral .wib-hero-notice-text {
    color: #881337;
}

body .wib-hero-notice.wib-notice-slate {
    background: rgba(248, 250, 252, 0.95);
    border: 1.5px solid #cbd5e1;
    color: #334155;
}
body .wib-hero-notice.wib-notice-slate .wib-hero-notice-text {
    color: #1e293b;
}

/* ==========================================================================
   STEPPER — floating glass segmented control
   ========================================================================== */
body .wib-stepper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--wib-sky-100);
    border-radius: 9999px;
    box-shadow: var(--wib-shadow-md);
    margin-bottom: 26px;
}

body .wib-step-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 10px;
    background: transparent;
    color: var(--wib-text);
    border: 0;
    border-radius: 9999px;
    font-family: var(--wib-font-head) !important;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    outline: none;
}

body .wib-step-tab:hover { background: var(--wib-sky-50); color: var(--wib-primary); }

body .wib-step-tab.is-active {
    background: linear-gradient(90deg, #0284c7 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.45);
}

body .wib-step-tab.is-done:not(.is-active) { color: var(--wib-teal); }

body .wib-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wib-sky-50);
    border: 1px solid var(--wib-sky-200);
    color: var(--wib-primary);
    font-family: var(--wib-font-head);
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

body .wib-step-tab.is-active .wib-step-num { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.45); color: #fff; }
body .wib-step-tab.is-done:not(.is-active) .wib-step-num { background: var(--wib-teal); border-color: var(--wib-teal); color: #fff; font-size: 0; }
body .wib-step-tab.is-done:not(.is-active) .wib-step-num::after { content: "✓"; font-size: 13px; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
body .wib-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
}

body .wib-main-panel {
    background: #ffffff;
    border: 1px solid var(--wib-sky-100);
    border-radius: var(--wib-radius-3xl);
    padding: 34px;
    box-shadow: var(--wib-shadow-md);
    margin: 0;
}

body .wib-step-pane { display: none; }
body .wib-step-pane.is-active { display: block; animation: wibFadeIn .28s ease; }

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

body .wib-pane-head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wib-slate-100);
}

body .wib-pane-head h3 {
    margin: 0 0 8px !important;
    color: var(--wib-navy) !important;
    font-family: var(--wib-font-head) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    letter-spacing: -0.02em;
    text-transform: none !important;
    line-height: 1.25 !important;
}

body .wib-pane-head p {
    margin: 0 !important;
    color: var(--wib-text) !important;
    font-size: 15.5px !important;
    line-height: 1.6 !important;
}

/* ==========================================================================
   SHARED BENTO CARD (islands · tours · hotels)
   ========================================================================== */
body .wib-islands-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body .wib-activities-grid,
body .wib-hotels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

body .wib-island-card,
body .wib-activity-item,
body .wib-hotel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(224, 242, 254, 0.9);
    border-radius: var(--wib-radius-2xl);
    box-shadow: var(--wib-shadow-sm);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
    overflow: hidden;
    user-select: none;
}

body .wib-island-card:hover,
body .wib-activity-item:hover,
body .wib-hotel-card:hover {
    transform: translateY(-6px);
    border-color: #7dd3fc;
    box-shadow: var(--wib-shadow-xl);
}

body .wib-activity-item:hover { border-color: #5eead4; }
body .wib-hotel-card:hover { border-color: #fdba74; }

body .wib-island-card.is-selected,
body .wib-activity-item.is-selected,
body .wib-hotel-card.is-selected {
    border-color: var(--wib-primary);
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 70%);
    box-shadow: 0 14px 30px -10px rgba(2, 132, 199, 0.24);
}
body .wib-activity-item.is-selected {
    border-color: var(--wib-teal);
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 70%);
    box-shadow: 0 0 0 2px var(--wib-teal), 0 14px 30px -10px rgba(13, 148, 136, 0.35);
}
body .wib-hotel-card.is-selected {
    border-color: var(--wib-secondary);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 70%);
    box-shadow: 0 0 0 2px var(--wib-secondary), 0 14px 30px -10px rgba(249, 115, 22, 0.35);
}

body .wib-island-body,
body .wib-tour-body,
body .wib-hotel-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 22px;
    gap: 12px;
}

body .wib-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

/* chips */
body .wib-island-tag,
body .wib-tour-dest-badge,
body .wib-hotel-loc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 10px;
    font-family: var(--wib-font-head);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
body .wib-island-tag {
    background: rgba(240, 249, 255, .85);
    border: 1px solid var(--wib-sky-100);
    color: var(--wib-primary-dark);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    text-overflow: unset;
}
body .wib-tour-dest-badge { background: rgba(240, 253, 250, .8); border: 1px solid #ccfbf1; color: #0f766e; }
body .wib-hotel-loc-badge { background: rgba(255, 247, 237, .8); border: 1px solid #ffedd5; color: #c2410c; }

/* selection indicators */
body .wib-island-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--wib-sky-200);
    background: #fff;
    color: transparent;
    font-family: var(--wib-font-head);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all .2s ease;
}
body .wib-island-card:hover .wib-island-order-badge {
    border-color: var(--wib-primary);
}
body .wib-island-card.is-selected .wib-island-order-badge {
    width: auto;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #0284c7, #0891b2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 10px -2px rgba(2, 132, 199, .45);
}

body .wib-tour-check-Top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: transparent;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all .2s ease;
}
body .wib-activity-item.is-selected .wib-tour-check-Top { background: var(--wib-teal); border-color: var(--wib-teal); color: #fff; }
body .wib-hotel-card.is-selected .wib-tour-check-Top { background: var(--wib-secondary); border-color: var(--wib-secondary); color: #fff; }

/* titles & text */
body .wib-island-card h4,
body .wib-activity-title,
body .wib-hotel-title {
    display: block;
    margin: 0 0 8px !important;
    color: var(--wib-navy) !important;
    font-family: var(--wib-font-head) !important;
    font-size: 17.5px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: -0.01em;
    line-height: 1.3 !important;
    text-transform: none !important;
}
body .wib-island-card h4 { font-size: 20px !important; font-weight: 800 !important; }

body .wib-island-card p,
body .wib-activity-desc,
body .wib-hotel-desc {
    display: block;
    margin: 0 !important;
    color: var(--wib-text) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* card footer */
body .wib-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--wib-slate-100);
}

body .wib-tour-select-label {
    font-family: var(--wib-font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--wib-primary);
    transition: color .2s ease;
}
body .wib-island-card .wib-tour-select-label { color: var(--wib-primary); }
body .wib-island-card:hover .wib-tour-select-label { color: var(--wib-primary-dark); }
body .wib-activity-item .wib-tour-select-label { color: var(--wib-teal); }
body .wib-hotel-card .wib-tour-select-label { color: var(--wib-secondary); }
body .wib-island-card.is-selected .wib-tour-select-label,
body .wib-activity-item.is-selected .wib-tour-select-label,
body .wib-hotel-card.is-selected .wib-tour-select-label { font-size: 0; }
body .wib-island-card.is-selected .wib-tour-select-label::after,
body .wib-activity-item.is-selected .wib-tour-select-label::after,
body .wib-hotel-card.is-selected .wib-tour-select-label::after { content: "✓ В маршруте"; font-size: 13px; }

body .wib-tour-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--wib-slate-50);
    border: 1px solid var(--wib-slate-100);
    color: var(--wib-navy) !important;
    font-family: var(--wib-font-head);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .2s ease;
}
body .wib-tour-link:hover { background: var(--wib-sky-50); border-color: var(--wib-sky-200); color: var(--wib-primary) !important; }

/* ==========================================================================
   FILTER NOTICE + HOTEL SEARCH
   ========================================================================== */
body .wib-act-filter-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
    border: 1px solid var(--wib-sky-200);
    border-radius: var(--wib-radius-xl);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--wib-navy);
}
body .wib-act-filter-notice a { color: var(--wib-primary) !important; font-weight: 700; text-decoration: none !important; border-bottom: 1.5px dashed currentColor; }

body .wib-hotels-section { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--wib-slate-100); }
body .wib-hotel-search-wrap { margin-bottom: 16px; }

body .wib-wrap input.wib-hotel-search {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--wib-sky-200);
    border-radius: var(--wib-radius-lg);
    font-size: 15px;
    color: var(--wib-navy);
    box-shadow: var(--wib-shadow-sm);
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease;
}
body .wib-wrap input.wib-hotel-search:focus { border-color: var(--wib-primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, .18); }

/* Load More Pagination Button */
body .wib-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 22px 0 10px;
    width: 100%;
}

body .wib-btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid var(--wib-sky-200);
    color: var(--wib-navy) !important;
    font-family: var(--wib-font-head) !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px -3px rgba(12, 35, 64, 0.08);
    transition: all .25s ease;
}

body .wib-btn-load-more:hover {
    background: var(--wib-sky-50);
    border-color: var(--wib-primary);
    color: var(--wib-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.2);
}

body .wib-btn-load-more:active {
    transform: translateY(0);
}

/* ==========================================================================
   FORM FIELDS (Step 3 & 4)
   ========================================================================== */
body .wib-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
body .wib-field { display: flex; flex-direction: column; gap: 8px; }
body .wib-field.is-full { grid-column: 1 / -1; }

body .wib-field label {
    font-family: var(--wib-font-head) !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--wib-text);
}
body .wib-field label[style*="inline-flex"] { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--wib-navy); }

body .wib-wrap .wib-field input[type="text"],
body .wib-wrap .wib-field input[type="tel"],
body .wib-wrap .wib-field input[type="email"],
body .wib-wrap .wib-field input[type="date"],
body .wib-wrap .wib-field input[type="number"],
body .wib-wrap .wib-field select,
body .wib-wrap .wib-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--wib-sky-200);
    border-radius: var(--wib-radius-lg);
    font-family: var(--wib-font-body);
    font-size: 15px;
    color: var(--wib-navy);
    box-shadow: var(--wib-shadow-sm);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body .wib-wrap .wib-field textarea { min-height: 110px; resize: vertical; }
body .wib-wrap .wib-field input::placeholder,
body .wib-wrap .wib-field textarea::placeholder { color: #94a3b8; }
body .wib-wrap .wib-field input:focus,
body .wib-wrap .wib-field select:focus,
body .wib-wrap .wib-field textarea:focus { border-color: var(--wib-primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, .18); }
body .wib-wrap .wib-field input[type="checkbox"] { accent-color: var(--wib-primary) !important; }

/* choice chips (hotel level / transfer) */
body .wib-options-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

body .wib-choice-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--wib-sky-200);
    border-radius: var(--wib-radius-xl);
    box-shadow: var(--wib-shadow-sm);
    cursor: pointer;
    transition: all .2s ease;
}
body .wib-choice-card:hover { border-color: #7dd3fc; transform: translateY(-2px); }
body .wib-choice-card.is-selected {
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
    border-color: transparent;
    box-shadow: 0 10px 22px -8px rgba(2, 132, 199, .5);
}
body .wib-choice-card strong { font-size: 14.5px; font-weight: 700; color: var(--wib-navy); line-height: 1.3; }
body .wib-choice-card span { font-size: 13px; color: var(--wib-muted); line-height: 1.45; }
body .wib-choice-card.is-selected strong,
body .wib-choice-card.is-selected span { color: #fff; }
body .wib-choice-card.is-selected span { opacity: .88; }

/* ==========================================================================
   NAV FOOTER & BUTTONS
   ========================================================================== */
body .wib-nav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--wib-slate-100);
}
body .wib-nav-footer > span { color: var(--wib-muted) !important; }

body .wib-wrap .wib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: 0;
    border-radius: var(--wib-radius-lg);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body .wib-wrap .wib-btn:active { transform: scale(.97); }

body .wib-wrap .wib-btn-next {
    background: linear-gradient(90deg, #0284c7 0%, #0891b2 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px -6px rgba(2, 132, 199, .45);
}
body .wib-wrap .wib-btn-next:hover { transform: scale(1.02); box-shadow: 0 12px 24px -6px rgba(2, 132, 199, .55); }

body .wib-wrap .wib-btn-prev {
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--wib-sky-200);
    color: var(--wib-navy) !important;
    box-shadow: var(--wib-shadow-sm);
}
body .wib-wrap .wib-btn-prev:hover { background: var(--wib-sky-50); border-color: #7dd3fc; }

body .wib-wrap .wib-btn-submit {
    background: linear-gradient(90deg, #f97316 0%, #ff5a36 100%);
    color: #fff !important;
    padding: 16px 34px;
    font-size: 16px;
    box-shadow: 0 10px 24px -6px rgba(249, 115, 22, .45);
}
body .wib-wrap .wib-btn-submit::after { content: "→"; font-size: 18px; }
body .wib-wrap .wib-btn-submit:hover { transform: scale(1.02); box-shadow: 0 14px 28px -6px rgba(249, 115, 22, .55); }
body .wib-wrap .wib-btn-submit:disabled { opacity: .7; cursor: wait; transform: none; }

/* ==========================================================================
   RIGHT SIDEBAR — route passport
   ========================================================================== */
body .wib-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body .wib-passport-card {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--wib-sky-100);
    border-radius: var(--wib-radius-3xl);
    box-shadow: var(--wib-shadow-xl);
    overflow: hidden;
}

body .wib-passport-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid var(--wib-sky-100);
}
body .wib-passport-head h4 {
    margin: 0 !important;
    font-family: var(--wib-font-head) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    color: var(--wib-navy) !important;
    text-transform: none !important;
}

body .wib-passport-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: var(--wib-teal-50);
    border: 1px solid rgba(153, 246, 228, .7);
    color: #0f766e;
    font-family: var(--wib-font-head);
    font-size: 11.5px;
    font-weight: 700;
}
body .wib-passport-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wib-teal);
    animation: wibPulse 1.8s ease-in-out infinite;
}

body .wib-passport-body { padding: 20px 22px 22px; }
body .wib-passport-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--wib-sky-100); }
body .wib-passport-section:last-child { border-bottom: 0; padding-bottom: 0; }

body .wib-passport-label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--wib-font-head);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wib-primary);
}

body .wib-route-chain { display: flex; flex-direction: column; gap: 0; }
body .wib-route-stop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-family: var(--wib-font-head);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--wib-navy);
}
body .wib-route-stop:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 32px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(180deg, #7dd3fc, #5eead4);
}
body .wib-route-stop-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0891b2);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 3px 8px -2px rgba(2, 132, 199, .5);
}

body .wib-passport-empty {
    padding: 14px;
    border: 1px dashed var(--wib-sky-200);
    border-radius: var(--wib-radius-lg);
    background: var(--wib-slate-50);
    font-size: 13px;
    color: var(--wib-muted);
    text-align: center;
}

body .wib-passport-pills { display: flex; flex-wrap: wrap; gap: 6px; }
body .wib-passport-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 10px;
    background: var(--wib-teal-50);
    border: 1px solid #ccfbf1;
    color: #115e59;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}
body .wib-passport-hotels .wib-passport-pill { background: #fff7ed; border-color: #ffedd5; color: #9a3412; }

body .wib-passport-meta-list { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--wib-text); line-height: 1.45; }
body .wib-passport-meta-list strong { color: var(--wib-navy); font-weight: 700; }

/* why-box */
body .wib-why-box {
    background: #fff;
    border: 1px solid var(--wib-sky-100);
    border-radius: var(--wib-radius-2xl);
    padding: 22px;
    box-shadow: var(--wib-shadow-sm);
}
body .wib-why-box h4,
body .wib-help-box h4 {
    margin: 0 0 14px !important;
    font-family: var(--wib-font-head) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    text-transform: none !important;
    color: var(--wib-navy) !important;
}
body .wib-why-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
body .wib-why-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 10px 0;
    border-bottom: 1px solid var(--wib-slate-100);
    font-size: 14px;
    font-weight: 600;
    color: var(--wib-text);
}
body .wib-why-list li:last-child { border-bottom: 0; padding-bottom: 0; }
body .wib-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--wib-sky-50);
    border: 1px solid var(--wib-sky-100);
    color: var(--wib-primary);
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}
body .wib-why-list li:nth-child(2) .wib-why-icon { background: #fff7ed; border-color: #ffedd5; color: var(--wib-secondary); }
body .wib-why-list li:nth-child(3) .wib-why-icon { background: var(--wib-teal-50); border-color: #ccfbf1; color: var(--wib-teal); }
body .wib-why-list li:nth-child(4) .wib-why-icon { background: #eef2ff; border-color: #e0e7ff; color: #4f46e5; }

/* help-box — deep ocean card */
body .wib-help-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c2340 0%, #0369a1 60%, #0891b2 100%);
    border-radius: var(--wib-radius-2xl);
    padding: 24px;
    box-shadow: var(--wib-shadow-xl);
    color: #fff;
}
body .wib-help-box::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(249, 115, 22, .28);
    filter: blur(40px);
    pointer-events: none;
}
body .wib-help-box h4 { color: #fff !important; }
body .wib-help-box p { margin: 0 0 14px !important; font-size: 13.5px !important; color: rgba(255, 255, 255, .82) !important; line-height: 1.55 !important; }
body .wib-help-phone,
body .wib-help-email {
    position: relative;
    z-index: 1;
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--wib-font-head);
}
body .wib-help-phone { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
body .wib-help-email { font-size: 14px; font-weight: 600; opacity: .9; }
body .wib-help-phone:hover,
body .wib-help-email:hover { color: #fed7aa !important; }

/* ==========================================================================
   SUCCESS STATE
   ========================================================================== */
body .wib-success-box { display: none; text-align: center; padding: 44px 24px; }
body .wib-success-box.is-visible { display: block; animation: wibFadeIn .3s ease; }
body .wib-success-box h3 { font-family: var(--wib-font-head) !important; font-style: normal !important; font-weight: 800 !important; color: var(--wib-navy) !important; }
body .wib-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wib-teal-50);
    border: 1px solid #99f6e4;
    color: var(--wib-teal);
    font-size: 36px;
    font-weight: 800;
    box-shadow: 0 0 0 8px rgba(13, 148, 136, .08);
}
body .wib-success-order-num { color: var(--wib-primary) !important; }

body .wib-mobile-sticky-bar { display: none; }

/* Desktop: hide mobile-only map block above steps */
body .wib-mobile-map-block {
    display: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media only screen and (max-width: 999px) {
    body .wib-layout { grid-template-columns: 1fr; gap: 22px; }
    body .wib-sidebar { position: static; }
    body .wib-islands-grid { grid-template-columns: repeat(2, 1fr); }
    body .wib-hero h2 { font-size: 32px !important; }
}

@media only screen and (max-width: 767px) {
    /* 1) Stretch cards almost full width, leave 2-4px margins */
    .traveltour-container:has(.wib-wrap),
    .traveltour-container .wib-wrap {
        padding-left: 2px !important;
        padding-right: 2px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .traveltour-content-area:has(.wib-wrap) {
        padding-top: 8px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .traveltour-item-pdlr:has(.wib-wrap) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body .wib-wrap {
        max-width: 100% !important;
        width: 100% !important;
        margin: 4px auto 96px !important;
        padding: 0 4px !important;
        font-size: 15px;
        box-sizing: border-box !important;
    }
    body .wib-hero {
        padding: 22px 14px !important;
        margin-bottom: 14px !important;
        border-radius: 18px !important;
    }
    body .wib-hero h2 { font-size: 24px !important; }
    body .wib-hero p { font-size: 14.5px !important; }
    body .wib-hero-notice { display: block; padding: 10px 14px; margin-top: 14px; border-radius: 10px; }
    body .wib-hero-notice-text { font-size: 13px; line-height: 1.5; }

    body .wib-stepper {
        grid-template-columns: repeat(5, 1fr);
        border-radius: 18px;
        gap: 3px;
        padding: 4px;
        margin-bottom: 14px;
    }
    body .wib-step-tab {
        flex-direction: column;
        gap: 2px;
        padding: 6px 2px;
        border-radius: 12px;
        font-size: 10px;
        text-align: center;
        line-height: 1.15;
    }
    body .wib-step-num { width: 22px; height: 22px; font-size: 11px; }

    /* 3) Live Map on Mobile: positioned immediately under stepper tabs */
    body .wib-mobile-map-block {
        display: block !important;
        background: #ffffff;
        border-radius: 18px;
        padding: 14px 10px;
        margin-bottom: 16px;
        border: 1px solid var(--wib-sky-100);
        box-shadow: var(--wib-shadow-md);
        box-sizing: border-box;
    }
    body .wib-mobile-map-block .wib-map-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 0 4px;
    }
    body .wib-mobile-map-block .wib-map-frame {
        width: 100%;
        max-width: 320px;
        aspect-ratio: 320 / 560;
        margin: 0 auto;
        border-radius: 14px;
    }
    /* Hide duplicate sidebar map on mobile */
    body .wib-sidebar .wib-map-section {
        display: none !important;
    }

    body .wib-btn-load-more { width: 100%; padding: 12px 16px; font-size: 13.5px; }

    body .wib-main-panel {
        padding: 14px 3px !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    body .wib-pane-head {
        margin-bottom: 14px;
        padding: 0 6px 12px;
    }
    body .wib-pane-head h3 { font-size: 19px !important; }
    body .wib-pane-head p { font-size: 13.5px !important; }

    body .wib-islands-grid,
    body .wib-activities-grid,
    body .wib-hotels-grid,
    body .wib-form-grid,
    body .wib-options-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 0 2px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body .wib-island-card,
    body .wib-activity-item,
    body .wib-hotel-card,
    body .wib-choice-card {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
    }
    body .wib-island-body { padding: 14px 12px !important; }
    body .wib-activity-body,
    body .wib-hotel-body { padding: 14px 12px !important; }

    body .wib-island-card:hover,
    body .wib-activity-item:hover,
    body .wib-hotel-card:hover { transform: none; }

    body .wib-nav-footer { flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-top: 20px; padding-top: 16px; }
    body .wib-wrap .wib-btn { width: 100%; padding: 15px 20px; font-size: 16px; }

    body .wib-mobile-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--wib-sky-100);
        border-radius: 18px;
        padding: 10px 12px 10px 16px;
        box-shadow: 0 12px 30px -6px rgba(12, 35, 64, .25);
        z-index: 9990;
    }
    body .wib-mobile-sticky-bar.is-hidden { display: none !important; }
    body .wib-mobile-sticky-info { font-size: 12.5px; line-height: 1.3; color: var(--wib-muted); }
    body .wib-mobile-sticky-info strong { display: block; color: var(--wib-navy); font-size: 13.5px; font-weight: 800; }
    body .wib-mobile-sticky-btn {
        background: linear-gradient(90deg, #f97316 0%, #ff5a36 100%);
        color: #fff !important;
        border: 0;
        border-radius: 12px;
        padding: 11px 18px;
        font-family: var(--wib-font-head);
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
        flex-shrink: 0;
        box-shadow: 0 6px 14px -4px rgba(249, 115, 22, .5);
    }
}

/* ==========================================================================
   Werdana CRM · Interactive Route Map, Share Modal & Presentation Booklet
   ========================================================================== */

/* Map in Passport Sidebar */
body .wib-map-section {
    margin-bottom: 20px !important;
}
body .wib-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
body .wib-btn-expand-map {
    background: var(--wib-sky-50);
    border: 1px solid var(--wib-sky-200);
    color: var(--wib-primary);
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
body .wib-btn-expand-map:hover {
    background: var(--wib-primary);
    color: #ffffff;
}

body .wib-map-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 320 / 560;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f9ff;
    border: 1px solid var(--wib-sky-200);
    box-shadow: inset 0 2px 10px rgba(2, 132, 199, 0.06);
    position: relative;
}
body .wib-svg-route-map {
    display: block;
    width: 100%;
    height: 100%;
}
body .wib-svg-archipelago {
    fill: #bae6fd;
    stroke: #38bdf8;
    stroke-width: 0.85;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(2, 132, 199, 0.12));
}

/* SVG Flight Path Dash Animation */
@keyframes wibFlightDash {
    0% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}
body .wib-flight-path {
    animation: wibFlightDash 1.2s linear infinite;
}

/* SVG Pin Radar Pulse Animation */
@keyframes wibMapPulse {
    0% { r: 10; opacity: 0.8; }
    100% { r: 24; opacity: 0; }
}
body .wib-pin-pulse {
    animation: wibMapPulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    pointer-events: none;
}

body .wib-map-stats {
    margin-top: 6px;
    font-size: 11.5px;
    text-align: center;
    line-height: 1.4;
}
body .wib-map-stats-text { color: var(--wib-muted); }
body .wib-map-stats-active { color: var(--wib-primary-dark); font-weight: 700; }

/* Passport Action Buttons */
body .wib-passport-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--wib-sky-200);
}
body .wib-btn-passport-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: var(--wib-font-head);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid transparent;
}
body .wib-btn-share-trigger {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}
body .wib-btn-share-trigger:hover {
    background: #dcfce7;
    transform: translateY(-1px);
}
body .wib-btn-booklet-trigger {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: var(--wib-primary);
}
body .wib-btn-booklet-trigger:hover {
    background: #e0f2fe;
    transform: translateY(-1px);
}

/* Success Actions in Step 5 */
body .wib-success-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
body .wib-success-actions .wib-btn {
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
body .wib-success-actions .wib-btn-primary {
    background: linear-gradient(90deg, #0284c7 0%, #0891b2 100%);
    color: #ffffff !important;
}
body .wib-success-actions .wib-btn-secondary {
    background: #ffffff;
    border: 1px solid var(--wib-sky-200);
    color: var(--wib-navy);
}

/* Modals (True lightbox foreground) */
html.wib-modal-opened,
body.wib-modal-opened {
    overflow: hidden !important;
}
html.wib-modal-opened header,
html.wib-modal-opened .traveltour-mobile-header-wrap,
html.wib-modal-opened .traveltour-mobile-header,
html.wib-modal-opened .traveltour-header-wrap,
html.wib-modal-opened .traveltour-fixed-navigation,
html.wib-modal-opened .traveltour-navigation-bar,
html.wib-modal-opened .traveltour-page-wrapper,
body.wib-modal-opened header,
body.wib-modal-opened .traveltour-mobile-header-wrap,
body.wib-modal-opened .traveltour-mobile-header,
body.wib-modal-opened .traveltour-header-wrap,
body.wib-modal-opened .traveltour-fixed-navigation,
body.wib-modal-opened .traveltour-navigation-bar,
body.wib-modal-opened .traveltour-page-wrapper {
    z-index: 1 !important;
}

body .wib-modal,
body > .wib-modal,
body > #wib-map-modal,
body > #wib-share-modal,
#wib-map-modal.wib-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2000000000 !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
body .wib-modal.is-open,
body > .wib-modal.is-open {
    display: flex !important;
}
body .wib-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 35, 64, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}
body .wib-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    max-width: 540px;
    width: 100%;
    padding: 32px 28px;
    box-shadow: 0 25px 50px -12px rgba(12, 35, 64, 0.40);
    border: 1px solid var(--wib-sky-100);
    z-index: 2;
    animation: wibModalIn .25s ease-out;
}
body .wib-modal-dialog-large {
    max-width: 800px;
    padding: 28px;
}
@keyframes wibModalIn {
    0% { opacity: 0; transform: scale(0.95) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
body .wib-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--wib-muted);
    cursor: pointer;
    z-index: 10;
    transition: all .2s;
}
body .wib-modal-close:hover {
    background: #e2e8f0;
    color: var(--wib-navy);
}
body .wib-modal-head {
    text-align: center;
    margin-bottom: 20px;
}
body .wib-modal-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
body .wib-modal-head h3 {
    font-family: var(--wib-font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--wib-navy);
    margin: 0 0 6px;
}
body .wib-modal-head p {
    font-size: 14px;
    color: var(--wib-muted);
    margin: 0;
    line-height: 1.5;
}

/* Share URL Field */
body .wib-share-field {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
}
body .wib-share-field input {
    flex: 1 1 auto;
    min-width: 0;
    background: #f8fafc;
    border: 1.5px solid var(--wib-sky-200);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--wib-navy);
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
body .wib-share-field input:focus {
    border-color: #f97316;
    background: #ffffff;
}
body .wib-btn-copy,
body .wib-share-field .wib-btn-copy {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    background: #f97316 !important;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 11px 22px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.38) !important;
    transition: all .2s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
body .wib-btn-copy:hover,
body .wib-share-field .wib-btn-copy:hover {
    background: #ea580c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45) !important;
}
body .wib-btn-copy:active,
body .wib-share-field .wib-btn-copy:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3) !important;
}

@media (max-width: 520px) {
    body .wib-share-field {
        flex-direction: column;
    }
    body .wib-share-field input {
        width: 100%;
    }
    body .wib-btn-copy,
    body .wib-share-field .wib-btn-copy {
        width: 100%;
        padding: 13px 20px !important;
        font-size: 14.5px !important;
    }
}

/* Share Channels */
body .wib-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}
@media (min-width: 480px) {
    body .wib-share-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
    body .wib-share-wa { grid-column: span 2; }
    body .wib-share-tg { grid-column: span 2; }
    body .wib-share-viber { grid-column: span 2; }
    body .wib-share-messenger { grid-column: span 3; }
    body .wib-share-email { grid-column: span 3; }
}
@media (max-width: 479px) {
    body .wib-share-email { grid-column: 1 / -1; }
}
body .wib-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-family: var(--wib-font-head) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
}
body .wib-share-btn svg {
    flex-shrink: 0;
}
body .wib-share-btn:hover {
    transform: translateY(-2px) !important;
}
body .wib-share-wa {
    background: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.32) !important;
}
body .wib-share-wa:hover {
    background: #20ba5a !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45) !important;
}
body .wib-share-tg {
    background: #0088cc !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.32) !important;
}
body .wib-share-tg:hover {
    background: #0077b5 !important;
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.45) !important;
}
body .wib-share-viber {
    background: #7360f2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(115, 96, 242, 0.32) !important;
}
body .wib-share-viber:hover {
    background: #5f4bd8 !important;
    box-shadow: 0 6px 16px rgba(115, 96, 242, 0.45) !important;
}
body .wib-share-messenger {
    background: #0084ff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.32) !important;
}
body .wib-share-messenger:hover {
    background: #006ee6 !important;
    box-shadow: 0 6px 16px rgba(0, 132, 255, 0.45) !important;
}
body .wib-share-email {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}
body .wib-share-email:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12) !important;
}

/* Share Phones & Flying Envelope Animation */
body .wib-share-phone-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    line-height: 1;
}
body .wib-share-anim-svg {
    display: block;
    max-width: 170px;
    height: auto;
    overflow: visible;
}
@keyframes wibFlyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
body .wib-share-flying-envelope {
    transform-origin: 80px 18px;
    animation: wibFlyFloat 2.4s ease-in-out infinite;
}
@keyframes wibDashMove {
    to { stroke-dashoffset: -18; }
}
body .wib-share-flight-arc {
    animation: wibDashMove 1.6s linear infinite;
}

/* Modal Map Wrap */
body #wib-map-modal {
    z-index: 2000000000 !important;
}

/* Desktop: Full-width expanded modal dialog (PC / Laptop) */
body #wib-map-modal .wib-modal-dialog {
    max-width: 1140px;
    width: 92vw;
    padding: 26px 32px;
    border-radius: 24px;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
body #wib-map-modal .wib-modal-head {
    margin-bottom: 16px;
    text-align: center;
}
body #wib-map-modal .wib-modal-head h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0c2340;
    margin: 0 0 4px;
}
body #wib-map-modal .wib-modal-head p {
    font-size: 13.5px;
    color: var(--wib-muted);
    margin: 0;
}
body .wib-modal-map-wrap {
    width: 100%;
    max-width: 100%;
    height: 64vh;
    max-height: 640px;
    aspect-ratio: unset;
    margin: 0 auto 16px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid var(--wib-sky-200);
    box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
body .wib-modal-map-wrap svg {
    width: 100%;
    height: 100%;
    max-height: 640px;
    display: block;
}
body .wib-modal-map-wrap svg > rect:first-of-type {
    display: none !important;
}
body .wib-modal-map-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
body .wib-modal-route-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1 1 auto;
}
body .wib-modal-chip {
    background: #f0f9ff;
    border: 1px solid var(--wib-sky-200);
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 12.5px;
    color: var(--wib-navy);
}
body .wib-modal-chip strong {
    color: var(--wib-primary);
}

/* Modal Close / Action Button (Готово, продолжить) */
body .wib-modal-close-btn,
body .wib-modal-map-footer .wib-modal-close-btn,
body #wib-map-modal .wib-modal-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 28px !important;
    border: 0 !important;
    border-radius: 14px !important;
    font-family: var(--wib-font-head, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: linear-gradient(90deg, #0284c7 0%, #0891b2 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -6px rgba(2, 132, 199, .45) !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
    white-space: nowrap !important;
}
body .wib-modal-close-btn:hover,
body .wib-modal-map-footer .wib-modal-close-btn:hover,
body #wib-map-modal .wib-modal-close-btn:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 12px 24px -6px rgba(2, 132, 199, .55) !important;
    background: linear-gradient(90deg, #0369a1 0%, #0284c7 100%) !important;
    color: #ffffff !important;
}
body .wib-modal-close-btn:active,
body .wib-modal-map-footer .wib-modal-close-btn:active,
body #wib-map-modal .wib-modal-close-btn:active {
    transform: scale(0.98) !important;
}
body .wib-modal-close-btn span {
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* Mobile: Compact smartphone portrait modal with gentle vertical scroll */
@media (max-width: 768px) {
    body #wib-map-modal .wib-modal-dialog {
        max-width: 420px;
        width: calc(100% - 10px);
        padding: 18px 8px;
        padding-top: max(20px, env(safe-area-inset-top, 20px));
        max-height: 94vh;
        border-radius: 18px;
        overflow-y: auto;
    }
    body #wib-map-modal .wib-modal-head h3 {
        font-size: 16px;
    }
    body #wib-map-modal .wib-modal-head p {
        font-size: 12px;
    }
    body .wib-modal-map-wrap {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 320 / 560;
        max-height: 72vh;
        height: auto;
    }
    body .wib-modal-map-footer .wib-modal-close-btn,
    body #wib-map-modal .wib-modal-close-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        text-align: center !important;
    }
}

/* Toast for Route Loaded */
body .wib-route-loaded-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: #0c2340;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 99999;
    opacity: 0;
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.2);
}
body .wib-route-loaded-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
