/* assets/css/main.css — CluelessVacation
   Color palette derived from logo:
   Navy   #1B2F5E  — primary dark, "clueless" wordmark
   Teal   #2BBFB3  — accent, "vacation" wordmark
   Coral  #E8534A  — CTA / highlight, red sign
   Amber  #F5A623  — warm accent, yellow sign
   Sky    #A8D8EA  — light bg tint, globe
*/

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

:root {
    --navy:    #1B2F5E;
    --teal:    #2BBFB3;
    --coral:   #E8534A;
    --amber:   #F5A623;
    --sky:     #A8D8EA;

    /* Neutrals */
    --white:   #FFFFFF;
    --off-white: #F5F9FA;
    --fog:     #DFF0F3;
    --mist:    #7A9BAF;
    --slate:   #445566;
    --ink:     #1B2F5E;   /* alias */

    --radius:  12px;
    --shadow:  0 2px 14px rgba(27,47,94,0.10);
    --shadow-lg: 0 6px 32px rgba(27,47,94,0.14);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--off-white);
    color: var(--navy);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── NAV ──────────────────────────────────── */
nav {
    background: var(--navy);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 125px;
    box-shadow: 0 2px 8px rgba(27,47,94,0.18);
}

.nav-logo img {
    height: 125px;
    width: auto;
    display: block;
}

.nav-link {
    color: var(--sky);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--white); }

/* ── HOMEPAGE HERO ────────────────────────── */
.hero {
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--fog);
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: clamp(30px, 5vw, 50px);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 14px;
}

.hero h1 em {
    color: var(--teal);
    font-style: italic;
}

.hero p {
    color: var(--slate);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ── PROMPT INPUT ─────────────────────────── */
.prompt-box {
    background: var(--white);
    border: 2px solid var(--fog);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    transition: border-color 0.2s;
}
.prompt-box:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(43,191,179,0.12);
}
.prompt-box textarea {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    color: var(--navy);
    resize: none;
    min-height: 80px;
    background: transparent;
    line-height: 1.6;
}
.prompt-box textarea::placeholder { color: var(--mist); }

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}
.btn-primary:hover  { background: #d4463e; }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { background: var(--mist); cursor: not-allowed; }

/* ── DIVIDER ──────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--mist);
    font-size: 13px;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fog);
}

/* ── STARTER CHIPS ────────────────────────── */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.chip {
    background: var(--white);
    border: 1.5px solid #C5DDE3;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--navy);
    font-weight: 500;
}
.chip:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

/* ── SOCIAL PROOF STRIP ───────────────────── */
.proof-strip {
    background: var(--white);
    border-top: 1px solid var(--fog);
    padding: 32px 24px;
    margin-top: 56px;
}
.proof-strip-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.proof-strip h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 16px;
}
.recent-trips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.recent-trip-pill {
    background: var(--off-white);
    border: 1px solid var(--fog);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 13px;
    color: var(--slate);
}
.recent-trip-pill strong { color: var(--navy); }

/* ── CHAT UI ──────────────────────────────── */
.chat-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 16px 120px;
}

.chat-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 16px;
}
.chat-topbar a {
    color: var(--slate);
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-topbar a:hover { color: var(--coral); }

/* Progress bar */
.chat-progress {
    height: 3px;
    background: var(--fog);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}
.chat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--sky));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 10%;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.bubble {
    max-width: 85%;
    padding: 13px 17px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.6;
}
.bubble-user {
    background: var(--navy);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.bubble-assistant {
    background: var(--white);
    color: var(--navy);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 5px rgba(27,47,94,0.08);
    border: 1px solid var(--fog);
}

/* Quick-reply chips inside chat */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    padding-left: 4px;
}
.quick-reply {
    background: var(--fog);
    border: 1.5px solid var(--sky);
    border-radius: 20px;
    padding: 7px 15px;
    font-size: 13px;
    cursor: pointer;
    color: var(--teal);
    font-weight: 600;
    transition: all 0.15s;
}
.quick-reply:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

/* Fixed chat input bar */
.chat-input-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(245,249,250,0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--fog);
    padding: 12px 16px 16px;
}
.chat-input-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}
.chat-input {
    flex: 1;
    border: 2px solid var(--fog);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    background: var(--white);
    color: var(--navy);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(43,191,179,0.12);
}
.btn-send {
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-send:hover    { background: #d4463e; }
.btn-send:disabled { background: var(--mist); cursor: not-allowed; }

/* Typing indicator */
.typing { display: flex; gap: 5px; padding: 14px 17px; align-items: center; }
.typing span {
    width: 8px; height: 8px;
    background: var(--sky);
    border-radius: 50%;
    animation: bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
    40%            { transform: translateY(-7px); opacity: 1; }
}

/* ── RESULTS PAGE ─────────────────────────── */
.results-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 16px 56px;
}

.results-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--fog);
}
.results-header h2 {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 30px;
    color: var(--navy);
    margin-bottom: 10px;
}
.results-criteria {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
    font-size: 14px;
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: 8px;
    padding: 8px 14px;
    display: inline-flex;
    margin-bottom: 14px;
}
.results-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid #C5DDE3;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-secondary:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

/* Property card */
.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.property-card:hover { box-shadow: var(--shadow-lg); }
.property-card.best-match { border-color: var(--teal); }
.property-card.sponsored  { border-color: var(--amber); }

/* Colored top accent bar */
.card-accent {
    height: 4px;
    background: var(--fog);
}
.best-match .card-accent { background: linear-gradient(90deg, var(--teal), var(--sky)); }
.sponsored  .card-accent { background: linear-gradient(90deg, var(--amber), #f7c96a); }

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.badge-best    { background: var(--teal);  color: var(--white); }
.badge-sponsor { background: var(--amber); color: var(--navy); }

.card-body { padding: 20px 22px 22px; }

.card-destination {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
}
.card-property {
    font-size: 14px;
    color: var(--mist);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.card-reason {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.65;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--off-white);
    border-radius: 8px;
    border-left: 3px solid var(--teal);
}
.sponsored .card-reason { border-left-color: var(--amber); }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--fog);
}
.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}
.card-price span { font-size: 13px; font-weight: 400; color: var(--mist); }

.btn-book {
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
    letter-spacing: 0.02em;
}
.btn-book:hover { background: #d4463e; }

/* Disclosure footer */
.results-disclosure {
    text-align: center;
    margin-top: 32px;
    color: var(--mist);
    font-size: 12px;
    line-height: 1.7;
    padding: 16px;
    border-top: 1px solid var(--fog);
}

/* Save trip modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27,47,94,0.45);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 12px 48px rgba(27,47,94,0.22);
    position: relative;
}
.modal-logo {
    display: block;
    height: 75px;
    width: auto;
    margin: 0 auto 20px;
}
.modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.modal p  { color: var(--slate); font-size: 14px; margin-bottom: 18px; }
.modal input {
    width: 100%;
    border: 2px solid var(--fog);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 15px;
    outline: none;
    margin-bottom: 12px;
    font-family: inherit;
    color: var(--navy);
    transition: border-color 0.2s;
}
.modal input:focus { border-color: var(--teal); }
.modal-close {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: var(--mist);
    background: none;
    border: none;
    line-height: 1;
}
.modal-close:hover { color: var(--navy); }

/* ── HOW IT WORKS ─────────────────────────── */
.how-page { max-width: 640px; margin: 0 auto; padding: 52px 24px; }
.how-page h1 {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 38px;
    color: var(--navy);
    margin-bottom: 10px;
}
.how-page .intro { color: var(--slate); font-size: 17px; margin-bottom: 44px; }

.step { display: flex; gap: 20px; margin-bottom: 32px; }
.step-num {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px; flex-shrink: 0; margin-top: 2px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 5px; color: var(--navy); }
.step p  { color: var(--slate); font-size: 15px; }

.honesty-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--fog);
}
.honesty-box h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.honesty-box p  { color: var(--slate); font-size: 15px; margin-bottom: 12px; }
.sponsor-note {
    background: #FFF8EC;
    border-left: 4px solid var(--amber);
    padding: 13px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    margin-top: 16px;
    color: var(--navy);
}

/* ── UTILITIES ────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 520px) {
    .hero { padding: 36px 16px 32px; }
    .bubble { max-width: 94%; }
    .card-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
    .btn-book { width: 100%; text-align: center; }
    .results-actions { flex-direction: column; }
    .btn-secondary { justify-content: center; }
}
