/* Container Principal - Grid Responsivo */
.hospedagens-container {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    padding: 10px 0;
}

/* Grid responsivo otimizado para diferentes telas */
@media (min-width: 1400px) {
    .hospedagens-container {
        grid-template-columns: repeat(4, 1fr); /* 4 colunas em telas muito grandes */
        gap: 25px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hospedagens-container {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas em telas grandes */
        gap: 20px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hospedagens-container {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas em tablets grandes */
        gap: 18px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hospedagens-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .hospedagens-container {
        grid-template-columns: 1fr; /* 1 coluna em mobile */
        gap: 15px;
        padding: 0 10px;
    }
}

/* Card Principal */
.hosp-card-wrapper {
    width: 100%;
}

.hosp-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hosp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 94, 164, 0.15);
}

/* Container da Imagem */
.hosp-card-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.hosp-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hosp-card:hover .hosp-card-image {
    transform: scale(1.08);
}

/* Badge de Avaliação */
.hosp-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f39c12;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Badge de Aprovado */
.hosp-card-approved {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(40, 167, 69, 0.95);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Botão Favorito */
.hosp-card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.hosp-card-favorite:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.hosp-card-favorite i {
    color: #e74c3c;
    font-size: 1.1rem;
}

.hosp-card-favorite.favorited i {
    color: #e74c3c;
}

/* Corpo do Card */
.hosp-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.hosp-card-header {
    margin-bottom: 12px;
}

.hosp-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #005ea4, #0095ae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hosp-card-empresa {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hosp-card-empresa i {
    color: #0095ae;
    flex-shrink: 0;
}

/* Localização */
.hosp-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.hosp-card-location i {
    color: #e74c3c;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.hosp-card-location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Informações */
.hosp-card-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .hosp-card-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
}

.hosp-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #0095ae;
    font-weight: 500;
}

.hosp-info-item i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Comodidades */
.hosp-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    margin-top: auto;
}

.amenity-tag {
    background: #f0f8ff;
    color: #005ea4;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    white-space: nowrap;
}

.amenity-more {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Footer */
.hosp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Botão */
.hosp-card-btn {
    background: linear-gradient(135deg, #005ea4, #0095ae);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
}

.hosp-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 94, 164, 0.3);
    color: white;
    text-decoration: none;
}

/* Preço */
.hosp-card-price {
    text-align: right;
    min-width: fit-content;
    flex-shrink: 0;
}

.price-label {
    display: block;
    font-size: 0.7rem;
    color: #0095ae;
    font-weight: 600;
    margin-bottom: -2px;
}

.price-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0095ae;
}

.price-period {
    display: block;
    font-size: 0.7rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Estado Vazio */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0095ae;
}

.empty-state p {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0;
}

/* Responsividade Mobile */
@media (max-width: 576px) {
    .hosp-card-body {
        padding: 15px;
    }
    
    .hosp-card-title {
        font-size: 1.1rem;
    }
    
    .hosp-card-info {
        font-size: 0.8rem;
    }
    
    .hosp-card-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .price-value {
        font-size: 1.1rem;
    }
    
    .amenity-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .hosp-card-footer {
        gap: 10px;
    }
}

/* Animações melhoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hosp-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hosp-card:nth-child(2) { animation-delay: 0.1s; }
.hosp-card:nth-child(3) { animation-delay: 0.2s; }
.hosp-card:nth-child(4) { animation-delay: 0.3s; }