/* ============================================
   KYRIAD CONCIERGE — STYLE.CSS
   Direction : SOBRE & LUMINEUX
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
    /* Couleurs principales */
    --primary: #3D4F5F;          /* Bleu-gris Kyriad (logo) */
    --secondary: #425563;        /* Bleu nuit */
    --accent: #C5A55A;           /* Or discret (CTA uniquement) */
    --accent-hover: #B8943D;     /* Or foncé hover */
    --accent-light: #E8D5A3;     /* Or clair */

    /* Fonds */
    --bg-page: #F5F3EF;          /* Beige chaud (lin) */
    --bg-card: #FFFFFF;
    --bg-header: #FFFFFF;
    --bg-input: #FFFFFF;

    /* Textes */
    --text-primary: #1B2A4A;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;

    /* Bordures */
    --border-card: #E5E7EB;
    --border-input: #D1D5DB;

    /* États */
    --success: #2D8B4E;
    --error: #DC2626;

    /* Bulles */
    --bubble-user: #1B2A4A;
    --bubble-user-text: #FFFFFF;
    --bubble-bot: #FFFFFF;
    --bubble-bot-text: #1B2A4A;

    /* Rayons */
    --radius-card: 12px;
    --radius-btn: 8px;
    --radius-input: 12px;
    --radius-bubble: 16px;

    /* Ombres */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-header: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-btn: 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Tailles */
    --header-height: 60px;
    --input-height: 100px;
    --sidebar-width: 300px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    height: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* Scrollbar subtile */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-card);
    border-radius: 4px;
}

/* ============================================
   HEADER
   ============================================ */
#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-card);
    box-shadow: var(--shadow-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 48px;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.2s;
}
.header-btn:hover {
    background: rgba(61, 79, 95, 0.08);
}

.header-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-brand {
    width: 16px;
    height: 16px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
}

.brand-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}

.header-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-profile:hover {
    background: var(--accent-hover);
}
.header-profile .icon-sm {
    width: 15px;
    height: 15px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    max-width: 85vw;
    background: var(--bg-card);
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
}
.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-card);
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.sidebar-new-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 12px 16px;
    padding: 10px 14px;
    background: none;
    border: 1px dashed var(--border-card);
    border-radius: var(--radius-btn);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.sidebar-new-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(61, 79, 95, 0.04);
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
}

.sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
}
.sidebar-empty p {
    font-size: 13px;
    line-height: 1.5;
}

.sidebar-conv {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 2px;
    border: none;
    background: none;
    text-align: left;
    font-family: var(--font-body);
}
.sidebar-conv:hover {
    background: rgba(61, 79, 95, 0.06);
}
.sidebar-conv.active {
    background: rgba(197, 165, 90, 0.1);
    border-left: 3px solid var(--accent);
}
.sidebar-conv-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-conv-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-conv-date {
    font-size: 11px;
    color: var(--text-light);
}
.sidebar-conv-delete {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-light);
    opacity: 0;
    transition: all 0.2s;
}
.sidebar-conv:hover .sidebar-conv-delete {
    opacity: 1;
}
.sidebar-conv-delete:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 4px;
}
.sidebar-item:hover {
    background: rgba(61, 79, 95, 0.06);
}
.sidebar-item.active {
    background: rgba(61, 79, 95, 0.1);
}
.sidebar-item-text {
    flex: 1;
    min-width: 0;
}
.sidebar-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-item-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}
.sidebar-item-delete {
    opacity: 0;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: opacity 0.2s, color 0.2s;
}
.sidebar-item:hover .sidebar-item-delete {
    opacity: 1;
}
.sidebar-item-delete:hover {
    color: var(--error);
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-card);
}

.sidebar-email {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.sidebar-logout {
    font-size: 12px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.sidebar-logout:hover {
    color: var(--error);
}

/* ============================================
   MAIN CHAT
   ============================================ */
#chat-main {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: var(--input-height);
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* --- Welcome Screen --- */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 24px;
    animation: welcomeFade 0.6s ease;
}

@keyframes welcomeFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-content {
    text-align: center;
    max-width: 360px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: hidden;
    animation: iconPulse 2s ease-in-out infinite;
}

.welcome-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(61, 79, 95, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(61, 79, 95, 0); }
}

.icon-welcome {
    width: 28px;
    height: 28px;
}

.welcome-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.welcome-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.welcome-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welcome-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    animation: cardSlideIn 0.35s ease both;
}
.welcome-suggestion:nth-child(1) { animation-delay: 0.15s; }
.welcome-suggestion:nth-child(2) { animation-delay: 0.25s; }
.welcome-suggestion:nth-child(3) { animation-delay: 0.35s; }
.welcome-suggestion:nth-child(4) { animation-delay: 0.45s; }

/* --- Chat Messages --- */
.chat-messages {
    padding: 20px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

/* --- Message Bubbles --- */
.message {
    display: flex;
    gap: 8px;
    max-width: 90%;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-bot {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    overflow: hidden;
}

.avatar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.message-avatar .icon-xs {
    width: 14px;
    height: 14px;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-bubble);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.message-user .message-bubble {
    background: var(--bubble-user);
    color: var(--bubble-user-text);
    border-bottom-right-radius: 4px;
}

.message-bot .message-bubble {
    background: var(--bubble-bot);
    color: var(--bubble-bot-text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
}

.message-bubble p {
    margin-bottom: 8px;
}
.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble strong {
    font-weight: 600;
}

/* Emojis rendus en gris monochrome — style Kyriad */
.emoji-muted {
    filter: grayscale(1) contrast(0.8);
    opacity: 0.55;
    font-style: normal;
    display: inline;
    vertical-align: baseline;
}

.message-bubble em {
    font-style: italic;
}

/* --- Signature Concierge --- */
.concierge-signature {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 4px;
}

/* --- Typing Indicator --- */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: var(--bubble-bot);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-bubble);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-card);
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite both;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* ============================================
   CARDS
   ============================================ */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 340px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: cardSlideIn 0.35s ease both;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }
.card:nth-child(4) { animation-delay: 0.26s; }
.card:nth-child(5) { animation-delay: 0.33s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #E5E7EB;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover .card-image img {
    transform: scale(1.03);
}

.card-body {
    padding: 14px 16px;
}

.card-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    margin-bottom: 6px;
}

.card-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-description {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Hotel highlights */
.card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(61, 79, 95, 0.06);
    border-radius: 4px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
}

/* Place/Restaurant tip */
.card-tip {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(197, 165, 90, 0.08);
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.5;
}
.card-tip-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Rating */
.card-rating {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

/* Card actions */
.card-actions {
    display: flex;
    gap: 8px;
}

.card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-btn);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.card-btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-btn);
}
.card-btn-primary:hover {
    background: var(--accent-hover);
}

.card-btn-outline {
    background: none;
    border: 1px solid var(--border-card);
    color: var(--text-primary);
}
.card-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.card-btn-saved {
    border-color: var(--success) !important;
    color: var(--success) !important;
    pointer-events: none;
    opacity: 0.8;
}

/* ============================================
   SAVE BANNER (inline dans le chat)
   ============================================ */
.save-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 16px;
    max-width: 340px;
    animation: fadeInUp 0.4s ease;
    border-left: 3px solid var(--accent);
}

.save-banner-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.save-banner-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.save-banner-form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.save-banner-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.save-banner-input:focus {
    border-color: var(--primary);
}

.save-banner-submit {
    padding: 8px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.save-banner-submit:hover {
    background: var(--accent-hover);
}

.save-banner-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-light);
}
.save-banner-consent input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.save-banner-consent a {
    color: var(--primary);
    text-decoration: underline;
}
.save-banner-consent.shake {
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.save-banner-dismiss {
    font-size: 12px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.save-banner-dismiss:hover {
    color: var(--text-secondary);
}

/* Code verification */
.save-banner-code {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.save-banner-code input {
    width: 38px;
    height: 42px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-btn);
    outline: none;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: border-color 0.2s;
}
.save-banner-code input:focus {
    border-color: var(--primary);
}

.save-banner-message {
    font-size: 12px;
    color: var(--success);
    margin-top: 6px;
}
.save-banner-message.error {
    color: var(--error);
}

/* ============================================
   SUGGESTIONS BAR
   ============================================ */
.suggestions-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--input-height);
    z-index: 50;
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: linear-gradient(to top, var(--bg-page) 60%, transparent);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    animation: suggestSlideUp 0.3s ease;
}

@keyframes suggestSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.suggestions-bar::-webkit-scrollbar {
    display: none;
}

.suggestion-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.suggestion-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(61, 79, 95, 0.04);
}

/* ============================================
   INPUT BAR
   ============================================ */
.input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: var(--input-height);
    background: var(--bg-card);
    border-top: 1px solid var(--border-card);
    padding: 8px 16px 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-page);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-input);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.chat-input::placeholder {
    color: var(--text-light);
}
.chat-input:focus {
    border-color: var(--primary);
}

.btn-send {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-input);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-send:hover:not(:disabled) {
    background: var(--secondary);
}
.btn-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-send:active:not(:disabled) {
    transform: scale(0.95);
}

.input-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-light);
    margin-top: 4px;
}
.input-footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.input-footer-links a:hover {
    color: var(--text-secondary);
}

/* ============================================
   VOICE INPUT (Web Speech API)
   ============================================ */
.btn-voice {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-input);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-voice:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-voice.voice-active {
    background: var(--error);
    color: white;
    border-color: var(--error);
    animation: voicePulse 1.2s ease infinite;
}
@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

/* ============================================
   FULLSCREEN MAP
   ============================================ */
.fullmap-modal {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}
.fullmap-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-card);
    flex-shrink: 0;
}
.fullmap-close {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
}
.fullmap-close:hover { background: var(--bg-page); }
.fullmap-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    flex: 1;
}
.fullmap-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: #FDF6E3;
    padding: 4px 10px;
    border-radius: 20px;
}
.fullmap-filters {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-card);
    overflow-x: auto;
    align-items: center;
    flex-shrink: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.fullmap-filters::-webkit-scrollbar { display: none; }
.fullmap-select {
    padding: 6px 10px;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-size: 12px;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-card);
    outline: none;
    flex-shrink: 0;
    min-width: 140px;
}
.fullmap-select:focus { border-color: var(--accent); }
.fullmap-chips {
    display: flex;
    gap: 6px;
}
.fullmap-chip {
    padding: 5px 12px;
    border: 1px solid var(--border-card);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-secondary);
    background: var(--bg-card);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.fullmap-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.fullmap-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.fullmap-container {
    flex: 1;
    min-height: 0;
}

/* ============================================
   PROMO CARD (Phase 5.1)
   ============================================ */
.card-promo {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, #FFFDF7 0%, var(--bg-card) 100%);
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.promo-discount {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.promo-code-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.promo-code-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-page);
    border: 2px dashed var(--accent);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}
.promo-code-box:hover {
    background: #FFF8E7;
    border-color: var(--accent-hover);
}
.promo-code-box.promo-copied {
    background: #F0FFF4;
    border-color: var(--success);
}
.promo-code-box.promo-copied .promo-code-text::after {
    content: ' ✓ Copié !';
    font-size: 11px;
    color: var(--success);
    font-weight: 500;
}

.promo-code-text {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.promo-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.promo-expiry {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* ============================================
   CHECKLIST CARD (Phase 5.3)
   ============================================ */
.card-checklist {
    border-left: 3px solid var(--accent);
}

.checklist-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
}
.checklist-header .card-name {
    margin: 0;
    font-size: 16px;
}

.checklist-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.checklist-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-page);
    border-radius: 3px;
    overflow: hidden;
}

.checklist-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.checklist-progress-text {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.checklist-section {
    margin-bottom: 14px;
}

.checklist-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-card);
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}
.checklist-item:hover {
    background: var(--bg-page);
}

.checklist-checkbox {
    display: none;
}

.checklist-checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-input);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}
.checklist-checkmark i { opacity: 0; color: white; transition: opacity 0.15s; }

.checklist-checkbox:checked + .checklist-checkmark {
    background: var(--accent);
    border-color: var(--accent);
}
.checklist-checkbox:checked + .checklist-checkmark i {
    opacity: 1;
}

.checklist-checkbox:checked ~ .checklist-item-text {
    text-decoration: line-through;
    color: var(--text-light);
}

.checklist-item-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

.checklist-item-info .checklist-checkmark {
    border-color: var(--accent);
    background: #FFF8E7;
}
.checklist-item-info .checklist-checkmark i {
    opacity: 1;
    color: var(--accent);
}

.checklist-info-badge {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    background: #FFF8E7;
    padding: 1px 6px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.checklist-map-link {
    color: var(--primary);
    padding: 2px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.checklist-map-link:hover {
    opacity: 1;
    color: var(--accent);
}

.checklist-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-card);
}

.checklist-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-btn);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}
.checklist-save-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   WEATHER WIDGET (Phase 5.2)
   ============================================ */
.weather-widget {
    margin-top: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    animation: cardSlideIn 0.35s ease 0.35s both;
}

.weather-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border-card);
    background: var(--bg-page);
}

.weather-forecast {
    display: flex;
    padding: 10px 6px;
    overflow-x: auto;
    gap: 2px;
}

.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 52px;
    padding: 4px 6px;
    gap: 2px;
}

.weather-day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.weather-day-icon {
    font-size: 20px;
    line-height: 1;
}

.weather-day-temp {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-day-temp-min {
    font-size: 11px;
    color: var(--text-light);
}

/* ============================================
   QUICK ACTIONS (above input)
   ============================================ */
.quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-bottom: 7px;
    max-width: 600px;
    margin: 0 auto;
}

.qa-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 10px !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 18px !important;
    background: #FFFFFF !important;
    color: #6B7280 !important;
    font-size: 10.5px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    line-height: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.qa-btn:hover {
    border-color: #C5A55A !important;
    color: #C5A55A !important;
    background: #FFFDF5 !important;
}
.qa-btn:active {
    transform: scale(0.96);
}
.qa-btn svg {
    flex-shrink: 0;
    opacity: 0.5;
}
.qa-btn:hover svg {
    opacity: 1;
    stroke: #C5A55A;
}

/* ============================================
   PROFILE PANEL (Phase 7)
   ============================================ */
.profile-panel {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.profile-panel-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUpModal 0.3s ease;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.profile-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}
.profile-toggle input { opacity: 0; width: 0; height: 0; }
.profile-toggle-slider {
    position: absolute;
    inset: 0;
    background: #D1D5DB;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.25s;
}
.profile-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s;
}
.profile-toggle input:checked + .profile-toggle-slider {
    background: var(--accent);
}
.profile-toggle input:checked + .profile-toggle-slider::before {
    transform: translateX(20px);
}

.profile-prefs-list {
    padding: 12px 20px;
    min-height: 100px;
}

.profile-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px 0;
    font-size: 13px;
}

.profile-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px 0;
    font-size: 13px;
    line-height: 1.6;
}

.profile-cat-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin: 14px 0 6px;
}
.profile-cat-title:first-child { margin-top: 0; }

.profile-pref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 8px;
}

.profile-pref-info {
    flex: 1;
    min-width: 0;
}

.profile-pref-key {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-pref-value {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.profile-pref-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-page);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.profile-pref-delete {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
    flex-shrink: 0;
    opacity: 0.5;
}
.profile-pref-delete:hover {
    color: var(--error);
    opacity: 1;
}

.profile-add-section {
    padding: 14px 20px 16px;
    border-top: 1px solid var(--border-card);
}

.profile-add-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-add-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.profile-select,
.profile-input {
    padding: 7px 10px;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-size: 12px;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-card);
    outline: none;
}
.profile-select { width: 110px; flex-shrink: 0; }
.profile-input { flex: 1; min-width: 0; }
.profile-select:focus,
.profile-input:focus { border-color: var(--accent); }

.profile-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.profile-add-btn:hover { background: var(--accent-hover); }

.sidebar-profile-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 0;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--accent);
    cursor: pointer;
    transition: opacity 0.15s;
}
.sidebar-profile-btn:hover { opacity: 0.8; }

/* ============================================
   SHARE MODAL (Phase 6.4)
   ============================================ */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeInQuick 0.2s ease;
}
@keyframes fadeInQuick { from { opacity: 0; } to { opacity: 1; } }

.share-modal-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUpModal 0.3s ease;
    padding: 0 0 env(safe-area-inset-bottom, 16px);
}
@keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-card);
}
.share-modal-header h3 {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 600;
}

.share-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.15s;
}
.share-close-btn:hover { background: var(--bg-page); }

.share-preview {
    padding: 16px 20px;
    text-align: center;
}
.share-preview canvas {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.share-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 12px;
}

.share-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border-card);
    border-radius: 10px;
    background: var(--bg-card);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}
.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.share-btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.share-btn-primary:hover {
    background: var(--accent-hover);
    color: white;
}

.share-channels {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border-card);
}

.share-channel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-page);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.share-channel:hover {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.08);
}

.share-channel-icon {
    font-size: 22px;
}

.share-copied {
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
    animation: fadeInQuick 0.3s ease;
}

/* ============================================
   FEEDBACK MODAL (Phase 6.2)
   ============================================ */
.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.feedback-modal-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUpModal 0.3s ease;
    padding: 0 0 env(safe-area-inset-bottom, 16px);
}

.feedback-step {
    padding: 20px;
}

.feedback-question {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.feedback-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.feedback-star {
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.15s;
    filter: grayscale(1) opacity(0.3);
}
.feedback-star:hover,
.feedback-star.active {
    filter: none;
    transform: scale(1.15);
}

.feedback-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.feedback-chip {
    padding: 8px 14px;
    border: 1px solid var(--border-card);
    border-radius: 20px;
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s;
}
.feedback-chip:hover { border-color: var(--accent); }
.feedback-chip.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.feedback-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-input);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-primary);
    resize: vertical;
    outline: none;
    margin-bottom: 16px;
}
.feedback-textarea:focus { border-color: var(--accent); }

.feedback-next-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s;
}
.feedback-next-btn:hover { background: var(--accent-hover); }

.feedback-success {
    text-align: center;
    padding: 32px 20px;
}
.feedback-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.feedback-success-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.feedback-success-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feedback-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-card);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.feedback-google-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   IFRAME MODAL
   ============================================ */
.iframe-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.iframe-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-card);
    background: var(--bg-header);
}

.iframe-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-btn);
    transition: background 0.2s;
}
.iframe-close-btn:hover {
    background: rgba(61, 79, 95, 0.08);
}

.iframe-title {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.iframe-content {
    flex: 1;
    width: 100%;
    border: none;
}

.iframe-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-card);
    background: var(--bg-header);
}

.btn-back-chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s;
}
.btn-back-chat:hover {
    background: var(--accent-hover);
}

/* ============================================
   ICON SIZES
   ============================================ */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 20px; height: 20px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 40px; height: 40px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    #chat-main {
        max-width: 640px;
        margin: 0 auto;
    }

    .chat-messages {
        padding: 24px 20px;
    }

    .suggestions-bar {
        max-width: 640px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
        animation: none;
    }

    .input-wrapper {
        max-width: 600px;
    }

    .message {
        max-width: 80%;
    }

    .cards-container {
        max-width: 380px;
    }

    .welcome-title {
        font-size: 32px;
    }

    .share-modal,
    .feedback-modal,
    .profile-panel {
        align-items: center;
    }

    .share-modal-content,
    .feedback-modal-content,
    .profile-panel-content {
        border-radius: 16px;
        max-width: 440px;
        margin: 20px;
    }
}

@media (min-width: 1024px) {
    .sidebar {
        width: 320px;
    }

    #chat-main {
        max-width: 720px;
    }
}

/* Small screens */
@media (max-width: 360px) {
    .welcome-title { font-size: 24px; }
    .welcome-subtitle { font-size: 13px; }
    .card-name { font-size: 15px; }
    .save-banner { max-width: 100%; }
    .save-banner-code input { width: 34px; height: 38px; }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }

.fade-in {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   CARTE INTERACTIVE LEAFLET
   ============================================ */
.map-container {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    background: var(--bg-card);
    animation: cardSlideIn 0.4s ease 0.3s both;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-card);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
}

.map-header i, .map-header svg {
    color: var(--accent);
    width: 16px;
    height: 16px;
}

.map-header .map-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.map-leaflet {
    width: 100%;
    height: 260px;
}

@media (min-width: 640px) {
    .map-leaflet {
        height: 340px;
    }
}

/* Custom Leaflet Popup */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12) !important;
    font-family: 'Inter', sans-serif !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.map-popup {
    padding: 12px 14px;
    min-width: 180px;
    max-width: 240px;
}

.map-popup-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 14px;
    color: #1B2A4A;
    margin-bottom: 4px;
}

.map-popup-stars {
    font-size: 11px;
    color: #C5A55A;
    margin-bottom: 6px;
}

.map-popup-address {
    font-size: 11px;
    color: #6B7280;
    margin-bottom: 4px;
}

.map-popup-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.map-popup-tag {
    background: #F5F3EF;
    color: #3D4F5F;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.map-popup-btn {
    display: inline-block;
    background: #C5A55A;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    width: 100%;
    transition: background 0.2s;
}

.map-popup-btn:hover {
    background: #B8943D;
}

/* Kyriad custom marker */
.kyriad-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #1B2A4A;
    border: 2px solid #C5A55A;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.kyriad-marker-highlight {
    background: #C5A55A;
    border-color: #1B2A4A;
    color: #1B2A4A;
    width: 36px;
    height: 36px;
    font-size: 15px;
}

/* Override leaflet default icon tip */
.leaflet-popup-tip {
    background: white !important;
}
