html,
body {
    height: 100%;
}

:root {
    --bg-dark: #0b0f14;
    --text: #0b0f14;
    --text-light: #ffffff;
    --muted: #4b5563;
    --white: #ffffff;
    --accent: #86c6e8;
    --accent-2: #86c6e8;
    --radius-xl: 28px;
    --swipe-content-width: 1100px;
    --shadow: 0 18px 42px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 24px 52px rgba(15, 23, 42, 0.16), 0 10px 22px rgba(15, 23, 42, 0.1);
    --shadow-subtle: 0 10px 24px rgba(15, 23, 42, 0.08), 0 3px 10px rgba(15, 23, 42, 0.05);
    --bg-card: rgba(255,255,255,0.6);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: #f5f7fb;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
}

/* ========== PAGE LAYOUT ========== */
.swipe-page {
    height: 100vh;
    padding: 84px 20px 42px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.filter-bar,
.swipe-wrapper {
    width: 100%;
    max-width: var(--swipe-content-width);
    margin: 0 auto;
}

.filter-bar {
    --filter-slider-width: 50px;
    --filter-side-padding: 8px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 4px 16px 4px 4px;
    overflow: hidden;
}

.filter-bar__label-group {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 1px;
}

.filter-bar__label {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.filter-bar__toggle,
.filter-bar__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(11, 15, 20, 0.2);
    border-radius: 999px;
    background: transparent;
    color: rgba(11, 15, 20, 0.72);
    font: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.3s ease;
}

.filter-bar__toggle {
    transform: translateY(2px);
    gap: 2px;
}

.filter-bar__toggle:hover,
.filter-bar__action-btn:hover {
    color: rgba(11, 15, 20, 0.95);
    border-color: rgba(11, 15, 20, 0.32);
    background: rgba(255, 255, 255, 0.55);
}

.filter-bar__toggle svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    margin-bottom: 1px;
    transition: transform 0.3s ease;
}

.filter-bar__quick-actions {
    position: absolute;
    left: calc(100% + 10px);
    bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
    transform: translateY(6px);
}

.filter-bar__content {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.filter-bar__content-track {
    width: max-content;
    min-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.filter-bar--collapsed .filter-bar__content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.filter-bar--collapsed .filter-bar__quick-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.filter-bar--collapsed .filter-bar__toggle svg {
    transform: rotate(180deg);
}

.filter-control {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: max-content var(--filter-slider-width) max-content;
    row-gap: 2px;
    align-items: center;
    column-gap: 10px;
    padding-inline: var(--filter-side-padding);
    font-size: 12px;
    font-weight: 300;
    color: var(--muted);
    white-space: nowrap;
}

.filter-control__title {
    grid-column: 2;
    justify-self: center;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(11, 15, 20, 0.54);
}

.filter-control.filter-control--choice {
    grid-template-columns: max-content;
    row-gap: 6px;
    justify-items: center;
}

.filter-control.filter-control--choice .filter-control__title {
    grid-column: 1;
}

.filter-choice-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-choice {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: -4px;
    border: 1px solid #d6dde6;
    border-radius: 4px;
    background: transparent;
    color: #d6dde6;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.filter-choice__symbol {
    font-size: 8px;
    font-weight: 500;
    line-height: 1;
    color: inherit;
}

.filter-choice--selected {
    border-color: #ABA9A9;
    color: #ABA9A9;
}

.filter-choice--selected .filter-choice__symbol {
    font-weight: 700;
}

.filter-control__row {
    display: contents;
}

.filter-control__text {
    font-weight: 300;
    line-height: 1;
    color: rgba(11, 15, 20, 0.72);
}

.filter-control__row > .filter-control__text:first-child {
    grid-column: 1;
    justify-self: end;
    padding-right: 2px;
}

.filter-control__slider {
    grid-column: 2;
}

.filter-control__row > .filter-control__text:nth-child(3) {
    grid-column: 3;
    justify-self: start;
    padding-left: 2px;
}

/* Slider styling */

.filter-control__slider {
    width: var(--filter-slider-width);
    height: 18px;
    margin: -6px 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.filter-control__slider::-webkit-slider-runnable-track {
    height: 2px;
    background: #d6dde6;
    border-radius: 999px;
}

.filter-control__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 5px;
    height: 5px;
    margin-top: -1.5px;
    border-radius: 50%;
    background: #ABA9A9;
    border: none;
}

.filter-control__slider::-moz-range-track {
    height: 2px;
    background: #d6dde6;
    border-radius: 999px;
    border: none;
}

.filter-control__slider::-moz-range-thumb {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ABA9A9;
    border: none;
}
   

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav__left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.nav__left:hover {
    color: var(--accent-2);
}

.nav__left svg {
    width: 20px;
    height: 20px;
}

.nav__title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.04em;
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.nav__right:hover {
    color: var(--accent-2);
}

.nav__right svg {
    width: 20px;
    height: 20px;
}

.nav__right-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__form-inline {
    margin: 0;
    display: inline-flex;
}

button.nav__right {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.nav__right--danger {
    color: #991b1b;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-modal--open {
    display: flex;
}

.confirm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 20, 0.55);
    backdrop-filter: blur(2px);
}

.confirm-modal__dialog {
    position: relative;
    width: min(460px, 100%);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(11, 15, 20, 0.14);
    padding: 22px;
    animation: confirmModalEnter 0.18s ease;
}

.confirm-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #4b5563;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal__close:hover {
    color: #111827;
}

.confirm-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.confirm-modal__text {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.confirm-modal__actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-modal__btn {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.confirm-modal__btn--secondary {
    color: var(--text);
    background: rgba(0, 0, 0, 0.08);
}

.confirm-modal__btn--danger {
    color: #ffffff;
    background: #991b1b;
}

@keyframes confirmModalEnter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== MAIN CONTAINER ========== */
.swipe-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    padding: 6px 20px 0;
    position: relative;
}

.swipe-wrapper {
    position: relative;
    height: 650px;
    max-height: 100%;
}

/* ========== CARD ========== */
.card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: 100%;
    max-width: 1100px;
    height: 650px;
    max-height: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 30px;
    display: grid;
    grid-template-columns: 55% 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "image header"
        "image description"
        "image actions";
    column-gap: 30px;
    row-gap: 15px;
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
    backdrop-filter: blur(6px);
    backface-visibility: hidden;
    perspective: 1000px;
    touch-action: pan-y;
}

/* ========== FOOTER ========== */
.landing-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 18px;
    background: rgba(245, 245, 245, 0.96);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}

.landing-footer__left,
.landing-footer__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.landing-footer__link {
    color: rgba(0, 0, 0, 0.72);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    font-family: inherit;
}

.landing-footer__link--button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.landing-footer__link:hover {
    color: rgba(0, 0, 0, 0.95);
}

.landing-footer__form {
    margin: 0;
    display: inline-flex;
}

button.landing-footer__link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.landing-footer__link--danger {
    color: #991b1b;
    font-weight: 500;
}

.landing-footer__note {
    color: rgba(0, 0, 0, 0.72);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.policy-modal {
    position: fixed;
    inset: 0;
    z-index: 350;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.policy-modal--open {
    display: flex;
}

.policy-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 20, 0.56);
    backdrop-filter: blur(2px);
}

.policy-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(11, 15, 20, 0.14);
    box-shadow: var(--shadow);
    padding: 24px;
}

.policy-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #4b5563;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.policy-modal__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.8vw, 30px);
    font-weight: 700;
}

.policy-modal__content p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 16px;
}

.policy-modal__content p:last-child {
    margin-bottom: 0;
}

.itinerary-modal__count-input {
    width: 120px;
    border: 1px solid rgba(11, 15, 20, 0.16);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.95);
    margin: 4px 0 16px;
}

.itinerary-modal__count-input:focus {
    outline: 2px solid rgba(134, 198, 232, 0.9);
    outline-offset: 1px;
}

.itinerary-modal__actions {
    margin-top: 22px;
}

.card:active {
    cursor: grabbing;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card--animating {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

.card--exit-left {
    transform: translate3d(-150%, 0, 0) rotate(-25deg) !important;
    opacity: 0;
}

.card--exit-right {
    transform: translate3d(150%, 0, 0) rotate(25deg) !important;
    opacity: 0;
}

.card--entering {
    animation: cardEnter 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEnter {
    0% {
        transform: translate3d(-50%, 10%, 0) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translate3d(-50%, 0, 0) scale(1);
        opacity: 1;
    }
}

/* ========== SWIPE FEEDBACK ========== */
.card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: 700;
    z-index: 10;
}

.card--swipe-left .card__overlay--left {
    opacity: 0.7;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ea8888;
}

.card--swipe-right .card__overlay--right {
    opacity: 0.7;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid #7dc798;
}

.card__overlay--left {
    color: #ea8888;
}

.card__overlay--right {
    color: #7dc798;
}

/* ========== CARD CONTENT ========== */
.card__header {
    grid-area: header;
    margin-bottom: 0;
}

.card__title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.card__location {
    margin: 0;
    font-size: 16px;
    color: var(--muted);
}

.card__image {
    grid-area: image;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-xl) - 10px);
    object-fit: cover;
    margin: 0;
    border: 2px solid rgba(0, 0, 0, 0.08);
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
    user-select: none;
    align-self: stretch;
}

.card__description {
    grid-area: description;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    overflow-y: auto;
    padding-right: 5px;
}

/* ========== ACTIONS ========== */
.card__actions {
    grid-area: actions;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 0;
}

.action-btn:hover {
    color: var(--text);
    transform: scale(1.1);
}

.action-btn svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.action-btn--reject {
    opacity: 0.6;
}

.action-btn--reject:hover {
    opacity: 1;
    color: #ff6b6b;
}

.action-btn--accept {
    opacity: 0.6;
}

.action-btn--accept:hover {
    opacity: 1;
    color: #51cf66;
}

/* ========== NAVIGATION HINTS ========== */
.nav-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.nav-hint__text {
    text-align: center;
    white-space: nowrap;
}

.nav-hint__keys {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-hint-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 12px;
    flex-shrink: 0;
}

.nav-hint-box--icon {
    padding: 0;
}

.nav-hint-box--icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-hint b {
    font-weight: 600;
}

/* ========== SWIPE ARROWS ========== */
.swipe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
}

.swipe-arrow:hover {
    color: var(--text);
    transform: translateY(-50%) scale(1.2);
}

.swipe-arrow svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.swipe-arrow--left {
    left: -80px;
}

.swipe-arrow--right {
    right: -80px;
}

/* ========== SWIPE INDICATORS (BACKGROUND) ========== */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    z-index: 1;
}

.swipe-indicator:hover {
    opacity: 0.6;
}

.swipe-indicator svg {
    width: 80px;
    height: 80px;
    stroke-width: 2.5;
}

.swipe-indicator span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.swipe-indicator--left {
    left: 2%;
    color: #ea8888;
}

.swipe-indicator--right {
    right: 2%;
    color: #7dc798;
}

/* Keyboard hints */
.keyboard-hints {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.key-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid currentColor;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

/* Show indicators more prominently when card is swiped */
.card--swipe-left ~ .swipe-indicator--left {
    opacity: 0.5;
}

.card--swipe-right ~ .swipe-indicator--right {
    opacity: 0.5;
}

.nav-hint__text--mobile {
    display: none;
}

/* Hide indicators on screens where they might overlap */
@media (max-width: 1300px) {
    .swipe-indicator {
        display: none;
    }
}

@media (max-width: 900px) {
    .swipe-page {
        gap: 14px;
        padding: 84px 12px 72px;
    }

    .filter-bar {
        gap: 8px;
        padding: 9px 12px;
    }

    .filter-control {
        grid-template-columns: 60px 50px 60px;
    }
}

/* ========== EMPTY STATE ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

.empty-state__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
}

.empty-state__text {
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 30px;
}

.empty-state__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.empty-state__btn:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
}

/* ========== LOGIN GATE ========== */
.login-gate {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
}

.login-gate--open {
    display: grid;
    place-items: center;
}

.login-gate__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 20, 0.48);
}

.login-gate__dialog {
    position: relative;
    width: min(460px, calc(100% - 24px));
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(11, 15, 20, 0.12);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
    padding: 22px;
}

.login-gate__dialog h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.login-gate__dialog p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.login-gate__form {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.login-gate__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.login-gate__input {
    width: 100%;
    border: 1px solid rgba(11, 15, 20, 0.16);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.95);
}

.login-gate__input:focus {
    outline: 2px solid rgba(134, 198, 232, 0.9);
    outline-offset: 1px;
}

.login-gate__error {
    min-height: 18px;
    margin: 4px 0 0;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}

.login-gate__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.login-gate__text-link {
  margin-right: auto;
  border-radius: none;
  padding: none;
  background: none;
  padding: 0;
  color: var(--text);
  font: inherit;
}

.login-gate__btn {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.login-gate__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-gate__btn--secondary {
    color: var(--text);
    background: rgba(0, 0, 0, 0.08);
}

.login-gate__btn--primary {
    color: var(--text);
    background: var(--accent);
}

.login-gate__fallback {
    margin-top: 8px;
    font-size: 13px;
}

.login-gate__fallback a {
    color: var(--muted);
    text-decoration: none;
}

.login-gate__fallback a:hover {
    color: var(--text);
}

.login-gate__text-link:hover {
  color: #000;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
        min-height: 100svh;
        min-height: 100dvh;
    }

    .nav {
        display: grid;
        grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
        align-items: start;
        gap: 8px;
        padding: 12px 14px;
    }

    .nav__left {
        justify-self: start;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        min-width: 0;
    }

    .nav__title {
        position: static;
        transform: none;
        justify-self: center;
        text-align: center;
        font-size: 12px;
        line-height: 1.15;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }

    .nav__right-group {
        justify-self: end;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        min-width: 92px;
    }

    .nav__right {
        font-size: 13px;
        gap: 5px;
        line-height: 1.1;
    }

    .nav__left svg,
    .nav__right svg {
        width: 16px;
        height: 16px;
    }

    .nav-hint__text--desktop {
        display: none !important;
    }

    .nav-hint__text--mobile {
        display: block !important;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
        font-weight: 500;
        margin-bottom: 0;
    }

    .swipe-page {
        gap: 10px;
        padding: 74px 10px 18px;
        min-height: 100svh;
        min-height: 100dvh;
        height: auto;
        overflow: visible;
    }

    .filter-bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0 4px;
        overflow: visible;
    }

    .filter-bar__label-group {
        padding-bottom: 0;
    }

    .filter-bar__toggle {
        align-items: center;
        gap: 6px;
    }

    .filter-bar__label {
        font-size: 12px;
    }

    .filter-bar__content {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
    }

    .filter-bar__content-track {
        width: max-content;
        min-width: max-content;
        gap: 10px;
        justify-content: flex-start;
        padding-right: 8px;
    }

    .filter-control {
        grid-template-columns: 52px 44px 52px;
        column-gap: 6px;
        row-gap: 2px;
        padding-inline: 0;
        font-size: 11px;
    }

    .filter-control__title {
        font-size: 9px;
    }

    .filter-control__text {
        font-size: 11px;
    }

    .filter-control__slider {
        width: 44px;
    }

    .filter-choice-group {
        gap: 4px;
    }

    .swipe-container {
        padding: 0;
        height: auto;
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
        width: 100%;
    }

    .swipe-wrapper {
        height: auto;
        max-height: none;
        width: 100%;
        padding: 0;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .card {
        position: static !important;
        transform: none !important;
        left: auto !important;
        height: auto;
        min-height: 0;
        padding: 14px;
        overflow: visible;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 22px;
        padding-bottom: 12px;
    }

    .swipe-arrow,
    .swipe-indicator {
        display: none;
    }

    .card__header {
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .card__title {
        font-size: 16px;
        line-height: 1.2;
        margin: 0 0 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card__location {
        font-size: 11px;
        line-height: 1.35;
    }

    .card__image {
        height: 26vh;
        max-height: 220px;
        margin: 6px 0 10px;
        flex-shrink: 0;
        width: 100%;
        border-radius: 18px;
    }

    .card__description {
        font-size: 12px;
        line-height: 1.45;
        margin: 6px 0 0;
        overflow-y: visible;
        flex: 0 0 auto;
        min-height: 0;
        max-height: none;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding-right: 2px;
    }

    .card__actions {
        margin-top: 12px;
        padding-top: 10px;
        gap: 8px;
        flex-shrink: 0;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .action-btn {
        flex: 1 1 0;
        min-width: 0;
        font-size: 11px;
        gap: 6px;
        padding: 0 4px;
        justify-content: flex-start;
    }

    .action-btn svg {
        width: 24px;
        height: 24px;
    }

    .nav-hint {
        width: 100%;
        font-size: 11px;
        gap: 6px;
        color: rgba(11, 15, 20, 0.78);
        text-align: center;
        min-height: 34px;
        justify-content: flex-start;
    }

    .nav-hint__text {
        display: block;
        width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.35;
        text-align: center;
        word-break: break-word;
        margin-bottom: 6px;
    }

    .nav-hint__keys {
        display: none;
    }

    .empty-state {
        position: fixed;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    .landing-footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
        padding: 10px 12px;
    }

    .landing-footer__left,
    .landing-footer__right {
        display: contents;
    }

    .landing-footer__link,
    .landing-footer__form {
        order: 1;
    }

    .landing-footer__note {
        order: 2;
        flex-basis: 100%;
        text-align: center;
        justify-content: center;
        margin-top: 2px;
    }

    .landing-footer__link,
    .landing-footer__note {
        font-size: 12px;
    }

    .empty-state__title {
        font-size: 24px;
    }

    .empty-state__text {
        font-size: 14px;
    }
}

/* ========== MOBILE LANDSCAPE ========== */
@media (max-width: 968px) and (max-height: 500px) and (orientation: landscape) {
    body {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100vh;
    }

    .nav {
        padding: 8px 16px;
    }

    .nav__title {
        font-size: 14px;
    }

    .nav__left,
    .nav__right {
        font-size: 12px;
        gap: 6px;
    }

    .nav__left svg,
    .nav__right svg {
        width: 16px;
        height: 16px;
    }

    .swipe-container {
        padding: 50px 0 48px;
        height: 100vh;
        overflow: hidden;
        width: 100%;
    }

    .swipe-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        padding: 0;
        display: flex;
        align-items: stretch;
        justify-content: center;
    }

    .card {
        position: static !important;
        transform: none !important;
        left: auto !important;
        height: 100%;
        max-height: calc(100vh - 108px);
        padding: 12px;
        overflow: hidden;
        display: grid;
        grid-template-columns: 40% 1fr;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "image header"
            "image description"
            "image actions";
        width: 100%;
        max-width: 100%;
        margin: 0;
        column-gap: 16px;
        row-gap: 8px;
    }

    .card > div:first-child {
        display: contents;
    }

    .card__header {
        grid-area: header;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .card__title {
        font-size: 16px;
        margin: 0 0 3px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card__location {
        font-size: 11px;
    }

    .card__image {
        grid-area: image;
        height: 100%;
        max-height: 100%;
        width: 100%;
        margin: 0;
        align-self: stretch;
    }

    .card__description {
        font-size: 12px;
        line-height: 1.45;
        margin: 6px 0 0;
        overflow-y: auto;
        flex: 1 1 0;
        min-height: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding-right: 2px;
    }

    .card__actions {
        margin-top: 6px;
        padding-top: 8px;
        gap: 8px;
        flex-shrink: 0;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .action-btn {
        font-size: 11px;
        gap: 4px;
    }

    .action-btn svg {
        width: 22px;
        height: 22px;
    }

    .nav-hint {
        min-height: 24px;
        justify-content: flex-start;
    }

    .nav-hint__text {
        margin-bottom: 0;
    }

    .nav-hint-box {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .landing-footer {
        padding: 8px 10px;
        gap: 8px 12px;
    }

    .landing-footer__left,
    .landing-footer__right {
        display: contents;
    }

    .landing-footer__link,
    .landing-footer__form {
        order: 1;
    }

    .landing-footer__note {
        order: 2;
        flex-basis: 100%;
        text-align: center;
        justify-content: center;
        margin-top: 2px;
    }

    .landing-footer__link,
    .landing-footer__note {
        font-size: 11px;
    }

}
