/* Estilos específicos para a página de quartos */

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.room-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-images {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.room-card:hover .room-images img {
    transform: scale(1.05);
}

.room-card h3 {
    font-size: 1.8rem;
    margin: 20px 20px 10px;
    color: #333;
}

.room-card p {
    font-size: 1rem;
    color: #666;
    padding: 0 20px 15px;
    flex-grow: 1; /* Faz o parágrafo ocupar o espaço restante */
}

.amenities-list {
    list-style: none;
    padding: 0 20px 15px;
    font-size: 0.95rem;
    color: #555;
}

.amenities-list li {
    margin-bottom: 5px;
}

.amenities-list i {
    color: #28a745;
    margin-right: 8px;
}

.room-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.room-details span i {
    color: #ff6f61;
    margin-right: 5px;
}

.room-card .btn-reserve {
    display: block;
    width: calc(100% - 40px);
    margin: 20px;
    text-align: center;
    padding: 12px 25px;
    background-color: #ff6f61;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.room-card .btn-reserve:hover {
    background-color: #e65c50;
}

/* Modal de Reserva */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content input[type="date"],
.modal-content input[type="number"],
.modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-content .total-price {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
    color: #333;
}

.modal-content .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Responsividade do Modal */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}


