/* ===========================================
   MOBILE CSS - AMS Realty

   Este arquivo contém APENAS overrides mobile.
   NUNCA editar style.css para mudanças mobile.

   Breakpoints:
   - max-width: 1024px  → Tablets landscape
   - max-width: 768px   → Tablets / Mobile
   - max-width: 480px   → Mobile pequeno

   Criado: 2026-03-02
   Atualizado: 2026-03-25
   =========================================== */

/* ===========================================
   GLOBAL - Previne overscroll horizontal
   =========================================== */
html {
    overscroll-behavior-x: none;
}

body {
    overscroll-behavior-x: none;
}

/* Esconder controles nativos de vídeo (botão play iOS) */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

/* Accordion do floor plan - escondido no desktop */
.floor-plan-content {
    display: none;
}

.floor-plan-image-inline {
    display: none;
}

/* Property Detail - Container principal */
.detail-container {
    overflow-x: clip;
    max-width: 100vw;
}

/* Seções que contêm carrosseis com margens negativas */
.category-hero-section,
.institutional-half,
.blog-home-grid,
.instagram-half,
.comparison-section,
.similar-section {
    overflow-x: clip;
    max-width: 100vw;
}

/* Carrosseis - garantir que não ultrapassem container */
.similar-grid,
.comparison-table {
    max-width: 100vw;
}


/* ==========================================
   TABLETS LANDSCAPE (até 1024px)
   ========================================== */
@media (max-width: 1024px) {

    /* === HOMEPAGE === */

    /* Hero Search - corrige input colapsado */
    .hero-quick-search {
        display: flex;
        max-width: 90%;
    }

    .hero-search-input {
        flex: 1 1 100%;
    }

    .hero-search-btn {
        flex: 0 0 50px;
        max-width: 50px;
    }

    /* Featured Hero - Carrossel */
    .featured-carousel-section {
        overscroll-behavior-x: contain;
    }

    .featured-hero-slide {
        background-size: cover !important;
        background-repeat: no-repeat;
    }

    /* Desabilita animação slowZoom no mobile - causa flash de redimensionamento */
    .featured-hero-slide.active,
    .featured-hero-slide.slide-in-right,
    .featured-hero-slide.slide-in-left {
        animation: none !important;
        transform: translateX(0);
    }

    .featured-hero-slide.slide-out-left {
        animation: slideOutToLeft 0.5s ease-out forwards !important;
    }

    .featured-hero-slide.slide-out-right {
        animation: slideOutToRight 0.5s ease-out forwards !important;
    }

    .featured-hero-info {
        padding: 16px 24px;
        padding-bottom: 24px;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px !important;
    }

    .featured-hero-title {
        font-size: 1.4em;
        margin-bottom: 0;
        text-align: center;
        width: 100%;
    }

    /* Featured Hero Summary - tablet mantém inline com wrap */
    .featured-hero-summary {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px !important;
    }

    .featured-hero-summary .summary-item {
        color: rgba(255, 255, 255, 1);
        font-size: 0.9em;
    }

    /* Category Grid - 2 colunas em tablet */
    .category-hero-grid.objectives-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-hero-card {
        min-height: 45vh;
    }

    /* Blog + Instagram Section */
    .institutional-instagram-section {
        flex-direction: column;
        padding-top: 0 !important;
    }

    .institutional-half,
    .instagram-half {
        width: 100%;
        min-height: 50vh;
    }

    /* Newsletter + Footer */
    .newsletter-footer-section {
        flex-direction: column;
    }

    .newsletter-half,
    .footer-half {
        width: 100%;
        min-height: auto;
        padding: 60px 40px;
    }

    /* === PÁGINA VENDER === */

    /* Quem Somos - Layout 40/60 vira 1fr no tablet */
    .quem-somos-section {
        min-height: calc(99vh - 50px);
        height: auto;
    }

    .quem-somos-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        min-height: auto !important;
    }

    .quem-somos-texto,
    .quem-somos-stats {
        width: 100%;
    }

    .quem-somos-texto {
        padding: 40px 30px !important;
        min-height: auto !important;
    }

    .quem-somos-stats {
        height: auto !important;
        min-height: auto !important;
        padding: 5px !important;
    }

    /* Accordion Layout - tablet */
    .accordion-layout {
        grid-template-columns: 1fr !important;
    }

    .accordion-header {
        padding: 30px !important;
    }

    .accordion-header .section-overline {
        font-size: 1.2em !important;
    }

    .accordion-header .section-title {
        font-size: 0.95em !important;
    }

    .quem-somos-texto .section-overline {
        font-size: 1.2em !important;
    }

    .quem-somos-texto .section-subtitle,
    .quem-somos-texto .section-tech-text {
        font-size: 0.95em !important;
    }

    .accordion-list {
        padding: 15px 30px 30px 30px !important;
    }

    /* Chat Layout */
    .chat-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr !important;
    }

    .chat-cta,
    .chat-container {
        width: 100%;
    }

    /* === DETALHE DO IMÓVEL === */

    /* Property Section - tablets */
    .property-section {
        padding: 40px 30px 80px 30px !important;
    }

    .detail-container {
        max-width: 100%;
    }

    /* Detail Rows */
    .detail-row {
        flex-direction: column;
        gap: 16px;
    }

    .detail-row.center {
        align-items: flex-start !important;
    }

    .property-title {
        font-size: 1.5em !important;
    }

    .property-price {
        text-align: left !important;
        font-size: 1.3em !important;
    }

    /* Similar Properties */
    .similar-section {
        padding: 60px 40px;
    }

    .similar-grid {
        gap: 20px;
    }

    .similar-card {
        min-width: 280px;
    }

    /* Contact Modal */
    .contact-modal-content {
        max-width: 90%;
        margin: 20px;
    }

    .contact-modal-grid {
        flex-direction: column;
        gap: 24px;
    }

    /* Gallery Modal */
    .modal-nav-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-nav-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    /* Floor Plan View */
    .floor-plan-sidebar {
        width: 300px;
    }

    /* Map View Modal */
    #modal-view-mapa {
        flex-direction: column;
    }

    /* === MAPA / BUSCA === */

    .map-filters-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .map-filters {
        flex-wrap: wrap;
    }

    .filter-dropdown {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

/* ==========================================
   TABLETS / MOBILE (até 768px)
   ========================================== */
@media (max-width: 768px) {

    /* Utility: mostrar elementos mobile-only */
    .mobile-only {
        display: inline !important;
    }

    /* Scroll-padding para compensar navbar */
    html {
        scroll-padding-top: 50px;
    }

    /* === HOMEPAGE === */

    /* Hero - 98vh com hint da próxima seção */
    .hero {
        height: 98vh;
        min-height: 500px;
        background: #1a2a3a url('/static/images/hero-poster-mobile.jpg') center/cover no-repeat;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    /* Responsive video: mobile portrait */
    .hero-video-desktop { display: none; }
    .hero-video-mobile { display: block; }

    /* Featured Hero */
    .featured-carousel-section {
        height: auto;
        min-height: calc(98vh - 55px);
    }

    .featured-hero-slide {
        min-height: 70vh;
    }

    .featured-hero-info {
        padding: 20px;
        padding-bottom: 30px;
    }

    .featured-hero-title {
        font-size: 1.4em;
        line-height: 1.2;
    }

    .featured-hero-summary {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px !important;
        width: 100%;
        line-height: 1.3;
    }

    .featured-hero-summary .summary-item {
        color: rgba(255, 255, 255, 1);
    }

    /* Summary Line - grid layout para mobile */
    .summary-line {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
        gap: 0;
    }

    /* Esconder separadores entre linhas no mobile */
    .summary-line::before {
        display: none !important;
    }

    .summary-line .summary-item:first-child {
        text-align: right;
    }

    .summary-line .summary-item:last-child {
        text-align: left;
    }

    /* Item único (sem separador) - centralizar */
    .summary-line .summary-item:only-child {
        grid-column: 1 / -1;
        text-align: center !important;
    }

    .summary-line .summary-separator {
        display: inline-block;
        width: 5px;
        height: 5px;
        background: currentColor;
        transform: rotate(45deg);
        opacity: 0.5;
        margin: 0 10px;
        border-radius: 0;
        justify-self: center;
    }

    .summary-line .summary-item {
        font-size: 0.85em;
    }

    .summary-line.summary-price {
        display: flex !important;
        justify-content: center;
        margin-top: 0;
    }

    .summary-line.summary-price .summary-item {
        font-size: 0.85em;
        font-weight: inherit;
        text-align: center;
        color: rgba(255, 255, 255, 1);
    }

    /* Featured - botões menores, swipe é principal */
    .featured-hero-nav {
        width: 36px;
        height: 36px;
        opacity: 0.7;
    }

    .featured-hero-nav .material-symbols-outlined {
        font-size: 20px;
    }

    /* Category Section */
    .category-hero-section {
        height: calc(98vh - 55px);
        min-height: 500px;
        overflow: hidden;
        padding-top: 0 !important;
    }

    .category-hero-content {
        height: 100%;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-evenly !important;
    }

    /* Carrossel horizontal com peek - ultrapassa padding do pai */
    .category-hero-grid.objectives-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 12px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .category-hero-grid.objectives-grid::-webkit-scrollbar {
        display: none;
    }

    .category-hero-card {
        flex: 0 0 90% !important;
        width: 90% !important;
        min-width: 90% !important;
        scroll-snap-align: center;
        min-height: 68vh !important;
    }

    /* Blog Section */
    .institutional-half {
        padding: 0 !important;
        min-height: calc(98vh - 55px);
        height: calc(98vh - 55px);
        overflow: hidden;
        scroll-snap-align: start;
    }

    /* Container Blog+Instagram - display:contents para filhos serem snap points diretos */
    .institutional-instagram-section {
        display: contents !important;
    }

    .blog-home-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        padding-top: 20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-bottom: 20px !important;
    }

    .blog-home-header {
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title button"
            "subtitle button";
        gap: 6px 16px;
        padding: 0 !important;
        width: 100% !important;
        align-items: center;
    }

    .blog-home-header h2 {
        grid-area: title;
        font-size: 1.4em;
        margin: 0;
    }

    .blog-home-header p {
        grid-area: subtitle;
        font-size: 0.9em;
        margin: 0;
        opacity: 0.8;
    }

    .blog-home-header .btn-glass {
        grid-area: button;
        padding: 10px 16px;
        font-size: 0.85em;
        white-space: nowrap;
        align-self: center;
    }

    /* Cards em carrossel horizontal - ultrapassa padding do pai */
    .blog-cards-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 12px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .blog-cards-wrapper::-webkit-scrollbar {
        display: none;
    }

    .blog-card-home {
        flex: 0 0 85% !important;
        width: 85% !important;
        min-width: 85% !important;
        min-height: 55vh !important;
        scroll-snap-align: center;
    }

    /* Instagram - altura ajusta ao conteúdo, com snap */
    .instagram-half {
        padding: 3px 20px 1px 20px !important;
        min-height: auto;
        height: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        scroll-snap-align: start !important;
        scroll-snap-stop: always;
    }

    /* Instagram - carrossel horizontal com 2 posts (mesmo padrão das outras seções) */
    /* Espaçamento uniforme: 16px nas bordas e entre posts (igual navbar-fotos) */
    .instagram-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 4px !important;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        padding-left: 4px;
        padding-right: 4px;
        height: auto !important;
        align-items: center;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .instagram-grid::-webkit-scrollbar {
        display: none;
    }

    /* 2 posts visíveis com espaçamento de 4px */
    .instagram-grid .instagram-post,
    .instagram-grid .instagram-cta-box {
        flex: 0 0 calc(50% - 2px) !important;
        width: calc(50% - 2px) !important;
        min-width: calc(50% - 2px) !important;
        max-width: none !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        scroll-snap-align: center;
    }

    .instagram-grid .instagram-image {
        aspect-ratio: 1 / 1 !important;
        height: 100% !important;
        width: 100% !important;
    }

    /* Newsletter - sem snap próprio, faz parte do grupo Instagram */
    .newsletter-half {
        padding: 40px 20px;
        min-height: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        scroll-snap-align: none !important;
    }

    /* Newsletter conteúdo empilhado - distribuído horizontalmente */
    .newsletter-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .newsletter-text {
        text-align: center !important;
    }

    .newsletter-form {
        width: 100% !important;
        padding: 0 !important;
    }

    .newsletter-input-wrapper {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .newsletter-input {
        width: 100% !important;
        padding: 10px 20px !important;
        font-size: 16px !important;
    }

    .newsletter-input-wrapper .btn-glass {
        width: 100% !important;
    }

    /* Container Newsletter+Footer - display:contents para filhos serem snap points diretos */
    .newsletter-footer-section {
        display: contents !important;
    }

    /* Footer - tela toda, sem margens */
    .footer-half {
        padding: 0 !important;
        margin: 0 !important;
        height: auto;
        min-height: auto;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        scroll-snap-align: start;
    }

    .footer-half footer {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-content {
        padding: 40px 20px !important;
        width: 100% !important;
    }

    .footer-bottom {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px 20px !important;
    }

    .footer-bottom-content {
        padding: 0 !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .footer-legal {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .footer-separator {
        display: inline !important;
    }

    /* === PÁGINA VENDER === */

    /* Hero */
    .vender-hero {
        height: 100vh;
        min-height: 600px;
    }

    .vender-hero-content {
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .vender-hero-video {
        object-fit: cover !important;
        object-position: left center !important;
    }

    .vender-hero .vender-hero-subtitle {
        font-size: 1.5em !important;
        line-height: 1.4 !important;
        margin-bottom: 30px !important;
    }

    .vender-hero .vender-cta {
        bottom: 15px !important;
        white-space: nowrap;
        flex-direction: row !important;
        gap: 8px !important;
    }

    .vender-cta .cta-text {
        white-space: nowrap;
    }

    .vender-cta .cta-arrow {
        display: none !important;
    }

    /* Sections */
    .vender-section {
        padding: 40px 20px;
        min-height: calc(99vh - 50px);
        height: auto;
    }

    /* Quem Somos */
    .quem-somos-texto {
        text-align: center !important;
    }

    .quem-somos-texto .section-subtitle,
    .quem-somos-texto .section-tech-text {
        text-align: left !important;
    }

    .quem-somos-stats .stat-number {
        font-size: 2.4em !important;
    }

    .quem-somos-stats .stat-item {
        padding: 20px 10px !important;
        min-height: auto !important;
    }

    .section-overline {
        font-size: 0.8em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .section-tech-text {
        font-size: 0.9em;
    }

    /* Stats */
    .quem-somos-stats {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 5px !important;
    }

    .stat-item {
        text-align: center;
        padding: 5px !important;
    }

    .stat-number {
        font-size: 2em;
    }

    .stat-label {
        font-size: 0.85em;
    }

    /* Accordion */
    .accordion-header {
        text-align: center;
    }

    .section-title {
        font-size: 1.5em;
    }

    .accordion-trigger {
        padding: 16px;
    }

    .accordion-title {
        font-size: 1em;
    }

    .accordion-content {
        padding: 0 16px 16px;
        font-size: 0.9em;
    }

    /* Chat / CTA Final */
    .final-cta {
        padding: 0;
        min-height: calc(99vh - 50px);
        height: auto !important;
        max-height: none !important;
        display: block !important;
        overflow: visible !important;
    }

    .chat-layout {
        display: flex !important;
        flex-direction: column !important;
        min-height: calc(99vh - 50px);
        height: auto !important;
        overflow: visible !important;
    }

    .chat-cta {
        text-align: center;
        padding: 30px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        flex: 0 0 auto;
        height: auto !important;
    }

    .chat-cta .section-overline {
        white-space: nowrap;
        font-size: 1.4em !important;
    }

    .chat-cta-text {
        font-size: 0.95em;
        margin-bottom: 20px !important;
    }

    .chat-container {
        flex: 1 1 auto;
        height: auto !important;
        min-height: 400px;
        max-height: none !important;
        overflow: visible !important;
    }

    .chat-messages {
        overflow-y: auto;
        max-height: 300px;
        padding: 16px;
    }

    .chat-bubble {
        max-width: 85%;
        font-size: 0.95em;
    }

    .chat-input-area {
        padding: 12px;
    }

    /* === DETALHE DO IMÓVEL === */

    /* Hero Section Wrapper */
    .hero-section {
        margin-top: 55px !important;
        display: flex;
        flex-direction: column;
    }

    /* Hero Image - Altura fixa no mobile */
    .hero-image {
        height: 45vh !important;
        width: 100% !important;
        min-height: 250px;
    }

    /* Hero Slideshow */
    .hero-slideshow {
        width: 100% !important;
        height: 100% !important;
    }

    .hero-slide {
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Hero Overlay - Abaixo do hero no mobile */
    .hero-image-overlay {
        position: relative !important;
        background: linear-gradient(135deg, var(--operation-color) 0%, var(--operation-color-dark, #0a0a0a) 100%) !important;
        padding: 8px !important;
        justify-content: center !important;
    }

    /* Hero Buttons - Grid 2x2 fullwidth */
    .hero-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 6px !important;
        width: 100%;
        max-width: none;
    }

    .hero-buttons .btn-glass {
        padding: 8px !important;
        font-size: 0.7em !important;
        justify-content: center;
        white-space: nowrap;
        background: rgba(255,255,255,0.15) !important;
        border-color: rgba(255,255,255,0.3) !important;
    }

    /* Property Section */
    .property-section,
    .property-section[style] {
        padding: 8px 20px 8px 20px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    /* Detail Header - Flex column para reordenar */
    .detail-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Linha 1: Breadcrumbs + Ícones */
    .detail-header > .detail-row.center:first-child {
        order: 1;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 0.8em !important;
        gap: 8px;
        margin-bottom: 24px !important; /* Breadcrumbs para título: 24px */
    }

    .detail-header > .detail-row.center:first-child > div:first-child {
        font-size: 0.8em;
    }

    .detail-header > .detail-row.center:first-child .action-btn-icon {
        padding: 6px !important;
    }

    .detail-header > .detail-row.center:first-child .material-symbols-outlined {
        font-size: 18px !important;
    }

    /* Linha 2: Título e Preço empilhados e centralizados */
    .detail-header > .detail-row:not(.center) {
        order: 2;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important; /* Título para preço: 16px */
        margin-bottom: 16px !important; /* Preço para badge: 16px */
    }

    /* Linha 3 (badges + meta) */
    .detail-header > .detail-row.center:last-of-type {
        order: 3;
        flex-direction: column !important;
        align-items: center !important;
        gap: 24px !important; /* Badge para meta-line: 24px */
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Badges primeiro, meta depois */
    .detail-header > .detail-row.center:last-of-type > div:last-child {
        order: 1;
        justify-content: center !important;
        width: 100%;
    }

    .detail-header .meta-line {
        order: 2;
        font-size: 0.8em !important;
        text-align: left;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    .property-title {
        font-size: 1.4em !important;
        text-align: center !important;
        width: 100%;
    }

    .property-price {
        font-size: 1.2em !important;
        text-align: center !important;
        width: 100%;
    }

    /* Detail Description - Colapsar após ~5 linhas */
    p#detailDescription.detail-description {
        font-size: 1em;
        line-height: 1.6;
        max-height: 8em;
        overflow: hidden;
        position: relative;
        transition: max-height 0.3s ease;
        margin: -0.5em 0 1em 0 !important;
        padding: 0 !important;
    }

    p#detailDescription.detail-description.expanded {
        max-height: none !important;
        overflow: visible;
    }

    p#detailDescription.detail-description.expanded::after {
        display: none;
    }

    p#detailDescription.detail-description:not(.expanded)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3em;
        background: linear-gradient(transparent, white);
        pointer-events: none;
    }

    .description-toggle {
        display: block;
        margin: 8px auto 24px auto;
        background: none;
        border: none;
        color: var(--operation-color);
        font-size: 0.85em;
        font-family: 'Work Sans', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        padding: 0;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Detalhes - Grid 4 colunas vira carrossel horizontal */
    .details-four-columns {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 0 !important;
        margin-left: calc(var(--space-md) * -1);
        margin-right: calc(var(--space-md) * -1);
        width: calc(100% + var(--space-md) * 2) !important;
        padding-left: var(--space-md);
        scroll-padding-left: var(--space-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .details-four-columns::-webkit-scrollbar {
        display: none;
    }

    .details-four-columns > div {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        padding: 0;
        box-sizing: border-box;
    }

    .details-four-columns > div h4 {
        font-size: 1em !important;
        margin-bottom: var(--space-sm) !important;
        white-space: nowrap;
    }

    /* Container dos detalhes */
    .details-container {
        gap: 0.25em !important;
    }

    /* Grid dos detalhes */
    .details-grid {
        margin-bottom: 0.25em !important;
    }

    /* Header dos detalhes com título e dots */
    .details-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 0 !important;
    }

    .details-header h2 {
        margin: 0 !important;
    }

    /* Dots de paginação - ao lado do título */
    .details-pagination {
        display: flex !important;
        gap: var(--space-xs);
        padding: 0;
        margin: 0;
    }

    .details-pagination .dot {
        width: var(--space-xs);
        height: var(--space-xs);
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .details-pagination .dot.active {
        background: var(--operation-color);
    }

    /* Lista de detalhes */
    .detail-list {
        gap: var(--space-xs);
    }

    /* Container pai dos detalhes */
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        min-height: auto !important;
    }

    /* Título "Detalhes do Imóvel" */
    .detail-container > div[style*="grid-column: 1 / -1"] h2 {
        font-size: 1.2em !important;
        margin-bottom: 16px !important;
    }

    /* Detail Lists */
    .detail-list {
        gap: 8px;
    }

    .detail-item {
        font-size: 1em;
    }

    .detail-list-toggle {
        width: 100%;
        font-size: 0.8em;
        padding: 8px 16px;
    }

    /* Títulos das colunas (Características, Comodidades, etc) */
    .detail-container h4 {
        font-size: 1em !important;
        margin-bottom: 8px !important;
    }

    /* Locality Section - Foto como background com conteúdo sobreposto */
    .locality-section {
        padding: 0 !important;
        min-height: auto;
    }

    .locality-section > div {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .locality-section [style*="grid"] {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        min-height: 85vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        gap: 0 !important;
        align-items: unset !important;
    }

    /* Foto vira background - preenche toda a seção */
    .locality-section [style*="aspect-ratio"],
    .locality-section > div > div > div:first-child {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
        max-height: none !important;
        min-height: 0 !important;
        border-radius: 0 !important;
        z-index: 1 !important;
        overflow: hidden !important;
    }

    .locality-section img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }

    .locality-section [style*="aspect-ratio"]::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%) !important;
        z-index: 2 !important;
    }

    /* Conteúdo sobreposto */
    .locality-section [style*="grid"] > div:last-child {
        position: absolute !important;
        top: 5vw !important;
        bottom: 5vw !important;
        left: 5vw !important;
        right: 5vw !important;
        z-index: 3 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        background: transparent !important;
    }

    .locality-section h2 {
        font-family: 'Abril Fatface', serif !important;
        font-size: 1.2em !important;
        font-weight: 400 !important;
        color: #fff !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        margin: 0 0 0.25em 0 !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .locality-section p {
        color: rgba(255,255,255,0.9) !important;
        margin-bottom: 0.5em !important;
        font-size: 1em !important;
    }

    /* Linha da cidade - gap para descrição */
    .locality-section p:first-of-type {
        margin-bottom: 1em !important;
    }

    .locality-section p .material-symbols-outlined {
        font-size: 1em !important;
    }

    .locality-section p[style*="text-align: justify"] {
        font-size: 0.85em !important;
        line-height: 1.5 !important;
        margin-bottom: 1em !important;
    }

    .locality-section .material-symbols-outlined {
        color: rgba(255,255,255,0.9) !important;
    }

    /* Scores em linha scrollável */
    .locality-section div[style*="display: flex; flex-wrap: wrap; gap: 1.5em"] {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: var(--space-sm) !important;
        padding-bottom: var(--space-xs);
        margin-top: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }

    .locality-section div[style*="min-width: 140px"] {
        min-width: 110px !important;
        flex-shrink: 0;
        padding: var(--space-sm) !important;
        background: rgba(255,255,255,0.15) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.2) !important;
        border-radius: 0 !important;
    }

    .locality-section div[style*="min-width: 140px"] * {
        color: #fff !important;
    }

    /* Score na mesma linha: 85/100 */
    .locality-section div[style*="min-width: 140px"] > div:nth-child(2),
    .locality-section div[style*="min-width: 140px"] > div:nth-child(3) {
        display: inline !important;
        font-size: 1.4em !important;
    }

    .locality-section div[style*="min-width: 140px"] > div:nth-child(3) {
        margin-top: 0 !important;
        font-size: 1em !important;
    }

    /* Comparison Section - Carrossel com dots */
    .comparison-section {
        padding: 5vw !important;
        background: #fff;
    }

    .comparison-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1em;
    }

    .comparison-header h2 {
        font-size: 1.2em !important;
        margin: 0 !important;
    }

    .comparison-pagination {
        display: flex !important;
        gap: 6px;
    }

    .comparison-pagination .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: background 0.2s;
    }

    .comparison-pagination .dot.active {
        background: var(--operation-color);
    }

    .comparison-table {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 1em;
    }

    .comparison-table::-webkit-scrollbar {
        display: none;
    }

    .comparison-card {
        flex: 0 0 85vw !important;
        scroll-snap-align: center;
        margin: 0 2.5vw;
        border: 1px solid #e5e7eb !important;
    }

    .comparison-card:first-child {
        margin-left: 0;
    }

    .comparison-image {
        aspect-ratio: 4/3 !important;
    }

    .comparison-body {
        padding: 1em !important;
    }

    .comparison-title {
        font-size: 1em !important;
    }

    .comparison-row {
        padding: 0.4em 0 !important;
        font-size: 0.85em !important;
    }


    /* Similar Section */
    .similar-section {
        padding: var(--space-lg) var(--space-md) !important;
        padding-bottom: var(--space-xl) !important;
    }

    .similar-header {
        margin-bottom: var(--space-sm);
    }

    .similar-header h2 {
        font-size: 1.2em;
    }

    .similar-header p {
        font-size: 1em;
    }

    /* Similares - Carrossel horizontal */
    .similar-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: var(--space-sm) !important;
        margin-top: var(--space-sm);
        margin-left: calc(var(--space-md) * -1);
        margin-right: calc(var(--space-md) * -1);
        width: calc(100% + var(--space-md) * 2);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .similar-grid::-webkit-scrollbar {
        display: none;
    }

    .similar-card {
        flex: 0 0 80% !important;
        min-width: 80% !important;
        width: 80% !important;
        scroll-snap-align: center;
    }

    .nav-arrow {
        display: none;
    }

    /* FAB - Canto inferior direito */
    .contact-fab {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        width: auto !important;
        border-radius: 50px !important;
        padding: 12px 18px !important;
        justify-content: center !important;
        gap: 8px !important;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    }

    .contact-fab span {
        font-size: 0.9em !important;
    }

    .contact-fab .material-symbols-outlined {
        font-size: 20px !important;
    }

    /* Contact Modal */
    .contact-modal-content {
        max-width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
        padding: 24px;
    }

    .contact-modal-header {
        padding-bottom: 20px;
    }

    .contact-modal-title {
        font-size: 1.3em;
    }

    .contact-modal-subtitle {
        font-size: 0.9em;
    }

    .contact-form-wrapper {
        gap: 12px;
    }

    .contact-input {
        padding: 14px;
        font-size: 16px; /* Previne zoom no iOS */
    }

    .channel-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-channel {
        padding: 16px;
    }

    /* Gallery Modal */
    .gallery-modal {
        padding: 0;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-title {
        font-size: 1em;
    }

    .modal-nav-tabs {
        padding: 8px 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .modal-nav-btn {
        padding: 8px 12px;
        font-size: 0.8em;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .modal-content-area {
        padding: 0;
    }

    /* Floor Plan View */
    #modal-view-planta {
        flex-direction: column;
    }

    .floor-plan-sidebar {
        width: 100%;
        max-height: 200px;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-direction: row;
        gap: 12px;
        padding: 12px;
    }

    .floor-plan-item {
        min-width: 200px;
        flex-shrink: 0;
    }

    .floor-plan-image-area {
        flex: 1;
    }

    /* Image Navigation */
    .image-counter-modal {
        bottom: 20px;
        font-size: 0.9em;
    }

    /* Floating View Toggle */
    .floating-view-toggle {
        bottom: 60px;
        transform: scale(0.85);
        right: 12px;
    }

    /* === GALLERY MODAL - MOBILE COMPLETO === */

    .gallery-modal {
        padding: 0 !important;
    }

    .gallery-modal .modal-header {
        height: 50px !important;
        padding: 0 12px !important;
    }

    .gallery-modal .modal-title {
        font-size: 0.95em !important;
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gallery-modal .modal-close {
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.4em !important;
    }

    /* Modal Tabs - Horizontal scroll */
    .gallery-modal .modal-nav-tabs {
        top: 50px !important;
        height: 44px !important;
        padding: 0 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start !important;
    }

    .gallery-modal .modal-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .gallery-modal .modal-nav-btn {
        padding: 0 12px !important;
        font-size: 0.7em !important;
        white-space: nowrap;
        flex-shrink: 0;
        letter-spacing: 0.5px !important;
    }

    /* Modal Content Area */
    .gallery-modal .modal-content-area {
        top: 94px !important;
        padding: 0 !important;
    }

    /* Images View */
    #modal-view-imagens {
        position: relative;
    }

    #modal-view-imagens .slideshow-mode {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    #modal-view-imagens .slideshow-mode .watermarked-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #modal-view-imagens .slideshow-mode .watermarked-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Image Caption */
    #imageCaption {
        bottom: 3.5em !important;
        font-size: 0.75em !important;
        padding: 0.3em 0.8em !important;
        max-width: 90%;
    }

    /* Grid Mode */
    #modal-view-imagens .grid-mode {
        padding: 8px !important;
    }

    #modal-view-imagens .images-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    /* Nav Arrows - Hidden on mobile, use swipe */
    .gallery-modal .nav-arrow {
        display: none !important;
    }

    /* Image Counter */
    .gallery-modal .image-counter-modal {
        bottom: 12px !important;
        font-size: 0.8em !important;
        padding: 4px 10px !important;
    }

    /* === MAP VIEW MODAL - MOBILE === */

    #modal-view-mapa {
        flex-direction: column !important;
        height: 100% !important;
    }

    #modal-view-mapa #property-map {
        flex: 0 0 50% !important;
        min-height: 250px !important;
        width: 100% !important;
    }

    /* POIs Sidebar - Bottom scrollable */
    #modal-view-mapa > div[style*="width: 450px"] {
        width: 100% !important;
        flex: 1 !important;
        border-left: none !important;
        border-top: 1px solid #e5e7eb !important;
        max-height: none !important;
    }

    /* POIs Header */
    #modal-view-mapa > div[style*="width: 450px"] > div[style*="padding: 24px"] {
        padding: 16px !important;
    }

    #modal-view-mapa > div[style*="width: 450px"] > div[style*="padding: 24px"] h3 {
        font-size: 0.95em !important;
    }

    /* Distance Calculator */
    #modal-view-mapa > div[style*="width: 450px"] > div[style*="padding: 20px"] {
        padding: 12px !important;
    }

    #modal-view-mapa #distanceDestination {
        font-size: 0.7em !important;
        padding: 10px 36px 10px 10px !important;
    }

    #modal-view-mapa #departureTime {
        font-size: 0.75em !important;
        padding: 6px 24px 6px 8px !important;
    }

    /* POI Categories - Horizontal scroll */
    #modal-view-mapa .poi-category {
        padding: 12px !important;
    }

    #modal-view-mapa .poi-category h4 {
        font-size: 0.85em !important;
    }

    #modal-view-mapa .poi-list {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch;
    }

    #modal-view-mapa .poi-item {
        flex: 0 0 auto !important;
        min-width: 200px !important;
        white-space: normal !important;
    }

    /* === FLOOR PLAN VIEW - MOBILE (Accordion) === */

    #modal-view-planta {
        flex-direction: column !important;
        overflow-y: auto !important;
        padding: 20px !important;
        background: #fff !important;
    }

    /* Esconder área de imagem separada - imagem vai dentro do accordion */
    .floor-plan-image-area {
        display: none !important;
    }

    /* Sidebar vira lista vertical */
    .floor-plan-sidebar {
        width: 100% !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Cada item é um accordion */
    .floor-plan-item {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }

    /* Título clicável - header do accordion */
    .floor-plan-title {
        font-family: 'Abril Fatface', serif !important;
        font-size: 1.2em !important;
        font-weight: 400 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        background: transparent !important;
        display: block !important;
        cursor: pointer !important;
        color: var(--primary) !important;
        opacity: 0.6 !important;
        transform: none !important;
        transition: opacity 0.3s ease !important;
        line-height: 1.2 !important;
    }

    .floor-plan-item.expanded .floor-plan-title,
    .floor-plan-item.active .floor-plan-title {
        opacity: 1 !important;
    }

    /* Remover o +/- do título */
    .floor-plan-title::after {
        display: none !important;
    }

    /* Conteúdo do accordion - SEMPRE escondido por padrão */
    .floor-plan-content {
        display: none !important;
        padding-left: 0 !important;
    }

    .floor-plan-item.expanded .floor-plan-content {
        display: block !important;
        margin-top: 8px !important;
    }

    /* Imagem dentro do accordion */
    .floor-plan-image-inline {
        display: block !important;
        padding: 0 !important;
        margin-bottom: 16px !important;
        background: transparent !important;
    }

    .floor-plan-image-inline img {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        display: block !important;
    }

    /* Detalhes dentro do accordion */
    .floor-plan-details {
        font-size: 0.9em !important;
        padding: 0 !important;
        padding-left: 16px !important;
        padding-bottom: 16px !important;
        max-height: none !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4em !important;
        margin: 0 !important;
        border-left: 2px solid var(--operation-color) !important;
    }

    .floor-plan-detail {
        font-family: 'Work Sans', sans-serif !important;
        font-size: 0.95em !important;
        line-height: 1.6 !important;
        padding: 0 !important;
        border-bottom: none !important;
        color: var(--primary) !important;
        opacity: 0.8 !important;
        transform: none !important;
    }

    .floor-plan-image-inline img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 50vh;
        display: block;
    }

    /* === VIDEO VIEW - MOBILE === */

    #modal-view-video {
        padding: 8px !important;
    }

    #modal-view-video .video-container {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #modal-view-video .video-container iframe {
        width: 100% !important;
        max-height: 100% !important;
        aspect-ratio: 16/9;
    }

    /* === MAPA / BUSCA === */

    /* Permitir scroll no body para listagem mobile */
    body:has(.map-view-container) {
        overflow-y: auto !important;
        height: auto !important;
    }

    /* Container principal - altura automática para incluir footer */
    .map-view-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        padding-top: 110px !important; /* navbar (56px) + filtros (~54px) */
    }

    /* Barra de filtros compacta */
    .map-filters-bar {
        top: 56px !important; /* Ajuste fino - navbar mobile */
        padding: 8px 12px !important;
        flex-shrink: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .map-filters {
        width: 100% !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto !important;
    }

    /* Botões de ação em linha */
    .view-toggle-container,
    .compare-toggle-container,
    .advanced-filter-container {
        flex: 0 0 auto !important;
    }

    /* Esconder perímetro no mobile (não funciona bem em touch) */
    .perimeter-toggle-container {
        display: none !important;
    }

    /* Ordenação - toda a linha com mesma formatação */
    .properties-list-header,
    .properties-list-header * {
        font-family: 'Inter', sans-serif !important;
        font-size: 12px !important;
        font-weight: 400 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        color: #6b7280 !important;
    }

    .sort-controls label {
        display: none !important;
    }

    .sort-select {
        padding: 8px 32px 8px 12px !important;
        min-width: 140px !important;
        background-color: transparent !important;
        border: none !important;
    }

    /* Esconder filtros dropdown no mobile (usar botão Filtrar) */
    .filter-dropdown {
        display: none !important;
    }

    /* Wrapper com scroll - permite scroll até footer */
    .map-scroll-wrapper {
        flex: 1 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        position: relative !important;
        top: auto !important;
    }

    .map-content-container {
        height: auto !important;
        min-height: calc(100vh - 120px) !important;
    }

    /* Modo GRID (Lista) - Ocupa tudo */
    .view-mode-grid .map-sidebar {
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
    }

    .view-mode-grid .map-sidebar + div {
        display: none !important; /* Esconde mapa */
    }

    .view-mode-grid #map {
        display: none !important;
    }

    /* Modo MAP (Mapa) - Centralizado */
    .view-mode-map .map-sidebar {
        display: none !important;
    }

    .view-mode-map .map-content-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: calc(100vh - 110px) !important;
    }

    .view-mode-map .map-sidebar + div {
        width: 90vw !important;
        max-width: 90vw !important;
        height: 75vh !important;
    }

    .view-mode-map #map {
        width: 90vw !important;
        max-width: 90vw !important;
        height: 75vh !important;
    }

    /* Split mode no mobile vira grid */
    .view-mode-split .map-sidebar {
        width: 100% !important;
        height: auto !important;
    }

    .view-mode-split .map-sidebar + div {
        display: none !important;
    }

    /* Lista de imóveis - altura flexível com scroll */
    .map-sidebar {
        display: flex !important;
        flex-direction: column !important;
    }

    .properties-list-header {
        flex-shrink: 0 !important;
        padding: 12px !important;
    }

    .map-properties-list {
        flex: 1 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow-y: visible !important;
        padding: 0 12px 20px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* Cards em 1 coluna no mobile */
    .map-property-card {
        width: 100% !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* ==========================================
   MOBILE PEQUENO (até 480px)
   ========================================== */
@media (max-width: 480px) {

    /* === HOMEPAGE === */

    .hero-content h1 {
        font-size: 1.6em;
    }

    .hero-search-btn {
        width: 100%;
    }

    .featured-hero-title {
        font-size: 1.2em;
    }

    .featured-hero-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-separator {
        display: none;
    }

    .category-hero-title {
        font-size: 1.4em;
    }

    /* === PÁGINA VENDER === */

    .vender-hero-subtitle {
        font-size: 0.9em;
    }

    /* br mantido - quebras de linha são necessárias */

    .stat-number {
        font-size: 1.8em;
    }

    .stat-label {
        font-size: 0.8em;
    }

    .accordion-trigger {
        padding: 14px;
    }

    .accordion-icon {
        font-size: 20px;
    }

    .accordion-title {
        font-size: 0.95em;
    }

    .chat-container {
        min-height: 300px;
        height: auto !important;
        max-height: none !important;
    }

    /* === DETALHE DO IMÓVEL === */

    .property-section {
        padding: 10px 16px 8px 16px !important;
    }

    .property-title {
        font-size: 1.2em !important;
    }

    .property-price {
        font-size: 1em !important;
    }

    .detail-item {
        font-size: 1em;
    }

    /* Similar Cards */
    .similar-card-body {
        padding: 16px;
    }

    .similar-card-title {
        font-size: 1.2em;
    }

    .similar-card-meta-grid {
        font-size: 1em;
        gap: 8px;
    }

    /* Contact Modal */
    .contact-modal-content {
        padding: 20px 16px;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        margin: auto 0 0 0;
    }

    .contact-modal-title {
        font-size: 1.2em;
    }

    /* Gallery Modal */
    .modal-nav-tabs {
        padding: 8px 12px;
    }

    .modal-nav-btn {
        padding: 6px 10px;
        font-size: 0.75em;
    }

    /* === MAPA / BUSCA === */

    .filter-dropdown {
        flex: 1 1 100%;
    }

    .filter-dropdown-btn {
        padding: 12px;
    }

    .view-mode-split .map-panel,
    .view-mode-split .list-panel {
        height: 45vh;
    }
}

/* ==========================================
   UTILIDADES MOBILE
   ========================================== */

/* Previne overscroll horizontal */
html {
    overscroll-behavior-x: none;
}

/* Previne zoom em inputs no iOS */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Scroll suave em containers horizontais */
@media (max-width: 768px) {
    .similar-grid,
    .floor-plan-sidebar,
    .modal-nav-tabs,
    .category-hero-grid.objectives-grid {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Hide scrollbar but keep functionality */
    .similar-grid::-webkit-scrollbar,
    .floor-plan-sidebar::-webkit-scrollbar,
    .modal-nav-tabs::-webkit-scrollbar,
    .category-hero-grid.objectives-grid::-webkit-scrollbar {
        display: none;
    }

    .similar-grid,
    .floor-plan-sidebar,
    .modal-nav-tabs,
    .category-hero-grid.objectives-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Safe area para dispositivos com notch */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .contact-fab {
            bottom: max(20px, env(safe-area-inset-bottom));
            right: max(20px, env(safe-area-inset-right));
        }

        .contact-modal-content {
            padding-bottom: max(20px, env(safe-area-inset-bottom));
        }

        .gallery-modal .modal-header {
            padding-top: max(12px, env(safe-area-inset-top));
        }
    }
}

/* Melhorar touch targets */
@media (max-width: 768px) {
    .btn-glass,
    .accordion-trigger,
    .filter-dropdown-btn,
    .contact-channel,
    .modal-nav-btn {
        min-height: 44px;
    }

    .featured-hero-nav,
    .nav-arrow,
    .modal-close,
    .contact-modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero,
    .vender-hero {
        height: auto;
        min-height: 100vh;
    }

    .featured-hero-slide {
        min-height: 100vh;
    }

    .vender-section {
        min-height: calc(99vh - 50px);
    }

    .chat-container {
        min-height: 280px;
        height: auto !important;
        max-height: none !important;
    }
}
