/* Home presentation — scoped to .home-page / .home-landing. Does not rewrite Phase 1 tokens. */

.home-page,
.home-landing {
    background: var(--color-surface);
    padding: 4px 0 18px;
    overflow-x: hidden;
}

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 8px var(--page-padding) 4px;
    gap: 12px;
}

.home-header__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.home-header__support {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.home-hero {
    position: relative;
    margin: 8px var(--page-padding) 16px;
    height: 184px;
    border-radius: 24px;
    overflow: hidden;
    background: #1e3a5f;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    display: none;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
}

.home-hero__slide.is-active {
    display: block;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.home-hero__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: #f97316;
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    padding: 4px 10px;
}

.home-hero__copy {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 28px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.home-hero__name {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: #fff;
    max-width: 80%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-hero__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.home-hero__cta {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--color-text-primary);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
}

.home-hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.home-hero__dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
}

.home-hero__dots button.is-active {
    background: #fff;
    width: 16px;
    border-radius: 8px;
}

.home-search {
    margin: 0 var(--page-padding) 18px;
    height: 48px;
    border-radius: var(--radius-pill);
    background: #f1f4f8;
    display: flex;
    align-items: center;
    padding: 0 6px 0 14px;
    gap: 8px;
}

.home-search__icon {
    color: var(--color-primary);
    display: flex;
}

.home-search__input {
    flex: 1;
    border: 0;
    background: transparent;
    height: 48px;
    font-size: 13px;
    color: var(--color-text-primary);
    outline: none;
    min-width: 0;
}

.home-search__filter {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    padding: 10px 12px;
}

.home-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 8px;
    padding: 0 12px 8px;
}

.home-services__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text-primary);
    min-height: 76px;
}

.home-services__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.home-services__icon.is-blue {
    background: #3b82f6;
    box-shadow: 0 8px 14px rgba(59, 130, 246, 0.38);
}
.home-services__icon.is-orange {
    background: #f59e0b;
    box-shadow: 0 8px 14px rgba(245, 158, 11, 0.38);
}
.home-services__icon.is-green {
    background: #22c55e;
    box-shadow: 0 8px 14px rgba(34, 197, 94, 0.38);
}
.home-services__icon.is-purple {
    background: #8b5cf6;
    box-shadow: 0 8px 14px rgba(139, 92, 246, 0.38);
}
.home-services__icon.is-cyan {
    background: #06b6d4;
    box-shadow: 0 8px 14px rgba(6, 182, 212, 0.38);
}
.home-services__icon.is-yellow {
    background: #eab308;
    box-shadow: 0 8px 14px rgba(234, 179, 8, 0.38);
}
.home-services__icon.is-red {
    background: #ef4444;
    box-shadow: 0 8px 14px rgba(239, 68, 68, 0.38);
}
.home-services__icon.is-navy {
    background: #2563eb;
    box-shadow: 0 8px 14px rgba(37, 99, 235, 0.38);
}

.home-services__label {
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    text-align: center;
}

.home-section {
    padding: 16px 0 4px;
}

.home-section__title {
    margin: 0 var(--page-padding) 12px;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

.home-section__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: var(--page-padding);
}

.home-countdown {
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-danger);
}

.home-chips,
.home-hscroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: var(--page-padding);
    padding: 0 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.home-hscroll {
    display: none;
}

.home-hscroll.is-active {
    display: flex;
}

.home-chips::-webkit-scrollbar,
.home-hscroll::-webkit-scrollbar {
    display: none;
}

.home-chip {
    position: relative;
    flex: 0 0 104px;
    width: 104px;
    height: 148px;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: #1e3a5f;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    scroll-snap-align: start;
}

.home-chip img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.home-chip span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.home-chip::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 56%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    pointer-events: none;
}

.home-tabs {
    display: flex;
    gap: 18px;
    padding: 0 var(--page-padding) 12px;
}

.home-tab {
    appearance: none;
    background: none;
    border: 0;
    padding: 4px 0;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
}

.home-tab.is-active {
    color: var(--color-primary);
    box-shadow: inset 0 -2px 0 var(--color-primary);
}

.home-deal {
    flex: 0 0 148px;
    width: 148px;
    text-decoration: none;
    color: var(--color-text-primary);
    scroll-snap-align: start;
}

.home-deal__media,
.home-rec__media,
.home-tip__media,
.home-hero__slide--empty {
    background: linear-gradient(135deg, #64748b, #1e3a5f);
    background-size: cover;
    background-position: center;
}

.home-deal__media {
    display: block;
    height: 96px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.home-deal__sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 10px;
    padding: 2px 6px;
    font-weight: var(--font-weight-bold);
}

.home-deal__title,
.home-rec__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    margin-top: 8px;
    line-height: 1.3;
}

.home-deal__loc,
.home-rec__loc {
    display: block;
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.home-deal__price,
.home-rec__price {
    display: flex;
    gap: 6px;
    align-items: baseline;
    margin-top: 4px;
    font-size: 13px;
}

.home-deal__price s,
.home-rec__price s {
    color: var(--color-text-muted);
    font-size: 11px;
}

.home-external-flight {
    flex: 0 0 min(100%, 280px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 148px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(160deg, #0f3d6e 0%, #1d4f91 100%);
    color: #fff;
    text-decoration: none;
    scroll-snap-align: start;
}

.home-external-flight__kicker {
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.home-external-flight__title {
    font-size: 18px;
    line-height: 1.25;
    font-weight: var(--font-weight-bold);
}

.home-external-flight__hint {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.8;
}

.home-recommend {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 var(--page-padding);
}

.home-rec {
    display: block;
    position: relative;
    text-decoration: none;
    color: var(--color-text-primary);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.home-rec__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-rec__media {
    display: block;
    height: 148px;
    position: relative;
}

.home-rec__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f97316;
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 11px;
    padding: 3px 8px;
    font-weight: var(--font-weight-semibold);
}

.home-rec__heart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.home-rec__heart .service-wishlist {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.home-rec__heart .service-wishlist.active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.home-rec__body {
    display: block;
    padding: 10px 12px 12px;
}

.home-rec__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.home-rec__rating {
    font-size: 12px;
    color: #f59e0b;
    font-weight: var(--font-weight-semibold);
}

.home-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 var(--page-padding);
}

.home-tip {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text-primary);
}

.home-tip__media {
    flex: 0 0 88px;
    width: 88px;
    height: 72px;
    border-radius: 14px;
}

.home-tip__tag {
    display: inline-block;
    font-size: 11px;
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.home-tip__title {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    margin: 2px 0;
}

.home-tip__excerpt {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.home-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px var(--page-padding) 16px;
}

.home-trust__item {
    position: relative;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 12px 4px 10px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-trust__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-trust__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.home-trust__icon.is-green {
    background: #dcfce7;
    color: #16a34a;
}

.home-trust__icon.is-blue {
    background: #dbeafe;
    color: #2563eb;
}

.home-trust__icon.is-red {
    background: #fee2e2;
    color: #dc2626;
}

.home-trust__icon.is-yellow {
    background: #fef9c3;
    color: #ca8a04;
}

.home-trust__item strong {
    display: block;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--color-text-primary);
}

.home-trust__hint {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-empty {
    margin: 0 var(--page-padding);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.home-landing {
    padding: 12px var(--page-padding) 24px;
}

.home-landing__back {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    text-decoration: none;
}

.home-landing__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: var(--font-weight-bold);
}

.home-landing__note {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.45;
}

.home-landing__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.home-landing__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    text-decoration: none;
    color: var(--color-text-primary);
}

.home-landing__row span {
    font-size: 12px;
    color: var(--color-text-secondary);
}

body.has-app-shell.is-home-shell .home-page,
body.has-app-shell.is-landing-shell .home-landing {
    min-height: calc(100dvh - var(--app-bottom-offset));
}
