/* ==========================================================================
   RADHA CORE — HOME.CSS
   Estilos da página inicial: Hero Fullscreen, Diferenciais, Promoções, Journal
   Mobile-first rigoroso | Vanilla CSS | Variáveis do theme.json
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CONTAINER GLOBAL (herdado do style.css, reforçado aqui para clareza)
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   2. HERO FULLSCREEN — PRIMEIRA DOBRA
   -------------------------------------------------------------------------- */
.radha-hero-fullscreen {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Background */
.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-background--fallback {
    background: linear-gradient(
        160deg,
        var(--bg-color, #faf8f5) 0%,
        var(--accent-color, #8c7a6b) 100%
    );
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--hero-overlay-start) 0%,
        var(--hero-overlay-mid) 40%,
        var(--hero-overlay-end) 100%
    );
    z-index: 1;
}

/* Corpo central do hero — ocupa o espaço disponível */
.hero-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 120px; /* compensa header fixo */
    padding-bottom: 3rem;
}

/* Conteúdo de texto */
.hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.75);
    margin: 0 0 0.75rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 4rem 0 1rem;
    text-shadow: 0 2px 32px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ancora da booking bar — fixa ao bottom do hero */
.hero-booking-anchor {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-bottom: 3rem;
    width: 100%;
    max-width: 100%;
}

/*
 * Booking bar dentro do hero — versão otimizada.
 *
 * O fundo é translúcido para deixar ver a fotografia do hero por trás,
 * e o desfoque (`backdrop-filter`) é o que torna essa leitura confortável:
 * sem ele, o alfa baixo deixaria o texto dos rótulos a competir com a
 * imagem. O `saturate` evita que o desfoque produza um tom lavado.
 *
 * Os campos (`input`/`select`) mantêm fundo sólido `#fff`, por isso a
 * leitura dos valores nunca depende da transparência da barra.
 */
.radha-booking-bar-wrapper {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--booking-blur, 10px)) saturate(1.15);
    -webkit-backdrop-filter: blur(var(--booking-blur, 20px)) saturate(1.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
    box-sizing: border-box;
}

/* Versão centralizada no hero (home page) */
.radha-booking--centered .radha-booking-bar-wrapper {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow:
        0 8px 48px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

/*
 * Sem suporte a `backdrop-filter` não há desfoque para compensar o alfa
 * baixo, por isso a barra volta a ser praticamente opaca.
 */
@supports not ( (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) ) {
    .radha-booking-bar-wrapper {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Versão centralizada no hero (home page) */
.radha-booking--centered .radha-booking-bar-wrapper {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 
        0 8px 48px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    padding: 1.5rem 2rem;
}

.radha-booking--centered .radha-hb-search-form,
.radha-booking--centered .hb-search-form {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

/* Versão compacta (hero) */
.radha-booking--compact .radha-hb-search-form {
    gap: 0.5rem;
}

.radha-booking--compact .radha-form-table,
.radha-booking--compact .hb-form-table {
    gap: 0.5rem;
}

.radha-booking--compact .radha-form-field,
.radha-booking--compact .hb-form-field {
    min-width: 150px;
    max-width: 220px;
}

.radha-booking--compact .radha-form-field label,
.radha-booking--compact .hb-form-field label {
    font-size: 0.6875rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #666);
}

.radha-booking--compact .radha-date-input,
.radha-booking--compact .hb_input_date_check,
.radha-booking--compact .radha-form-field-input input,
.radha-booking--compact .radha-select-wrapper select,
.radha-booking--compact .hb-form-field-input select {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    /* min-height em vez de height: a 480px o padding e o corpo de texto
       crescem, e uma altura fixa cortava o valor da data. */
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-subtle, #eae6df);
    background: #fff;
    color: var(--text-primary, #1a1a1a);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.radha-booking--compact .radha-date-input::placeholder,
.radha-booking--compact .hb_input_date_check::placeholder {
    color: var(--text-secondary, #666);
    opacity: 0.7;
}

.radha-booking--compact .radha-date-input:focus,
.radha-booking--compact .hb_input_date_check:focus,
.radha-booking--compact .radha-form-field-input input:focus,
.radha-booking--compact .radha-select-wrapper select:focus,
.radha-booking--compact .hb-form-field-input select:focus {
    outline: none;
    border-color: var(--accent-color, #8c7a6b);
    box-shadow: 0 0 0 3px rgba(140, 122, 107, 0.15);
}

.radha-booking--compact .radha-select-wrapper {
    position: relative;
}

.radha-booking--compact .radha-select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-secondary, #666);
    pointer-events: none;
    transition: border-top-color 0.2s ease;
}

.radha-booking--compact .radha-select-wrapper:focus-within::after {
    border-top-color: var(--accent-color, #8c7a6b);
}

.radha-booking--compact .radha-select-wrapper select {
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.radha-booking--compact .radha-submit,
.radha-booking--compact .hb-submit {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    /*
     * Sem isto, o contentor flex não encolhe abaixo do tamanho do conteúdo e
     * o botão passa a largura da caixa, transbordando a barra.
     */
    min-width: 0;
}

.radha-booking--compact .radha-btn,
.radha-booking--compact .wphb-button,
.radha-booking--compact .hb-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: var(--text-primary, #1a1a1a);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    min-height: 48px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.radha-booking--compact .radha-btn:hover,
.radha-booking--compact .wphb-button:hover,
.radha-booking--compact .hb-search-submit:hover {
    background-color: var(--accent-color, #8c7a6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(140, 122, 107, 0.35);
}

.radha-booking--compact .radha-btn:active,
.radha-booking--compact .wphb-button:active,
.radha-booking--compact .hb-search-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(140, 122, 107, 0.25);
}

.radha-booking--compact .radha-btn:focus-visible,
.radha-booking--compact .wphb-button:focus-visible,
.radha-booking--compact .hb-search-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 122, 107, 0.4);
}

.radha-booking--compact .radha-btn svg,
.radha-booking--compact .wphb-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Mobile toggle button for hero form */
.booking-mobile-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--text-primary, #1a1a1a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    margin: 0 auto 1rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.booking-mobile-toggle:hover {
    background: var(--accent-color, #8c7a6b);
    transform: translateY(-1px);
}

.booking-mobile-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 122, 107, 0.4);
}

.booking-mobile-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Hero form mobile collapsed state */
.radha-booking-bar-wrapper.booking-form--open {
    animation: slideDownFade 0.3s ease-out;
}

/* --------------------------------------------------------------------------
   2.1 HERO BOOKING FORM — SEM EFEITO FIXO (STICKY) NO SCROLL
   O formulário de reservas do hero permanece no seu lugar original
   (sobreposto ao hero) ao rolar a página.
   Sobrescreve as regras `.radha-booking-bar-wrapper.is-sticky` definidas em
   assets/css/booking.css. O seletor por ID garante precedência sobre
   qualquer stylesheet, independentemente da ordem de carregamento.
   -------------------------------------------------------------------------- */
#booking-form-wrapper.is-sticky {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(var(--booking-blur, 20px));
    -webkit-backdrop-filter: blur(var(--booking-blur, 20px));
    box-shadow:
        0 8px 48px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 1.5rem 2rem;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
}

/* Garante que o estado "escondido" (scroll down) também não afete o form do hero */
#booking-form-wrapper.is-sticky.is-hidden {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

/* Formulário interno mantém o mesmo layout do estado não-sticky */
#booking-form-wrapper.is-sticky .radha-hb-search-form,
#booking-form-wrapper.is-sticky .radha-booking-form-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Mesmos breakpoints de padding/border-radius usados no estado normal */
@media (max-width: 1023px) {
    #booking-form-wrapper.is-sticky {
        border-radius: 12px;
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 767px) {
    #booking-form-wrapper.is-sticky {
        border-radius: 12px;
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 480px) {
    #booking-form-wrapper.is-sticky {
        border-radius: 10px;
        padding: 1rem;
    }
}

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

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive breakpoints for hero booking form */
@media (max-width: 1023px) {
    .radha-booking--centered .radha-booking-bar-wrapper {
        border-radius: 12px;
        padding: 1.25rem 1.5rem;
    }
    
    .radha-booking--compact .radha-form-table,
    .radha-booking--compact .hb-form-table {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .radha-booking--compact .radha-form-field,
    .radha-booking--compact .hb-form-field {
        min-width: 140px;
        max-width: 200px;
        flex: 1 1 140px;
    }
    
    .radha-booking--compact .radha-btn,
    .radha-booking--compact .wphb-button,
    .radha-booking--compact .hb-search-submit {
        flex: 1 1 auto;
        min-width: 140px;
    }
}

@media (max-width: 767px) {
    .radha-booking--centered .radha-booking-bar-wrapper {
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }
    
    .radha-booking--compact .radha-hb-search-form,
    .radha-booking--compact .hb-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .radha-booking--compact .radha-form-table,
    .radha-booking--compact .hb-form-table {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }
    
    .radha-booking--compact .radha-form-field,
    .radha-booking--compact .hb-form-field {
        min-width: 0;
        max-width: none;
        width: 100%;
        flex: 1 1 100%;
    }
    
    .radha-booking--compact .radha-btn,
    .radha-booking--compact .wphb-button,
    .radha-booking--compact .hb-search-submit {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 48px;
        padding: 0.875rem 1rem;
        white-space: normal;
        overflow-wrap: break-word;
        hyphens: auto;
        text-align: center;
        line-height: 1.25;
    }
    
    .radha-booking--compact .radha-date-input,
    .radha-booking--compact .hb_input_date_check,
    .radha-booking--compact .radha-form-field-input input,
    .radha-booking--compact .radha-select-wrapper select,
    .radha-booking--compact .hb-form-field-input select {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        min-height: 50px;
    }
}

@media (max-width: 767px) {
    .hero-booking-anchor {
        padding-bottom: 2rem;
    }
    
    .radha-booking--centered .radha-booking-bar-wrapper {
        border-radius: 12px;
        padding: 1rem 1.25rem;
    }
    
    .radha-booking--compact .radha-hb-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .radha-booking--compact .radha-form-table,
    .radha-booking--compact .hb-form-table {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .radha-booking--compact .radha-form-field,
    .radha-booking--compact .hb-form-field {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
    
    .radha-booking--compact .radha-submit,
    .radha-booking--compact .hb-submit {
        width: 100%;
        min-width: 0;
    }
    
    /*
     * No mobile o rótulo pode ser longo ("Verificar disponibilidade") e não
     * cabe numa linha: `white-space: nowrap` + `min-width: auto` numa caixa
     * faziam o texto ultrapassar a largura do botão. `height` é libertada para
     * a caixa poder crescer com o padding em vez de cortar o texto.
     */
    .radha-booking--compact .radha-btn,
    .radha-booking--compact .wphb-button,
    .radha-booking--compact .hb-search-submit {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 48px;
        padding: 0.875rem 1rem;
        white-space: normal;
        overflow-wrap: break-word;
        hyphens: auto;
        text-align: center;
        line-height: 1.25;
    }
    
    /* Show mobile toggle when form is collapsed */
    .radha-booking-bar-wrapper:not(.booking-form--open) .radha-hb-search-form {
        display: none;
    }
    
    .radha-booking-bar-wrapper:not(.booking-form--open) .booking-mobile-toggle {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .radha-booking--centered .radha-booking-bar-wrapper {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .radha-booking--compact .radha-date-input,
    .radha-booking--compact .hb_input_date_check,
    .radha-booking--compact .radha-form-field-input input,
    .radha-booking--compact .radha-select-wrapper select,
    .radha-booking--compact .hb-form-field-input select {
        padding: 0.75rem 1rem;
        font-size: 1rem; /* Prevents zoom on iOS */
        min-height: 50px;
    }
    
    .radha-booking--compact .radha-btn,
    .radha-booking--compact .wphb-button,
    .radha-booking--compact .hb-search-submit {
        padding: 0.875rem 0.75rem;
        font-size: 1rem;
        min-height: 50px;
    }

    /* O toggle também pode transbordar em ecrãs muito estreitos. */
    .booking-mobile-toggle {
        width: 100%;
        min-width: 0;
        justify-content: center;
        white-space: normal;
        overflow-wrap: break-word;
        text-align: center;
        line-height: 1.25;
        min-height: 48px;
    }
}

/* --------------------------------------------------------------------------
   2.5. SEARCH PAGE HERO — Variação para página de busca
   -------------------------------------------------------------------------- */
.radha-hero-search {
    min-height: 70vh;
    min-height: 70dvh;
}

.radha-hero-search .hero-body {
    padding-top: 100px; /* compensa header fixo */
    padding-bottom: 2rem;
}

.radha-hero-search .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.radha-hero-search .hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 500px;
}

/* Search results section */
.radha-search-results-section {
    padding: 4rem 0;
    background: var(--bg-color, #faf8f5);
}

.radha-search-results-section .radha-search-results-wrapper {
    width: 100%;
}

/* --------------------------------------------------------------------------
   3. HEADER STICKY
   Os estilos estruturais do header (sticky, branding, navegação, menu-toggle)
   foram movidos para assets/css/header.css, carregado em TODAS as páginas.
   Mantê-los aqui fazia o header ficar sem display:flex e com dimensões
   erradas em todas as páginas que não são a home.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   4. SEÇÕES COMUNS (Diferenciais, Promoções, Journal)
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #666666);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid responsivo base (mobile-first) */
.diferenciais-grid,
.promocoes-grid,
.journal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   5. DIFERENCIAIS — SEGUNDA DOBRA
   -------------------------------------------------------------------------- */
.radha-diferenciais {
    padding: 6rem 0;
    background: var(--bg-color, #faf8f5);
    position: relative;
}

.radha-diferenciais::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-color, #8c7a6b);
}

.diferencial-card {
    padding: 2.5rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.diferencial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-color, #8c7a6b);
}

.diferencial-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color, #faf8f5);
    border-radius: 50%;
    color: var(--accent-color, #8c7a6b);
    transition: background 0.3s ease, color 0.3s ease;
}

.diferencial-card:hover .diferencial-icon {
    background: var(--accent-color, #8c7a6b);
    color: #ffffff;
}

.diferencial-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.diferencial-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 0.5rem;
}

.diferencial-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary, #666666);
    margin: 0;
}

/* --------------------------------------------------------------------------
   6. PROMOÇÕES — TERCEIRA DOBRA
   -------------------------------------------------------------------------- */
.radha-promocoes {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}

.radha-promocoes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-color, #8c7a6b);
}

/* Conteúdo vindo das páginas selecionadas no Customizer
   (Diferenciais e Promoções). O conteúdo é HTML do editor, por isso precisa
   de estilos base para listas, imagens, títulos e blocos. */
.radha-home-block-content {
    color: var(--text-primary, #1a1a1a);
    font-size: 1rem;
    line-height: 1.7;
}

.radha-home-block-content > *:first-child {
    margin-top: 0;
}

.radha-home-block-content > *:last-child {
    margin-bottom: 0;
}

.radha-home-block-content h2,
.radha-home-block-content h3,
.radha-home-block-content h4 {
    font-family: var(--font-heading, inherit);
    color: var(--text-primary, #1a1a1a);
    line-height: 1.25;
    margin: 2.5rem 0 1rem;
}

.radha-home-block-content h2 { font-size: 1.875rem; }
.radha-home-block-content h3 { font-size: 1.5rem; }
.radha-home-block-content h4 { font-size: 1.25rem; }

.radha-home-block-content p {
    margin: 0 0 1.25rem;
    color: var(--text-secondary, #666666);
}

.radha-home-block-content a {
    color: var(--accent-color, #8c7a6b);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.radha-home-block-content a:hover {
    opacity: 0.85;
}

.radha-home-block-content ul,
.radha-home-block-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-secondary, #666666);
}

.radha-home-block-content li {
    margin-bottom: 0.5rem;
}

.radha-home-block-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.radha-home-block-content figure {
    margin: 2rem 0;
}

.radha-home-block-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #666666);
    text-align: center;
}

.radha-home-block-content blockquote {
    margin: 2rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-left: 3px solid var(--accent-color, #8c7a6b);
    font-style: italic;
    color: var(--text-secondary, #666666);
}

.radha-home-block-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.radha-home-block-content th,
.radha-home-block-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-subtle, #eae6df);
    text-align: left;
}

.radha-home-block {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.radha-home-block__image {
    flex: 0 0 50%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.radha-home-block__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.radha-home-block__content {
    flex: 0 0 50%;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.radha-home-block__image.radha-animate--visible {
    opacity: 1;
    transform: scale(1);
}

.radha-home-block__content.radha-animate--visible {
    opacity: 1;
    transform: translateY(0);
}

.radha-home-block--reverse {
    flex-direction: row-reverse;
}

.radha-home-block--reverse .radha-home-block__image {
    transform: scale(1.05);
}

.radha-home-block--reverse .radha-home-block__content {
    transform: translateY(20px);
}

.radha-home-block-excerpt {
    margin: 0 0 1.5rem;
    color: var(--text-secondary, #666666);
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .radha-home-block {
        flex-direction: column;
    }

    .radha-home-block__image,
    .radha-home-block__content {
        flex: 0 0 100%;
    }

    .radha-home-block__content {
        padding: 2rem 1rem;
    }
}

/* Grelha usada pelas cards inseridas no editor (diferenciais / promoções) */
.radha-home-block-content .diferenciais-grid,
.radha-home-block-content .promocoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .radha-diferenciais,
    .radha-promocoes {
        padding: 3.5rem 0;
    }

    .radha-home-block-content h2 { font-size: 1.5rem; }
    .radha-home-block-content h3 { font-size: 1.25rem; }
}

.promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-color, #faf8f5);
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.promo-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.promo-card:hover .promo-image img {
    transform: scale(1.04);
}

.promo-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promo-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color, #8c7a6b);
    background: rgba(140, 122, 107, 0.12);
    padding: 0.25rem 0.625rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.promo-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.promo-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary, #666666);
    margin: 0 0 1.25rem;
    flex: 1;
}

.promo-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #666666);
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, #eae6df);
    margin-top: auto;
}

.promo-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color, #8c7a6b);
}

.promo-link {
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.promo-link:hover {
    color: var(--accent-color, #8c7a6b);
    border-color: var(--accent-color, #8c7a6b);
}

/* --------------------------------------------------------------------------
   7. JOURNAL / BLOG — QUARTA DOBRA
   -------------------------------------------------------------------------- */
.radha-journal {
    padding: 6rem 0;
    background: var(--bg-color, #faf8f5);
    position: relative;
}

.radha-journal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-color, #8c7a6b);
}

.journal-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.journal-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.journal-card:hover .journal-image img {
    transform: scale(1.04);
}

.journal-content {
    padding: 1.75rem;
}

.journal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #666666);
    margin-bottom: 0.75rem;
}

.journal-category {
    font-weight: 500;
    color: var(--accent-color, #8c7a6b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.journal-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.4;
    margin: 0 0 0.5rem;
    transition: color 0.2s ease;
}

.journal-card:hover .journal-title {
    color: var(--accent-color, #8c7a6b);
}

.journal-excerpt {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary, #666666);
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.journal-link:hover {
    color: var(--accent-color, #8c7a6b);
    border-color: var(--accent-color, #8c7a6b);
}

/* --------------------------------------------------------------------------
   8. SEARCH RESULTS — DETAIL BOOKING ROOMS
   -------------------------------------------------------------------------- */
.detail__booking-rooms {
    margin-top: 2rem;
}

.hb-search-results.radha-search-results {
    width: 100%;
}

.radha-search-results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle, #eae6df);
}

.radha-search-results-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    margin: 0;
}

.radha-search-results-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.radha-search-room-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.radha-search-room-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-color, #8c7a6b);
}

.radha-search-room-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.radha-search-room-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

/* Thumbnail padronizado */
.radha-search-room-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    background: var(--bg-color, #faf8f5);
}

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

.radha-search-room-item:hover .radha-search-room-thumbnail img,
.radha-search-room-item:hover .radha-search-room-image {
    transform: scale(1.04);
}

/* Placeholder */
.radha-room-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-color, #faf8f5);
}

/* Room info */
.radha-search-room-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.radha-search-room-name,
.hb-room-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary, #1a1a1a);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.radha-search-room-item:hover .radha-search-room-name,
.radha-search-room-item:hover .hb-room-name {
    color: var(--accent-color, #8c7a6b);
}

.radha-search-room-meta,
.hb-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary, #666666);
}

.radha-search-room-meta li,
.hb-room-meta li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.radha-search-room-meta-label,
.hb-room-meta-label {
    font-weight: 500;
    color: var(--text-secondary, #666666);
}

.radha-search-room-meta-value,
.hb-room-meta-value {
    color: var(--text-primary, #1a1a1a);
    font-weight: 500;
}

/* Price */
.radha-search-room-price,
.hb-room-price {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, #eae6df);
}

.radha-room-price,
.hb-room-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.hb-room-price-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color, #8c7a6b);
}

/* Add to cart button */
.radha-search-room-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, #eae6df);
}

.radha-add-to-cart-btn,
.hb-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--text-primary, #1a1a1a);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.radha-add-to-cart-btn:hover,
.hb-add-to-cart-btn:hover {
    background: var(--accent-color, #8c7a6b);
    transform: translateY(-1px);
}

.radha-add-to-cart-btn:active,
.hb-add-to-cart-btn:active {
    transform: translateY(0);
}

.radha-add-to-cart-btn:focus-visible,
.hb-add-to-cart-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 122, 107, 0.4);
}

/* No results */
.radha-search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-color, #faf8f5);
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 4px;
}

.radha-search-no-results p {
    font-size: 1rem;
    color: var(--text-secondary, #666666);
    margin: 0;
}

/* Pagination */
.radha-search-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.radha-search-pagination a,
.radha-search-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 2px;
    color: var(--text-primary, #1a1a1a);
    font-weight: 500;
    transition: all 0.2s ease;
}

.radha-search-pagination a:hover {
    background: var(--accent-color, #8c7a6b);
    border-color: var(--accent-color, #8c7a6b);
    color: #ffffff;
}

.radha-search-pagination .current {
    background: var(--text-primary, #1a1a1a);
    border-color: var(--text-primary, #1a1a1a);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVIDADE — BREAKPOINTS CIRÚRGICOS
   -------------------------------------------------------------------------- */

/* Tablet (≥ 640px) */
@media (min-width: 640px) {
    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promocoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .radha-search-results-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
    .radha-container {
        padding: 0 3rem;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }

    .hero-description {
        font-size: clamp(1.125rem, 2vw, 1.375rem);
    }

    .radha-booking-bar-wrapper {
        padding: 2rem;
    }

    .diferenciais-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .promocoes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .journal-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .radha-search-results-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-header {
        margin-bottom: 4.5rem;
    }
}

/* Large Desktop (≥ 1280px) */
@media (min-width: 1280px) {
    .radha-container { padding: 0 4rem; }
    .hero-body { padding-bottom: 5rem; }
    .radha-search-results-list { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   9. REDUÇÃO DE MOVIMENTO (Acessibilidade)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   10. MODO ALTO CONTRASTE (Acessibilidade)
   -------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }

    .radha-booking-bar-wrapper {
        border: 2px solid #000;
        background: #fff;
    }

    .diferencial-card,
    .promo-card,
    .journal-card {
        border: 2px solid #000;
    }
}

/* --------------------------------------------------------------------------
   11. HEADER LAYOUT & MOBILE MENU
   Estilos movidos para assets/css/header.css (carregado em todas as páginas).
   Mantê-los aqui fazia o header ficar sem display:flex, sem branding e com
   dimensões erradas em todas as páginas que não são a home.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   QUARTOS — Secção de Acomodações
   -------------------------------------------------------------------------- */
.radha-rooms {
    padding: 5rem 0;
    background: #ffffff;
    position: relative;
}

.radha-rooms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-color, #8c7a6b);
}

.rooms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .rooms-grid { grid-template-columns: repeat(3, 1fr); }
}

.room-card {
    background: var(--bg-color, #faf8f5);
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
    border-color: var(--accent-color, #8c7a6b);
}

.room-card__image-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.room-card__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.room-card:hover .room-card__image {
    transform: scale(1.04);
}

.room-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.room-card__title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.room-card__title a {
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
    transition: color 0.2s ease;
}

.room-card__title a:hover {
    color: var(--accent-color, #8c7a6b);
}

.room-card__price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color, #8c7a6b);
    margin: 0;
}

.room-card__price-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary, #666666);
}

.room-card__cta {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
}

/* ============================================================
   Produtos da Loja (fallback quando não há quartos)
   ============================================================ */
.radha-products {
    margin-top: 3rem;
}

.radha-products .section-subtitle {
    margin: 0.5rem 0 2rem;
    color: var(--text-secondary, #666666);
    font-size: 0.95rem;
}

.product-card {
    /* Reutiliza todos os estilos de .room-card para consistência visual */
}

.product-card .room-card__image {
    /* Imagem do produto vem como <img> via wc_get_product->get_image() */
    background: none;
}

.product-card .room-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Paginação de produtos */
.radha-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
}

.radha-pagination li {
    margin: 0;
}

.radha-pagination a,
.radha-pagination span {
    display: block;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border-subtle, #eae6df);
    border-radius: 4px;
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.radha-pagination a:hover {
    border-color: var(--accent-color, #8c7a6b);
    color: var(--accent-color, #8c7a6b);
    background: rgba(140, 122, 107, 0.05);
}

.radha-pagination span.current {
    background: var(--accent-color, #8c7a6b);
    border-color: var(--accent-color, #8c7a6b);
    color: #ffffff;
}

/* Quando não há quartos (hero compacto) — remove o padding-top do header fixo
   em #content e #primary para o hero encostar no topo da página */
body.radha-hero-compact #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.radha-hero-compact #primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.radha-hero-compact .radha-hero-fullscreen.hero--compact {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 40vh;
    height: auto;
}

.radha-hero-fullscreen.hero--compact .hero-body {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ============================================================
   Página individual do produto WooCommerce
   ============================================================ */
.radha-single-product {
    padding: 2rem 0;
}

.radha-single-product .section-header {
    margin-bottom: 2rem;
}

.radha-single-product .section-subtitle {
    margin: 0.5rem 0 0;
    color: var(--text-secondary, #666666);
    font-size: 0.95rem;
}

/* Linked rooms on product page */
.radha-product-linked-rooms {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle, #eae6df);
}

.radha-product-linked-rooms .section-subtitle {
    margin: 0.5rem 0 2rem;
    color: var(--text-secondary, #666666);
    font-size: 0.95rem;
}

/* Linked products on room page */
.radha-room-linked-products {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle, #eae6df);
}

.radha-room-linked-products .section-subtitle {
    margin: 0.5rem 0 2rem;
    color: var(--text-secondary, #666666);
    font-size: 0.95rem;
}
