/* Screen-specific layout. Shared pieces live in components.css. */
.eyebrow { font-size: 9.5px; color: var(--muted); letter-spacing: .01em; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 18px; margin-bottom: 22px; }
.page-head .btn { flex: none; margin-top: 2px; }

/* Explore */
.explore-hero { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 26px; }
.explore-hero__add { width: var(--hit); height: var(--hit); margin-top: 4px; }
.explore-search { margin-top: 26px; }
.explore-search > .input { min-height: 45px; }

.hero-card {
  position: relative;
  height: 324px;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.hero-card__track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 1; transition: opacity .7s ease; }
.hero-slide[aria-hidden] { opacity: 0; pointer-events: none; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,16,22,.62) 100%); }
.hero-slide__text { position: absolute; left: 21px; right: 72px; bottom: 64px; z-index: 1; }
.hero-slide__where { display: flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.hero-slide__title { font-family: var(--font-serif); font-weight: 400; font-size: 31px; line-height: 1.1; margin-top: 8px; }
.hero-slide__desc { font-size: 11.5px; line-height: 1.5; margin-top: 8px; max-width: 190px; opacity: .92; }
.hero-card__badge { position: absolute; top: 16px; left: 16px; gap: 5px; z-index: 2; font-size: 9.5px; padding: 5px 9px; }
.hero-card__next { position: absolute; top: 12px; right: max(12px, var(--safe-right)); width: var(--hit); height: var(--hit); border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; z-index: 2; }
.hero-card__controls { position: absolute; left: max(8px, var(--safe-left)); bottom: 8px; display: flex; align-items: center; gap: 0; z-index: 2; }
.hero-dot { width: var(--hit); height: var(--hit); display: grid; place-items: center; }
.hero-dot::before { content: ''; width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.65); transition: width .3s var(--ease), background .3s; }
.hero-dot[aria-current]::before { width: 18px; background: #fff; }
.hero-card__pause { width: var(--hit); height: var(--hit); margin-left: 4px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); color: #fff; display: grid; place-items: center; }

.trip-teaser { display: flex; margin-top: 18px; overflow: hidden; min-height: 156px; }
.trip-teaser > img { width: 105px; flex: none; object-fit: cover; }
.trip-teaser__body { position: relative; flex: 1; padding: 18px 16px 18px 15px; }
.trip-teaser__body .title { margin-top: 6px; }
.trip-teaser__body .hint { margin-top: 10px; max-width: 280px; }
.trip-teaser__go { position: absolute; right: 16px; bottom: 16px; color: var(--ink); }

.trend-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.trend-card { overflow: hidden; border-radius: var(--radius); }
.trend-card img { width: 100%; height: 109px; object-fit: cover; }
.trend-card__body { padding: 12px 10px 14px; min-height: 72px; }
.trend-card h3 { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.15; margin-top: 6px; color: var(--ink); }

.love-filter { margin-bottom: 16px; gap: 9px; }
.love-filter .chip { min-height: var(--hit); padding: 0 14px; gap: 6px; }
.love-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.love-card { overflow: hidden; border-radius: var(--radius-lg); }
.love-card__media { position: relative; height: 272px; color: #fff; }
.love-card__media img { width: 100%; height: 100%; object-fit: cover; }
.love-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(8,14,20,.7) 100%); }
.love-card__media .tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 8.5px; padding: 3px 8px; }
.love-card__text { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; }
.love-card__where { display: flex; align-items: center; gap: 4px; font-size: 8.5px; }
.love-card__text h3 { font-family: var(--font-serif); font-size: 20px; line-height: 1.12; margin-top: 6px; }
.love-card__desc { padding: 13px 12px 15px; font-size: 10px; color: var(--muted); line-height: 1.55; }

/* Trips list */
.trip-row { display: flex; overflow: hidden; min-height: 182px; }
.trip-row > img { width: 142px; flex: none; object-fit: cover; }
.trip-row__body { flex: 1; padding: 18px 16px; }
.trip-row__body .title { font-size: 22px; margin-top: 6px; }
.trip-row__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 9.5px; color: var(--muted); }
.trip-row__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Login */
.login { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #b98a5c; }
.login__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; }
.login__brand { position: relative; text-align: center; padding: calc(var(--safe-top) + 92px) 24px 0; color: var(--ink); }
.login__brand .brand__name { font-size: 37px; }
.login__brand .brand__mark { width: 38px; height: 24px; }
.login__brand p { margin-top: 12px; font-size: 11.5px; color: var(--ink-soft); }
.login__sheet {
  position: relative;
  display: grid; gap: 10px;
  padding: 20px max(20px, var(--safe-right)) calc(var(--safe-bottom) + 20px) max(20px, var(--safe-left));
  border-radius: 22px 22px 0 0;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: screen-in .3s var(--ease);
}
.login__sheet .btn--lg { min-height: 46px; font-size: 16px; }
.login__switch { text-align: center; font-size: 15px; color: var(--muted); margin: 4px 0; }
.login__legal { text-align: center; font-size: 13px; line-height: 1.4; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.login__legal a { text-decoration: underline; display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 4px; }
.login__switch button { min-height: var(--hit); padding: 8px; font-size: inherit; color: var(--ink); font-weight: 600; }
.login__form .title { font-size: 20px; }
.login__error { color: var(--danger); }
.login__forgot { justify-self: center; min-height: var(--hit); padding: 8px 12px; margin: 0 auto; }

/* Sub-pages (settings) */
.subpage-head { display: flex; align-items: center; gap: 8px; margin: 24px 0 26px -8px; }
.subpage-head .display { font-size: 27px; }
.settings-form { display: grid; gap: 26px; }
.style-grid { gap: 9px 10px; }
.style-grid .option { min-height: var(--hit); }

/* Profile */
.profile-cover { height: 142px; overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { position: relative; display: flow-root; padding: 0 var(--gutter); }
.profile-head__avatar { margin-top: -36px; width: 78px; padding: 2px; border-radius: 50%; background: var(--bg); }
.profile-head__tag { position: absolute; right: var(--gutter); top: 22px; font-weight: 500; font-size: 9px; background: var(--surface-muted); color: var(--ink-soft); }
.profile-menu { margin: 18px var(--gutter) 0; }
.profile-menu .list-row { padding: 15px 0; gap: 16px; }
.profile-menu .list-row > .icon:first-child { color: var(--ink); }
.profile-menu .list-row__title { font-size: 11.5px; }
.profile-menu .list-row__sub { font-size: 9.5px; }
.profile-foot { padding: 30px var(--gutter) 0; }
.profile-foot .link { margin: 0; font-size: 11px; color: var(--ink-soft); }

.photo-edit { text-align: center; margin: -6px 0 30px; }
.photo-edit__avatar { position: relative; display: inline-block; cursor: pointer; }
.photo-edit__badge { position: absolute; right: -2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); }
.photo-edit .link { font-size: 10.5px; color: var(--ink-soft); }

.notify-row { align-items: flex-start; padding: 20px 0; cursor: pointer; }
.notify-row .toggle { margin-top: -2px; }

.picker-count { font-size: 9.5px; margin: 18px 0 4px; }
.picker-row { padding: 14px 0; gap: 16px; }
.picker-flag { width: 22px; font-size: 18px; line-height: 1; text-align: center; color: var(--muted); }

.night-art { height: 190px; border-radius: var(--radius-lg); overflow: hidden; }
.night-art svg { width: 100%; height: 100%; display: block; }
.theme-option { min-height: 52px; font-size: var(--fs-md); gap: 12px; }

.btn.is-busy { color: transparent; position: relative; }
.btn.is-busy::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--primary-ink) transparent var(--primary-ink) transparent; animation: spin .8s linear infinite; }
.btn:not(.btn--primary).is-busy::after { border-color: var(--ink) transparent var(--ink) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.settings-form .chips { gap: 8px; }
.settings-form .chips .chip { padding: 0 14px; font-size: 13px; gap: 6px; }
.notify-row .list-row__title { font-size: 11px; }
.notify-row .list-row__sub { font-size: 9.5px; }

.love-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.love-filter-row > .hint { font-size: 10px; white-space: nowrap; }
.explore-outro { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 4px 16px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.explore-outro__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--green-50); color: var(--primary); display: grid; place-items: center; }
.explore-outro .hint { margin-top: 4px; }
.explore-outro .link { grid-column: 2; margin-top: 4px; }
@media (min-width: 761px) {
  .explore-outro { grid-template-columns: 46px 1fr auto; }
  .explore-outro .link { grid-column: 3; font-size: 12px; }
}
.love-filter-row > .chips { flex: 1; min-width: 0; }

/* Travial Plus */
.plus-page { max-width: 560px; margin: 0 auto; padding-bottom: 32px; }
.plus-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--green-50); color: var(--primary); font-size: var(--fs-xs); font-weight: 600; }
.plus-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 4px 4px; }
.plus-hero .lead { max-width: 380px; }
.plus-hero__icon, .paywall-modal__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--green-50); color: var(--primary); }
.paywall-modal__icon { margin: 0 auto; }
.paywall-modal .lead { text-align: center; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.offer { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 128px; padding: 16px 14px 14px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); cursor: pointer; }
.offer[aria-checked="true"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; background: var(--green-50); }
.offer__badge { position: absolute; top: -9px; left: 12px; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 10px; font-weight: 600; }
.offer__name { font-size: var(--fs-md); font-weight: 600; }
.offer__price { white-space: nowrap; }
.offer__price strong { font-family: var(--font-serif); font-size: 21px; }
.offer__price small { margin-left: 2px; color: var(--muted); font-size: var(--fs-xs); }
.offer__note { color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; }
/* Monthly equivalent of the annual plan: highlighted, but smaller than the billed price (App Store 3.1.2). */
.offer__note--strong { color: var(--primary); font-weight: 700; font-size: var(--fs-sm, 14px); }
.plus-cta { display: grid; gap: 8px; margin-top: 18px; }
.plus-cta__note { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-muted); color: var(--ink-soft); }
.plus-cta__note svg { flex: none; margin-top: 1px; }
.plan-current { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-top: 6px; }
.plan-usage { display: grid; gap: 12px; margin-top: 22px; }
.plan-usage__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-usage__plan { font-size: var(--fs-sm); font-weight: 600; color: var(--primary); text-align: right; }
.plan-usage__row { display: grid; gap: 6px; font-size: var(--fs-sm); }
.meter { height: 6px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.plan-compare { margin-top: 30px; }
.plan-compare table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: var(--fs-sm); }
.plan-compare th, .plan-compare td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plan-compare thead th { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }
.plan-compare tbody th { font-weight: 400; color: var(--ink-soft); width: 46%; }
.plan-compare__note { margin-top: 16px; }
.plus-legal { margin-top: 22px; text-align: center; }
.group-member { gap: 12px; }
@media (max-width: 360px) { .offers { grid-template-columns: 1fr; } }
