/* ============================================================
   TUPROXIMOHOGAR — pag_propiedades RESPONSIVE
   Archivo: Estilos/Estilos_propie/propiedades_responsive.css
   Linkear ÚLTIMO en pag_propiedades.php
============================================================ */
 
/* ── NAVBAR TOGGLE ANIMACIÓN ───────────────────────────────── */
 
.navbar__toggle.is-active .navbar__toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar__toggle.is-active .navbar__toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar__toggle.is-active .navbar__toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
 
/* ── TABLET (max 992px) ────────────────────────────────────── */
 
@media (max-width: 992px) {
 
    /* Hero */
    .hero_section {
        height: 420px;
        margin-top: 0;
    }
 
    .hero_title {
        font-size: 48px;
    }
 
    /* Grid: 2 columnas */
    .properties_grid {
        grid-template-columns: repeat(2, 1fr);
    }
 
    /* Filtros: 2 columnas */
    .properties_top_filters {
        grid-template-columns: 1fr 1fr;
    }
}
 
/* ── MOBILE (max 768px) ────────────────────────────────────── */
 
@media (max-width: 768px) {
 
    /* ── Hero ── */
    .hero_section {
        height: 380px;
        margin-top: 0;
    }
 
    .hero_overlay {
        padding-left: 5%;
        padding-right: 5%;
        align-items: center;
    }
 
    .hero_content {
        max-width: 100%;
    }
 
    .hero_title {
        font-size: 34px;
        margin-bottom: 14px;
    }
 
    .hero_description {
        font-size: 15px;
        margin-bottom: 24px;
    }
 
    .hero_buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
 
    .hero_btn_gold,
    .hero_btn_outline {
        height: 50px;
        padding: 0 24px;
        font-size: 14px;
        width: 100%;
    }
 
    /* ── Filtros ── */
    .properties_section {
        padding: 16px 5%;
    }
 
    .properties_top_filters {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
 
    .properties_filter_search,
    .properties_filter_box {
        width: 100%;
    }
 
    .properties_filter_input,
    .properties_filter_select {
        width: 100%;
        font-size: 14px;
    }
 
    .properties_more_filters {
        width: 100%;
        justify-content: center;
    }
 
    .properties_clear_filters {
        width: 100%;
        text-align: center;
        display: block;
    }
 
    /* ── Results topbar ── */
    .properties_results_section {
        padding: 16px 5%;
    }
 
    .properties_results_top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 24px;
    }
 
    .properties_results_actions {
        width: 100%;
        justify-content: space-between;
    }
 
    .properties_sort_box {
        flex: 1;
        padding: 12px 14px;
    }
 
    .properties_sort_select {
        width: 100%;
    }
 
    /* ── Grid: 1 columna ── */
    .properties_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
 
    /* ── Cards ── */
    .property_image_container {
        height: 220px;
    }
 
    .property_content h3 {
        font-size: 17px;
    }
 
    .property_content p {
        font-size: 14px;
    }
 
    .property_features {
        gap: 12px;
    }
 
    .property_features span {
        font-size: 13px;
    }
 
    /* Botones de la card: siempre visibles, no absolutos */
    .property_buttons {
        position: static;
        margin-top: 18px;
        padding: 0 24px 20px;
        gap: 10px;
    }
 
    .property_content {
        padding-bottom: 0;
    }
 
    .property_details,
    .property_whatsapp {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
    }
 
    /* ── Paginación ── */
    .properties_pagination_section {
        padding: 40px 0 60px;
    }
 
    .properties_pagination {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 5%;
    }
 
    .pagination_btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 14px;
    }
 
    /* ── Footer ── */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 40px;
    }
 
    .footer__logo {
        font-size: 26px;
    }
 
    .footer__tagline {
        font-size: 14px;
        max-width: 100%;
    }
 
    .footer__heading {
        font-size: 18px;
        margin-bottom: 14px;
    }
 
    .footer__bottom {
        font-size: 13px;
    }
}
 
/* ── MOBILE PEQUEÑO (max 480px) ────────────────────────────── */
 
@media (max-width: 480px) {
 
    .hero_section {
        height: 340px;
    }
 
    .hero_title {
        font-size: 28px;
    }
 
    .hero_description {
        font-size: 14px;
        margin-bottom: 20px;
    }
 
    .property_image_container {
        height: 190px;
    }
 
    .pagination_btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}
 
/* ── FIXES VISUALES (hero cortado + filtros) ───────────────── */
 
@media (max-width: 768px) {
 
    /* Fix: título tapado por navbar fija */
    .hero_section {
        padding-top: 80px;
    }
 
    .hero_overlay {
        padding-top: 0;
        align-items: flex-end;
        padding-bottom: 40px;
    }
 
    /* Fix: reducir espacio entre filtros */
    .properties_top_filters {
        gap: 8px;
    }
 
    .properties_filter_box,
    .properties_filter_search {
        margin: 0;
    }
}