/* ─────────────────────────────────────────────────────────────────────
   ConferenceApp · Blockchain Education 2026
   Author: Viktor Georgiev
   ───────────────────────────────────────────────────────────────────── */
/* ============================================================
   travelStyle.css — the Travel page.
   The same visual language as authStyle.css: Oswald, zero corner radius, thin
   rules, the red accent, black-and-white imagery.

   The palette comes from mainStyle.css (--bg, --panel, --text, --muted,
   --line, --accent); the fallbacks keep the page readable without it.
   ============================================================ */

.travel-page {
    background: var(--bg, #050505);
    color: var(--text, #f4f2ec);
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 300;
}

.travel-page ::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.travel-page :focus-visible { outline: 2px solid var(--accent, #ff3636); outline-offset: 2px; }

html { scroll-behavior: smooth; }

/* The shared container and the padding of the sections */
.tv-pad { max-width: 1320px; margin: 0 auto; padding: 0 6vw; }
.tv-sec { padding: 96px 0; border-bottom: 1px solid var(--line, rgba(var(--ink), 0.08)); }
.tv-sec--last { padding: 96px 0 110px; border-bottom: 0; }

/* ── The banner ────────────────────────────────────────────
   The band is exactly as tall as the photograph, and the page heading does NOT
   sit on top of it: the image carries its own text. */
.tv-banner { position: relative; width: 100%; overflow: hidden; }

.tv-banner img {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    object-position: 50% 50%;
}

/* Scanlines */
.tv-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(var(--ink), 0.035) 0px, rgba(var(--ink), 0.035) 1px, transparent 1px, transparent 4px);
}

/* Fades into the background at the bottom, with a light shadow at the top */
.tv-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, rgba(5, 5, 5, 0) 22%, rgba(5, 5, 5, 0) 62%, color-mix(in srgb, var(--bg) 96%, transparent) 100%);
}

/* A technical grid over the photograph */
.tv-banner-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: var(--blend-soft, soft-light);
    background:
        linear-gradient(rgba(var(--ink), 0.05) 1px, transparent 1px) 0 0 / 100% 48px,
        linear-gradient(90deg, rgba(var(--ink), 0.05) 1px, transparent 1px) 0 0 / 48px 100%;
}

/* An inset frame with red corner marks, as in auth-visual */
.tv-frame {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(var(--ink), 0.16);
    pointer-events: none;
}

.tv-frame span {
    position: absolute;
    background: var(--accent, #ff3636);
}

.tv-frame .c-tl-h { top: -1px; left: -1px; width: 26px; height: 2px; }
.tv-frame .c-tl-v { top: -1px; left: -1px; width: 2px; height: 26px; }
.tv-frame .c-br-h { bottom: -1px; right: -1px; width: 26px; height: 2px; }
.tv-frame .c-br-v { bottom: -1px; right: -1px; width: 2px; height: 26px; }

/* ── The heading block under the banner ───────────────────── */
.tv-hero { position: relative; border-bottom: 1px solid var(--line, rgba(var(--ink), 0.08)); }

.tv-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 44px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 6vw 26px;
}

.tv-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(var(--ink), 0.14);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tv-wordmark {
    background: linear-gradient(100deg, var(--muted) 0%, var(--text) 42%, rgb(var(--ink)) 50%, var(--text) 58%, var(--muted) 100%) 0 0 / 300% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: tvShimmer 14s ease-in-out infinite;
}

.tv-topline b {
    flex: none;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--accent, #ff3636);
    text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent);
}

.tv-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent, #ff3636);
}

.tv-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent, #ff3636); }

.tv-title {
    margin: 0 0 10px;
    max-width: 18ch;
    font-weight: 600;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.06;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-wrap: balance;
}

.tv-rule { display: block; width: 56px; height: 2px; background: var(--accent, #ff3636); }
.tv-title + .tv-rule { margin-bottom: 28px; }

.tv-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 760px;
    border-top: 1px solid rgba(var(--ink), 0.14);
}

.tv-hero-meta > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line, rgba(var(--ink), 0.08));
}

.tv-hero-meta b {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.tv-hero-meta span { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }

@keyframes tvShimmer {
    0%, 100% { background-position: 0% 0; }
    50%      { background-position: 100% 0; }
}

/* ── The sticky section navigation ────────────────────────── */
.tv-nav {
    /* --navbar-height has to match the real height of the site navbar (see
       mainStyle.css and _Layout.cshtml). travel.js measures it and writes the
       variable; the 64px here is only the fallback for when the script does
       not run. */
    position: sticky;
    top: var(--navbar-height, 64px);
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line, rgba(var(--ink), 0.08));
}

.tv-nav-inner {
    display: flex;
    align-items: center;
    gap: 34px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 15px 6vw;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tv-nav-link {
    position: relative;
    color: var(--text-dim);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.tv-nav-link:hover,
.tv-nav-link.is-active { color: var(--text, #f4f2ec); text-decoration: none; }

.tv-nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -13px;
    height: 2px;
    background: var(--accent, #ff3636);
}

/* An anchor lands below the sticky rail AND below the main navbar. */
#venue-section, #transport-section, #hotels { scroll-margin-top: calc(var(--navbar-height, 64px) + 54px); }

/* ── A section heading, with its outlined number ──────────── */
.tv-sec-head { position: relative; margin-bottom: 46px; }

.tv-sec-head h2 {
    margin: 0 0 10px;
    max-width: 20ch;
    font-weight: 600;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.1;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

.tv-ghost {
    position: absolute;
    top: -18px;
    right: 0;
    font-size: 128px;
    font-weight: 600;
    line-height: 0.8;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--ink), 0.08);
    pointer-events: none;
}

/* ── The venue: the map and the details ───────────────────── */
.tv-venue-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

/* minmax(0, …) with max-width keeps the map inside the screen on a phone. */
.tv-map-frame {
    position: relative;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(var(--ink), 0.12);
    background: var(--panel, #0b0b0b);
}

.tv-map-frame .c-tl-h { position: absolute; top: -1px; left: -1px; width: 26px; height: 2px; background: var(--accent, #ff3636); }
.tv-map-frame .c-tl-v { position: absolute; top: -1px; left: -1px; width: 2px; height: 26px; background: var(--accent, #ff3636); }

.tv-map {
    display: block;
    width: 100%;
    height: 430px;
    border: 0;
    filter: grayscale(1) contrast(1.05) brightness(0.85);
}

.tv-facts { margin: 0; border-top: 1px solid rgba(var(--ink), 0.14); }

.tv-facts > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line, rgba(var(--ink), 0.08));
}

.tv-facts dt {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.tv-facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text, #f4f2ec); }
.tv-facts dd a { color: var(--accent, #ff3636); text-decoration: none; }
.tv-facts dd a:hover { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }

.tv-facts-cta { padding-top: 22px; border-bottom: 0 !important; }

.tv-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 0 20px;
    background: var(--accent, #ff3636);
    color: var(--on-accent);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tv-btn:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.tv-btn:active { background: var(--accent-active); }
.tv-btn svg { width: 16px; height: 16px; flex: none; }

/* ── Getting there: numbered rows ─────────────────────────── */
.tv-rows { display: flex; flex-direction: column; }
.tv-rows-end { border-top: 1px solid rgba(var(--ink), 0.12); }

.tv-row {
    position: relative;
    display: grid;
    grid-template-columns: 88px 1fr 1.1fr;
    gap: 28px;
    align-items: start;
    padding: 30px 0;
    border-top: 1px solid rgba(var(--ink), 0.12);
}

/* The red rule draws itself from the left — the same effect as a focused
   field. */
.tv-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    background: var(--accent, #ff3636);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tv-row:hover::after { transform: scaleX(1); }

.tv-row-idx {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--text-dim);
    transition: color 0.25s ease;
}

.tv-row:hover .tv-row-idx { color: var(--accent, #ff3636); }

.tv-row-title {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text, #f4f2ec);
    transition: color 0.25s ease;
}

.tv-row:hover .tv-row-title { color: rgb(var(--ink)); }

.tv-row-body { display: flex; flex-direction: column; gap: 10px; max-width: 56ch; }
.tv-row-body p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted, #a7a39b); }

.tv-row-note {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── Hotels ───────────────────────────────────────────────── */
.tv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 24px;
}

.tv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 34px 26px 30px;
    background: var(--panel, #0b0b0b);
    border: 1px solid rgba(var(--ink), 0.1);
    color: var(--text, #f4f2ec);
    text-decoration: none;
    transition: background 0.3s ease;
}

.tv-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    background: var(--accent, #ff3636);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tv-card:hover { background: var(--surface); color: var(--text, #f4f2ec); text-decoration: none; }
.tv-card:hover::after { transform: scaleX(1); }

.tv-card-idx {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--text-dim);
    transition: color 0.25s ease;
}

.tv-card:hover .tv-card-idx { color: var(--accent, #ff3636); }

.tv-card h4 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: inherit;
}

.tv-card h4 svg { width: 12px; height: 12px; flex: none; }
.tv-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted, #a7a39b); }

.tv-card-dist {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line, rgba(var(--ink), 0.08));
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.tv-note {
    margin: 40px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line, rgba(var(--ink), 0.08));
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted, #a7a39b);
}

/* ── Reveal on scroll ─────────────────────────────────────────
   IMPORTANT: the content is visible by default. travel.js hides (is-armed)
   only what is below the fold and releases it immediately (is-in), so a script
   that fails to load cannot leave the page blank. */
.tv-reveal {
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tv-reveal.is-armed { opacity: 0; transform: translateY(18px); }
.tv-reveal.is-armed.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tv-reveal, .tv-reveal.is-armed { opacity: 1; transform: none; transition: none; }
    .tv-wordmark { animation: none; }
}

/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 980px) {
    .tv-banner img { max-height: 300px; }
    .tv-venue-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .tv-map { height: 320px; }
}

/* ── Phone ────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .tv-pad, .tv-hero-inner, .tv-nav-inner { padding-left: 22px; padding-right: 22px; }
    .tv-banner img { max-height: 210px; }
    .tv-frame { inset: 10px; }
    .tv-hero-meta { grid-template-columns: 1fr; gap: 0; }
    .tv-hero-meta > div { padding: 11px 0; }
    .tv-row { grid-template-columns: 1fr; gap: 6px; }
    .tv-row-body { max-width: none; }
    .tv-ghost { display: none; }
    .tv-nav-inner { gap: 18px; overflow-x: auto; }
    .tv-sec, .tv-sec--last { padding-top: 56px; padding-bottom: 56px; }
    .tv-map-frame { max-width: 100%; }
}
