/* Mobile First Responsive */

/*
 * La cabecera YA NO se ajusta aquí: header.css la resuelve entera con sus
 * propios puntos de corte (768 y 1080), que son los del diseño. Las reglas que
 * había en este archivo apuntaban a un marcado que ya no existe
 * (.header-inner, .mobile-search-btn, .search-bar-wrapper, .btn-host) y no
 * casaban con nada.
 */

/* Small phones */
@media (max-width: 374px) {
    :root {
        --space-2xl: 16px;
    }
}

/* Phones (< 744px) */
@media (max-width: 743px) {
    .properties-section {
        padding: 0 var(--space-base);
    }

    /* Single property */
    .property-gallery {
        display: none;
    }

    .property-gallery-mobile {
        display: block;
    }

    .property-layout {
        flex-direction: column;
    }

    .property-sidebar-wrapper {
        width: 100%;
        position: static;
        display: none;
    }

    .mobile-sidebar-bar {
        display: flex;
    }

    .single-property-page {
        padding: 0 var(--space-base) 80px;
    }

    .property-highlights {
        gap: var(--space-base);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .property-map-container {
        height: 300px;
    }

    /* Search page */
    .search-split-view {
        flex-direction: column;
        height: auto;
    }

    .search-map-panel {
        display: none;
        width: 100%;
        height: 60vh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: var(--z-modal);
    }

    .search-map-panel.active {
        display: block;
    }

    .search-list-panel {
        width: 100%;
    }

    .map-toggle {
        display: flex;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-base) var(--space-lg);
    }

}

/* Tablets (744px - 949px) */
@media (min-width: 744px) and (max-width: 949px) {

    .property-layout {
        flex-direction: column;
    }

    .property-sidebar-wrapper {
        width: 100%;
        position: static;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-map-panel {
        width: 45%;
    }
}

/* Small desktop (950px - 1127px) */
@media (min-width: 950px) and (max-width: 1127px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktop (1128px+) */
@media (min-width: 1128px) {
    .container {
        padding: 0 var(--space-2xl);
    }
}

/* Extra large (1440px+) */
@media (min-width: 1440px) {
    .container-wide {
        padding: 0 80px;
    }

    .properties-section {
        padding: 0 80px;
    }


    .footer-main {
        padding: var(--space-2xl) 80px;
    }

    .footer-bottom {
        padding: var(--space-lg) 80px;
    }
}

/* Print */
@media print {
    .site-header,
    .search-panel,
    .search-overlay,
    .site-footer,
    .mobile-sidebar-bar,
    .card-favorite,
    .pcard-fav,
    .pcard-arrow,
    .pcard-dots,
    .pcard-counter,
    .card-carousel-arrow,
    .card-carousel-dots,
    .property-actions,
    .map-toggle,
    .btn-all-photos {
        display: none !important;
    }

    .property-sidebar-wrapper {
        position: static;
    }

    .property-layout {
        display: block;
    }

    body {
        font-size: 12pt;
    }
}
