@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #708238; /* Verde Oliva */
    --primary-hover: #556b2f;
    --text: #222;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; color: var(--text); }

/* Header e Nav */
.main-header { display: flex; justify-content: space-between; padding: 15px 80px; border-bottom: 1px solid #eee; align-items: center; background-color: white; position: relative; z-index: 1100; }

/* Botão Carrinho no Header */
.cart-icon-header {
    font-size: 20px; color: #555; margin-right: 20px; cursor: pointer; position: relative; display: none !important;
}
.cart-icon-header:hover { color: var(--primary); }
.cart-badge { position: absolute; top: -5px; right: -8px; background: #d32f2f; color: white; font-size: 10px; padding: 2px 5px; border-radius: 10px; }

.logo { color: var(--primary); font-weight: 800; font-size: 22px; }
/* Container do menu de usuário */
.user-menu-wrapper {
    display: flex;
    position: relative; /* Para posicionar o ponto vermelho */
    align-items: center;
    justify-content: center; /* Centraliza horizontalmente */
    gap: 12px;
    padding: 5px 8px; /* Ajuste para equilibrar o espaço interno */
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    background-color: #fff;
}

/* Notificações (Pontos Vermelhos) */
.main-notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: #d32f2f;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
    z-index: 10;
}

.menu-item-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #d32f2f;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

/* Badge de Contagem no Menu (Carrinho) */
.menu-badge {
    background-color: #d32f2f;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: bold;
}

/* O Avatar em si */

.user-avatar {
    width: 34px;
    height: 34px;
    background-color: #717171; /* Cor padrão cinza */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center; /* Garante o ícone do bonequinho no centro exato */
    color: white;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Transição suave para o verde */
    overflow: hidden;
}

/* Classe que será adicionada via JS após o login */
.user-logged-in {
    background-color: var(--primary) !important; /* Verde Oliva */
}

/* Ajuste no ícone interno para centralização absoluta */
.user-avatar i {
    display: block;
    line-height: 0;
}

/* Busca Arredondada */
.search-container { display: flex; justify-content: center; padding: 25px 0; }
.search-bar { display: flex; align-items: center; background: #fff; border: 1px solid #ddd; border-radius: 100px; padding: 8px 10px 8px 30px; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.search-item { display: flex; flex-direction: column; padding: 0 16px; }
.search-item label { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.search-item input, .search-item select { border: none; outline: none; background: transparent; font-size: 14px; }
.divider { width: 1px; height: 32px; background: #eee; }
.search-btn { background: var(--primary); color: white; border: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Dropdown Multi-select Desktop */
.custom-multiselect { position: relative; min-width: 150px; }
.select-display { cursor: pointer; font-size: 14px; color: #717171; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.select-display.has-value { color: #222; font-weight: 600; }
.custom-dropdown-content {
    position: absolute; top: 100%; left: 0; 
    background: white; border: 1px solid #ddd; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 1001;
    padding: 10px; min-width: 200px; display: none; margin-top: 10px;
}
.custom-dropdown-content label {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; cursor: pointer; font-size: 14px; color: #444; border-radius: 6px;
    text-transform: none; font-weight: 500;
}
.custom-dropdown-content label:hover { background: #f7f7f7; }
.custom-dropdown-content input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }

/* Autocomplete */
.search-item { position: relative; }
.autocomplete-list {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: white; border: 1px solid #ddd; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 10001;
    display: none; max-height: 200px; overflow-y: auto; color: #222;
}
.autocomplete-list div { padding: 10px 15px; cursor: pointer; font-size: 14px; }
.autocomplete-list div:hover { background: #f7f7f7; }

/* EFEITO ZOOM (RESTAURADO) */
.content-grid { padding: 20px 5%; max-width: 1400px; margin: 0 auto; }

/* --- FILTROS DE COMODIDADES (PILLS) --- */
.filters-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.filters-wrapper::-webkit-scrollbar { display: none; }

.filter-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #555;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-pill:hover { border-color: #aaa; transform: translateY(-1px); }

.filter-pill.active {
    background-color: #f0f5e0; /* Fundo verde bem claro */
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* --- COMODIDADES NA PÁGINA DA LOJA --- */
.comodidades-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.comodidade-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    background: #f9f9f9;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.comodidade-item i, .comodidade-option i {
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

/* --- SELETOR DE COMODIDADES (ADMIN) --- */
.comodidades-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.comodidade-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    background: white;
    font-size: 14px;
}
.comodidade-option:hover { border-color: #aaa; }
.comodidade-option.active { background-color: #f0f5e0; border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* Estilo Netflix (Linhas Horizontais) */
.category-section { margin-bottom: 40px; }
.category-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
    color: #222; 
    padding-left: 5px;
    border-left: 4px solid var(--primary);
    line-height: 1;
    margin-left: 10px;
}

.scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 20px 5px; /* Espaço para sombra */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    cursor: grab;
}

.scroll-wrapper.active {
    cursor: grabbing;
    scroll-behavior: auto; /* Remove smooth scroll durante o arrasto para fluidez */
}

.scroll-wrapper::-webkit-scrollbar { display: none; /* Chrome/Safari */ }

/* Carrossel de Serviços (Loja) */
.services-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 5px 20px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}
.services-carousel::-webkit-scrollbar { display: none; }
.services-carousel.active { cursor: grabbing; scroll-behavior: auto; }

.services-carousel .service-card {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
}

@media (max-width: 768px) {
    .services-carousel .service-card {
        flex: 0 0 240px;
        width: 240px;
        min-width: 240px;
    }
}

.service-card { 
    flex: 0 0 auto; 
    width: 260px; 
    position: relative;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.img-container { width: 100%; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card { cursor: pointer; }

/* Carrossel no Card */
.card-carousel { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: 12px; margin-bottom: 10px; }
.carousel-media { width: 100%; height: 100%; position: relative; background-color: #f0f0f0; }
.carousel-media img, .carousel-media video { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.3s; }
.carousel-media .active { opacity: 1; z-index: 1; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); color: white; border: none; cursor: pointer; padding: 5px 8px; z-index: 2; border-radius: 50%; font-size: 12px; transition: background 0.2s; }
.carousel-btn:hover { background: rgba(0,0,0,0.6); }
.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }

.card-info { padding: 5px 0; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.card-header h3 { margin: 0; font-size: 15px; font-weight: 600; color: #222; }
.card-header span { font-size: 14px; color: #222; }
.card-info p { margin: 2px 0; font-size: 14px; color: #717171; }
.card-sub-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}
.btn-favorito-card {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.2s, transform 0.2s;
    z-index: 5;
}
.btn-favorito-card:hover {
    transform: scale(1.1);
}
.btn-favorito-card.active {
    color: #e91e63; /* Rosa/Vermelho */
}

.card-info .price { color: #222; font-weight: 600; margin-top: 6px; }

/* Modais e Forms */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: white; width: 90%; max-width: 450px; border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.modal-header { display: flex; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; margin-right: 15px; }
.modal-body input { width: 100%; padding: 14px; margin-bottom: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; }
.password-wrapper { position: relative; }
.toggle-password { position: absolute; right: 15px; top: 15px; cursor: pointer; color: #777; }
.btn-principal { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.toggle-text { text-align: center; margin-top: 15px; font-size: 14px; }
.toggle-text a { color: var(--primary); font-weight: 700; text-decoration: none; }
/* Overlay de Carregamento/Sucesso */
.loading-overlay {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scissor-container {
    font-size: 50px;
    color: var(--primary); /* Verde Oliva */
    margin-bottom: 20px;
}

/* Animação de abrir e fechar a tesoura */
.fa-cut {
    animation: cut-animation 0.5s ease-in-out infinite alternate;
}

@keyframes cut-animation {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(-15deg) scale(1.2); }
}

.loading-text {
    font-weight: bold;
    color: var(--text);
    font-size: 18px;
}

/* Container principal para alinhar nome embaixo */
.user-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Wrapper do Menu */
.user-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    background: white;
    transition: box-shadow 0.2s;
}

/* Avatar Centralizado */
.user-avatar {
    width: 32px;
    height: 32px;
    background-color: #717171; /* Cinza padrão */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Classe de Login Sucesso (Verde Oliva) */
.user-logged-in {
    background-color: #708238 !important; /* Cor oliva conforme botão */
}

/* Nome do Usuário embaixo do ícone */
.user-name-label {
    font-size: 12px;
    margin-top: 4px;
    color: #444;
    font-weight: 600;
}

/* Tela Flutuante (Dropdown) */
.user-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
}

.user-dropdown ul { list-style: none; margin: 0; padding: 0; }
.user-dropdown li {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
}
.user-dropdown li:hover { background-color: #f7f7f7; }
.user-dropdown hr { border: 0; border-top: 1px solid #eee; margin: 8px 0; }

/* Estilo para a opção de Sair no menu flutuante */
.user-dropdown li[onclick="efetuarLogout()"]:hover {
    background-color: #fff1f1; /* Fundo levemente avermelhado ao passar o rato */
}

/* Garante que o separador <hr> seja discreto como no Airbnb */
.user-dropdown hr {
    border: 0;
    border-top: 1px solid #ebebeb;
    margin: 8px 0;
}

/* Garante que o menu flutuante apareça sobre o conteúdo */
.user-dropdown {
    display: none; /* Começa escondido */
    position: absolute;
    top: 60px; /* Ajuste conforme a altura do seu header */
    right: 20px;
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Sombra para dar profundidade */
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown ul { list-style: none; padding: 0; margin: 0; }

.user-dropdown li {
    padding: 12px 20px;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-dropdown li:hover {
    background-color: #f7f7f7; /* Efeito ao passar o mouse */
}

/* --- PÁGINA DE BUSCA (SPLIT SCREEN) --- */
.split-container { display: flex; height: calc(100vh - 80px); overflow: hidden; }
.list-column { width: 60%; overflow-y: auto; padding: 20px; box-sizing: border-box; }
.map-column { width: 40%; height: 100%; position: relative; }

.search-results-header { padding: 0 10px 20px 10px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.search-results-header h1 { font-size: 1.5rem; margin: 0 0 5px 0; }
.search-results-header p { color: #717171; margin: 0; font-size: 0.9rem; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* Card de Resultado */
.result-card { border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow 0.2s; }
.result-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.result-card.highlight { box-shadow: 0 0 0 2px var(--primary); }

/* Pinos de Preço no Mapa */
.price-pin {
    background: white;
    border-radius: 20px;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid #ddd;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.1s, background 0.1s, color 0.1s;
}
.price-pin:hover { transform: scale(1.1); z-index: 1000 !important; }
.price-pin.active { background: var(--primary); color: white; border-color: var(--primary); }

/* --- BUSCA MOBILE --- */
.mobile-search-trigger {
    display: none; /* Escondido no Desktop */
    width: 100%;
    padding: 0 24px;
    margin-top: 20px;
    justify-content: center;
}

.mobile-search-btn {
    width: 100%;
    max-width: 500px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 100px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: #717171;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s;
}
.mobile-search-btn:active { transform: scale(0.98); }
.mobile-search-btn i { color: var(--primary); }

.amenity-pill-select {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.amenity-pill-select.selected { background-color: #f0f5e0; border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* Service Pills (Botões Redondos) */
.service-pills-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 2px 15px 2px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.service-pills-container::-webkit-scrollbar { display: none; }

.service-pill-option {
    padding: 10px 20px;
    border: 1px solid #eee;
    border-radius: 30px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
}
.service-pill-option.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(112, 130, 56, 0.3);
}

@media (max-width: 768px) {
    .split-container { flex-direction: column-reverse; height: auto; }
    .list-column { width: 100%; height: auto; overflow: visible; }
    .map-column { width: 100%; height: 300px; position: sticky; top: 0; z-index: 900; }
    .main-header { padding: 15px 20px; }
    
    /* Alternância de Busca */
    .search-container .search-bar { display: none; }
    .mobile-search-trigger { display: flex; }
    
    /* Modal Fullscreen no Mobile */
    .modal-content.mobile-full {
        width: 100%; height: 100%; border-radius: 0; max-height: none; display: flex; flex-direction: column; padding: 20px;
    }
}

/* --- HELP CENTER (ESTILO AIRBNB) --- */
.hc-hero { text-align: center; padding: 60px 20px 40px 20px; background: white; }
.hc-title { font-size: 2rem; font-weight: 700; margin-bottom: 30px; color: #222; }

/* Busca Pílula */
.hc-search-wrapper { max-width: 600px; margin: 0 auto; position: relative; }
.hc-search-input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.2s;
    outline: none;
}
.hc-search-input:focus { background: white; box-shadow: 0 6px 16px rgba(0,0,0,0.1); border-color: #ccc; }
.hc-search-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--primary); color: white; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s;
}
.hc-search-btn:hover { background: var(--primary-hover); }

/* Abas de Navegação */
.hc-tabs { display: flex; justify-content: center; gap: 30px; margin-top: 30px; border-bottom: 1px solid #eee; }
.hc-tab {
    padding: 10px 5px; font-size: 14px; color: #717171; cursor: pointer; font-weight: 500; position: relative;
}
.hc-tab.active { color: #222; font-weight: 600; }
.hc-tab.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #222;
}

/* Banner Login */
.hc-login-banner {
    max-width: 1000px; margin: 40px auto; padding: 24px;
    border: 1px solid #ddd; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
    background: white;
}
.hc-login-text h3 { margin: 0 0 5px 0; font-size: 18px; }
.hc-login-text p { margin: 0; color: #717171; font-size: 14px; }

/* Grid de Guias (Cards Visuais) */
.hc-guides-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
    max-width: 1000px; margin: 40px auto;
}
.hc-guide-card {
    height: 200px; border-radius: 16px; overflow: hidden; position: relative; cursor: pointer;
    background-size: cover; background-position: center; display: flex; align-items: flex-end;
}
.hc-guide-content {
    width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white; font-weight: 600; font-size: 18px;
}

/* Grid de Artigos (FAQ) */
.hc-articles-section { max-width: 1000px; margin: 40px auto; }
.hc-articles-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 0 40px;
}
.hc-article-item {
    padding: 20px 0; border-bottom: 1px solid #eee; cursor: pointer; transition: opacity 0.2s;
}
.hc-article-item:hover { opacity: 0.7; }
.hc-article-title { font-weight: 600; font-size: 16px; margin-bottom: 5px; text-decoration: underline; text-decoration-color: #ddd; text-underline-offset: 4px; }
.hc-article-summary { color: #717171; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Footer Cards */
.hc-footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
    max-width: 1000px; margin: 60px auto; padding-bottom: 60px;
}
.hc-footer-card {
    background: #f7f7f7; border-radius: 12px; padding: 24px; min-height: 180px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.hc-footer-card.contact { background: white; border: 1px solid #ddd; }
.hc-footer-card h4 { margin: 0 0 10px 0; font-size: 18px; }
.hc-footer-card p { margin: 0; color: #717171; font-size: 14px; line-height: 1.5; }
.hc-btn-outline {
    display: inline-block; padding: 10px 20px; border: 1px solid #222; border-radius: 8px;
    color: #222; text-decoration: none; font-weight: 600; font-size: 14px; margin-top: 15px;
    text-align: center; transition: background 0.2s;
}
.hc-btn-outline:hover { background: #f7f7f7; }

@media (max-width: 768px) {
    .hc-login-banner { flex-direction: column; text-align: center; gap: 20px; }
    .hc-articles-grid { grid-template-columns: 1fr; }
    .hc-tabs { gap: 15px; overflow-x: auto; justify-content: flex-start; padding-bottom: 0; }
    .hc-tab { white-space: nowrap; }
}

/* --- CHAT WIDGET --- */
.chat-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9998;
    transition: transform 0.2s;
}
.chat-widget-btn:hover { transform: scale(1.1); }

.chat-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}
.chat-message.sent {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
}
.chat-message.received {
    align-self: flex-start;
    background: #e0e0e0;
    color: #333;
    border-bottom-left-radius: 2px;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white;
}
.chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}
.chat-footer button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Typing Indicator */
.chat-typing {
    align-self: flex-start;
    background: #e0e0e0;
    padding: 10px 14px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    margin-bottom: 10px;
    width: fit-content;
}

.typing-dots { display: flex; gap: 4px; }

.typing-dot {
    width: 6px; height: 6px; background: #888; border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    text-align: center;
}
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.4; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.cookie-banner button:hover { opacity: 0.9; }

@media (max-width: 768px) {
    .cookie-banner { flex-direction: column; gap: 10px; padding: 20px; }
}