:root {
    --tn-ink: #172033;
    --tn-muted: #667085;
    --tn-line: #d8dee8;
    --tn-bg: #f7f9fc;
    --tn-panel: #ffffff;
    --tn-teal: #0f766e;
    --tn-teal-dark: #115e59;
    --tn-coral: #e85d4f;
    --tn-amber: #b7791f;
    --tn-radius: 8px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--tn-ink); background: var(--tn-bg); }
a { color: inherit; text-decoration: none; }

.tn-public-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem clamp(1rem, 4vw, 3rem); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--tn-line); backdrop-filter: blur(16px); }
.tn-public-nav__brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 850; }
.tn-public-nav__mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: #fff; background: var(--tn-teal); font-size: .8rem; }
.tn-public-nav__links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .55rem 1rem; min-width: 0; font-size: .95rem; }
.tn-currency-form { display: flex; align-items: center; gap: .4rem; }
.tn-currency-form select, .tn-currency-form button { height: 2.1rem; border: 1px solid var(--tn-line); border-radius: 6px; background: #fff; padding: 0 .65rem; }
.tn-currency-form button { background: var(--tn-ink); color: #fff; }

.tn-public-hero, .tn-package-hero { min-height: 420px; display: flex; align-items: end; padding: clamp(2rem, 6vw, 5rem); background: linear-gradient(135deg, #0f766e, #172033); color: #fff; }
.tn-package-hero { background-position: center; background-size: cover; }
.tn-public-hero > div, .tn-package-hero > div { width: min(760px, 100%); }
.tn-home-hero { min-height: 520px; align-items: center; background:
    linear-gradient(125deg, rgba(15,118,110,.94), rgba(23,32,51,.92)),
    radial-gradient(circle at 80% 25%, rgba(232,93,79,.28), transparent 32%),
    linear-gradient(135deg, #0f766e, #172033); }
.tn-eyebrow { display: inline-flex; margin-bottom: .6rem; color: var(--tn-coral); font-weight: 800; text-transform: uppercase; letter-spacing: 0; font-size: .78rem; }
.tn-public-hero h1, .tn-package-hero h1, .tn-booking-summary h1, .tn-confirmation h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: 0; }
.tn-public-hero p, .tn-package-hero p { max-width: 650px; color: rgba(255,255,255,.84); font-size: 1.08rem; line-height: 1.7; }

.tn-section { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0; }
.tn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tn-package-card, .tn-panel, .tn-calculator, .tn-booking-form, .tn-document, .tn-card-like, .tn-info-card { background: var(--tn-panel); border: 1px solid var(--tn-line); border-radius: var(--tn-radius); box-shadow: 0 18px 40px rgba(23,32,51,.08); }
.tn-package-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.tn-package-card__media { aspect-ratio: 16/10; background-position: center; background-size: cover; }
.tn-package-card__body { padding: 1rem; display: flex; flex: 1; flex-direction: column; gap: .8rem; }
.tn-package-card h2, .tn-panel h2, .tn-calculator h2 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.tn-package-card p, .tn-muted { color: var(--tn-muted); line-height: 1.6; }
.tn-card-meta, .tn-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--tn-muted); font-size: .86rem; }
.tn-card-bottom strong { color: var(--tn-ink); font-size: 1.05rem; }

.tn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; padding: .7rem 1rem; border-radius: 7px; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
.tn-btn--primary { color: #fff; background: var(--tn-teal); }
.tn-btn--primary:hover { background: var(--tn-teal-dark); }
.tn-btn--secondary { color: var(--tn-ink); background: #fff; border-color: var(--tn-line); }
.tn-btn--block { width: 100%; }

.tn-package-layout, .tn-booking-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
.tn-package-main { display: flex; flex-direction: column; gap: 1rem; }
.tn-panel, .tn-calculator { padding: 1rem; }
.tn-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tn-departure-list { display: flex; flex-direction: column; gap: .65rem; }
.tn-departure { display: grid; grid-template-columns: 1.4fr auto auto auto; align-items: center; gap: .75rem; padding: .8rem; border: 1px solid var(--tn-line); border-radius: 7px; }
.tn-departure span { color: var(--tn-muted); font-size: .9rem; }
.tn-badge { display: inline-flex; justify-content: center; border-radius: 999px; padding: .35rem .6rem; font-size: .78rem; font-weight: 800; background: #e6fffa; color: var(--tn-teal-dark); }
.tn-badge--limited-seats, .tn-badge--minimum-travelers-pending { background: #fff7ed; color: var(--tn-amber); }
.tn-badge--sold-out, .tn-badge--cancelled { background: #fff1f2; color: #be123c; }

.tn-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tn-card-like { margin-top: 1rem; padding: 1rem; }
.tn-card-like h2 { margin-top: 0; }
.tn-card-like textarea { min-height: 8rem; grid-column: 1 / -1; }
.tn-info-card { padding: 1rem; }
.tn-info-card strong { display: block; margin: .35rem 0; font-size: 1rem; }
.tn-info-card p { margin: 0; color: var(--tn-muted); line-height: 1.55; }
.tn-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tn-home-number { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; color: #fff; background: var(--tn-teal); font-size: .82rem; font-weight: 900; }
.tn-home-workspace { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: center; padding: 1.25rem; border: 1px solid var(--tn-line); border-radius: var(--tn-radius); background: #fff; box-shadow: 0 18px 40px rgba(23,32,51,.08); }
.tn-home-workspace h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.1; }
.tn-home-workspace p { color: var(--tn-muted); line-height: 1.65; }
.tn-home-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tn-home-board > div { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; padding: 1rem; border: 1px solid var(--tn-line); border-radius: 7px; background: #f8fafc; }
.tn-home-board span, .tn-home-board small { color: var(--tn-muted); }
.tn-home-board strong { font-size: 1.15rem; }
.tn-mobile-bottom-nav { position: sticky; bottom: .75rem; z-index: 12; display: none; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0 0 1rem; padding: .45rem; border: 1px solid var(--tn-line); border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px rgba(23,32,51,.12); }
.tn-mobile-bottom-nav a { display: inline-flex; justify-content: center; padding: .65rem .75rem; border-radius: 999px; font-weight: 800; color: var(--tn-muted); }
.tn-mobile-bottom-nav a:hover { color: #fff; background: var(--tn-teal); }
.tn-form-grid label, .tn-full-label { display: flex; flex-direction: column; gap: .35rem; color: var(--tn-muted); font-size: .86rem; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid var(--tn-line); border-radius: 7px; background: #fff; color: var(--tn-ink); padding: .75rem; font: inherit; }
.tn-addon-list { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.tn-addon-list label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; border: 1px solid var(--tn-line); border-radius: 7px; padding: .65rem; }
.tn-total-box { display: flex; flex-direction: column; gap: .2rem; border: 1px solid #bfe5df; background: #eefbf8; border-radius: 7px; padding: 1rem; margin: 1rem 0; }
.tn-total-box span, .tn-total-box small { color: var(--tn-muted); }
.tn-total-box strong { font-size: 1.45rem; }
.tn-price-lines { display: flex; flex-direction: column; gap: .4rem; margin: .75rem 0; }
.tn-price-lines > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--tn-muted); font-size: .9rem; }
.tn-price-lines small { color: var(--tn-muted); line-height: 1.45; }
.tn-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.tn-price-chip { display: inline-flex; padding: .7rem 1rem; border-radius: 999px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); font-weight: 850; }

.tn-booking-summary { position: sticky; top: 5rem; }
.tn-booking-form { padding: 0; display: flex; flex-direction: column; gap: 1rem; background: transparent; border: 0; box-shadow: none; }
.tn-payment-options { display: flex; flex-wrap: wrap; gap: .8rem; margin: .75rem 0; }
.tn-payment-options label { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem .8rem; border: 1px solid var(--tn-line); border-radius: 999px; background: #fff; }
.tn-payment-options input { width: auto; }

.tn-confirmation { display: grid; place-items: center; min-height: calc(100vh - 90px); }
.tn-confirmation__panel { width: min(760px, 100%); }
.tn-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.tn-detail-grid > div { border: 1px solid var(--tn-line); border-radius: 7px; padding: .8rem; }
.tn-detail-grid span { display: block; color: var(--tn-muted); font-size: .8rem; margin-bottom: .35rem; }
.tn-document { padding: 1.2rem; }
.tn-document__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tn-document__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.tn-document-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.tn-document-table th, .tn-document-table td { border-bottom: 1px solid var(--tn-line); padding: .8rem; text-align: left; }
.tn-empty { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--tn-muted); background: #fff; border: 1px dashed var(--tn-line); border-radius: var(--tn-radius); }
.tn-pagination { margin-top: 1rem; }
.tn-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tn-section-head h1, .tn-auth-panel h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; }
.tn-portal-auth { min-height: calc(100vh - 88px); display: grid; place-items: center; }
.tn-auth-panel { width: min(560px, 100%); display: flex; flex-direction: column; gap: 1rem; }
.tn-portal-grid .tn-package-card__body { min-height: 320px; }
.tn-detail-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tn-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.tn-timeline { display: flex; flex-direction: column; gap: .75rem; }
.tn-timeline__day { border-left: 3px solid var(--tn-teal); padding: .25rem 0 .25rem .8rem; display: flex; flex-direction: column; gap: .25rem; }
.tn-score { display: grid; gap: .35rem; border: 1px solid #bfe5df; background: #eefbf8; border-radius: 7px; padding: .85rem; margin: .8rem 0; }
.tn-installments, .tn-list, .tn-chat { display: flex; flex-direction: column; gap: .65rem; margin-top: .85rem; }
.tn-installments > div, .tn-list__row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border: 1px solid var(--tn-line); border-radius: 7px; padding: .7rem; }
.tn-list__row form { margin: 0; }
.tn-list__row button { border: 0; background: transparent; color: #be123c; font-weight: 800; cursor: pointer; }
.tn-chat__bubble { border: 1px solid var(--tn-line); border-radius: 7px; padding: .8rem; background: #fff; }
.tn-chat__bubble--agency { border-color: #bfe5df; background: #eefbf8; }
.tn-chat__bubble p { margin: .4rem 0; color: var(--tn-muted); line-height: 1.6; }
.tn-chat__bubble span { color: var(--tn-muted); font-size: .8rem; }

@media (max-width: 900px) {
    .tn-public-nav { align-items: flex-start; flex-direction: column; gap: .75rem; }
    .tn-public-nav__links { width: 100%; justify-content: flex-start; gap: .45rem .75rem; font-size: .88rem; }
    .tn-currency-form { width: 100%; flex-wrap: wrap; }
    .tn-currency-form select { flex: 1 1 7rem; }
    .tn-grid, .tn-home-grid, .tn-home-workspace, .tn-home-board, .tn-package-layout, .tn-booking-page, .tn-two-col, .tn-detail-grid, .tn-hub-grid, .tn-detail-grid--compact { grid-template-columns: 1fr; }
    .tn-form-grid { grid-template-columns: 1fr; }
    .tn-mobile-bottom-nav { display: grid; }
    .tn-section-head { align-items: start; flex-direction: column; }
    .tn-departure { grid-template-columns: 1fr; align-items: start; }
    .tn-booking-summary { position: static; }
}

@media print {
    .tn-public-nav, .tn-btn { display: none !important; }
    body { background: #fff; }
    .tn-section { width: 100%; padding: 0; }
    .tn-document { border: 0; box-shadow: none; }
}
