/**
 * AlquiloHabitaciones Anuncios CSS
 */

/* Admin Styles */
.anuncio-meta-box {
    padding: 15px;
}

.anuncio-meta-box table {
    width: 100%;
}

.anuncio-meta-box th {
    text-align: left;
    padding: 10px 0;
    font-weight: 600;
}

.anuncio-meta-box td {
    padding: 10px 0;
}

/* Frontend - Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.listing-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.listing-card.featured {
    border: 3px solid #f39c12;
}

.listing-card.featured::before {
    content: 'Destacado';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f39c12;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

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

.listing-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.1);
}

.listing-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.listing-content {
    padding: 20px;
}

.listing-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.listing-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-location .icon {
    font-size: 16px;
}

.listing-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.listing-features span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.listing-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.listing-price span {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Search Form */
.search-form {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: #e74c3c;
}

.search-submit {
    width: 100%;
    padding: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-submit:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Single Listing */
.single-anuncio .listing-gallery {
    margin-bottom: 30px;
}

.single-anuncio .listing-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.single-anuncio .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.single-anuncio .detail-label {
    font-weight: 600;
    color: #2c3e50;
}

.single-anuncio .contact-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .search-fields {
        grid-template-columns: 1fr;
    }

    .listing-features {
        font-size: 13px;
        gap: 10px;
    }
}
