/* ========================================
   Encontre Aqui - Premium Styles
   Design inspirado em Uber com foco em usabilidade
   ======================================== */

:root {
    /* Colors - Vibrant and Modern */
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #06B6D4;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);

    /* Neutrals */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Spacing */
    --section-padding: 80px 0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background-color: #FFFFFF;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--gray-900) !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, #FFFFFF 100%);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
}

.hero-image i {
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Search Bar - Enhanced for Mobile */
.search-bar-large {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 12px 12px 12px 24px;
    /* Borda visível para melhor identificação */
    border: 2px solid rgba(79, 70, 229, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(79, 70, 229, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar-large:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15), 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.search-bar-large:hover {
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.search-bar-large i.bi-search {
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 12px;
    opacity: 0.7;
}

.search-bar-large input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 8px;
    color: var(--gray-900);
    font-weight: 500;
}

.search-bar-large input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.search-bar-large .btn-search {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-bar-large .btn-search:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Categories Section */
.categories-section {
    padding: var(--section-padding);
}

.category-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.category-desc {
    color: var(--gray-600);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Nearby Section */
.nearby-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

/* Location Search - Enhanced with Border */
.location-search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 12px 12px 12px 24px;
    /* Borda visível destacada */
    border: 2px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(79, 70, 229, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
    flex-wrap: nowrap;
    position: relative;
}

.location-search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.18), 0 0 0 4px rgba(79, 70, 229, 0.12);
    transform: translateY(-2px);
}

.location-search-container:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.location-search-container i.bi-geo-alt-fill {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.location-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 16px;
    min-width: 200px;
    color: var(--gray-900);
    font-weight: 500;
}

.location-search-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.btn-location-search {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    /* Não encolhe */
}

.btn-location-search:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.btn-my-location {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50px;
    width: 48px;
    height: 48px;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Não encolhe */
}

.btn-my-location:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Real Map Container */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.real-map {
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    z-index: 1;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.map-popup-card {
    padding: 15px;
}

.map-popup-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.map-popup-card .verified-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
}

/* Custom Marker Icon */
.custom-marker {
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
    z-index: 1000;
}

/* Category Filters */
.category-filters {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.filter-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.filter-button i {
    font-size: 1.1rem;
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-400);
}

.filter-button.active {
    border-width: 2px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.filter-button.all {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.filter-button.all.active {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

/* Professional Cards */
.professional-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.professional-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.prof-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.verified-badge {
    background: var(--gradient-success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rating-stars {
    color: #F59E0B;
}

/* How It Works Section */
.how-it-works-section {
    padding: var(--section-padding);
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.step-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Chat Widget */
.chat-widget-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-widget-trigger:hover {
    transform: scale(1.1);
}

.chat-widget-trigger .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    font-size: 0.7rem;
    padding: 4px 6px;
}

.chat-widget {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 60px);
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pulse-dot {
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.btn-close-chat {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.btn-close-chat:hover {
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
    background: var(--gray-50);
}

.chat-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 80%;
}

.bot-message .message-content {
    background: white;
    color: var(--gray-900);
    border-bottom-left-radius: 4px;
}

.user-message {
    text-align: right;
}

.user-message .message-content {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.chat-input-container {
    padding: 16px;
    background: white;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--gray-300);
    border-radius: 24px;
    padding: 12px 20px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary);
}

.btn-send-message {
    background: var(--gradient-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send-message:hover {
    transform: scale(1.1);
}

.chat-professional-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    max-width: 100%;
}

/* Login Modal */
.login-persona-btn {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.login-persona-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.persona-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ========================================
   Responsive Design - Mobile First
   ======================================== */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {

    /* Typography */
    .section-title {
        font-size: 1.5rem;
    }

    h1.display-6 {
        font-size: 1.5rem !important;
    }

    /* Containers */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero/Search Section - UMA LINHA EM MOBILE */
    .search-bar-large {
        flex-direction: row !important;
        /* Manter em LINHA */
        flex-wrap: nowrap !important;
        padding: 8px !important;
        border-radius: 50px !important;
        max-width: 100% !important;
        gap: 8px !important;
    }

    .search-bar-large i.bi-search {
        flex-shrink: 0 !important;
        font-size: 1.1rem !important;
        margin-right: 4px !important;
    }

    .search-bar-large input {
        flex: 1 !important;
        min-width: 100px !important;
        /* Largura mínima */
        padding: 10px 8px !important;
        font-size: 0.9rem !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    /* Placeholder compacto */
    .search-bar-large input::placeholder {
        font-size: 0.85rem !important;
    }

    .btn-search {
        /* Botão compacto: só ícone */
        flex-shrink: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem !important;
        margin: 0 !important;
    }

    /* Location Search - UMA LINHA EM MOBILE */
    .location-search-container {
        flex-wrap: nowrap !important;
        /* NÃO quebrar linha */
        padding: 8px !important;
        gap: 6px !important;
        overflow-x: auto;
        /* Se necessário, scroll horizontal */
    }

    .location-search-container i.bi-geo-alt-fill {
        flex-shrink: 0 !important;
        font-size: 1.1rem !important;
    }

    .location-search-input {
        flex: 1 !important;
        min-width: 120px !important;
        /* Largura mínima */
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    /* Placeholder menor em mobile */
    .location-search-input::placeholder {
        font-size: 0.85rem !important;
    }

    .btn-location-search {
        /* Botão compacto: só ícone */
        flex-shrink: 0 !important;
        min-width: 44px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        font-size: 0 !important;
        /* Esconde texto */
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Mostra apenas o ícone */
    .btn-location-search i {
        font-size: 1.1rem !important;
        display: block !important;
    }

    .btn-my-location {
        flex-shrink: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        margin: 4px;
        font-size: 1.2rem !important;
    }

    /* ========================================
       ESPAÇAMENTOS MOBILE PADRONIZADOS
       ======================================== */

    /* Containers - Padding lateral consistente */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Hero Section - Compacto */
    .hero-section {
        padding: 1.5rem 0 !important;
    }

    /* Seções Gerais - Espaçamento vertical reduzido */
    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .nearby-section {
        padding-top: 1rem !important;
        padding-bottom: 1.5rem !important;
    }

    .categories-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Titles - Margin bottom reduzido */
    .section-title {
        margin-bottom: 1rem !important;
        font-size: 1.5rem !important;
    }

    h1.display-6 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Map Container - Altura e espaçamento */
    .map-container {
        margin-bottom: 1.5rem !important;
        margin-top: 0 !important;
    }

    .real-map {
        height: 350px !important;
    }

    /* Rows - Gap entre elementos */
    .row {
        margin-bottom: 1rem !important;
    }

    /* Category Filters - Espaçamento reduzido */
    .category-filters {
        margin-bottom: 1rem !important;
        padding: 15px !important;
    }

    /* Professional Cards - Gap entre cards */
    .professional-card {
        margin-bottom: 1rem !important;
    }

    .filter-button i {
        font-size: 1rem;
    }

    .filter-button span {
        font-size: 0.75rem;
    }

    /* Professional Cards */
    .professional-card {
        margin-bottom: 1rem;
    }

    .prof-avatar {
        width: 50px !important;
        height: 50px !important;
    }

    /* Category Cards */
    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-icon {
        font-size: 2rem !important;
    }

    /* Chat Widget */
    .chat-widget {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 120px);
        bottom: 80px !important;
        right: 10px !important;
    }

    .chat-widget-trigger {
        width: 55px !important;
        height: 55px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 1.3rem !important;
    }

    /* Modal */
    .modal-dialog {
        margin: 1rem;
    }

    /* Login Personas */
    .login-persona-btn {
        padding: 0.75rem !important;
        font-size: 0.9rem;
    }

    .persona-avatar {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    h1.display-6 {
        font-size: 1.75rem !important;
    }

    .search-bar-large {
        padding: 8px 8px 8px 20px;
        max-width: 100%;
    }

    .search-bar-large input {
        font-size: 0.95rem;
    }

    .map-container {
        height: 350px !important;
    }

    .filter-button {
        flex: 0 0 calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
        font-size: 0.8rem;
    }

    .chat-widget {
        width: calc(100vw - 40px);
        bottom: 90px;
        right: 20px;
    }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }

    .section-title {
        font-size: 2rem;
    }

    .map-container {
        height: 400px;
    }

    .filter-button {
        flex: 0 0 calc(25% - 8px);
        min-width: calc(25% - 8px);
    }
}

/* Touch Devices - Increase hit areas */
@media (hover: none) and (pointer: coarse) {

    .btn,
    button,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }

    .filter-button {
        min-height: 48px;
        padding: 12px 16px;
    }

    .professional-card {
        padding: 1.25rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(79, 70, 229, 0.1);
    }

    /* Larger touch targets for links */
    .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0 !important;
    }

    .map-container {
        height: 250px !important;
    }

    /* ========================================
       CHAT WIDGET MOBILE - POPUP FULLSCREEN
       ======================================== */

    .chat-widget {
        /* Ocupa quase toda a tela em mobile */
        position: fixed !important;
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
        top: 60px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: calc(100vh - 70px) !important;
        border-radius: 16px !important;
    }

    .chat-header {
        padding: 15px !important;
        min-height: auto !important;
    }

    .chat-messages {
        flex: 1 !important;
        max-height: none !important;
        height: auto !important;
        overflow-y: auto !important;
        padding: 15px !important;
    }

    .chat-input-container {
        padding: 12px !important;
        flex-shrink: 0 !important;
    }

    .chat-input {
        font-size: 0.9rem !important;
        padding: 10px 15px !important;
    }

    /* Cards de profissionais compactos */
    .chat-professional-card {
        padding: 12px !important;
        margin: 8px 0 !important;
    }

    .chat-professional-card img {
        width: 40px !important;
        height: 40px !important;
    }

    .chat-professional-card .btn {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }

    /* Botão trigger menor */
    .chat-widget-trigger {
        bottom: 20px !important;
        right: 20px !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* Safe Area for Notched Devices (iPhone X+) */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .navbar,
    .chat-widget-trigger {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }

    .filter-button.active {
        outline: 3px solid var(--primary);
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Placeholder for dark mode styles */
    /* Uncomment when implementing:
    :root {
        --gray-50: #1F2937;
        --gray-900: #F9FAFB;
    }
    */
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile-specific utilities */
@media (max-width: 768px) {
    .mobile-center {
        text-align: center !important;
    }

    .mobile-hidden {
        display: none !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}