/* Estilos do dropdown de hóspedes removidos - agora usa nga-guest-selector.css */
/* Estilos do calendário removidos - agora usa o componente calendario-disponibilidade.html */

/* === OVERRIDE PROPERTY-INFO-BAR (apenas botões de ação) === */
/* Com property-stats no subtítulo, alinhar botões à direita */
.property-info-bar {
    justify-content: flex-end;
}

/* === ESTILOS EXISTENTES === */
.amenities-detailed-section {
    margin-top: 48px;
    padding: 32px 0;
    border-top: 1px solid #DDDDDD;
}

.amenity-category {
    margin-bottom: 32px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.category-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-item:last-child {
    border-bottom: none;
}

.rules-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.rule-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF385C;
    flex-shrink: 0;
}

.rule-content h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #222222;
}

.date-input-wrapper {
    position: relative;
}

.date-input-wrapper small {
    display: block;
	margin-top: -10px;
	margin-bottom: 5px;
}

/* Estilos para as avaliações recentes */
.recent-reviews {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #DDDDDD;
}

.recent-reviews-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #222222;
}

.review-item {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F0F0F0;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    background: #F7F7F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #717171;
    font-size: 20px;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #222222;
}

.review-date {
    font-size: 14px;
    color: #717171;
    margin: 4px 0 0 0;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars .fas.fa-star {
    font-size: 14px;
}

.star-filled {
    color: #FFD700;
}

.star-empty {
    color: #E5E5E5;
}

.rating-number {
    font-size: 14px;
    font-weight: 600;
    color: #222222;
}

.review-content {
    margin-bottom: 16px;
}

.review-text {
    font-size: 16px;
    line-height: 1.5;
    color: #222222;
    margin: 0;
}

.property-response {
    background: #F9F9F9;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.response-header strong {
    font-size: 14px;
    color: #222222;
}

.response-date {
    font-size: 12px;
    color: #717171;
}

.response-text {
    font-size: 14px;
    line-height: 1.5;
    color: #222222;
    margin: 0;
}
          
/* Responsive design para avaliações */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .reviewer-info {
        width: 100%;
    }
    
    .review-rating {
        align-self: flex-end;
    }
}

/* Estilos para o Modal de Comodidades */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.comodidades-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 768px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #E5E5E5;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #222;
}

.close-modal {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #717171;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.close-modal:hover {
    background-color: #F7F7F7;
}

.modal-body {
    padding: 24px 32px;
}

.comodidades-category {
    margin-bottom: 32px;
}

.comodidades-category:last-child {
    margin-bottom: 0;
}

.category-title-modal {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F0F0;
}

.comodidades-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    column-gap: 32px;
}

.comodidade-item-modal {
    padding: 12px 16px;
    border-bottom: 1px solid #F7F7F7;
    transition: background-color 0.2s ease;
}

.comodidade-item-modal:hover {
    background-color: #F9F9F9;
}

.comodidade-item-modal:last-child {
    border-bottom: none;
}

.comodidade-nome {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    display: block;
    line-height: 1.3;
}

.comodidade-desc {
    color: #717171;
    font-size: 14px;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* Responsive para mobile */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .comodidades-modal-content {
        max-height: 90vh;
        width: 100%;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .category-title-modal {
        font-size: 18px;
    }

    .comodidades-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .comodidade-item-modal {
        gap: 12px;
    }
}

.show-all-amenities-btn {
    background: none;
    border: 1px solid #222;
    color: #222;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.2s ease;
    display: inline-block;
}

.show-all-amenities-btn:hover {
    background-color: #F7F7F7;
    transform: translateY(-1px);
}

/* Estilos para regras estruturadas */
.regras-estruturadas-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.regra-estruturada-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.regra-estruturada-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.regra-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.regra-icon i {
    font-size: 16px;
}

.regra-content {
    flex: 1;
}

.regra-nome {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.regra-descricao {
    font-size: 14px;
    color: #717171;
    margin: 0;
    line-height: 1.4;
}

/* Responsive design para regras */
@media (max-width: 768px) {
    .regra-estruturada-item {
        padding: 10px;
    }
    
    .regra-nome {
        font-size: 15px;
    }
    
    .regra-descricao {
        font-size: 13px;
    }
}

/* =================================== */
/* ESTILOS PARA O SISTEMA DE TAXAS    */
/* =================================== */

/* Seção de taxas opcionais */
.taxas-opcionais-section {
    animation: slideDown 0.3s ease-out;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.taxa-opcional-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    margin: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 4px;
}

.taxa-opcional-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007BFF;
}

/* Breakdown de preços dinâmico */
.price-breakdown-dynamic {
    animation: fadeIn 0.3s ease-out;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #222;
}

.price-row.taxa-row {
    padding-left: 16px;
    font-size: 13px;
}

.price-row.taxa-row.opcional {
    color: #007BFF;
}

.price-section-divider {
    height: 1px;
    background: #e9ecef;
    margin: 12px 0 8px 0;
}

.price-row.total {
    padding-top: 12px;
    font-size: 16px;
    border-top: 2px solid #222;
    font-weight: 600;
}

.price-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;  /* Sobrescreve branco de institucional.css */
}

/* Estados das taxas */
.taxa-opcional-item.selecionada {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.taxa-opcional-item.selecionada .valor-taxa {
    font-weight: 700;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.guest-selector-dropdown {
    animation: dropDown 0.2s ease-out;
}

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

/* Hover effects */
.taxa-opcional-item:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: translateX(2px);
}

.taxa-opcional-item:hover .valor-taxa {
    font-weight: 600;
}

/* Checkbox customizado */
.taxa-opcional-checkbox:checked {
    transform: scale(1.1);
}

/* Valor da taxa */
.valor-taxa {
    font-size: 14px;
    font-weight: 500;
    color: #007BFF;
    white-space: nowrap;
    transition: font-weight 0.2s ease;
}

/* Botão de reserva quando há taxas selecionadas */
.booking-card .reserve-button {
    position: relative;
    transition: all 0.3s ease;
}

.booking-card .reserve-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px;
}

/* Indicador de taxas obrigatórias */
.taxas-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.taxas-info-badge i {
    font-size: 10px;
}

/* Loading indicator para cálculos */
.price-calculating {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.price-calculating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007BFF;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .taxas-opcionais-section {
        margin: 12px -8px;
        padding: 12px;
        border-radius: 4px;
    }
    
    .taxa-opcional-item {
        padding: 10px 4px;
        font-size: 14px;
    }
    
    .price-breakdown-dynamic {
        font-size: 13px;
    }
    
    .price-row {
        padding: 8px 0;
    }
    
    .valor-taxa {
        font-size: 13px;
    }
}

/* Animação suave para mudanças de preço */
.price-updated {
    animation: pulsePrice 0.5s ease;
}

@keyframes pulsePrice {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: rgb(0, 153, 153);
    }
}


/* ========================================
   ESTILOS PARA REDIRECIONAMENTO AO CALENDÁRIO
   ======================================== */

/* Animação de destaque para o calendário */
@keyframes calendario-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 153, 153, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(0, 153, 153, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 153, 153, 0);
        transform: scale(1);
    }
}

/* Classe aplicada quando o usuário clica no campo de data */
.calendario-highlight {
    animation: calendario-pulse 1s ease-out;
    border: 2px solid rgb(0, 153, 153);
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Estilo para inputs de data readonly */
input[type="date"][readonly] {
    cursor: pointer !important;
    background-color: white !important;
    opacity: 1 !important;
}

/* Indicador visual quando hover nos campos de data */
input[type="date"][readonly]:hover {
    background-color: #f7f7f7 !important;
    border-color: rgb(0, 153, 153);
    transition: all 0.2s ease;
}

/* ========================================
   PROPERTY INTRO ROW - Layout 8+4 Colunas
   Container flex para property-intro + reviews
   ======================================== */

.property-intro-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

.property-intro-col-8 {
    flex: 0 0 calc(66.666% - 12px); /* 8/12 colunas */
    max-width: calc(66.666% - 12px);
}

.property-intro-col-4 {
    flex: 0 0 calc(33.333% - 12px); /* 4/12 colunas */
    max-width: calc(33.333% - 12px);
}

/* ========================================
   REVIEWS SUMMARY CARD (4 colunas)
   Card compacto com resumo das avaliações
   ======================================== */

.reviews-summary-card {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Header com Nota Grande */
.reviews-summary-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #EBEBEB;
    margin-bottom: 20px;
}

.reviews-summary-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.reviews-summary-rating i {
    color: #FF385C; /* Cor estilo Airbnb */
    font-size: 24px;
}

.reviews-summary-rating .rating-number {
    font-size: 32px;
    font-weight: 600;
    color: #222222;
}

.reviews-summary-count {
    font-size: 14px;
    color: #717171;
}

/* Categorias com Mini Barras */
.reviews-summary-categories {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-category {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-category .category-label {
    flex: 0 0 90px;
    font-size: 13px;
    color: #484848;
}

.mini-rating-bar {
    flex: 1;
    height: 4px;
    background: #DDDDDD;
    border-radius: 2px;
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    background: #222222;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.summary-category .category-value {
    flex: 0 0 30px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #222222;
}

/* Estado vazio - sem avaliações */
.reviews-summary-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #717171;
    padding: 20px 0;
}

.reviews-summary-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #DDDDDD;
}

.reviews-summary-empty p {
    font-size: 14px;
    margin: 0;
}

/* Link para Ver Todas */
.reviews-summary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #EBEBEB;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reviews-summary-link:hover {
    color: #00A699;
}

.reviews-summary-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.reviews-summary-link:hover i {
    transform: translateX(4px);
}

/* ========================================
   RESPONSIVO - Layout 8+4
   ======================================== */

@media (max-width: 992px) {
    .property-intro-row {
        flex-direction: column;
    }

    .property-intro-col-8,
    .property-intro-col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .reviews-summary-card {
        /* Em tablet, mostrar como card horizontal compacto */
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 16px 20px;
    }

    .reviews-summary-header {
        flex: 0 0 auto;
        padding: 0 20px 0 0;
        margin: 0;
        border-bottom: none;
        border-right: 1px solid #EBEBEB;
        text-align: left;
    }

    .reviews-summary-categories {
        flex: 1;
        padding-left: 20px;
    }

    .reviews-summary-link {
        flex: 0 0 100%;
        margin-top: 12px;
        padding-top: 12px;
    }

    .reviews-summary-empty {
        flex: 1;
        padding: 8px 0 8px 20px;
        flex-direction: row;
        gap: 12px;
    }

    .reviews-summary-empty i {
        font-size: 24px;
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .reviews-summary-card {
        flex-direction: column;
    }

    .reviews-summary-header {
        border-right: none;
        border-bottom: 1px solid #EBEBEB;
        padding: 0 0 16px 0;
        margin-bottom: 16px;
        width: 100%;
        text-align: center;
    }

    .reviews-summary-categories {
        padding-left: 0;
        width: 100%;
    }

    .reviews-summary-empty {
        flex-direction: column;
        padding: 20px 0;
    }

    .reviews-summary-empty i {
        font-size: 32px;
        margin-bottom: 12px;
    }
}

/* ========================================
   PROPERTY INTRO SECTION (8 colunas)
   Seção destacada com info do host, descrição e badges
   ======================================== */

.property-intro-section {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    padding: 24px 32px;
    /* margin-bottom removido - container .property-intro-row já tem margin */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- Host Info (horizontal) --- */
.intro-host {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.intro-host-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.intro-host-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #718096;
    overflow: hidden;
    border: 3px solid #00A699;
}

.intro-host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-host-verified {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #00A699;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
}

.intro-host-details h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
}

.intro-host-details p {
    font-size: 15px;
    color: #718096;
    margin: 0;
}

/* --- Descrição (compacta) --- */
.intro-description {
    padding: 20px 0;
    border-bottom: 1px solid #edf2f7;
}

.intro-description-text {
    font-size: 15px;
    line-height: 1.6;
    color: #111827;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.intro-description .btn-show-more {
    background: none;
    border: none;
    color: #111827;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.intro-description .btn-show-more:hover {
    color: #00A699;
}

/* --- Highlights (badges horizontais) --- */
.intro-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f7fafc;
    border-radius: 24px;
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.highlight-badge:hover {
    background: #edf2f7;
    transform: translateY(-1px);
}

.highlight-badge i {
    color: #00A699;
    font-size: 14px;
}

.highlight-badge.verified {
    background: rgba(0, 166, 153, 0.1);
    color: #00A699;
    border-color: rgba(0, 166, 153, 0.2);
}

.highlight-badge.verified i {
    color: #00A699;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .property-intro-section {
        padding: 20px 16px;
        margin: 0 -8px 16px;
        border-radius: 8px;
    }

    .intro-host {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .intro-host-avatar {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .intro-host-details h2 {
        font-size: 18px;
    }

    .intro-host-details p {
        font-size: 14px;
    }

    .intro-description-text {
        font-size: 14px;
    }

    .intro-highlights {
        justify-content: center;
        gap: 8px;
    }

    .highlight-badge {
        padding: 8px 12px;
        font-size: 13px;
    }
}