/* ── Where Should I Go — screen background (matches home page world map) ── */
#where-should-go-screen {
    background-image:
        linear-gradient(160deg, rgba(11, 34, 56, 0.82) 0%, rgba(32, 67, 98, 0.78) 36%, rgba(97, 74, 58, 0.72) 68%, rgba(155, 106, 77, 0.68) 100%),
        url("https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/Equirectangular_projection_SW.jpg/1920px-Equirectangular_projection_SW.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    isolation: isolate;
}

#where-should-go-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.10), transparent 42%),
        radial-gradient(circle at 85% 25%, rgba(201, 168, 76, 0.12), transparent 45%);
    z-index: 0;
    pointer-events: none;
}

/* ── Container ── */
.wherego-container {
    max-width: 860px;
    margin: 0 auto;
    min-height: 100vh;
    padding-top: 5.5rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    position: relative;
}

/* ── Page heading (white on dark map background) ── */
#where-should-go-screen h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.4rem;
}

.wherego-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.8rem;
    font-weight: 400;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* ── Loading message ── */
#wherego-loading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    padding: 2rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ── Quiz wrapper ── */
.wherego-quiz {
    width: 100%;
}

/* ── Progress ── */
.wherego-progress-row {
    margin-bottom: 1.2rem;
}

.wherego-progress-text {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.wherego-progress-track {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.wherego-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #C9A84C, #E8967A);
    transition: width 0.3s ease;
    border-radius: 999px;
}

/* ── Swipeable question card ── */
.wherego-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    margin-bottom: 0.5rem;
}

.wherego-card {
    width: min(92vw, 680px);
    min-height: 300px;
    border-radius: 20px;
    border: 1px solid rgba(224, 217, 204, 0.9);
    background: rgba(250, 250, 247, 0.97);
    box-shadow: 0 24px 60px rgba(11, 34, 56, 0.32), 0 6px 18px rgba(11, 34, 56, 0.18);
    padding: 2.2rem 2.4rem 2rem;
    position: relative;
    user-select: none;
    touch-action: pan-y;
    cursor: grab;
    transition: box-shadow 0.25s ease;
    text-align: left;
}

.wherego-card:active {
    cursor: grabbing;
}

.wherego-question-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C4714A;
    background: rgba(196, 113, 74, 0.1);
    border: 1px solid rgba(196, 113, 74, 0.25);
    border-radius: 999px;
    padding: 0.28rem 0.68rem;
}

.wherego-question-title {
    margin-top: 1rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.9rem, 3.8vw, 2.6rem);
    line-height: 1.12;
    color: #1A1A18;
    font-weight: 600;
}

.wherego-question-subtitle {
    margin-top: 0.9rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #5A5550;
    max-width: 52ch;
}

.wherego-hint {
    margin-top: 1.6rem;
    font-size: 0.76rem;
    color: #9A948D;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Swipe YES/NO badge ── */
.wherego-swipe-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    border: 1px solid transparent;
}

.wherego-swipe-badge.show {
    opacity: 1;
    transform: scale(1);
}

.wherego-swipe-badge.yes {
    color: #15652e;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(21, 101, 46, 0.28);
}

.wherego-swipe-badge.no {
    color: #8B2020;
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(139, 32, 32, 0.28);
}

/* ── Yes / No action buttons ── */
.wherego-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.wherego-btn-no,
.wherego-btn-yes {
    font-family: "DM Sans", "Outfit", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    letter-spacing: 0.01em;
}

.wherego-btn-no {
    border: 1px solid rgba(250, 250, 247, 0.6);
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.wherego-btn-no:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.wherego-btn-yes {
    border: none;
    color: #1A1A18;
    background: linear-gradient(135deg, #C9A84C, #E0B86A);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
}

.wherego-btn-yes:hover {
    background: linear-gradient(135deg, #D4B055, #EAC272);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.5);
}

/* ── Results section ── */
.wherego-results {
    width: 100%;
    margin-top: 0.5rem;
}

.wherego-results-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.wherego-results-header h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.3rem;
}

.wherego-results-header p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ── Recommendation grid ── */
.wherego-recommendations {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wherego-rec-card {
    border-radius: 16px;
    border: 1px solid rgba(224, 217, 204, 0.9);
    background: rgba(250, 250, 247, 0.97);
    padding: 1.2rem 1.25rem;
    box-shadow: 0 8px 32px rgba(11, 34, 56, 0.22), 0 2px 8px rgba(11, 34, 56, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.wherego-rec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(11, 34, 56, 0.28);
}

.wherego-rec-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.wherego-rec-country {
    font-family: "DM Sans", "Outfit", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A18;
    line-height: 1.2;
}

.wherego-rec-score {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C4714A;
    white-space: nowrap;
    padding-top: 0.15rem;
}

.wherego-rec-meta {
    font-size: 0.82rem;
    color: #7A7772;
    margin-bottom: 0.6rem;
}

.wherego-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.wherego-chip {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(196, 113, 74, 0.3);
    background: rgba(196, 113, 74, 0.08);
    color: #A05A35;
    font-size: 0.71rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    letter-spacing: 0.02em;
}

.wherego-rec-list {
    margin: 0.1rem 0 0.7rem 1.1rem;
    color: #4A4540;
    font-size: 0.84rem;
    line-height: 1.5;
}

.wherego-rec-list li {
    margin-bottom: 0.12rem;
}

.wherego-rec-link {
    display: inline-block;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1B3A5C;
    border-bottom: 1px solid rgba(27, 58, 92, 0.3);
    transition: border-color 0.18s ease, color 0.18s ease;
    letter-spacing: 0.01em;
}

.wherego-rec-link:hover {
    color: #C4714A;
    border-bottom-color: rgba(196, 113, 74, 0.6);
}

/* ── Results "Try again" button ── */
.wherego-results-actions {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
}

#wherego-restart {
    background: rgba(250, 250, 247, 0.95);
    color: #1A1A18;
    border: 1px solid rgba(224, 217, 204, 0.9);
    font-family: "DM Sans", "Outfit", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 14px rgba(11, 34, 56, 0.15);
}

#wherego-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(11, 34, 56, 0.22);
}

/* ── Back button override for this screen ── */
#where-should-go-screen .btn-back {
    background: rgba(250, 250, 247, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

#where-should-go-screen .btn-back:hover {
    background: rgba(250, 250, 247, 0.22);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .wherego-container {
        padding-top: 4.5rem;
    }

    .wherego-card {
        padding: 1.6rem 1.5rem 1.4rem;
        min-height: 260px;
    }

    .wherego-card-wrap {
        min-height: unset;
    }

    .wherego-btn-no,
    .wherego-btn-yes {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .wherego-recommendations {
        grid-template-columns: 1fr;
    }
}
