/* Foshan furniture market guide — /foshan-guide/. Prefix .sf-fg-
   Shared primitives: quality-control.css (.sf-qc-*), custom-furniture.css (.sf-cf-fit, .sf-cf-tl), contract-furniture.css (.sf-ct-map, .sf-ct-glance, .sf-ct-picker). */

/* Buying modes */
.sf-fg-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sf-fg-mode { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e4e4e4; transition: transform .22s ease, box-shadow .22s ease; }
.sf-fg-mode:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -36px rgba(31,35,40,.55); }
.sf-fg-mode figure { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.sf-fg-mode img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-fg-mode figure i { position: absolute; left: 14px; top: 14px; padding: 5px 9px; border-radius: 6px; background: #c8102e; color: #fff; font: 800 11px/1 "Plus Jakarta Sans", sans-serif; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.sf-fg-mode > div { padding: 18px 20px 20px; }
.sf-fg-mode h3 { margin: 0 0 4px; font: 800 20px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: -.02em; }
.sf-fg-mode > div > p { margin: 0 0 12px; color: #858a90; font-size: 13px; }
.sf-fg-mode ul { margin: 0; padding: 0; list-style: none; }
.sf-fg-mode li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 9px 0; border-top: 1px dashed #e0dbd3; font-size: 13.5px; line-height: 1.45; color: #3d4247; }
.sf-fg-mode li svg { width: 24px; height: 24px; }
.sf-fg-mode li b { display: block; color: #858a90; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sf-fg-mode li strong { color: #c8102e; }

/* Price picker output */
.sf-fg-price { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.sf-fg-price li { list-style: none; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.sf-fg-price li b { display: block; color: #ff9aa9; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sf-fg-price li span { display: block; margin-top: 4px; color: #fff; font-size: 14px; line-height: 1.45; }
.sf-fg-price li.is-big span { font: 800 22px/1.15 "Plus Jakarta Sans", sans-serif; letter-spacing: -.02em; }

/* Days selector */
.sf-fg-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sf-fg-day { position: relative; padding: 22px 20px 20px; border: 1.5px dashed #d5cec5; border-radius: 16px; background: #fffdf9; transition: transform .2s ease, border-color .2s ease; }
.sf-fg-day:hover { transform: translateY(-4px) rotate(-.3deg); border-color: #c8102e; }
.sf-fg-day__n { display: flex; align-items: baseline; gap: 6px; font: 800 44px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.04em; color: #c8102e; }
.sf-fg-day__n small { font-size: 14px; letter-spacing: 0; color: #1f2328; }
.sf-fg-day__strip { display: flex; gap: 4px; margin: 12px 0 14px; }
.sf-fg-day__strip i { flex: 1; height: 8px; border-radius: 4px; background: #e9e4dd; }
.sf-fg-day__strip i.a { background: #c8102e; } .sf-fg-day__strip i.b { background: #3d5a80; } .sf-fg-day__strip i.c { background: #e0891b; } .sf-fg-day__strip i.d { background: #1e7b3c; }
.sf-fg-day b { display: block; margin-bottom: 4px; font: 800 15px/1.25 "Plus Jakarta Sans", sans-serif; }
.sf-fg-day p { margin: 0 0 10px; color: #3d4247; font-size: 13.5px; line-height: 1.5; }
.sf-fg-day small { display: block; padding-top: 10px; border-top: 1px dashed #d9d2c9; color: #858a90; font-size: 12px; line-height: 1.4; }
.sf-fg-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; list-style: none; color: #5f6368; font-size: 12.5px; }
.sf-fg-legend li::before { content: ""; display: inline-block; width: 12px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.sf-fg-legend li:nth-child(1)::before { background: #c8102e; } .sf-fg-legend li:nth-child(2)::before { background: #3d5a80; } .sf-fg-legend li:nth-child(3)::before { background: #e0891b; } .sf-fg-legend li:nth-child(4)::before { background: #1e7b3c; }

/* Routes: day tabs + timeline */
.sf-fg-routes__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sf-fg-routes__tabs button { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid #d9d2c9; background: #fff; color: #1f2328; font: 700 14px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; transition: all .15s ease; }
.sf-fg-routes__tabs button i { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: #f1efeb; color: #c8102e; font-style: normal; font-size: 12px; }
.sf-fg-routes__tabs button.is-active { background: #1f2328; color: #fff; border-color: #1f2328; }
.sf-fg-routes__tabs button.is-active i { background: #c8102e; color: #fff; }
.sf-fg-route { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.sf-fg-route[hidden] { display: none; }
.sf-fg-slots { margin: 0; padding: 0; list-style: none; position: relative; }
.sf-fg-slots::before { content: ""; position: absolute; left: 62px; top: 14px; bottom: 14px; width: 2px; background: #e0dbd3; }
.sf-fg-slots li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 10px 0 18px; }
.sf-fg-slots li::before { content: ""; position: absolute; left: 57px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #c8102e; box-shadow: 0 0 0 4px #fff; }
.sf-fg-slots time { color: #c8102e; font: 800 12px/1.5 "Plus Jakarta Sans", sans-serif; text-align: right; }
.sf-fg-slots b { display: block; margin-bottom: 3px; font: 800 15.5px/1.25 "Plus Jakarta Sans", sans-serif; }
.sf-fg-slots p { margin: 0; color: #3d4247; font-size: 14px; line-height: 1.5; }
.sf-fg-route__aside { position: sticky; top: 110px; display: grid; gap: 12px; }
.sf-fg-route__aside figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #eee; }
.sf-fg-route__aside img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-fg-route__aside figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(180deg, rgba(31,35,40,0), rgba(31,35,40,.85)); color: #fff; font-size: 13px; font-weight: 700; }
.sf-fg-route__out { padding: 16px 18px; border-radius: 12px; background: #1f2328; color: #fff; }
.sf-fg-route__out b { display: block; color: #ff9aa9; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.sf-fg-route__out span { font-size: 13.5px; line-height: 1.5; }

/* Hours + risks */
.sf-fg-hours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sf-fg-hours li { list-style: none; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #e9e4dd; }
.sf-fg-hours svg { width: 52px; height: 52px; }
.sf-fg-hours b { display: block; font: 800 14px/1.25 "Plus Jakarta Sans", sans-serif; }
.sf-fg-hours em { display: block; margin: 3px 0; color: #c8102e; font: 800 13px/1.2 "Plus Jakarta Sans", sans-serif; font-style: normal; }
.sf-fg-hours span { display: block; color: #5f6368; font-size: 12px; line-height: 1.4; }
.sf-fg-holiday { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 16px; padding: 16px 20px; border-radius: 12px; background: #fbe9ec; border: 1px solid #f3c9d0; }
.sf-fg-holiday svg { width: 64px; height: 64px; }
.sf-fg-holiday b { display: block; margin-bottom: 3px; font: 800 15px/1.2 "Plus Jakarta Sans", sans-serif; color: #c8102e; }
.sf-fg-holiday span { color: #3d4247; font-size: 13.5px; line-height: 1.5; }
.sf-fg-risks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.sf-fg-risks .sf-qc-sketch__art { height: 96px; }
.sf-fg-risks .sf-qc-sketch__art svg { height: 96px; }
.sf-fg-risks .sf-qc-sketch p { font-style: italic; color: #858a90; }
.sf-fg-risks .sf-qc-sketch span { display: block; padding-top: 10px; border-top: 1px dashed #d9d2c9; color: #1f2328; font-size: 13.5px; line-height: 1.5; }
.sf-fg-risks .sf-qc-sketch em { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 3px; background: #c8102e; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; transform: rotate(-2deg); }

/* Budget */
.sf-fg-budget { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.sf-fg-budget__toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: #f1efeb; margin-bottom: 18px; }
.sf-fg-budget__toggle button { padding: 9px 18px; border-radius: 999px; border: 0; background: transparent; color: #1f2328; font: 700 13.5px/1 "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.sf-fg-budget__toggle button.is-active { background: #1f2328; color: #fff; }
.sf-fg-cost { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sf-fg-cost li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid #e9e4dd; }
.sf-fg-cost svg { width: 36px; height: 36px; }
.sf-fg-cost b { font: 700 14px/1.25 "Hanken Grotesk", sans-serif; }
.sf-fg-cost b small { display: block; color: #858a90; font-size: 11.5px; font-weight: 500; }
.sf-fg-cost em { font: 800 15px/1 "Plus Jakarta Sans", sans-serif; font-style: normal; color: #c8102e; white-space: nowrap; }
.sf-fg-cost li.is-total { background: #1f2328; color: #fff; border-color: #1f2328; }
.sf-fg-cost li.is-total b small { color: #b3b9bf; }
.sf-fg-cost li.is-total em { color: #ff9aa9; font-size: 22px; }
.sf-fg-budget__side { display: grid; gap: 12px; }
.sf-fg-budget__side figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #eee; }
.sf-fg-budget__side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-fg-budget__side figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(180deg, rgba(31,35,40,0), rgba(31,35,40,.85)); color: #fff; font-size: 13px; font-weight: 700; }

/* Negotiation steps */
.sf-fg-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; counter-reset: ng; }
.sf-fg-steps li { list-style: none; position: relative; padding: 46px 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e9e4dd; counter-increment: ng; }
.sf-fg-steps li::before { content: "0" counter(ng); position: absolute; top: 12px; left: 12px; color: #c8102e; font: 800 12px/1 "Plus Jakarta Sans", sans-serif; }
.sf-fg-steps svg { width: 56px; height: 56px; margin-bottom: 8px; }
.sf-fg-steps b { display: block; margin-bottom: 4px; font: 800 13.5px/1.25 "Plus Jakarta Sans", sans-serif; }
.sf-fg-steps span { color: #5f6368; font-size: 12.5px; line-height: 1.45; }

/* After market checklist */
.sf-fg-after { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
.sf-fg-after ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: af; }
.sf-fg-after ol li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); counter-increment: af; }
.sf-fg-after ol li svg { width: 54px; height: 54px; }
.sf-fg-after ol li b { display: block; font: 800 15px/1.25 "Plus Jakarta Sans", sans-serif; color: #fff; }
.sf-fg-after ol li b::before { content: "0" counter(af) " · "; color: #ff9aa9; }
.sf-fg-after ol li span { color: #b3b9bf; font-size: 13.5px; line-height: 1.5; }
.sf-fg-after figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #2b2f34; }
.sf-fg-after img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Guided day cards */
.sf-fg-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sf-fg-plan { padding: 26px 26px 22px; border-radius: 18px; background: #fff; border: 1px solid #e4e4e4; }
.sf-fg-plan--premium { border: 1.5px solid #c8102e; box-shadow: 0 26px 50px -44px rgba(200,16,46,.6); }
.sf-fg-plan__price { display: flex; align-items: baseline; gap: 8px; }
.sf-fg-plan__price b { font: 800 40px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.04em; color: #c8102e; }
.sf-fg-plan__price span { color: #858a90; font-size: 13px; }
.sf-fg-plan h3 { margin: 6px 0 12px; font: 800 20px/1.2 "Plus Jakarta Sans", sans-serif; }
.sf-fg-plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sf-fg-plan li { position: relative; padding-left: 22px; color: #3d4247; font-size: 14px; line-height: 1.5; }
.sf-fg-plan li::before { content: "✓"; position: absolute; left: 0; color: #c8102e; font-weight: 800; }
.sf-fg-plan small { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e0dbd3; color: #858a90; font-size: 12.5px; }

/* Photo wall */
.sf-fg-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.sf-fg-wall figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #eee; }
.sf-fg-wall .is-wide { grid-column: span 2; } .sf-fg-wall .is-tall { grid-row: span 2; }
.sf-fg-wall img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.sf-fg-wall figure:hover img { transform: scale(1.05); }
.sf-fg-wall figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(180deg, rgba(31,35,40,0), rgba(31,35,40,.85)); color: #fff; }
.sf-fg-wall figcaption b { display: block; font: 800 14px/1.2 "Plus Jakarta Sans", sans-serif; }
.sf-fg-wall figcaption span { display: block; margin-top: 2px; color: #c9cdd1; font-size: 12px; }

@media (max-width: 1100px) {
  .sf-fg-modes { grid-template-columns: 1fr; }
  .sf-fg-days, .sf-fg-hours, .sf-fg-risks { grid-template-columns: 1fr 1fr; }
  .sf-fg-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-fg-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sf-fg-route, .sf-fg-budget, .sf-fg-after, .sf-fg-plans { grid-template-columns: 1fr; }
  .sf-fg-route__aside { position: static; grid-template-columns: 1fr 1fr; }
  .sf-fg-slots::before { left: 12px; } .sf-fg-slots li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; } .sf-fg-slots li::before { left: 7px; } .sf-fg-slots time { text-align: left; }
}
@media (max-width: 640px) {
  .sf-fg-days, .sf-fg-hours, .sf-fg-risks, .sf-fg-steps { grid-template-columns: 1fr 1fr; }
  .sf-fg-wall { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .sf-fg-route__aside { grid-template-columns: 1fr; }
  .sf-fg-price { grid-template-columns: 1fr; }
  .sf-fg-holiday { grid-template-columns: 1fr; }
}

.sf-page--fg [hidden], .sf-page--ct [hidden] { display: none !important; }

/* Project case page (GBA) */
.sf-gba-brief { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.sf-gba-plan { margin: 0; padding: 18px; border: 1.5px dashed #cfc8bf; border-radius: 18px; background: #fffdf9 repeating-linear-gradient(0deg, transparent 0 27px, rgba(31,35,40,.045) 27px 28px); }
.sf-gba-plan svg { width: 100%; height: auto; display: block; }
.sf-gba-plan figcaption { margin-top: 10px; color: #5f6368; font-size: 13px; }
.sf-gba-refs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sf-gba-refs figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eee; }
.sf-gba-refs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-gba-refs figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; background: linear-gradient(180deg, rgba(31,35,40,0), rgba(31,35,40,.8)); color: #fff; font-size: 11.5px; font-weight: 700; }
.sf-gba-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.sf-gba-thumbs figure { margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f1efeb; }
.sf-gba-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-gba-note { margin: 10px 0 0; color: #858a90; font-size: 12px; }
@media (max-width: 900px) { .sf-gba-brief { grid-template-columns: 1fr; } }
