/* =========================================================
   Parastoo AI - Style V2
   FINAL CONSOLIDATED VERSION
   Compatible with current index.php / conversation.js /
   home-tours.js / home-tours.php
   ========================================================= */

:root {
    --primary: #0EA5A8;
    --primary-dark: #0B7E81;
    --secondary: #2563EB;
    --accent: #F59E0B;

    --background: #F8FAFC;
    --surface: #FFFFFF;
    --surface-alt: #F1F5F9;

    --border: #E5E7EB;

    --text: #1F2937;
    --muted: #6B7280;

    --success: #16A34A;

    --tour-green: #16866D;
    --tour-green-soft: #EDF8F5;
    --tour-icon-bg: #F1F7F5;

    --shadow: 0 10px 35px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, .12);

    --radius: 24px;
    --radius-lg: 28px;
    --radius-sm: 18px;

    --transition: .25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.8;
}


/* =========================================================
   GENERAL
   ========================================================= */

.container {
    max-width: 920px;
    padding-top: 50px;
    padding-bottom: 60px;
}

.main-card {
    position: relative;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    padding: 38px 42px 22px;

    text-align: center;

    box-shadow: var(--shadow);
}

.main-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 6px;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );
}


/* =========================================================
   DEFAULT LOGO / TITLES
   ========================================================= */

.logo {
    display: inline-block;

    font-size: 60px;

    margin-bottom: 12px;

    animation: float 4s ease-in-out infinite;
}

h1 {
    color: var(--primary);

    font-size: 40px;
    font-weight: 800;

    margin-bottom: 4px;
}

h2 {
    color: var(--muted);

    font-size: 22px;
    font-weight: 400;

    margin-bottom: 20px;
}

.intro {
    max-width: 680px;

    margin: 18px auto 28px;

    color: #4B5563;

    font-size: 18px;

    line-height: 2.2;
}


/* =========================================================
   HOME PAGE
   ========================================================= */

html,
body {
    width: 100%;
}

body.home-page {
    min-height: 100vh;
    min-height: 100dvh;

    overflow: hidden;
}


/* =========================================================
   HOME CONTAINER
   ========================================================= */

.home-page .home-container {
    width: 100%;

    height: 100vh;
    height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px;
}


/* =========================================================
   HOME HERO
   ========================================================= */

.home-page .home-hero {
    width: 100%;
    max-width: 920px;

    padding: 24px 34px 18px;

    text-align: center;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}


/* =========================================================
   HOME BRAND / LOGO
   ========================================================= */

.home-brand {
    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 2px;
}

.main-logo {
    width: 220px;
    max-width: 62%;

    height: auto;

    display: block;

    animation: logoFadeUp 1.4s ease-out both;
}

@keyframes logoFadeUp {

    from {
        opacity: 0;
        transform:
            translateY(12px)
            scale(.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   HOME TITLES
   ========================================================= */

.home-page .home-hero h1 {
    color: var(--primary);

    font-size: 32px;
    font-weight: 800;

    line-height: 1.3;

    margin: 2px 0 3px;
}

.home-page .home-hero h2 {
    color: var(--muted);

    font-size: 14px;
    font-weight: 400;

    line-height: 1.6;

    margin: 0;
}

.home-page .home-hero .intro {
    max-width: 650px;

    margin: 12px auto 16px;

    color: #4B5563;

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   MODE CARDS
   ========================================================= */

.mode-container {
    display: grid;

    grid-template-columns: 1.08fr 1fr;

    gap: 14px;

    margin-top: 0;
}

.home-page .mode-card {
    position: relative;

    min-height: 175px;

    padding: 20px 22px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    cursor: pointer;

    overflow: hidden;
     z-index: 1;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.home-page .mode-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(14,165,168,.04),
            rgba(37,99,235,.04)
        );

    opacity: 0;
    pointer-events: none;

    transition: opacity .25s ease;
}

.home-page .mode-card:hover {
    transform: translateY(-5px);

    border-color: var(--primary);

    box-shadow: var(--shadow-lg);
}

.home-page .mode-card:hover::after {
    opacity: 1;
}


/* =========================================================
   MODE VARIANTS
   ========================================================= */

.home-page .mode-primary {
    background:
        linear-gradient(
            145deg,
            #FFFFFF 0%,
            #F2FFFF 100%
        );

    border: 2px solid rgba(14,165,168,.22);
}

.home-page .mode-secondary {
    background: #FFFFFF;
}


/* =========================================================
   MODE ICON
   ========================================================= */

.home-page .mode-icon {
    position: relative;

    z-index: 1;

    font-size: 40px;

    line-height: 1;

    margin-bottom: 10px;

    transition: transform .25s ease;
}

.home-page .mode-card:hover .mode-icon {
    transform:
        translateY(-3px)
        scale(1.04);
}


/* =========================================================
   MODE TEXT
   ========================================================= */

.home-page .mode-card h3 {
    position: relative;

    z-index: 1;

    color: var(--text);

    font-size: 19px;

    font-weight: 700;

    line-height: 1.5;

    margin-bottom: 5px;
}

.home-page .mode-card p {
    position: relative;

    z-index: 1;

    max-width: 360px;

    min-height: auto;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.8;

    margin-bottom: 8px;
}


/* =========================================================
   MODE BADGE
   ========================================================= */

.home-page .mode-card .badge {
    position: absolute;

    right: 14px;
    top: 12px;

    z-index: 2;

    background: var(--success) !important;

    border-radius: 50px;

    padding: 4px 10px;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   MODE ACTION
   ========================================================= */

.home-page .mode-action {
    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;

    gap: 6px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 800;
}

.home-page .mode-action span {
    font-size: 18px;

    transition:
        transform .25s ease;
}

.home-page .mode-card:hover .mode-action span {
    transform: translateX(-4px);
}


/* Remove old pseudo action */

.home-page .mode-card::before {
    display: none;
}


/* =========================================================
   HOME NOTE
   ========================================================= */

.home-page .home-note {
    margin-top: 10px;

    color: #64748B;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   HOME TOUR STRIP
   ========================================================= */

.home-tour-strip {
    width: 100%;

    margin-top: 14px;

    padding: 11px 13px 9px;

    background:
        rgba(255,255,255,.98);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow:
        0 6px 18px rgba(15,23,42,.05);

    direction: rtl;
}


/* =========================================================
   TOUR STRIP HEADER
   ========================================================= */

.home-tour-strip-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 9px;
}

.home-tour-strip-title {
    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 0;
}

.home-tour-strip-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--tour-icon-bg);

    color: var(--tour-green);

    font-size: 16px;
}

.home-tour-strip-title h3 {
    margin: 0;

    color: var(--text);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.5;
}

.home-tour-strip-title span {
    display: block;

    margin-top: 1px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   TOUR ARROWS
   ========================================================= */

.home-tour-controls {
    display: flex;

    align-items: center;

    gap: 5px;

    flex: 0 0 auto;
}

.home-tour-arrow {
    width: 29px;
    height: 29px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.home-tour-arrow:hover {
    background: var(--tour-green);

    border-color: var(--tour-green);

    color: #fff;
}

.home-tour-arrow:active {
    transform: scale(.93);
}

.home-tour-arrow:disabled {
    opacity: .35;

    cursor: default;

    pointer-events: none;
}


/* =========================================================
   TOUR HORIZONTAL LIST
   ========================================================= */

.home-tours-list {
    width: 100%;

    display: flex;

    align-items: stretch;

    gap: 9px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: none;

    padding: 2px 2px 5px;

    direction: rtl;

    cursor: grab;

    user-select: none;

    -webkit-overflow-scrolling: touch;
}

.home-tours-list::-webkit-scrollbar {
    display: none;
}

.home-tours-list.is-dragging {
    cursor: grabbing;

    scroll-behavior: auto;
}

.home-tours-list.is-dragging .home-tour-card {
    pointer-events: none;
}


/* =========================================================
   HOME TOUR CARD
   ========================================================= */

.home-tour-card {
    position: relative;

    flex: 0 0 220px;

    min-height: 112px;

    padding: 9px 10px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 13px;

    box-shadow:
        0 3px 10px rgba(15,23,42,.04);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.home-tour-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(14,165,168,.35);

    box-shadow:
        0 8px 20px rgba(15,23,42,.08);
}


/* =========================================================
   TOUR CARD TOP
   ========================================================= */

.home-tour-card-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 5px;
}

.home-tour-destination {
    min-width: 0;
}

.home-tour-destination strong {
    display: block;

    color: var(--text);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.5;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.home-tour-country {
    display: block;

    margin-top: 1px;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.4;
}

.home-tour-code {
    flex: 0 0 auto;

    padding: 2px 6px;

    border-radius: 6px;

    background: var(--surface-alt);

    color: var(--muted);

    font-size: 8px;

    font-weight: 500;
}


/* =========================================================
   TOUR HOTEL
   ========================================================= */

.home-tour-hotel {
    display: flex;

    align-items: center;

    min-width: 0;

    gap: 5px;

    margin-bottom: 5px;

    color: var(--text);

    font-size: 10px;
}

.home-tour-hotel i {
    flex: 0 0 auto;

    color: var(--tour-green);

    font-size: 12px;
}

.home-tour-hotel-name {
    min-width: 0;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.home-tour-stars {
    flex: 0 0 auto;

    color: var(--accent);

    font-size: 9px;

    white-space: nowrap;
}


/* =========================================================
   TOUR INFO
   ========================================================= */

.home-tour-info {
    display: flex;

    align-items: center;

    flex-wrap: nowrap;

    gap: 9px;

    margin-bottom: 5px;

    overflow: hidden;
}

.home-tour-info-item {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    white-space: nowrap;

    color: var(--muted);

    font-size: 9px;
}

.home-tour-info-item i {
    color: var(--tour-green);

    font-size: 11px;
}


/* =========================================================
   TOUR BOTTOM
   ========================================================= */

.home-tour-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    padding-top: 5px;

    border-top: 1px solid #F1F5F9;
}

.home-tour-date {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    min-width: 0;

    color: var(--muted);

    font-size: 8px;

    line-height: 1.5;

    direction: rtl;

    white-space: nowrap;
}

.home-tour-date i {
    color: var(--tour-green);

    font-size: 10px;
}

.home-tour-price {
    flex: 0 0 auto;

    text-align: left;

    white-space: nowrap;
}

.home-tour-price strong {
    display: block;

    color: var(--tour-green);

    font-size: 13px;

    font-weight: 800;

    line-height: 1.3;
}

.home-tour-price span {
    display: block;

    color: var(--muted);

    font-size: 7px;

    line-height: 1.3;
}

.home-tour-foreign {
    margin-top: 1px;

    color: var(--tour-green);

    font-size: 9px;

    font-weight: 700;

    direction: ltr;

    line-height: 1.3;
}


/* =========================================================
   TOUR LOADING / EMPTY / ERROR
   ========================================================= */

.home-tour-loading,
.home-tour-empty {
    width: 100%;

    min-height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: var(--muted);

    font-size: 10px;
}

.home-tour-error {
    width: 100%;

    padding: 12px;

    text-align: center;

    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   CHAT CARD
   ========================================================= */

.chat-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}


/* =========================================================
   PROGRESS
   ========================================================= */

.progress {
    height: 8px;

    margin: 30px 30px 0;

    background: #EEF2F7;

    border-radius: 999px;
}

.progress-bar {
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    border-radius: 999px;

    transition: .4s ease;
}


/* =========================================================
   WIZARD QUESTION
   ========================================================= */

#questionBox {
    padding: 35px;
}

.question-title {
    color: var(--text);

    font-size: 28px;

    font-weight: 800;

    line-height: 1.6;

    margin-bottom: 30px;
}

.answer {
    position: relative;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 18px 20px;

    margin-bottom: 16px;

    cursor: pointer;

    font-size: 17px;

    line-height: 1.8;

    transition: var(--transition);
}

.answer:hover {
    background: #F0FDFA;

    border-color: var(--primary);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(14,165,168,.08);
}

.answer.selected {
    background: var(--primary);

    color: #fff;

    border-color: var(--primary);

    box-shadow:
        0 10px 25px rgba(14,165,168,.25);
}


/* =========================================================
   CONVERSATION
   ========================================================= */

.conversation-layout {
    display: flex;

    flex-direction: column;

    height: 78vh;
}

#conversationMessages {
    flex: 1;

    min-height: 0;

    overflow-y: auto;

    padding: 28px;

    background:
        linear-gradient(
            to bottom,
            #FAFCFE,
            #F8FAFC
        );

    scroll-behavior: smooth;
}

#conversationMessages::-webkit-scrollbar {
    width: 8px;
}

#conversationMessages::-webkit-scrollbar-thumb {
    background: #CBD5E1;

    border-radius: 999px;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.message {
    position: relative;

    max-width: 78%;

    padding: 18px 22px;

    margin-bottom: 22px;

    border-radius: 24px;

    line-height: 2;

    word-wrap: break-word;

    animation: fadeIn .25s ease;
}

.message.assistant {
    margin-left: auto;

    background: var(--surface);

    border: 1px solid var(--border);

    border-top-right-radius: 10px;

    color: var(--text);

    box-shadow:
        0 6px 18px rgba(15,23,42,.06);
}

.message.user {
    margin-right: auto;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #fff;

    border-top-left-radius: 10px;

    box-shadow:
        0 10px 25px rgba(14,165,168,.25);
}


/* =========================================================
   MESSAGE LABELS
   ========================================================= */

.message.assistant::before {
    content: "🕊️";

    position: absolute;

    top: -14px;
    right: 12px;

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 50%;

    font-size: 16px;

    box-shadow:
        0 4px 10px rgba(15,23,42,.08);
}

.message.user::before {
    content: "شما";

    position: absolute;

    top: -14px;
    left: 12px;

    padding: 4px 10px;

    background: var(--primary-dark);

    color: #fff;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 4px 10px rgba(14,165,168,.25);
}


/* =========================================================
   MARKDOWN MESSAGE
   ========================================================= */

.message.assistant h2 {
    color: #0F766E;

    font-size: 20px;

    font-weight: 700;

    margin: 18px 0 12px;

    border-right: 4px solid #0EA5A8;

    padding-right: 10px;
}

.message.assistant ul {
    padding-right: 28px;

    margin: 14px 0;
}

.message.assistant li {
    margin: 10px 0;

    line-height: 2;
}

.message.assistant strong {
    color: #0F766E;

    font-weight: 700;
}

.message.assistant p {
    line-height: 2.1;

    margin-bottom: 14px;
}

.message.assistant blockquote {
    background: #F7FFFF;

    border-right: 4px solid #0EA5A8;

    border-radius: 10px;

    padding: 12px;

    margin: 14px 0;
}

.message.assistant table {
    width: 100%;

    border-collapse: collapse;

    margin: 15px 0;
}

.message.assistant th,
.message.assistant td {
    border: 1px solid #E5E7EB;

    padding: 10px;
}


/* =========================================================
   SAMPLE QUESTION
   ========================================================= */

.sample-question {
    width: 92%;

    margin: 18px auto;

    padding: 16px;

    background: #F7FFFF;

    border: 1px solid #D8F2F3;

    border-radius: 18px;

    cursor: pointer;

    text-align: center;

    transition:
        opacity .25s,
        transform .25s,
        box-shadow .25s,
        border-color .25s;
}

.sample-question:hover {
    transform: translateY(-3px);

    border-color: #0EA5A8;

    box-shadow:
        0 10px 25px rgba(14,165,168,.12);
}

.sample-label {
    color: #64748B;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 10px;
}

.sample-text {
    color: #0EA5A8;

    font-size: 17px;

    font-weight: 700;

    line-height: 1.8;
}

.fade-out {
    opacity: 0;

    transform: translateY(-8px);
}


/* =========================================================
   CONVERSATION INPUT
   ========================================================= */

#conversationInput {
    padding: 20px;

    border-top: 1px solid var(--border);

    background: var(--surface);
}

.form-control {
    background: #fff;

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 16px 20px;

    font-size: 16px;

    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 .2rem rgba(14,165,168,.15);

    outline: none;
}

.form-control::placeholder {
    color: #9CA3AF;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    border: none;

    border-radius: 999px;

    padding: 14px 32px;

    font-size: 16px;

    font-weight: 700;

    transition: var(--transition);

    box-shadow:
        0 8px 20px rgba(14,165,168,.22);
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(14,165,168,.28);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-next {
    margin-top: 30px;
}


/* =========================================================
   LEAD HINT
   ========================================================= */

.lead-hint {
    margin: 8px 0 10px;

    text-align: center;

    direction: rtl;
}

.lead-hint-title {
    color: #8A8A8A;

    font-size: 12px;

    margin-bottom: 7px;
}

.lead-hint-actions {
    display: flex;

    justify-content: center;

    gap: 6px;
}

.lead-hint-actions button {
    background: #fff;

    border: 1px solid #DEE2E6;

    border-radius: 16px;

    padding: 3px 12px;

    color: #555;

    font-size: 12px;

    cursor: pointer;

    transition: all .2s ease;
}

.lead-hint-actions button:hover {
    background: #F5F5F5;

    border-color: #AAA;
}


/* =========================================================
   TOUR SELECTION
   ========================================================= */

.tour-selection {
    margin-top: 18px;

    padding: 18px;

    background: #FAFCFE;

    border: 1px solid var(--border);

    border-radius: 22px;
}

.tour-selection-header {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 15px;
}

.tour-selection-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--tour-icon-bg);

    color: var(--tour-green);

    font-size: 18px;
}

.tour-selection-title {
    color: var(--text);

    font-size: 17px;

    font-weight: 800;
}

.tour-selection-subtitle {
    color: var(--muted);

    font-size: 11px;
}

.tour-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   TOUR CARD
   ========================================================= */

.tour-card {
    position: relative;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 13px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.tour-card:hover {
    border-color: rgba(14,165,168,.45);

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(15,23,42,.07);
}

.tour-card.selected {
    border-color: var(--primary);

    background:
        linear-gradient(
            135deg,
            #F7FFFF,
            #FFFFFF
        );

    box-shadow:
        0 10px 25px rgba(14,165,168,.13);
}

.tour-main {
    width: 100%;
}

.tour-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;
}

.tour-radio {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    accent-color: var(--primary);
}

.tour-code {
    display: inline-flex;

    align-items: center;

    padding: 3px 8px;

    background: var(--surface-alt);

    color: var(--muted);

    border-radius: 8px;

    font-size: 10px;

    font-weight: 700;
}

.tour-destination {
    color: var(--text);

    font-size: 17px;

    font-weight: 800;
}

.tour-hotel {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;
}

.tour-hotel-name {
    min-width: 0;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.tour-stars {
    color: var(--accent);

    font-size: 11px;

    white-space: nowrap;
}

.tour-divider {
    height: 1px;

    margin: 10px 0;

    background: #EEF2F7;
}


/* =========================================================
   TOUR INFO ROW
   ========================================================= */

.tour-info-row {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}

.tour-info-row-bottom {
    margin-top: 7px;
}

.tour-info-item {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--muted);

    font-size: 11px;
}

.tour-info-item i {
    color: var(--tour-green);

    font-size: 13px;
}

.tour-info-item small {
    color: var(--muted);

    font-size: 10px;
}

.tour-info-item strong {
    color: var(--text);

    font-size: 11px;
}


/* =========================================================
   TOUR PRICE
   ========================================================= */

.tour-price-box {
    margin-top: 12px;

    padding: 10px 12px;

    background: var(--tour-green-soft);

    border: 1px solid rgba(22,134,109,.12);

    border-radius: 13px;
}

.tour-price-title {
    color: var(--muted);

    font-size: 10px;

    margin-bottom: 3px;
}

.tour-price-content {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}

.tour-price-rial {
    color: var(--tour-green);

    font-size: 17px;

    font-weight: 900;
}

.tour-price-currency {
    color: var(--muted);

    font-size: 9px;
}

.tour-price-foreign {
    color: var(--tour-green);

    font-size: 12px;

    font-weight: 800;

    direction: ltr;
}

.tour-passenger-label {
    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   TOUR STATUS
   ========================================================= */

.tour-selection-status {
    margin-top: 10px;

    padding: 7px 10px;

    background: var(--tour-green-soft);

    border-radius: 10px;

    color: var(--tour-green);

    text-align: center;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   TYPING
   ========================================================= */

.typing {
    display: flex;

    align-items: center;

    gap: 8px;
}

.typing-box {
    display: inline-flex;

    align-items: center;

    gap: 8px;
}

.typing-dots {
    display: flex;

    align-items: center;

    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;

    background: var(--primary);

    border-radius: 50%;

    animation: typing 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: .15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: .3s;
}

.typing-text {
    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   EXPERT / CONTACT / FOOTER
   ========================================================= */

.expert-button {
    border-radius: 999px;
}

.home-contact {
    margin-top: 20px;
}

.footer-logo {
    font-weight: 800;
}

.footer-title {
    font-weight: 700;
}

.footer-items {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}

.bottom-gradient {
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeIn {

    from {
        opacity: 0;

        transform: translateY(8px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);

        opacity: .45;
    }

    30% {
        transform: translateY(-4px);

        opacity: 1;
    }
}

@keyframes messageIn {

    from {
        opacity: 0;

        transform:
            translateY(10px)
            scale(.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes userIn {

    from {
        opacity: 0;

        transform:
            translateX(12px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}

@keyframes assistantIn {

    from {
        opacity: 0;

        transform:
            translateX(-12px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 768px) {

    .container {
        padding-top: 25px;

        padding-bottom: 30px;
    }

    /* HOME */

    .home-page .home-container {
        padding: 10px;
    }

    .home-page .home-hero {
        max-width: 680px;

        padding:
            20px
            17px
            14px;

        border-radius: 20px;
    }

    .main-logo {
        width: 185px;

        max-width: 64%;
    }

    .home-page .home-hero h1 {
        font-size: 27px;
    }

    .home-page .home-hero h2 {
        font-size: 12px;
    }

    .home-page .home-hero .intro {
        margin: 10px auto 13px;

        font-size: 12px;

        line-height: 1.8;
    }

    .mode-container {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .home-page .mode-card {
        min-height: 155px;

        padding:
            18px
            12px;
    }

    .home-page .mode-icon {
        font-size: 34px;

        margin-bottom: 8px;
    }

    .home-page .mode-card h3 {
        font-size: 16px;

        margin-bottom: 4px;
    }

    .home-page .mode-card p {
        font-size: 10px;

        line-height: 1.7;

        margin-bottom: 5px;
    }

    .home-page .mode-action {
        font-size: 11px;
    }

    .home-page .mode-action span {
        font-size: 16px;
    }

    .home-page .mode-card .badge {
        right: 9px;

        top: 8px;

        padding:
            3px
            8px;

        font-size: 9px;
    }

    .home-page .home-note {
        margin-top: 8px;

        font-size: 9px;
    }


    /* TOUR STRIP */

    .home-tour-strip {
        margin-top: 10px;

        padding:
            9px
            10px
            8px;

        border-radius: 14px;
    }

    .home-tour-strip-header {
        margin-bottom: 7px;
    }

    .home-tour-strip-icon {
        width: 30px;
        height: 30px;

        flex-basis: 30px;

        font-size: 14px;
    }

    .home-tour-strip-title h3 {
        font-size: 12px;
    }

    .home-tour-strip-title span {
        font-size: 8px;
    }

    .home-tour-card {
        flex-basis: 210px;

        min-height: 106px;

        padding: 8px 9px;
    }

    .home-tour-destination strong {
        font-size: 13px;
    }

    .home-tour-country {
        font-size: 8px;
    }

    .home-tour-hotel {
        font-size: 9px;
    }

    .home-tour-info-item {
        font-size: 8px;
    }

    .home-tour-price strong {
        font-size: 12px;
    }


    /* CHAT */

    #questionBox {
        padding: 25px;
    }

    .question-title {
        font-size: 24px;
    }

    .conversation-layout {
        height: 82vh;
    }

    #conversationMessages {
        padding: 20px;
    }

    .message {
        max-width: 88%;

        padding:
            15px
            18px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .home-page .home-container {
        padding: 7px;
    }

    .home-page .home-hero {
        padding:
            17px
            11px
            10px;

        border-radius: 18px;
    }

    .main-logo {
        width: 165px;

        max-width: 64%;
    }

    .home-page .home-hero h1 {
        font-size: 23px;
    }

    .home-page .home-hero h2 {
        font-size: 10px;
    }

    .home-page .home-hero .intro {
        font-size: 10px;

        margin:
            7px
            auto
            9px;
    }

    .mode-container {
        gap: 7px;
    }

    .home-page .mode-card {
        min-height: 140px;

        padding:
            14px
            8px;
    }

    .home-page .mode-icon {
        font-size: 29px;

        margin-bottom: 6px;
    }

    .home-page .mode-card h3 {
        font-size: 14px;
    }

    .home-page .mode-card p {
        font-size: 8px;

        line-height: 1.6;
    }

    .home-page .mode-action {
        font-size: 9px;
    }

    .home-page .home-note {
        font-size: 8px;

        margin-top: 6px;
    }


    /* TOUR STRIP */

    .home-tour-strip {
        margin-top: 8px;

        padding: 8px;
    }

    .home-tour-strip-title h3 {
        font-size: 11px;
    }

    .home-tour-strip-title span {
        font-size: 7px;
    }

    .home-tour-arrow {
        width: 26px;
        height: 26px;
    }

    .home-tour-card {
        flex-basis: 195px;

        min-height: 101px;
    }


    /* CHAT */

    #questionBox {
        padding: 18px;
    }

    .question-title {
        font-size: 21px;
    }

    .answer {
        padding:
            14px
            16px;

        font-size: 15px;
    }

    .message {
        max-width: 92%;

        padding:
            13px
            15px;

        margin-bottom: 18px;

        font-size: 14px;
    }

    .message.assistant h2 {
        font-size: 17px;
    }

    #conversationInput {
        padding: 12px;
    }

    .form-control {
        padding:
            13px
            15px;

        border-radius: 18px;
    }

    .btn-primary {
        padding:
            12px
            22px;

        font-size: 14px;
    }
}


/* =========================================================
   RESPONSIVE - SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .home-page .home-container {
        padding: 5px;
    }

    .home-page .home-hero {
        padding:
            14px
            8px
            8px;
    }

    .main-logo {
        width: 145px;
    }

    .home-page .home-hero h1 {
        font-size: 21px;
    }

    .home-page .home-hero h2 {
        font-size: 9px;
    }

    .home-page .home-hero .intro {
        font-size: 9px;

        margin:
            5px
            auto
            7px;
    }

    .home-page .mode-card {
        min-height: 128px;

        padding:
            11px
            6px;
    }

    .home-page .mode-icon {
        font-size: 26px;
    }

    .home-page .mode-card h3 {
        font-size: 12px;
    }

    .home-page .mode-card p {
        font-size: 7px;
    }

    .home-tour-card {
        flex-basis: 185px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;
    }
}



/* =========================================================
   LOGO VISIBILITY FIX
   ========================================================= */

.home-page .home-hero {
    overflow: visible;
}

.home-page .home-brand {
    position: relative;
    z-index: 5;

    min-height: 1px;

    overflow: visible;
}

.home-page .main-logo {
    position: relative;
    z-index: 5;

    width: 220px;
    max-width: 70%;

    height: auto;

    object-fit: contain;

    display: block;

    margin: 0 auto;

    overflow: visible;
}

@media (max-width: 768px) {

    .home-page .main-logo {
        width: 185px;
        max-width: 70%;
    }
}

@media (max-width: 576px) {

    .home-page .main-logo {
        width: 165px;
        max-width: 72%;
    }
}

@media (max-width: 390px) {

    .home-page .main-logo {
        width: 145px;
        max-width: 74%;
    }
}


/* =========================================================
   HOME MODE BUTTONS - FINAL
   ========================================================= */

.home-page .mode-card {
    cursor: pointer;
    position: relative;
}

.home-page .mode-card::before,
.home-page .mode-card::after {
    display: none !important;
    content: none !important;
}



/* =========================================================
   HOME MODE BUTTONS
   FINAL INTERACTION FIX
========================================================= */

.home-page .mode-container {
    position: relative;
    z-index: 20;
}

.home-page .mode-card {
    position: relative;
    z-index: 21;

    width: 100%;

    cursor: pointer;

    pointer-events: auto;

    border: 1px solid var(--border);

    font-family: inherit;

    color: inherit;

    text-align: center;

    appearance: none;
    -webkit-appearance: none;

    outline: none;

    margin: 0;
}

.home-page .mode-card > * {
    pointer-events: none;
}

.home-page .mode-card::before,
.home-page .mode-card::after {
    pointer-events: none !important;
}

.home-page .mode-card:focus {
    outline: none;
}

.home-page .mode-card:focus-visible {
    outline: 3px solid rgba(14,165,168,.25);
    outline-offset: 3px;
}

.home-page .mode-card:active {
    transform: translateY(-1px);
}


/* جلوگیری از دخالت بخش تورها */

.home-page .home-tour-strip {
    position: relative;
    z-index: 5;
}


/* خود کارت اصلی زیر دکمه‌ها */

.home-page .home-hero {
    position: relative;
}


/* =========================================================
   HOME PAGE - VERTICAL SCROLL FIX
   ========================================================= */

html {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

body.home-page {
    min-height: 100vh;
    min-height: 100dvh;

    height: auto;

    overflow-x: hidden;
    overflow-y: auto;
}


/* صفحه اصلی اجازه رشد بیشتر از ارتفاع نمایشگر را دارد */
.home-page .home-container {
    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    height: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 16px;

    overflow: visible;
}


/* در صورت بلند شدن محتوا، صفحه بتواند ادامه پیدا کند */
.home-page .home-hero {
    flex-shrink: 0;
}