/* =========================
   PROPIEDADES (LISTADO)
   ========================= */

.pl-page {
    background: #fff;
}

.pl-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 64px 24px;
}

.pl-head {
    margin-bottom: 28px;
}

.pl-title {
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}

.pl-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.pl-count {
    color: #666;
    font-size: .9375rem;
    margin: 0;
}

.pl-filterBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e6e6e6;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.pl-filterBtn svg {
    width: 18px;
    height: 18px;
}

.pl-filterBtn:hover {
    background: #fafafa;
    border-color: #dcdcdc;
    transform: translateY(-1px);
}

.pl-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pl-sortLabel {
    font-size: .8125rem;
    letter-spacing: .05em;
    font-weight: 500;
    color: #444;
}

.pl-sortSelect {
    border: 1px solid #e6e6e6;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    font-size: .9375rem;
}

.pl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.pl-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ededed;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    text-decoration: none;
    color: #111;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.pl-chip:hover {
    transform: translateY(-1px);
    border-color: #dcdcdc;
    background: #fafafa;
}

.pl-chipKey {
    color: #777;
    font-size: .8125rem;
    letter-spacing: .02em;
}

.pl-chipVal {
    font-size: .875rem;
}

.pl-chipX {
    color: #888;
    font-size: 1.1rem;
    line-height: 1;
    margin-left: 2px;
}

.pl-chipClear {
    display: inline-flex;
    align-items: center;
    font-size: .875rem;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, .25);
    padding: 6px 2px;
}

.pl-chipClear:hover {
    border-bottom-color: rgba(0, 0, 0, .6);
}

.pl-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    margin-top: 22px;
}

.pl-aside {
    position: relative;
}

.pl-main {
    min-width: 0;
}

.pl-filterBox {
    background: #fafaf8;
    padding: 26px;
    border-radius: 10px;
    position: sticky;
    top: 120px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pl-filterTitle {
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
}

.pl-field {
    margin-top: 16px;
}

.pl-label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-size: .8125rem;
    letter-spacing: .05em;
    font-weight: 500;
}

.pl-input,
.pl-select {
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .9375rem;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
    outline: none;
}

.pl-input:hover,
.pl-select:hover {
    border-color: #dcdcdc;
}

.pl-input:focus,
.pl-select:focus {
    border-color: #cfcfcf;
}

.pl-selectWrap {
    position: relative;
}

.pl-select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

.pl-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
}

.pl-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pl-actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.pl-apply {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #111;
    color: #fff;
    padding: 13px 16px;
    font-size: .875rem;
    letter-spacing: .05em;
    font-weight: 500;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.pl-apply:hover {
    background: #000;
    transform: translateY(-1px);
}

.pl-clear {
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 13px 16px;
    text-align: center;
    text-decoration: none;
    color: #444;
    font-size: .875rem;
    letter-spacing: .05em;
    background: #fff;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.pl-clear:hover {
    background: #fafafa;
    border-color: #dcdcdc;
    transform: translateY(-1px);
}

.pl-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pl-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.pl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.10);
}

.pl-cardMedia {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.pl-cardMedia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform .7s ease;
}

.pl-card:hover .pl-cardMedia img {
    transform: scale(1.05);
}

.pl-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .6875rem;
    letter-spacing: .08em;
    font-weight: 500;
}

.pl-cardBody {
    padding: 18px;
}

.pl-price {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.pl-cardTitle {
    margin: 0 0 10px;
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.pl-loc {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #666;
    font-size: .875rem;
    margin-bottom: 12px;
}

.pl-loc svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #b0b0b0;
    margin-top: 2px;
}

.pl-feats {
    display: flex;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #f3f3f3;
    color: #444;
    flex-wrap: wrap;
}

.pl-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
}

.pl-feat svg {
    width: 16px;
    height: 16px;
    color: #b0b0b0;
}

.pl-empty {
    text-align: center;
    padding: 64px 18px;
}

.pl-emptyIcon {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #9b9b9b;
}

.pl-emptyIcon svg {
    width: 40px;
    height: 40px;
}

.pl-emptyTitle {
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 300;
    margin: 0 0 10px;
}

.pl-emptyText {
    color: #666;
    margin: 0 auto 16px;
    max-width: 520px;
    font-size: .9375rem;
    line-height: 1.7;
}

.pl-emptyBtn {
    display: inline-flex;
    background: #111;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: .875rem;
    letter-spacing: .05em;
    font-weight: 500;
}

.pl-emptyBtn:hover {
    background: #000;
}

/* Drawer mobile */
.pl-drawerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 90;
}

.pl-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    background: #fff;
    z-index: 100;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
}

.pl-drawer.is-open {
    transform: translateX(0);
}

.pl-drawerTop {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pl-drawerTitle {
    margin: 0;
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.pl-drawerClose {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.pl-drawerClose:hover {
    background: #ededed;
}

.pl-drawerBody {
    padding: 18px;
}

.pl-drawerBody .pl-filterBox {
    position: static;
    top: auto;
}

/* Lock scroll cuando drawer abierto */
.pl-lock {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1100px) {
    .pl-grid {
        grid-template-columns: 1fr;
    }

    .pl-aside {
        display: none;
    }

    .pl-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pl-container {
        padding: 44px 16px;
    }

    .pl-bar {
        align-items: flex-start;
    }

    .pl-sort {
        width: 100%;
        justify-content: flex-end;
    }

    .pl-cards {
        grid-template-columns: 1fr;
    }
}

/* Desktop: oculto botón filtros */
@media (min-width: 1101px) {
    .pl-filterBtn {
        display: none;
    }

    .pl-drawer,
    .pl-drawerOverlay {
        display: none !important;
    }
}