/* ═══════════════════════════════════════════════════════════════
   SOA B2B Portal — Frontend Styles
   Colors: #4f1507 (primary) · #e57727 (accent)
   Fonts: Playfair Display + DM Sans
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.soa-b2b-body {
    font-family: 'DM Sans', sans-serif;
    background: #fdf8f3;
    color: var(--text);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ── Container ─────────────────────────────────────────────── */
.b2b-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.b2b-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    line-height: 1;
    text-align: center;
}
.b2b-btn-primary  { background: var(--primary); color: #fff; }
.b2b-btn-primary:hover  { background: #3a0e04; transform: translateY(-1px); }
.b2b-btn-accent   { background: var(--accent); color: #fff; }
.b2b-btn-accent:hover   { background: #c96217; transform: translateY(-1px); }
.b2b-btn-white    { background: #fff; color: var(--primary); }
.b2b-btn-white:hover    { background: #f5f0ea; }
.b2b-btn-ghost    { background: transparent; color: var(--muted); border: 1px solid #ddd; }
.b2b-btn-ghost:hover    { border-color: var(--primary); color: var(--primary); }
.b2b-btn-whatsapp { background: #25D366; color: #fff; font-size: 15px; padding: 14px 32px; }
.b2b-btn-whatsapp:hover { background: #1da855; transform: translateY(-1px); box-shadow: 0 4px 16px #25D36644; }

/* ── Header ────────────────────────────────────────────────── */
.b2b-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.b2b-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.b2b-logo-wrap a { display: flex; align-items: center; }
.b2b-logo-wrap img { height: 44px; width: auto; }
.b2b-site-name { color: #fff; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; }
.b2b-badge {
    background: var(--accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
}
.b2b-back-link {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    transition: color .2s;
}
.b2b-back-link:hover { color: var(--accent); }

/* ── Hero ──────────────────────────────────────────────────── */
.b2b-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?w=1600&q=80') center/cover no-repeat;
    overflow: hidden;
}
.b2b-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(79,21,7,0.88) 0%, rgba(79,21,7,0.6) 60%, rgba(0,0,0,0.3) 100%);
}
.b2b-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    max-width: 720px;
}
.b2b-hero-eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.b2b-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}
.b2b-hero-tagline {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 28px;
    max-width: 520px;
}
.b2b-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}
.b2b-hero-features span {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(6px);
}

/* ── How It Works ──────────────────────────────────────────── */
.b2b-how {
    background: var(--primary);
    padding: 72px 0;
}
.b2b-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}
.b2b-how .b2b-section-title { color: #fff; }
.b2b-section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 48px;
}
.b2b-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.b2b-step {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: transform .2s;
}
.b2b-step:hover { transform: translateY(-4px); }
.b2b-step-num {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}
.b2b-step h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.b2b-step p  { color: rgba(255,255,255,0.68); font-size: 15px; }

/* ── Trips Section ─────────────────────────────────────────── */
.b2b-trips-section { padding: 80px 0; background: var(--cream); }
.b2b-trips-section .b2b-section-title { margin-bottom: 8px; }

.b2b-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.b2b-trip-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.b2b-trip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

.b2b-trip-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e8ddd0;
}
.b2b-trip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.b2b-trip-card:hover .b2b-trip-img img { transform: scale(1.04); }
.b2b-trip-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; background: #e8ddd0;
}
.b2b-trip-overlay {
    position: absolute; top: 12px; left: 12px;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.b2b-b2b-tag {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.b2b-duration-tag {
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.b2b-trip-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.b2b-trip-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.b2b-trip-dest, .b2b-trip-days {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.b2b-trip-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}
.b2b-trip-excerpt { font-size: 14px; color: var(--muted); flex: 1; }
.b2b-trip-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.b2b-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.b2b-trip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0ebe3;
    gap: 12px;
    flex-wrap: wrap;
}
.b2b-price-hidden {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.b2b-empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--muted);
    font-size: 18px;
}

/* ── CTA Strip ─────────────────────────────────────────────── */
.b2b-cta-strip {
    background: linear-gradient(135deg, var(--accent) 0%, #c96217 100%);
    padding: 72px 0;
    text-align: center;
}
.b2b-cta-strip h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.b2b-cta-strip p {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ────────────────────────────────────────────────── */
.b2b-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 28px;
}
.b2b-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.b2b-footer-links { display: flex; gap: 24px; }
.b2b-footer-links a { font-size: 14px; transition: color .2s; }
.b2b-footer-links a:hover { color: var(--accent); }
.b2b-footer-copy { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ── Modal ─────────────────────────────────────────────────── */
.b2b-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    backdrop-filter: blur(4px);
}
.b2b-modal-overlay.is-open {
    opacity: 1; pointer-events: all;
}
.b2b-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%; max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 36px 36px 28px;
    position: relative;
    transform: translateY(20px) scale(.97);
    transition: transform .28s ease;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.b2b-modal-overlay.is-open .b2b-modal {
    transform: translateY(0) scale(1);
}
.b2b-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: #f5f0ea; border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    color: var(--muted); transition: background .2s;
}
.b2b-modal-close:hover { background: #e8ddd0; }
.b2b-modal-header { text-align: center; margin-bottom: 28px; }
.b2b-modal-icon { font-size: 36px; margin-bottom: 10px; }
.b2b-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px; font-weight: 700;
    color: var(--primary); margin-bottom: 6px;
}
.b2b-modal-trip-name {
    font-size: 15px; color: var(--accent); font-weight: 600;
    background: #fff5ec; padding: 6px 16px; border-radius: 20px;
    display: inline-block;
}

.b2b-modal-form { display: flex; flex-direction: column; gap: 16px; }
.b2b-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.b2b-form-full { grid-column: 1 / -1; }
.b2b-form-group { display: flex; flex-direction: column; gap: 6px; }
.b2b-form-group label { font-size: 13px; font-weight: 600; color: var(--primary); }
.b2b-form-group input,
.b2b-form-group select,
.b2b-form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid #e0d8d0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fdf8f3;
    transition: border-color .2s;
    outline: none;
}
.b2b-form-group input:focus,
.b2b-form-group select:focus,
.b2b-form-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
}
.b2b-form-group input.error,
.b2b-form-group select.error { border-color: #e53e3e; }
.b2b-form-group textarea { resize: vertical; min-height: 80px; }

.b2b-modal-actions {
    display: flex; justify-content: flex-end; gap: 12px;
    margin-top: 8px;
}
.b2b-modal-disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .b2b-header-center { display: none; }
    .b2b-trips-grid { grid-template-columns: 1fr; }
    .b2b-form-row { grid-template-columns: 1fr; }
    .b2b-modal { padding: 28px 20px 20px; }
    .b2b-footer-inner { flex-direction: column; text-align: center; }
    .b2b-modal-actions { flex-direction: column; }
    .b2b-modal-actions .b2b-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .b2b-hero { min-height: 400px; }
    .b2b-steps { grid-template-columns: 1fr; }
}
