/* ============================================
   Property Loop Addon – Estilos Base
   ============================================ */

/* Grid */
.pla-wrapper {
    width: 100%;
}

.pla-grid {
    display: grid;
    gap: 24px;
}

.pla-cols-1 { grid-template-columns: 1fr; }
.pla-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pla-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pla-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .pla-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .pla-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pla-cols-2,
    .pla-cols-3,
    .pla-cols-4 { grid-template-columns: 1fr; }
}

/* Card */
.pla-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pla-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Image */
.pla-card-image {
    overflow: hidden;
}

.pla-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pla-card:hover .pla-card-image img {
    transform: scale(1.04);
}

/* Body */
.pla-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title */
.pla-card-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
}

.pla-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.pla-card-title a:hover {
    color: #e84393;
}

/* Price */
.pla-card-price {
    margin: 0 0 10px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.pla-price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e84393;
}

.pla-price-suffix {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.04em;
}

/* Location */
.pla-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: #666;
    flex-wrap: nowrap;
}

.pla-location-icon {
    color: #e84393;
    flex-shrink: 0;
    font-size: 14px;
}

.pla-location-icon-img {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pla-location-icon-img img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.pla-location-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features */
.pla-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 0 16px;
}

.pla-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 50px;
    flex: 1;
    text-align: center;
}

.pla-feature-icon {
    font-size: 16px;
    color: #e84393;
    line-height: 1;
}

.pla-feature-icon-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pla-feature-icon-img img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.pla-feature-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.pla-feature-label {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Card body wrapper — wraps everything except image */
.pla-card > .pla-card-title,
.pla-card > .pla-card-price,
.pla-card > .pla-location,
.pla-card > .pla-features,
.pla-card > .pla-card-button {
    padding-left: 20px;
    padding-right: 20px;
}

.pla-card > .pla-card-title  { padding-top: 16px; }
.pla-card > .pla-card-button { padding-bottom: 20px; margin-top: auto; }
.pla-card > .pla-features    { margin-left: 20px; margin-right: 20px; margin-bottom: 12px; }

/* Button */
.pla-card-button {
    margin-top: auto;
}

.pla-btn {
    display: inline-block;
    background: #e84393;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    line-height: 1.4;
}

.pla-btn-full {
    display: block;
    width: 100%;
}

.pla-btn:hover {
    background: #c0336c;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* No results */
.pla-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1rem;
}

/* ─── Paginación Números ─── */
.pla-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
}

.pla-pagination a,
.pla-pagination .current,
.pla-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.pla-pagination a {
    color: #e84393;
    border-color: #e84393;
    background: transparent;
}

.pla-pagination a:hover {
    background: #e84393;
    color: #fff;
    text-decoration: none;
}

.pla-pagination .current {
    background: #e84393;
    border-color: #e84393;
    color: #fff;
}

.pla-pagination .dots {
    border-color: transparent;
    color: #999;
    min-width: auto;
}

/* ─── Load More ─── */
.pla-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.pla-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e84393;
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.pla-load-more:hover {
    background: #c0336c;
    transform: translateY(-2px);
}

.pla-load-more:disabled,
.pla-load-more.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.pla-load-more.is-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pla-spin 0.7s linear infinite;
}

@keyframes pla-spin {
    to { transform: rotate(360deg); }
}

/* Elementor Editor placeholder */
.elementor-editor-active .pla-no-results {
    background: #f0f6ff;
    border: 2px dashed #b0c8f0;
    border-radius: 10px;
    color: #3a5fa8;
    padding: 40px;
}
