/* ============================================================
   TURISMO.CSS — Página inicial e lista de alojamentos
   ============================================================ */

.tb-wrap { max-width: 1280px; margin: 0 auto; padding: 0 2rem; box-sizing: border-box; }

/* ── Hero ── */
.tb-hero { padding-top: calc(72px + 2rem); }
.tb-hero-media {
    position: relative;
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    background: #D9DCDD;   /* cinzento: fica visível se a imagem/vídeo não abrir */
}
.tb-hero-media img,
.tb-hero-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tb-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 25, 28, .62) 0%, rgba(10, 25, 28, .30) 55%, rgba(10, 25, 28, 0) 85%),
        linear-gradient(180deg, rgba(10, 25, 28, 0) 40%, rgba(10, 25, 28, .45) 100%);
}
.tb-hero-text {
    position: relative;
    z-index: 1;
    padding: 3.5rem;
    max-width: 760px;
    color: #FFFFFF;
}
.tb-hero-text h1 {
    margin: 0 0 1rem;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}
.tb-hero-text p {
    margin: 0 0 1.6rem;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #EEF4F3;
}
.tb-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ── Vantagens ── */
.tb-perks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding-top: 3rem;
}
.tb-perk { display: flex; gap: .9rem; align-items: flex-start; }
.tb-perk i { color: var(--tb-sea); font-size: 1.4rem; margin-top: .15rem; width: 28px; text-align: center; }
.tb-perk strong { display: block; font-weight: 600; font-size: 1rem; }
.tb-perk span { display: block; color: var(--tb-muted); font-size: .92rem; line-height: 1.5; margin-top: .2rem; }

/* ── Secções ── */
.tb-section { padding-top: 4.5rem; }
.tb-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.tb-section-head h2 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}
.tb-section-head a { font-weight: 600; text-decoration: none; }
.tb-lead { color: var(--tb-muted); font-size: 1.05rem; line-height: 1.6; margin: .4rem 0 0; }

/* ── Cartões de alojamento ── */
.tb-stays {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.tb-stay {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    text-decoration: none;
    color: var(--tb-ink);
}
.tb-stay:hover { color: var(--tb-ink); }
.tb-stay-img {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--tb-radius);
    overflow: hidden;
    background: #D9E6E4;
}
.tb-stay-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.tb-stay:hover .tb-stay-img img { transform: scale(1.04); }
.tb-stay-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    margin: 0;
}
.tb-stay-meta { color: var(--tb-muted); font-size: .92rem; margin-top: -.4rem; }
.tb-stay-price { font-size: .95rem; }
.tb-stay-price strong { font-weight: 700; }

/* ── Quatro Patas (serviço para animais) ── */
.tb-pets {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
    align-items: center;
    background: var(--tb-sea-soft);
    border-radius: var(--tb-radius-lg);
    padding: 1.5rem;
}
.tb-pets-img { border-radius: var(--tb-radius); overflow: hidden; aspect-ratio: 4 / 3; background: #D9E6E4; }
.tb-pets-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-pets-text { padding: 1rem 1.5rem 1rem 0; }
.tb-pets-text h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: .3rem 0 .8rem; }
.tb-pets-text p { color: #33484B; font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.4rem; }
.tb-kicker {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tb-sea-dark);
}
.tb-kicker i { margin-right: .3rem; }

/* ── Bloco "sobre" ── */
.tb-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}
.tb-split img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--tb-radius-lg);
    display: block;
}
.tb-split h2 { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 0 0 1rem; }
.tb-split p { color: #33484B; font-size: 1.05rem; line-height: 1.65; }

/* ── Faixa "como funciona" ── */
.tb-band {
    background: var(--tb-sand);
    border-radius: var(--tb-radius-lg);
    padding: 3rem;
}
.tb-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.tb-step { background: #FFFFFF; border-radius: var(--tb-radius); padding: 1.4rem; }
.tb-step b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .3rem; }
.tb-step span { color: var(--tb-muted); font-size: .93rem; line-height: 1.5; }

/* ── Faixa da loja ── */
.tb-shop {
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius);
    padding: 1.6rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}
.tb-shop b { font-family: var(--font-display); font-size: 1.2rem; }
.tb-shop p { margin: .3rem 0 0; color: var(--tb-muted); }

/* ── Lista de coleções (página Collection) ── */
.tb-collection-head { padding: calc(72px + 2.5rem) 0 1rem; }
.tb-collection-head h1 { font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }

.tb-grid-art {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem 1.5rem;
    padding: 1rem 0 2rem;
}
.tb-art { text-decoration: none; color: var(--tb-ink); display: flex; flex-direction: column; gap: .7rem; }
.tb-art:hover { color: var(--tb-ink); }
.tb-art-img {
    aspect-ratio: 3 / 4;
    border-radius: var(--tb-radius);
    overflow: hidden;
    background: var(--tb-bg-soft);
    box-shadow: 0 2px 10px rgba(20, 40, 44, .06);
}
.tb-art-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tb-art:hover .tb-art-img img { transform: scale(1.04); }
.tb-art p { margin: 0; font-size: .95rem; font-weight: 500; line-height: 1.4; }

/* ── Responsivo ── */
@media (max-width: 980px) {
    .tb-stays, .tb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tb-split, .tb-pets { grid-template-columns: 1fr; gap: 1.5rem; }
    .tb-pets-text { padding: 0 .5rem .5rem; }
}
@media (max-width: 680px) {
    .tb-wrap { padding-left: 1rem; padding-right: 1rem; }
    .tb-hero { padding-top: calc(72px + .5rem); }
    .tb-hero-media { min-height: 520px; }
    .tb-hero-text { padding: 1.6rem; }
    .tb-hero-media::after { background: linear-gradient(180deg, rgba(10, 25, 28, .15) 0%, rgba(10, 25, 28, .70) 100%); }
    .tb-perks { padding-top: 2rem; gap: 1.2rem; }
    .tb-section { padding-top: 3rem; }
    .tb-perks, .tb-stays, .tb-steps { grid-template-columns: 1fr; }
    .tb-band { padding: 1.6rem; }
    .tb-grid-art { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .8rem; }
}

/* ============================================================
   PÁGINA DE DETALHE DO ALOJAMENTO
   ============================================================ */
.tb-detail { padding-top: calc(72px + 1.5rem); }
.tb-breadcrumb { font-size: .9rem; color: var(--tb-muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.tb-breadcrumb a { color: var(--tb-muted); }
.tb-detail-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
    gap: 1rem; margin: .8rem 0 1.4rem;
}
.tb-detail-head h1 { margin: 0; font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.03em; }

.tb-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 230px 230px;
    gap: 8px;
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
}
.tb-mosaic-item { padding: 0; border: 0; background: #D9E6E4; cursor: zoom-in; overflow: hidden; }
.tb-mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tb-mosaic-item:hover img { transform: scale(1.03); }
.tb-mosaic-item:first-child { grid-column: span 2; grid-row: span 2; }
.tb-mosaic-simple { grid-template-rows: 420px; }
.tb-mosaic-simple .tb-mosaic-item:first-child { grid-row: span 1; }

.tb-detail-body { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-start; margin-top: 2.5rem; }
.tb-detail-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 2.2rem; }
.tb-detail-main h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 .8rem; }
.tb-detail-main p { color: #33484B; font-size: 1.05rem; line-height: 1.65; margin: 0; }

.tb-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 0; }
.tb-facts div { border-top: 1px solid var(--tb-line); padding-top: .7rem; }
.tb-facts dt { font-size: .82rem; font-weight: 600; color: var(--tb-muted); letter-spacing: .02em; }
.tb-facts dd { margin: .2rem 0 0; font-size: 1rem; }

.tb-amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem 1.5rem; }
.tb-amenities i { color: var(--tb-sea); margin-right: .4rem; }

.tb-book {
    flex: 1 1 320px; min-width: 280px; max-width: 400px;
    position: sticky; top: calc(72px + 1.5rem);
    border: 1px solid var(--tb-line); border-radius: 18px; padding: 1.6rem;
    box-shadow: var(--tb-shadow);
    display: flex; flex-direction: column; gap: 1rem;
}
.tb-book h2 { margin: 0; font-size: 1.4rem; font-weight: 800; }
.tb-book p { margin: 0; color: #33484B; line-height: 1.55; }
.tb-book .tb-book-note { font-size: .85rem; color: var(--tb-muted); text-align: center; }

/* Visualizador de fotos */
.tb-gallery {
    width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
    margin: 0; padding: 0; border: 0;
    background: rgba(8, 16, 18, .94);
}
.tb-gallery[open] { display: flex; align-items: center; justify-content: center; }
.tb-gallery::backdrop { background: rgba(8, 16, 18, .94); }
.tb-gallery img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.tb-gallery-close, .tb-gallery-nav {
    position: absolute; background: rgba(255, 255, 255, .12); color: #FFFFFF; border: 0;
    width: 48px; height: 48px; border-radius: 999px; font-size: 1.1rem; cursor: pointer;
}
.tb-gallery-close:hover, .tb-gallery-nav:hover { background: rgba(255, 255, 255, .25); }
.tb-gallery-close { top: 20px; right: 20px; }
.tb-gallery-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.tb-gallery-next { right: 20px; top: 50%; transform: translateY(-50%); }
.tb-gallery-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #DDE6E5; font-size: .9rem; }

@media (max-width: 980px) {
    .tb-book { position: static; max-width: none; }
    .tb-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .tb-detail { padding-top: calc(72px + .5rem); }
    .tb-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
    .tb-mosaic-item:first-child { grid-column: span 2; grid-row: span 1; }
    .tb-mosaic-item:nth-child(n+4) { display: none; }
    .tb-facts, .tb-amenities { grid-template-columns: 1fr; }
    .tb-gallery img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
    .tb-gallery-prev, .tb-gallery-next { top: auto; bottom: 16px; transform: none; }
}
.tb-stay-rnal { color: var(--tb-muted); font-size: .8rem; margin-top: -.5rem; }

/* Preços na página do alojamento */
.tb-book-price { font-size: 1rem; color: var(--tb-muted); }
.tb-book-price strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--tb-ink); }
.tb-price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tb-line); }
.tb-price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--tb-line); font-size: .95rem; }
.tb-price-val { font-weight: 600; white-space: nowrap; }
.tb-price-val s { color: var(--tb-muted); font-weight: 400; margin-right: .3rem; }
.tb-desc { color: #33484B; font-size: 1.05rem; line-height: 1.65; }
.tb-desc p { margin: 0 0 .8rem; }

/* Texto do destaque vindo do HugeMenu */
.tb-hero-sub { margin: 0 0 1.6rem; font-size: 1.15rem; line-height: 1.55; color: #EEF4F3; }
.tb-hero-sub p { margin: 0 0 .5rem; color: #EEF4F3; }
.tb-hero-sub a { color: #FFFFFF; text-decoration: underline; }

/* Texto do destaque escrito no HugeMenu (Title), com estilos próprios */
.tb-hero-html { margin-bottom: 1.6rem; color: #FFFFFF; }
.tb-hero-html > :last-child { margin-bottom: 0; }

/* Comodidades (CatalogCollection.ProfileAutor) */
.tb-amenities-html { color: #33484B; font-size: 1rem; line-height: 1.7; }
.tb-amenities-html i { color: var(--tb-sea); width: 1.5em; text-align: center; margin-right: .35em; }
.tb-amenities-html b, .tb-amenities-html strong { color: var(--tb-ink); font-weight: 700; }

/* ============================================================
   ESTILO EDITORIAL — sobrepõe-se ao estilo anterior
   ============================================================ */
.tb-wrap { max-width: 1440px; padding-left: 3rem; padding-right: 3rem; }

/* Legendas em maiúsculas espaçadas */
.tb-kicker {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--tb-muted);
    margin-bottom: .9rem;
}

/* Destaque de ponta a ponta */
.tb-hero { max-width: none; padding: 72px 0 0; }
.tb-hero-media { border-radius: 0; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); }
.tb-hero-media::after { background: linear-gradient(180deg, rgba(20, 18, 15, .05) 40%, rgba(20, 18, 15, .45) 100%); }
.tb-hero-text { padding: 0 3rem 4.5rem; max-width: 900px; }
.tb-hero-text h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: 0; }
.tb-hero-text p, .tb-hero-sub { font-weight: 300; font-size: 1.1rem; }
.tb-hero-actions .tb-btn-primary { background: transparent; border: 1px solid rgba(255, 255, 255, .9); color: #FFFFFF; }
.tb-hero-actions .tb-btn-primary:hover { background: #FFFFFF; color: var(--tb-ink); }

/* Vantagens: três colunas discretas, separadas por linhas finas */
.tb-perks { padding-top: 5rem; gap: 0; border-bottom: 1px solid var(--tb-line); padding-bottom: 3rem; }
.tb-perk { padding: 0 2rem; border-left: 1px solid var(--tb-line); }
.tb-perk:first-child { border-left: 0; padding-left: 0; }
.tb-perk i { color: var(--tb-ink); font-size: 1.1rem; }
.tb-perk strong { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.tb-perk span { font-size: .95rem; }

/* Secções com mais ar */
.tb-section { padding-top: 7rem; }
.tb-section-head { margin-bottom: 2.5rem; align-items: flex-end; }
.tb-section-head h2, .tb-split h2, .tb-collection-head h1, .tb-detail-head h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: 0;
    line-height: 1.05;
}
.tb-section-head a, .tb-breadcrumb {
    font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--tb-ink);
    border-bottom: 1px solid var(--tb-ink); padding-bottom: 2px;
}
.tb-breadcrumb { border-bottom: 0; color: var(--tb-muted); }
.tb-breadcrumb a { color: var(--tb-muted); text-decoration: none; }
.tb-lead { font-weight: 300; }

/* Cartões: fotos ao alto, texto sóbrio */
.tb-stays { gap: 3rem 2rem; }
.tb-stay { gap: 1rem; }
.tb-stay-img { aspect-ratio: 4 / 5; border-radius: 0; background: var(--tb-bg-soft); }
.tb-stay:hover .tb-stay-img img { transform: scale(1.025); }
.tb-stay-img img { transition: transform 1.2s ease; }
.tb-stay-name { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; letter-spacing: 0; }
.tb-stay-meta { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-muted); margin-top: -.6rem; }
.tb-stay-price { font-size: .95rem; font-weight: 300; }
.tb-stay-price strong { font-weight: 500; }
.tb-stay-rnal { font-size: .72rem; letter-spacing: .06em; }

/* Sobre */
.tb-split { gap: 5rem; }
.tb-split img { aspect-ratio: 4 / 5; border-radius: 0; }
.tb-split p { font-weight: 300; font-size: 1.1rem; line-height: 1.8; }

/* Faixa da loja */
.tb-shop { border-radius: 0; border-left: 0; border-right: 0; padding: 2.5rem 0; }
.tb-shop b { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; }

/* Lista de alojamentos e de arte */
.tb-collection-head { padding-top: calc(72px + 4rem); padding-bottom: 2rem; }
.tb-art-img { border-radius: 0; box-shadow: none; }
.tb-art p { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }

/* Página do alojamento */
.tb-detail { padding-top: calc(72px + 2.5rem); }
.tb-detail-head { margin: 1.2rem 0 2rem; }
.tb-mosaic { border-radius: 0; gap: 6px; grid-template-rows: 300px 300px; }
.tb-detail-body { gap: 5rem; margin-top: 4rem; }
.tb-detail-main h2 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; margin-bottom: 1.2rem; }
.tb-desc, .tb-detail-main p, .tb-amenities-html { font-weight: 300; font-size: 1.05rem; line-height: 1.85; color: #3F3B34; }
.tb-amenities-html i { color: var(--tb-ink); }
.tb-amenities-html b, .tb-amenities-html strong {
    font-family: var(--font-body); font-weight: 400; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
}
.tb-book { border-radius: 0; box-shadow: none; border: 1px solid var(--tb-line); background: transparent; padding: 2rem; }
.tb-book h2 { font-family: var(--font-display); font-weight: 500; }
.tb-book-price { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.tb-book-price strong { font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; letter-spacing: 0; text-transform: none; display: block; margin-top: .3rem; }
.tb-price-list li { font-weight: 300; }
.tb-price-val { font-weight: 400; }
.tb-gallery { background: rgba(20, 18, 15, .96); }
.tb-gallery img { border-radius: 0; }

@media (max-width: 980px) {
    .tb-perk { padding: 0 1rem; }
    .tb-split { gap: 2rem; }
}
@media (max-width: 680px) {
    .tb-wrap { padding-left: 1.2rem; padding-right: 1.2rem; }
    .tb-hero { padding-top: 64px; }
    .tb-hero-media { min-height: calc(88svh - 64px); }
    .tb-hero-text { padding: 0 1.2rem 2.5rem; }
    .tb-perks { padding-top: 3rem; }
    .tb-perk { border-left: 0; padding: 0; }
    .tb-section { padding-top: 4.5rem; }
    .tb-mosaic { grid-template-rows: 280px 140px; }
}

/* Comodidades em duas colunas (um bloco por grupo) */
.tb-amenities-html { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.tb-amen-group { break-inside: avoid; }
@media (max-width: 680px) { .tb-amenities-html { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Preços: noites e opções */
.tb-price-group { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--tb-muted); margin-top: .6rem; }
.tb-price-unit { font-size: .75rem; font-weight: 300; color: var(--tb-muted); }

/* ============================================================
   CIRCUITO DE RESERVA
   ============================================================ */
.tb-booking { padding-top: calc(72px + 2.5rem); max-width: 1100px; }
.tb-steps-bar { list-style: none; margin: 0 0 3rem; padding: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; border-bottom: 1px solid var(--tb-line); }
.tb-steps-bar li, .tb-steps-bar a { display: flex; align-items: center; gap: .6rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-muted); text-decoration: none; }
.tb-steps-bar li span { width: 26px; height: 26px; border: 1px solid var(--tb-line); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; letter-spacing: 0; }
.tb-steps-bar li.atual, .tb-steps-bar li.atual a { color: var(--tb-ink); }
.tb-steps-bar li.atual span { background: var(--tb-ink); border-color: var(--tb-ink); color: var(--tb-bg); }
.tb-steps-bar li.feito span { border-color: var(--tb-ink); color: var(--tb-ink); }
.tb-steps-bar li.feito a:hover { color: var(--tb-ink); }

.tb-booking h1, .tb-booking-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); margin: 0 0 2rem; }
.tb-booking-panel { max-width: 640px; }
.tb-alert { border: 1px solid var(--tb-line); background: var(--tb-bg-soft); padding: 1rem 1.2rem; margin-bottom: 2rem; font-size: .95rem; line-height: 1.6; }
.tb-muted { color: var(--tb-muted); font-weight: 300; line-height: 1.7; }
.tb-link { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-ink); text-decoration: none; border-bottom: 1px solid var(--tb-ink); }

/* Formulários */
.tb-form { display: flex; flex-direction: column; gap: 1.4rem; }
.tb-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.tb-form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-form label { display: flex; flex-direction: column; gap: .45rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-muted); }
.tb-form label small { letter-spacing: 0; text-transform: none; font-size: .78rem; }
.tb-form input[type=date], .tb-form input[type=number] {
    font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--tb-ink);
    background: transparent; border: 0; border-bottom: 1px solid var(--tb-ink); border-radius: 0; padding: .6rem 0; min-height: 44px;
}
.tb-form input:focus { outline: none; border-bottom-width: 2px; }
.tb-form-compact { gap: 1.1rem; }
.tb-option { flex-direction: row !important; align-items: flex-start; gap: .9rem !important; border: 1px solid var(--tb-line); padding: 1.2rem; text-transform: none !important; letter-spacing: 0 !important; color: var(--tb-ink) !important; cursor: pointer; }
.tb-option input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--tb-ink); }
.tb-option strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.tb-option small { color: var(--tb-muted); font-size: .9rem; }

/* Barra com as datas escolhidas */
.tb-booking-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--tb-line); padding-bottom: 1.4rem; margin-bottom: 2.5rem; }
.tb-booking-bar strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; display: block; }
.tb-booking-bar span { color: var(--tb-muted); font-size: .9rem; }
.tb-booking-bar a { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-ink); }

/* Passo 2: lista de casas */
.tb-choice-list { display: flex; flex-direction: column; }
.tb-choice { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--tb-line); }
.tb-choice-img { aspect-ratio: 4 / 3; background: var(--tb-bg-soft); overflow: hidden; }
.tb-choice-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-choice h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; margin: 0 0 .5rem; }
.tb-choice-price { margin: .8rem 0 0; font-weight: 300; }
.tb-choice-price strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.tb-choice-why { margin: .8rem 0 0; color: var(--tb-muted); font-size: .95rem; }
.tb-choice-action { display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; }
.tb-choice.indisponivel .tb-choice-img { opacity: .45; }

/* Passos 3-5 */
.tb-booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 4rem; align-items: start; }
.tb-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; margin: 0 0 2rem; }
.tb-summary div { border-top: 1px solid var(--tb-line); padding-top: .7rem; }
.tb-summary dt { font-size: .7rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--tb-muted); }
.tb-summary dd { margin: .3rem 0 0; font-family: var(--font-display); font-size: 1.3rem; }
.tb-price-desc { display: block; font-size: .8rem; color: var(--tb-muted); margin-top: .15rem; }
.tb-price-list li.tb-price-total { border-bottom: 0; padding-top: 1rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.tb-price-list li.tb-price-total .tb-price-val { font-weight: 500; }

@media (max-width: 860px) {
    .tb-booking-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .tb-choice { grid-template-columns: 120px minmax(0, 1fr); }
    .tb-choice-action { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 560px) {
    .tb-form-row-3 { grid-template-columns: 1fr 1fr; }
    .tb-summary { grid-template-columns: 1fr; }
}

/* ───────── Página inicial: só a imagem/vídeo do destaque, clicável ───────── */
.tb-hero-only .tb-hero-media { display: block; cursor: pointer; background: #D9D4CC; }
.tb-hero-only .tb-hero-media::after { content: none; }

/* ───────── Lista (alojamentos e loja): estilo do Collection original ───────── */
.tb-col-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: calc(72px + 2rem) 1rem 3rem;
}
.tb-col {
    width: 280px;
    transition: transform .35s ease;
}
.tb-col:hover { transform: translateY(-8px); }
.tb-col > a { display: block; width: 100%; text-decoration: none; }
.tb-col-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: #E9E4DC;
    box-shadow: 0 4px 10px rgba(14, 12, 10, .08), 0 12px 28px rgba(14, 12, 10, .10);
    transition: box-shadow .35s ease;
}
.tb-col:hover .tb-col-img { box-shadow: 0 8px 20px rgba(14, 12, 10, .12), 0 24px 48px rgba(14, 12, 10, .16); }
.tb-col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, filter .4s ease;
}
.tb-col:hover .tb-col-img img { transform: scale(1.04); filter: brightness(1.03); }
.tb-col p {
    margin: .9rem 0 0;
    padding: 0 .5rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--tb-ink);
    transition: color .25s;
}
.tb-col:hover p { color: var(--accent, var(--tb-sea)); }
.tb-col p::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    margin: .4rem auto 0;
    background: var(--accent, var(--tb-sea));
    transition: width .35s ease;
}
.tb-col:hover p::after { width: 40%; }
.tb-col-rnal {
    display: block;
    text-align: center;
    font-size: .68rem;
    letter-spacing: .06em;
    color: #8A8279;
}
@media (max-width: 600px) {
    .tb-col-grid { padding-top: calc(72px + 1rem); gap: 1.5rem 1rem; }
    .tb-col { width: calc(50% - .5rem); }
}
@media (max-width: 380px) {
    .tb-col { width: 100%; }
}


/* ───────── Página inicial: carrossel dos destaques (HugeMenu) ───────── */
.tb-hc { position: relative; }
.tb-hc-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 0s linear 1s;
}
.tb-hc-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; z-index: 1; }
.tb-hc-slide img, .tb-hc-slide video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none;
}
.tb-hc-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: rgba(246, 242, 235, .85); color: var(--tb-ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; transition: opacity .3s, background .2s;
}
.tb-hc:hover .tb-hc-nav, .tb-hc-nav:focus-visible { opacity: 1; }
.tb-hc-nav:hover { background: #FFFFFF; }
.tb-hc-prev { left: 2rem; }
.tb-hc-next { right: 2rem; }
.tb-hc-dots {
    position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3;
    display: flex; gap: .6rem;
}
.tb-hc-dot {
    width: 9px; height: 9px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .9); background: transparent; cursor: pointer;
    transition: background .3s, transform .3s;
}
.tb-hc-dot.is-active { background: #FFFFFF; transform: scale(1.2); }
@media (hover: none) { .tb-hc-nav { display: none; } }

/* ───────── Detalhe: miniaturas com "+N" e visualizador com tira de miniaturas ───────── */
.tb-mosaic-item { position: relative; }
.tb-mosaic-more {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 18, 15, .45); color: #FFFFFF;
    font-family: var(--font-display); font-size: 2rem; letter-spacing: .04em;
    transition: background .3s;
}
.tb-mosaic-item:hover .tb-mosaic-more { background: rgba(20, 18, 15, .30); }
/* no telemóvel só se veem 3 miniaturas: o "+N" passa para a 3.ª */
.tb-more-mobile { display: none; }
@media (max-width: 680px) {
    .tb-more-mobile { display: flex; }
    .tb-more-desktop { display: none; }
}
.tb-gallery img#tbGalleryImg { max-height: calc(100vh - 190px); }
.tb-gallery-count { bottom: 104px; }
.tb-gallery-thumbs {
    position: absolute; left: 0; right: 0; bottom: 16px;
    display: flex; gap: 6px; justify-content: safe center;
    overflow-x: auto; padding: 0 1rem; scrollbar-width: none;
}
.tb-gallery-thumbs::-webkit-scrollbar { display: none; }
.tb-gallery-thumbs button {
    flex: 0 0 auto; width: 96px; height: 72px; padding: 0; border: 0;
    background: #1E1C19; cursor: pointer; opacity: .5; transition: opacity .2s; outline-offset: 2px;
}
.tb-gallery-thumbs button:hover, .tb-gallery-thumbs button.is-active { opacity: 1; }
.tb-gallery-thumbs button.is-active { outline: 2px solid #FFFFFF; }
.tb-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; max-height: none; }
@media (max-width: 680px) {
    .tb-gallery img#tbGalleryImg { max-height: calc(100vh - 220px); }
    .tb-gallery-thumbs { bottom: 76px; justify-content: flex-start; }
    .tb-gallery-thumbs button { width: 64px; height: 48px; }
    .tb-gallery-count { bottom: 136px; }
}

/* ───────── Detalhe: imagem principal + miniaturas, "Reservar" ao lado ───────── */
.tb-det-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas:
        "gal  book"
        "main book";
    column-gap: 3.5rem;
    row-gap: 4rem;
    align-items: start;
}
.tb-det-gal { grid-area: gal; min-width: 0; }
.tb-det-grid > .tb-detail-main { grid-area: main; }
.tb-det-grid > .tb-book {
    grid-area: book;
    max-width: none;
    min-width: 0;
    position: sticky;
    top: calc(72px + 1.5rem);
}

.tb-det-main {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #E9E4DC;
    cursor: zoom-in;
}
.tb-det-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tb-det-main:hover img { transform: scale(1.02); }
.tb-det-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
}
.tb-det-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #E9E4DC;
    cursor: zoom-in;
}
.tb-det-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s, transform .4s; }
.tb-det-thumb:hover img { opacity: 1; transform: scale(1.04); }
.tb-det-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 18, 15, .45);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 1.8rem;
    transition: background .3s;
}
.tb-det-thumb:hover .tb-det-more { background: rgba(20, 18, 15, .3); }

/* Ecrãs menores: tudo empilhado, "Reservar" no fim */
@media (max-width: 980px) {
    .tb-det-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "gal" "main" "book";
        row-gap: 3rem;
    }
    .tb-det-grid > .tb-book { position: static; }
}
@media (max-width: 680px) {
    .tb-det-gal { margin: 0 -1.2rem; }
    .tb-det-thumbs { gap: 4px; margin-top: 4px; }
    .tb-det-more { font-size: 1.3rem; }
}

/* ───────── Calendário de datas da reserva (versão A) ───────── */
.tb-cal { position: relative; display: flex; flex-direction: column; gap: .9rem; }
.tb-cal-sel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--tb-line); }
.tb-cal-sel > div { padding: .7rem 1rem; }
.tb-cal-sel > div + div { border-left: 1px solid var(--tb-line); }
.tb-cal-sel span { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tb-muted); }
.tb-cal-sel b { font-weight: 400; font-size: .98rem; color: var(--tb-ink); }
.tb-cal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.tb-cal-hint { margin: 0; font-size: .85rem; color: var(--tb-muted); }
.tb-cal-clear {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--tb-line); background: none; padding: 0;
    color: var(--tb-ink); font-size: .8rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.tb-cal-clear:hover { background: var(--tb-bg-soft, #EEE8DD); }
.tb-cal-meses { position: relative; }
.tb-cal-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 1; display: flex; justify-content: space-between; pointer-events: none; }
.tb-cal-nav button {
    pointer-events: auto; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--tb-line); background: var(--tb-bg, #fff); color: var(--tb-ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .75rem;
}
.tb-cal-nav button:disabled { opacity: .3; cursor: default; }
.tb-cal-grid { display: grid; gap: 2.2rem; }
.tb-cal-mes h4 {
    margin: 0 0 .7rem; height: 34px; line-height: 34px; text-align: center;
    font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--tb-ink);
}
.tb-cal-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.tb-cal-dow { text-align: center; font-size: .66rem; letter-spacing: .1em; color: var(--tb-muted); padding-bottom: .4rem; }
.tb-cal-d {
    position: relative; height: 40px; border: 0; background: none; padding: 0;
    font-family: var(--font-body); font-size: .88rem; color: var(--tb-ink); cursor: pointer;
}
.tb-cal-d::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px;
    margin: -18px 0 0 -18px; border-radius: 50%; z-index: -1; transition: background .15s;
}
.tb-cal-d { z-index: 0; }
.tb-cal-d:not(:disabled):hover::before { background: var(--tb-bg-soft, #EEE8DD); }
.tb-cal-d:disabled { color: #C4BDB2; cursor: default; }
.tb-cal-d.ocupada { color: #B5AEA3; text-decoration: line-through; }
.tb-cal-d.meio { background: var(--tb-bg-soft, #EEE8DD); }
.tb-cal-d.ini, .tb-cal-d.fim { color: #FFFFFF; text-decoration: none; }
.tb-cal-d.ini::before, .tb-cal-d.fim::before { background: var(--tb-ink) !important; }
.tb-cal-d.ini.com-fim { background: linear-gradient(to right, transparent 50%, var(--tb-bg-soft, #EEE8DD) 50%); }
.tb-cal-d.fim { background: linear-gradient(to left, transparent 50%, var(--tb-bg-soft, #EEE8DD) 50%); }
.tb-cal-err { margin: 0; font-size: .85rem; color: #A33B2B; }

/* Barra das datas na reserva: "Alterar" como ícone */
.tb-booking-bar a.tb-booking-edit {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--tb-line);
    display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; text-decoration: none;
}
.tb-booking-bar a.tb-booking-edit:hover { background: var(--tb-bg-soft, #EEE8DD); }
.tb-cal-top { align-items: center; }
