:root {
    --ink: #0b0c0f;
    --cloud: #f5f7fb;
    --accent: #111827;
    --accent-glow: rgba(15, 23, 42, 0.14);
    --glass: rgba(255, 255, 255, 0.12);
    --glass-strong: rgba(255, 255, 255, 0.22);
    --deep: #081018;
    --visa-free: #2ecc71;
    --visa-easy: #8e5cf1;
    --visa-hard: #ff5b5b;
}

body {
    color: var(--ink);
}

.home-page {
    background: #0b0c0f;
    color: #f7fbff;
}

.home-page .page-shell,
.home-page .page-container.content {
    padding: 0;
    height: auto;
    max-width: none;
}

.hero-viewport {
    position: relative;
    min-height: 55vh;
    padding: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(9, 13, 18, 0.95) 0%, rgba(9, 13, 18, 0.86) 60%, rgba(9, 13, 18, 0.75) 100%);
}

.hero-carousel {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
}

.carousel-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    min-height: clamp(420px, 55vh, 680px);
    border-radius: 0;
    overflow: hidden;
    color: #f8fafc;
    scroll-snap-align: center;
    background-image: linear-gradient(180deg, rgba(10, 14, 22, 0.2), rgba(10, 14, 22, 0.75)), var(--slide-image);
    background-size: cover;
    background-position: center;
}

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 12, 0.2), rgba(4, 8, 12, 0.75));
}

.carousel-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 28px 28px 32px;
}

.carousel-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.carousel-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.45);
}

.carousel-chip--soft {
    background: rgba(255, 255, 255, 0.22);
}

.carousel-title {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.carousel-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(248, 250, 252, 0.86);
}

.carousel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
}

.carousel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #0b0c0f;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.carousel-button--ghost {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    margin-top: 0;
}

.carousel-dot {
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.carousel-dot.is-active {
    background: rgba(255, 255, 255, 0.8);
}

.directions-panel {
    position: absolute;
    z-index: 10;
    background: #ffffff;
    color: #0b0c0f;
    padding: 32px clamp(18px, 5vw, 46px) 40px;
    border-radius: 10px 10px 0 0;
    margin-top: -14px;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.18);
}

.directions-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    width: min(1100px, 100%);
    margin: 0 auto 24px;
}

.directions-filters {
    width: min(1100px, 100%);
    margin: 0 auto 12px;
    display: grid;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: #f4f6fb;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.directions-search {
    width: min(1100px, 100%);
    margin: 0 auto 16px;
    display: grid;
    gap: 8px;
}

.directions-search__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 600;
}

.directions-search__input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    padding: 12px 14px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.directions-search__input:focus {
    outline: none;
    border-color: rgba(31, 94, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.15);
}

.filter-block {
    display: grid;
    gap: 10px;
}

.filter-title {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: #ffffff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-chip input {
    accent-color: #1f5eff;
}

.filter-chip:has(input:checked) {
    background: rgba(31, 94, 255, 0.1);
    border-color: rgba(31, 94, 255, 0.4);
    color: #1f3ce7;
}

.directions-filter-hint {
    width: min(1100px, 100%);
    margin: 0 auto 20px;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.55);
}

.directions-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.5);
}

.directions-title {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
}

.directions-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0b0c0f;
    text-decoration: none;
    font-weight: 600;
}

.directions-list {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.directions-pagination {
    width: min(1100px, 100%);
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.directions-pagination__button {
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.directions-pagination__button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.directions-pagination__info {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.6);
    font-weight: 600;
}

.direction-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 5px;
    border-radius: 18px;
    background: #f6f7fb;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.direction-card__media {
    flex: 0 0 75px;
    width: 75px;
    height: 75px;
    border-radius: 16px;
    background-image: var(--direction-image);
    background-size: cover;
    background-position: center;
    background-color: rgba(15, 23, 42, 0.08);
}

.direction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.direction-card__info {
    display: grid;
    gap: 4px;
}

.direction-card__name {
    font-weight: 700;
    font-size: 16px;
}

.direction-card__hint {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.6);
}

.visa-pill {
    --visa-color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--visa-color);
    border: 1px solid var(--visa-color);
    background: color-mix(in srgb, var(--visa-color) 14%, #ffffff);
}

.visa-pill--visa-free {
    --visa-color: var(--visa-free);
}

.visa-pill--visa-easy {
    --visa-color: var(--visa-easy);
}

.visa-pill--visa-hard {
    --visa-color: var(--visa-hard);
}

@media (max-width: 960px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
}

@media (max-width: 640px) {
    .carousel-slide {
        flex: 0 0 100%;
    }

    .carousel-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .carousel-button,
    .directions-cta {
        width: 100%;
    }

    .directions-filters {
        padding: 12px;
    }

    .filter-options {
        gap: 6px;
    }
}
