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

:root {
    --purple: #6B48E8;
    --gold: #F59E0B;
    --main: #500EAF;
    --green: #22C55E;
    --text: #1a1a2e;
    --text-mid: #4b5563;
    --text-light: #9ca3af;
    --white: #ffffff;
    --bg-light: #f3f4f6;
    --border: #e5e7eb;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 8px 36px rgba(0, 0, 0, 0.11);
    --radius: 18px;
    --bid-footer: 76px;
}

html,
body {
    font-family: 'Satoshi', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

body {
    padding-bottom: var(--bid-footer);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* ── Mobile header ── */
.mob-header {
    display: none;
}

/* ── Desktop secondary bar ── */
.secondary-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    font-family: 'Satoshi', sans-serif;
}

.sec-back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-mid);
    flex-shrink: 0;
    transition: background 0.2s;
}

.sec-back:hover {
    background: #ede9f8;
    color: var(--purple);
}

.sec-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.sec-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ── Main ── */
.bid-main {
    position: relative;
    min-height: calc(100vh - 62px - 44px - var(--bid-footer));
    padding: 48px 32px 32px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% 100%, rgba(160, 120, 240, 0.38) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(140, 100, 220, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 90% 75%, rgba(160, 120, 240, 0.15) 0%, transparent 55%),
        linear-gradient(180deg, #fdfcff 0%, #f5f1fd 35%, #ece4fa 65%, #ddd0f5 100%);
}

.sparkle-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

@keyframes spkl {

    0%,
    100% {
        opacity: 0.12;
        transform: scale(0.7)
    }

    50% {
        opacity: 0.85;
        transform: scale(1)
    }
}

.bid-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Desktop two-column grid ── */
.bid-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: start;
}

/* ── AI Banner ── */
.ai-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: var(--radius);
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
}

.ai-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--main), #9B3DD8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(107, 72, 232, 0.3);
}

.ai-text {
    flex: 1;
}

.ai-headline {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 4px;
}

.ai-sub {
    font-size: 0.88rem;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.ai-sub strong {
    color: var(--text);
}

.ai-desc {
    font-size: 0.82rem;
    color: var(--text-mid);
}

.ai-sparkle-corner {
    position: absolute;
    bottom: 14px;
    right: 14px;
    opacity: 0.55;
}

/* ── Section labels ── */
.section-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-mid);
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Your Hotels box ── */
.hotels-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hotel-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}

.hotel-row-divider {
    height: 1px;
    background: var(--border);
    margin: 0 20px;
}

.check-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hotel-row-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

/* ── AI hotel cards ── */
.ai-hotel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}

.ai-hotel-card:last-child {
    margin-bottom: 0;
}

.ai-hotel-img {
    width: 110px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
}

.ai-hotel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-hotel-body {
    padding: 14px 16px 14px 0;
    flex: 1;
}

.ai-hotel-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.ai-hotel-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.ai-hotel-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ai-hotel-bullets li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.ai-hotel-bullets li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-light);
    flex-shrink: 0;
}

/* ── Fixed bidding footer ── */
.bid-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bid-footer);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    background: transparent;
}

.bid-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 680px;
    padding: 16px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--main), #9810FA 100%);
    color: var(--white);
    font-family: 'Satoshi', sans-serif;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(107, 72, 232, 0.4);
    transition: opacity 0.2s, transform 0.2s;
}

.bid-start-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.bid-btn-title {
    font-size: 1rem;
    font-weight: 800;
}

.bid-btn-sub {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 2px;
}

/* ════════════════════════════════
   MOBILE  (≤768px)
════════════════════════════════ */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex;
    }

    .secondary-bar {
        display: none;
    }

    /* Mobile header */
    .mob-header {
        display: flex;
        align-items: center;
        gap: 10px;
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 12px 16px;
        background: linear-gradient(135deg, #ede8fb, #ddd4f7);
        border-bottom: 1px solid rgba(107, 72, 232, 0.1);
        box-shadow: 0 2px 10px rgba(107, 72, 232, 0.08);
    }

    .mob-back {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(107, 72, 232, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text);
        flex-shrink: 0;
    }

    .mob-location-pill {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        background: var(--white);
        border-radius: 14px;
        padding: 8px 12px;
        border: 1px solid var(--border);
        font-size: 0.85rem;
    }

    .mob-loc-name {
        font-weight: 700;
        color: var(--text);
        font-size: 0.88rem;
    }

    .mob-loc-meta {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.72rem;
        color: var(--text-light);
        margin-top: 2px;
    }

    .mob-wish {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.7);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-mid);
        flex-shrink: 0;
    }

    /* Main */
    .bid-main {
        padding: 20px 16px 24px;
    }

    /* Single column */
    .bid-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* AI Banner */
    .ai-banner {
        padding: 16px 16px;
    }

    .ai-icon {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }

    .ai-headline {
        font-size: 0.92rem;
    }

    .ai-sub,
    .ai-desc {
        font-size: 0.82rem;
    }

    /* Hotels */
    .hotel-row {
        padding: 14px 16px;
    }

    .hotel-row-name {
        font-size: 0.9rem;
    }

    .ai-hotel-img {
        width: 90px;
        height: 80px;
    }

    .ai-hotel-name {
        font-size: 0.88rem;
    }

    /* Footer */
    .bid-footer {
        padding: 0 16px;
        height: 68px;
    }

    .bid-start-btn {
        border-radius: 22px;
        padding: 14px 20px;
    }

    .bid-btn-title {
        font-size: 0.95rem;
    }

    body {
        padding-bottom: 80px;
    }
}