﻿:root {
    --tj-bg: #0c1116;
    --tj-surface: #141c24;
    --tj-elevated: #1a2430;
    --tj-gold: #c9a962;
    --tj-gold-soft: #e8d5a3;
    --tj-text: #e8edf2;
    --tj-muted: #9aa8b4;
    --tj-accent: #3d8b7a;
    --tj-hero-gradient: linear-gradient(120deg, rgba(12, 17, 22, 0.92), rgba(20, 28, 36, 0.75));
    --tj-radius: 14px;
    --tj-font-display: "Cormorant Garamond", "Times New Roman", serif;
    --tj-font-body: "Outfit", system-ui, sans-serif;
}

body.turismo-body {
    font-family: var(--tj-font-body);
    background: var(--tj-bg);
    color: var(--tj-text);
    letter-spacing: 0.01em;
}

.tj-display {
    font-family: var(--tj-font-display);
    font-weight: 600;
}

.tj-navbar {
    background: rgba(12, 17, 22, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.tj-navbar .nav-link {
    color: var(--tj-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.tj-navbar .nav-link:hover,
.tj-navbar .nav-link.active {
    color: var(--tj-gold-soft) !important;
}

.tj-brand {
    font-family: var(--tj-font-display);
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tj-gold-soft) !important;
}

/* Language selector — tema escuro + ouro (navbar turismo) */
.tj-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem 0.35rem 0.45rem;
    min-height: 2.4rem;
    font-family: var(--tj-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--tj-gold-soft);
    background: rgba(20, 28, 36, 0.92);
    border: 1px solid rgba(201, 169, 98, 0.38);
    border-radius: var(--tj-radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tj-lang__btn:hover,
.tj-lang__btn:focus-visible,
.tj-lang__btn.show {
    color: var(--tj-gold);
    background: rgba(26, 36, 48, 0.98);
    border-color: rgba(201, 169, 98, 0.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.tj-lang__btn:focus-visible {
    outline: 2px solid rgba(201, 169, 98, 0.45);
    outline-offset: 2px;
}

.tj-lang__btn.dropdown-toggle::after {
    margin-left: 0.1rem;
    vertical-align: 0.2em;
    border-top-color: currentColor;
    opacity: 0.85;
}

.tj-lang__trigger-code {
    min-width: 1.5rem;
    text-align: left;
}

.tj-lang__flag-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.tj-lang__flag-img {
    display: block;
    width: 28px;
    height: 21px;
    object-fit: cover;
    vertical-align: middle;
}

.tj-lang__menu {
    min-width: 13.5rem;
    padding: 0.45rem;
    margin-top: 0.5rem !important;
    background: var(--tj-elevated);
    border: 1px solid rgba(201, 169, 98, 0.28);
    border-radius: var(--tj-radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.tj-lang__menu .dropdown-item {
    color: var(--tj-text);
}

.tj-lang__item {
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    font-family: var(--tj-font-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.tj-lang__item:hover,
.tj-lang__item:focus {
    background: rgba(201, 169, 98, 0.14) !important;
    color: var(--tj-gold-soft) !important;
}

.tj-lang__item.active {
    background: rgba(201, 169, 98, 0.1) !important;
    color: var(--tj-gold-soft) !important;
}

.tj-lang__name {
    flex: 1;
    min-width: 0;
    letter-spacing: 0.02em;
}

.tj-lang__item.active .tj-lang__name {
    font-weight: 600;
    color: var(--tj-gold-soft);
}

.tj-lang__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tj-gold);
}

.tj-lang__check--empty {
    visibility: hidden;
}

.tj-hero {
    position: relative;
    min-height: min(78vh, 820px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tj-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    transform: scale(1.03);
}

.tj-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--tj-hero-gradient);
}

.tj-hero-inner {
    position: relative;
    z-index: 2;
}

.tj-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
}

.tj-hero .lead {
    color: var(--tj-muted);
    max-width: 36rem;
}

.tj-search {
    background: var(--tj-elevated);
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: var(--tj-radius);
    padding: 0.35rem;
}

.tj-search input {
    background: transparent;
    border: none;
    color: var(--tj-text);
}

.tj-search input:focus {
    box-shadow: none;
    outline: none;
}

.tj-card {
    background: var(--tj-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--tj-radius);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tj-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 98, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.tj-card-img {
    height: 200px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
}

/*
 * Destaques (Swiper): altura do .swiper alinha ao slide ativo (autoHeight no JS).
 * Sem forçar altura no wrapper — evita Swiper a calcular 0px ou altura errada.
 */
.swiper-featured.swiper {
    width: 100%;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.swiper-featured .swiper-wrapper {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    height: auto !important;
    transition-property: transform;
}

.swiper-featured .swiper-slide {
    height: auto !important;
    display: flex;
    box-sizing: border-box;
    align-self: flex-start;
    max-height: none;
}

.swiper-featured .swiper-slide .tj-card--featured {
    width: 100%;
    min-height: 405px;
    max-height: none;
    height: auto;
    flex: 1 1 auto;
}

.tj-card-featured-body {
    flex: 1 1 auto;
    min-height: 0;
}

.tj-card-featured-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.tj-card-featured-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 1 auto;
}

.tj-pill {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(201, 169, 98, 0.15);
    color: var(--tj-gold-soft);
    border: 1px solid rgba(201, 169, 98, 0.35);
}

.tj-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tj-gold-soft);
}

.tj-section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.tj-muted {
    color: var(--tj-muted);
}

.tj-btn-gold {
    background: linear-gradient(135deg, #c9a962, #a8843f);
    border: none;
    color: #1a1206 !important;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.tj-btn-gold:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.tj-btn-outline {
    border: 1px solid rgba(201, 169, 98, 0.55);
    color: var(--tj-gold-soft) !important;
    background: transparent;
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
}

.tj-btn-outline:hover {
    background: rgba(201, 169, 98, 0.12);
}

.tj-footer {
    background: #05070a;
    border-top: 1px solid rgba(201, 169, 98, 0.28);
    padding: 3rem 0 2.25rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.tj-footer .tj-display,
.tj-footer .text-white {
    color: var(--tj-gold-soft) !important;
}

.tj-footer a {
    color: var(--tj-muted);
    text-decoration: none;
}

.tj-footer a:hover {
    color: var(--tj-gold-soft);
}

.tj-stars {
    color: var(--tj-gold);
}

.swiper-hero-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.swiper-hero-pagination .swiper-pagination-bullet-active {
    background: var(--tj-gold);
}

.tj-autocomplete {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.35rem;
    background: var(--tj-elevated);
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: 12px;
    max-height: 260px;
    overflow-y: auto;
    display: none;
}

.tj-autocomplete a {
    display: block;
    padding: 0.55rem 0.9rem;
    color: var(--tj-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tj-autocomplete a:hover {
    background: rgba(201, 169, 98, 0.1);
}

.tj-autocomplete.open {
    display: block;
}
