
/* 
 * CSS UNIFICADO - SISTEMA DE HOSPEDAGEM
 * Este arquivo contém todos os estilos do sistema, organizados por seções
 */

/* ================================
   VARIÁVEIS GLOBAIS
   ================================ */
:root {
    --primary: #FF6F61;
    --primary-light: #ffebe8;
    --primary-dark: #E15A4D;
    --secondary: #F4C542;
    --secondary-light: #FFF9E6;
    --secondary-dark: #E0B32F;
    --success: #4CAF50;
    --success-light: #e5f7e9;
    --success-dark: #3A9D3F;
    --background: #FAFAFA;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --border: #E0E0E0;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
}

/* ================================
   ESTILOS GLOBAIS
   ================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Titulos e seções */
h1 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

/* Textos auxiliares */
.text-muted {
    color: var(--text-light) !important;
}

small.text-muted {
    font-size: 0.85rem;
}

/* ================================
   COMPONENTES DE NAVEGAÇÃO
   ================================ */
.navbar-custom, .navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.4rem;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text) !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
}

.nav-link svg, .nav-link i {
    margin-right: 5px;
}

/* ================================
   BOTÕES E INTERAÇÕES
   ================================ */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
}

.btn-reserve {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reserve:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
    color: white;
}

.btn-sort {
    background-color: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-sort:hover, 
.btn-sort:focus {
    background-color: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.badge.bg-danger {
    background-color: var(--primary) !important;
}

.amenity-badge {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
}

.more-badge {
    background-color: var(--gray-200);
    color: var(--text-light);
}

.cancellation-policy {
    background-color: var(--success-light);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: 50px;
    display: inline-block;
}

/* Dropdown */
.dropdown-item.active, 
.dropdown-item:active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* ================================
   FORMULÁRIOS
   ================================ */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border);
}

.search-box .form-control, .search-box .form-select {
    height: 50px;
    border-radius: 8px;
}

/* ================================
   CARDS E CONTAINERS
   ================================ */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.card-body {
    padding: 1.5rem;
}

/* Card específico de detalhes */
.card-detalhes {
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-detalhes:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card-detalhes h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.card-detalhes h6 i {
    margin-right: 8px;
    color: var(--primary);
}

.card-detalhes ul {
    padding-left: 1.5rem;
}

.card-detalhes ul li {
    margin-bottom: 0.5rem;
}

/* Card de resultado de busca */
.resultado-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

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

/* Cards da página inicial */
.featured-properties .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.featured-properties .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-properties .card img {
    height: 220px;
    object-fit: cover;
}

.featured-properties .text-primary,
.card-body .text-primary {
    color: var(--primary) !important;
}

/* Testimonials */
.testimonial-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.star-rating {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* ================================
   SEÇÕES ESPECIAIS
   ================================ */
/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../../assets/images/webreserva-hero.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

.search-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Seção de benefícios */
.benefits-section {
    background-color: var(--gray-100);
    padding: 60px 0;
    margin: 50px 0;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Seção de resultados */
.results-section {
    background-color: #f8f9fb;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.results-header {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.results-header:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.results-count {
    font-size: 1.1rem;
}

.results-count strong {
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 4px;
}

.sort-label {
    color: var(--text-light);
    font-weight: 500;
}

/* ================================
   COMPONENTES DE IMAGEM
   ================================ */
/* Imagens de resultados */
.room-image-container {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resultado-card:hover .room-image {
    transform: scale(1.05);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #fff;
    height: 100%;
    font-size: 3rem;
}

/* Carrossel de fotos */
.carousel-item img {
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    height: 50px;
    width: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

/* Placeholder para fotos */
.foto-placeholder {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    border-radius: 12px;
}

.foto-placeholder-icon {
    font-size: 6rem;
    color: var(--gray-300);
}

/* Cartas de destino */
.destination-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    margin-bottom: 30px;
}

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

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

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
}

/* Galeria de fotos */
.galeria-titulo {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9e9e9;
}

.galeria-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.galeria-fotos img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.galeria-fotos img:hover {
    transform: scale(1.05);
}

.modal-galeria .modal-body {
    padding: 0;
}

.modal-galeria .carousel-item img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* ================================
   COMPONENTES ESPECÍFICOS
   ================================ */
/* Informações de quarto */
.room-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.property-location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.location-icon {
    color: var(--primary);
    font-size: 0.9rem;
    margin-right: 0.3rem;
}

.room-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Separador */
.feature-divider {
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
    margin: 0.8rem 0;
}

/* Características do quarto */
.room-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feature-icon {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Amenidades */
.amenidades-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.amenidades-lista i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary);
}

.amenidades-lista .col-md-6 {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.amenidades-lista .col-md-6:hover {
    background-color: var(--gray-100);
    border-radius: 6px;
}

/* Ícones de informação */
.icon-info {
    display: inline-block;
    width: 25px;
    text-align: center;
    margin-right: 8px;
    color: var(--primary);
}

/* Área de preço */
.price-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
}

.price-container {
    text-align: right;
}

.price-value, .preco-total {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.price-details {
    color: var(--text-lighter);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.action-container {
    margin-top: 1rem;
}

/* Resumo da reserva */
.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.detalhe-diaria {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.detalhe-diaria:last-child {
    border-bottom: none;
}

.detalhe-diaria .bi {
    color: var(--primary);
    margin-right: 5px;
}

/* Estado vazio */
.empty-search-container {
    text-align: center;
    padding: 4rem 0;
}

.empty-search-icon {
    font-size: 3.5rem;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
}

.empty-search-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.empty-search-text {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Alertas personalizados */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.empty-results {
    background-color: var(--secondary-light);
    color: var(--text);
    border-left: 4px solid var(--secondary);
}

/* Regras e Políticas */
.regra-item {
    margin-bottom: 15px;
}

.regra-item h6 {
    margin-bottom: 5px;
}

.politica-cancelamento {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

/* ================================
   FOOTER
   ================================ */
footer {
    background-color: var(--white) !important;
    border-top: 1px solid var(--gray-200);
    padding: 2rem 0;
    text-decoration: none
}

footer h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-decoration: none
}

footer a {
    color: var(--text) !important;
    transition: color 0.2s ease;
    text-decoration: none
}

footer a:hover {
    color: var(--primary) !important;
    text-decoration: none
}

/* ================================
   RESPONSIVIDADE
   ================================ */
@media (max-width: 992px) {
    .carousel-item img, .foto-placeholder {
        height: 350px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .search-box {
        margin-top: 20px;
    }
    
    .carousel-item img, .foto-placeholder {
        height: 300px;
    }
    
    .sticky-sidebar {
        position: static;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
    }
    
    .price-column {
        border-left: none;
        border-top: 1px solid var(--border);
        margin-top: 1rem;
        padding-top: 1rem;
        padding-left: 0;
    }
    
    .price-container {
        text-align: left;
    }
    
    .room-image-container {
        min-height: 200px;
    }
    
    .room-features {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-item img, .foto-placeholder {
        height: 250px;
    }
}

/* Adicionar hover effect para o botão */
.action-container a.btn:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Animação sutil para o badge de oferta */
.badge {
    position: relative;
    overflow: hidden;
}

.badge::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}
