/* g3-app · home.css (step 1) · home (F1b 01, F3b 01) + restaurant pick (F3b 02, F1b 02, F1b 03) */

/* ---------- home ---------- */
.home { padding-bottom: 8px; }
.home-hero {
  position: relative; height: 380px; flex-shrink: 0;
  background-color: var(--white); background-size: cover; background-position: 50% 55%;
}
.home.is-member .home-hero { height: 330px; background-position: 40% 30%; }
.home-top {
  position: absolute; top: calc(var(--safe-top) + 6px); right: 16px;
  display: flex; align-items: center; gap: 8px;
}
.home-promo {
  position: absolute; left: 16px; top: 262px;
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px;
  border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: 13px; line-height: 16px; font-weight: 500; white-space: nowrap;
}
.home-promo .badge { align-self: center; }
.home.is-member .home-promo { top: 214px; }
.home-curve { position: absolute; left: 0; bottom: -1px; width: 100%; height: 30px; }
.home-disc {
  position: absolute; left: 50%; top: 320px; margin-left: -40px;
  width: 80px; height: 80px; border-radius: 999px; background: var(--white);
  display: flex; justify-content: center; padding-top: 13px;
}
.home-disc img { width: 54px; height: 46px; object-fit: contain; }
.home.is-member .home-disc { top: 270px; }

.home-intro { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px var(--gutter) 0; text-align: center; }
.home.is-member .home-intro { gap: 6px; padding: 32px 16px 0; }
.home-title {
  font-family: var(--f-stripes); font-weight: 900; text-transform: uppercase;
  font-size: 40px; line-height: 42px; color: var(--ink);
}
.home.is-member .home-title { font-size: 36px; line-height: 38px; }
.home-how { font-size: 15px; line-height: 20px; color: var(--muted); }
.home-hi { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; text-align: left; }
.home-hi svg { flex-shrink: 0; }
.home-hi-text { flex: 1 1 0; min-width: 0; font-size: 15px; line-height: 20px; }
.home-change { flex-shrink: 0; font-size: 15px; line-height: 20px; }

.home-modes { display: flex; gap: 10px; padding: 20px 16px 0; }
.home.is-member .home-modes { padding-top: 14px; }
.home-mode {
  flex: 1 1 0; min-width: 0; height: 128px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--r-tile); background: var(--beige); text-align: left;
  transition: transform var(--dur-fast) var(--ease);
}
.home-mode:active { transform: scale(0.98); }
.home-mode-ico { color: var(--red); }
.home-mode-row { display: flex; align-items: flex-end; justify-content: space-between; }
.home-mode-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-mode-name { font-family: var(--f-sans); font-size: 20px; line-height: 22px; white-space: nowrap; }
.home-mode-sub { font-size: 12px; line-height: 16px; color: var(--muted); }
.home.is-member .home-mode { height: 112px; padding: 14px; }
.home.is-member .home-mode-ico { width: 22px; height: 22px; }
.home.is-member .home-mode-name { font-size: 18px; line-height: 19px; }
.home.is-member .home-mode .go-dot { width: 32px; height: 32px; }

.home-pad { display: flex; padding: 10px 16px 0; }
.home-card {
  flex: 1 1 0; display: flex; align-items: center; gap: 12px;
  border-radius: var(--r-tile); background: var(--beige); text-align: left;
  transition: transform var(--dur-fast) var(--ease);
}
.home-card:active { transform: scale(0.99); }
.home-card-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.go-dot.is-36 { width: 36px; height: 36px; }
.home-rewards { padding: 14px 14px 14px 18px; }
.home-rewards-head { display: flex; align-items: baseline; gap: 6px; }
.home-kfc { font-family: var(--f-stripes); font-weight: 900; text-transform: uppercase; font-size: 15px; line-height: 16px; color: var(--ink); }
.home-kfc.is-red { color: var(--red); }
.home-rewards-pts { font-size: 12px; line-height: 16px; color: var(--muted); }
.home-rewards-line { font-size: 13px; line-height: 17px; color: var(--ink); }

.home-usual { padding: 10px 14px 10px 10px; }
.home-usual .home-card-text { gap: 3px; }
.home-usual-ph { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.home-usual-ph img { width: 58px; height: 54px; object-fit: contain; }
.home-usual-title { font-family: var(--f-sans); font-size: 16px; line-height: 18px; }
.home-usual-sub { font-size: 12px; line-height: 16px; color: var(--muted); }
.home-usual-price { font-family: var(--f-sans); font-size: 15px; line-height: 18px; padding-top: 2px; }

.home-langs { display: flex; justify-content: center; gap: 22px; padding: 22px 16px 0; }
.home-lang { font-size: 13px; line-height: 16px; color: var(--muted); padding: 4px 0; }
.home-lang.is-on { color: var(--ink); font-weight: 600; text-decoration: underline 1px; text-underline-position: from-font; }
.home-terms { display: flex; justify-content: center; gap: 4px; padding: 10px var(--gutter) 0; font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; flex-wrap: wrap; }
.link-terms { color: var(--ink); text-decoration: underline 1px; text-underline-position: from-font; }

/* ---------- restaurant pick ---------- */
.rest-head { display: flex; flex-direction: column; gap: 14px; padding: calc(var(--safe-top) + 4px) var(--gutter) 0; }
.rest-bar { display: flex; align-items: center; justify-content: space-between; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--beige); }
.seg-b { display: flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--ink); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.seg-b.is-on { background: var(--ink); color: var(--white); font-weight: 600; }
.rest-titles { display: flex; flex-direction: column; gap: 4px; }
.rest-title { font-family: var(--f-stripes); font-weight: 900; text-transform: uppercase; font-size: 44px; line-height: 44px; letter-spacing: -0.01em; }
.rest-sub { font-size: 15px; line-height: 18px; color: var(--muted); }

.rest-list { display: flex; flex-direction: column; padding: 18px var(--gutter) 0; }
.rest-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; width: 100%;
  border-bottom: 1px solid var(--line); text-align: left;
}
.rest-row.is-first { padding-bottom: 16px; }
.rest-row:last-child { border-bottom: 0; }
.rest-row.is-closed { opacity: 0.5; }
.rest-pin {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--beige); color: var(--red);
}
.rest-pin.is-on { background: var(--red); color: var(--white); }
.rest-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rest-name { font-family: var(--f-sans); font-size: 18px; line-height: 22px; }
.rest-addr { font-size: 13px; line-height: 17px; color: var(--muted); }
.rest-open { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 17px; }
.rest-chips { display: flex; gap: 6px; padding-top: 6px; }
.rest-dist { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: 2px; }
.rest-dist-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rest-km { font-family: var(--f-sans); font-size: 15px; line-height: 19px; white-space: nowrap; }
.rest-eta { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.rest-chev { color: var(--ink); }
.rest-empty { padding: 24px 0; color: var(--muted); }

.rest-sel { display: flex; flex-direction: column; gap: 8px; padding: 22px var(--gutter) 0; }
.rest-card { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-card); border: 2px solid var(--ink); background: var(--beige); }
.rest-card-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rest-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rest-card-name { font-family: var(--f-sans); font-size: 20px; line-height: 24px; }
.rest-card-km { font-family: var(--f-sans); font-size: 14px; line-height: 18px; white-space: nowrap; }
.rest-card-addr { font-size: 14px; line-height: 18px; color: var(--muted); }
.rest-card-open { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 18px; }
.rest-card-ready { padding-left: 14px; font-size: 14px; line-height: 18px; }

.rest-nearby { display: flex; flex-direction: column; padding: 22px var(--gutter) 0; }
.rest-nearby-label { padding-bottom: 4px; }
.rest-near { display: flex; align-items: center; gap: 14px; height: 72px; width: 100%; border-bottom: 1px solid var(--line); text-align: left; }
.rest-near:last-child { border-bottom: 0; }
.rest-near.is-closed { opacity: 0.5; }
.rest-name.is-sm { font-size: 17px; line-height: 21px; }
.rest-addr.is-sm { font-size: 13px; line-height: 16px; }
.rest-near .rest-main { gap: 1px; }

/* map (stylised, static) */
.rest.is-map { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.rest.is-map .rest-head { padding-bottom: 16px; }
.map { position: relative; flex: 1 1 auto; min-height: 340px; overflow: hidden; margin-bottom: -28px; }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border-radius: 999px; background: var(--ink); color: var(--white); border: 2px solid var(--white);
  font-family: var(--f-stripes); font-weight: 900; font-size: 9px; line-height: 10px; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center;
}
.map-pin.is-closed { background: var(--dot-off); }
.map-sel {
  position: absolute; transform: translate(-50%, -100%); margin-top: -8px;
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 4px;
  border-radius: 999px; background: var(--red); color: var(--white); border: 2px solid var(--white);
  font-family: var(--f-sans); font-size: 15px; line-height: 18px; white-space: nowrap;
}
.map-sel::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -8px;
  border: 8px solid transparent; border-bottom: 0; border-top-color: var(--red);
}
.map-sel-logo { width: 26px; height: 26px; border-radius: 999px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.map-sel-logo img { width: 20px; height: 17px; object-fit: contain; }
.map-me {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 999px;
  background: rgba(16, 16, 16, 0.14); display: flex; align-items: center; justify-content: center;
}
.map-me::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--ink); border: 2px solid var(--white); }
.map-card {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 3px;
  padding: 0 var(--gutter) calc(var(--safe-bottom) + 6px);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--white);
}
.map-card .sheet-grab { padding-bottom: 10px; }
.map-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.map-card .rest-card-name { font-size: 24px; line-height: 28px; }
.map-card .rest-card-ready { padding-left: 14px; }
.map-card-cta { padding-top: 22px; }
.rest.is-map + * { display: none; }
[data-screen="restaurant"] .rest.is-map { padding-bottom: 0; }
/* rewards card: a smaller, quieter line under KFC Rewards */
.home-rewards-line { font-size: 12px; line-height: 16px; color: var(--muted); }
/* no promo pill on the home photo */
.home-promo { display: none !important; }
/* welcome footer: country, then its languages */
.home-langs { align-items: center; gap: 18px; }
.home-country { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 16px; color: var(--ink); padding: 4px 0; }
.home-country span { text-decoration: underline 1px; text-underline-position: from-font; text-decoration-color: var(--handle); }
.home-langs-sep { width: 1px; height: 14px; background: var(--handle); }
