/* ================================
   NUEVO DISEÑO DE TARJETAS
   Basado en el ejemplo del usuario
   ================================ */

/* Botones de filtro rápido */
.inmotek-quick-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.inmotek-quick-filter {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.inmotek-filter-price-drop {
    background: #dc2626;
}

.inmotek-filter-price-drop:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.inmotek-filter-new,
.inmotek-filter-featured,
.inmotek-filter-rent {
    background: #4f46e5;
}

.inmotek-filter-new:hover,
.inmotek-filter-featured:hover,
.inmotek-filter-rent:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.inmotek-quick-filter:active {
    transform: translateY(0);
}

/* Grid de tarjetas - Configurable */
.inmotek-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Por defecto 3 columnas */
    gap: 24px;
    margin: 20px 0;
}

/* Clases para diferentes números de columnas */
.inmotek-properties-grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.inmotek-properties-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.inmotek-properties-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Tarjeta individual */
.inmotek-property-card-new {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.inmotek-property-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Contenedor de imagen */
.inmotek-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.inmotek-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inmotek-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Badge de operación (arriba izquierda) */
.inmotek-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #10b981;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Contador de fotos (abajo izquierda) */
.inmotek-photo-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

/* Referencia (abajo derecha) */
.inmotek-ref-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Contenido de la tarjeta */
.inmotek-card-content {
    padding: 10px;
}

/* Precio grande */
.inmotek-price-large {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1;
}

/* Título en azul */
.inmotek-title-blue {
    font-size: 15px;
    font-weight: 400;
    color: #2563eb;
    margin: 0 0 16px 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.inmotek-card-link:hover .inmotek-title-blue {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Características en línea horizontal */
.inmotek-features-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 0px;
}

.inmotek-feature-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #4b5563;
}

/* Separador entre características */
.inmotek-feature-inline:not(:last-child)::after {
    content: "|";
    margin-left: 12px;
    color: #d1d5db;
}

/* Botones de acción - DISEÑO COMPACTO */
.inmotek-card-actions {
    display: flex;
    gap: 16px;
    padding: 0 10px 10px 10px;
    border-top: 1px solid #f0f0f0;
}

.inmotek-btn-call,
.inmotek-btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
}

.inmotek-btn-call {
    color: #dc2626;
}

.inmotek-btn-call:hover {
    opacity: 0.7;
}

.inmotek-btn-contact {
    color: #dc2626;
}

.inmotek-btn-contact:hover {
    opacity: 0.7;
}

.inmotek-btn-favorite {
    margin-left: auto;
    width: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
    color: #9ca3af;
}

.inmotek-btn-favorite:hover {
    transform: scale(1.2);
    color: #dc2626;
}

/* Responsive */
@media (max-width: 1200px) {
    .inmotek-properties-grid.grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .inmotek-properties-grid,
    .inmotek-properties-grid.grid-cols-2,
    .inmotek-properties-grid.grid-cols-3,
    .inmotek-properties-grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .inmotek-price-large {
        font-size: 20px;
    }
    
    .inmotek-title-blue {
        font-size: 14px;
    }
    
    .inmotek-features-inline {
        font-size: 12px;
    }
}

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

@media (min-width: 1025px) {
    .inmotek-properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================
   FORMULARIO DE BÚSQUEDA
   ================================ */

.inmotek-more-filters {
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0;
}

.inmotek-more-filters summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    color: #2563eb;
    user-select: none;
    list-style: none;
}

.inmotek-more-filters summary::-webkit-details-marker {
    display: none;
}

.inmotek-more-filters summary::before {
    content: "▼ ";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s;
}

.inmotek-more-filters[open] summary::before {
    transform: rotate(180deg);
}

.inmotek-more-filters[open] {
    padding: 12px 16px;
}

.inmotek-form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.inmotek-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.inmotek-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.inmotek-search-results {
    margin-top: 30px;
}

.inmotek-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.inmotek-no-results {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
}

.inmotek-error {
    text-align: center;
    padding: 20px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

