*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --orange: #CC5500; --cream: #fffaf5; --slate: #2d2926; --border: #eee0d5;
            --muted: #7a6655; --green: #2e7d32; --red: #d32f2f; --amber: #b07d00;
        }
        body { font-family: -apple-system, system-ui, sans-serif; background: var(--cream); color: var(--slate); -webkit-tap-highlight-color: transparent; font-size: 13px; line-height: 1.6; }
        p { margin-bottom: 10px; } p:last-child { margin-bottom: 0; }
        strong { font-weight: 700; } em { font-style: italic; } a { color: inherit; }

        /* Header */
        header { background: var(--orange); color: white; padding: max(78px, calc(env(safe-area-inset-top) + 52px)) 20px 25px; text-align: center; }
        header h1 { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; }
        header p { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.9; margin-top: 4px; }

        /* Tabs */
        section.tab-content { display: none; padding: 25px 20px 140px; max-width: 600px; margin: 0 auto; }
        section.tab-content.active { display: block; animation: fadeIn 0.3s ease-in; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        /* Cards */
        .card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; border-left: 5px solid var(--orange); }
        .card.danger { border-left-color: var(--red); }
        .card-title { font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem; color: var(--orange); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
        .card.danger .card-title { color: var(--red); }
        .card-subtitle { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #bbb; margin: 12px 0 8px; }

        /* Info rows */
        .info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #fdf2e9; font-size: 14px; }
        .info-row:last-child { border-bottom: none; }
        .info-row .val { font-weight: 700; } .info-row .hint { font-size: 11px; color: #aaa; }

        /* Copy button */
        .copy-btn { font-size: 10px; background: #fdf2e9; color: var(--orange); padding: 4px 10px; border-radius: 6px; font-weight: 700; border: none; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
        .copy-btn:active { background: #f0d5bc; }

        /* Tips */
        .tip { background: #fdf7f2; border: 1px solid #f0dece; border-radius: 10px; padding: 12px 14px; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 14px; font-style: italic; }
        .tip.red { background: #fff5f5; border-color: #ffd5d5; color: #8b2a2a; }

        /* Welcome kicker */
        .welcome-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.75; margin-bottom: 6px; }

        /* Inline & call links */
        .inline-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
        .call-link { color: inherit; font-weight: 700; text-decoration: none; }

        /* Section typography */
        .section-title { font-family: Georgia, serif; font-style: italic; font-size: 1.3rem; color: var(--orange); margin-bottom: 8px; }
        .section-intro { font-size: 13px; color: #666; line-height: 1.7; margin-bottom: 16px; }
        .sub-header { font-family: Georgia, serif; font-size: 1rem; font-weight: 700; color: var(--slate); margin: 22px 0 10px; display: flex; align-items: center; gap: 9px; }
        .sub-header i { color: var(--orange); font-size: 0.9rem; }

        /* Accordion */
        .accordion-item { background: white; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
        .accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; cursor: pointer; user-select: none; }
        .accordion-title { font-family: Georgia, serif; font-weight: 700; font-size: 1rem; color: var(--orange); display: flex; align-items: center; gap: 10px; }
        .accordion-chevron { color: #ccc; font-size: 12px; transition: transform 0.25s; flex-shrink: 0; }
        .accordion-item.open .accordion-chevron { transform: rotate(180deg); }
        .accordion-body { display: none; padding: 4px 18px 18px; border-top: 1px solid #fdf2e9; }
        .accordion-item.open .accordion-body { display: block; }

        /* Lists */
        .guide-list { list-style: none; }
        .guide-list li { font-size: 13px; color: #555; line-height: 1.65; padding: 7px 0; border-bottom: 1px solid #fdf2e9; display: flex; gap: 8px; }
        .guide-list li:last-child { border-bottom: none; }
        .guide-list li .num { color: var(--orange); font-weight: 700; flex-shrink: 0; min-width: 16px; }
        .bullet-list { list-style: none; }
        .bullet-list li { font-size: 13px; color: #555; line-height: 1.65; padding: 7px 0; border-bottom: 1px solid #fdf2e9; display: flex; gap: 8px; }
        .bullet-list li:last-child { border-bottom: none; }
        .bullet-list li::before { content: "→"; color: var(--orange); flex-shrink: 0; }
        .bullet-list--no-dividers li { border-bottom: none; padding: 4px 0; }

        /* Rec cards */
        .rec-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px 16px 24px; margin-bottom: 12px; position: relative; overflow: hidden; }
        .rec-card > :not(.rec-photo) { position: relative; z-index: 3; }
        .rec-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: #CC5500; z-index: 2; }

        /* Explore topic accordions */
        .explore-topic { background: white; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
        .explore-topic-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; cursor: pointer; user-select: none; }
        .explore-topic-title { font-family: Georgia, serif; font-weight: 700; font-size: 1rem; color: var(--orange); display: flex; align-items: center; gap: 10px; }
        .explore-topic-title i { color: var(--orange); font-size: 0.9rem; }
        .explore-topic-chevron { color: #ccc; font-size: 12px; transition: transform 0.25s; flex-shrink: 0; }
        .explore-topic.open .explore-topic-chevron { transform: rotate(180deg); }
        .explore-topic-body { display: none; padding: 4px 18px 18px; border-top: 1px solid #fdf2e9; }
        .explore-topic.open .explore-topic-body { display: block; }
        .explore-topic-body .section-intro { margin: 8px 0 14px; }
        .explore-topic-body .rec-card { margin-left: 0; margin-right: 0; }
        .rec-name { font-family: Georgia, serif; font-weight: 700; font-size: 0.95rem; color: var(--slate); }
        .rec-addr { font-size: 11px; color: #aaa; margin: 2px 0 7px; }
        .rec-desc { font-size: 12px; color: #666; line-height: 1.6; }
        .rec-tip { font-size: 11px; color: var(--orange); margin-top: 7px; font-style: italic; line-height: 1.5; }

        /* Multi-location items within a rec card */
        .loc-item { padding: 10px 0; border-bottom: 1px solid #fdf2e9; }
        .loc-item:first-child { padding-top: 2px; }
        .loc-item:last-child { border-bottom: none; padding-bottom: 0; }
        .loc-name { font-size: 12px; font-weight: 700; color: var(--slate); margin-bottom: 1px; }
        .loc-addr { font-size: 11px; color: #aaa; margin-bottom: 4px; }
        .loc-desc { font-size: 11px; color: #666; line-height: 1.5; }

        /* Pill */
        .pill { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; background: #fdf2e9; color: var(--orange); border-radius: 20px; padding: 3px 9px; margin-bottom: 8px; }

        /* Map link */
        .map-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #1a73e8; margin-top: 8px; text-decoration: none; }
        .map-link i { font-size: 10px; }

        /* App link buttons */
        .app-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
        .app-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--orange); background: #fdf2e9; border: 1px solid #f5d9c0; border-radius: 20px; padding: 5px 12px; text-decoration: none; white-space: nowrap; }
        .app-link:active { background: #f0d5bc; }

        /* App rows (Home tab) */
        .app-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid #fdf2e9; }
        .app-row:last-child { border-bottom: none; }
        .app-icon { width: 36px; height: 36px; border-radius: 10px; color: white; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
        .app-info { flex: 1; min-width: 0; }
        .app-name { font-weight: 700; font-size: 13px; color: var(--slate); }
        .app-desc { font-size: 11px; color: #888; line-height: 1.5; margin-top: 2px; }
        .app-badge { font-size: 9px; font-weight: 700; color: var(--green); background: #e8f5e9; border-radius: 20px; padding: 2px 7px; margin-left: 6px; white-space: nowrap; }
        .app-store-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: #fff; background: #111; border: 1px solid #111; border-radius: 999px; padding: 6px 10px; text-decoration: none; white-space: nowrap; transition: transform 0.15s, opacity 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
        .app-store-btn:hover { opacity: .92; transform: translateY(-1px); }
        .app-store-btn:active { transform: translateY(0); opacity: .88; }

        /* Bins */
        .bin-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #fdf2e9; font-size: 13px; color: #555; line-height: 1.5; }
        .bin-row:last-child { border-bottom: none; }
        .bin-badge { width: 36px; height: 46px; border-radius: 4px 4px 6px 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; border-top: 6px solid rgba(0,0,0,0.2); }
        .bin-purple { background: #7b2d8b; } .bin-green { background: #2e7d32; }

        /* Transport table */
        .transport-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 12px; }
        .transport-table th { text-align: left; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #aaa; padding: 0 8px 8px 0; border-bottom: 2px solid var(--border); }
        .transport-table th:last-child { padding-right: 0; }
        .transport-table td { padding: 10px 10px 10px 0; vertical-align: top; border-bottom: 1px solid #fdf2e9; color: #555; line-height: 1.5; }
        .transport-table td:last-child { padding-right: 0; }
        .transport-table tr:last-child td { border-bottom: none; }
        .t-mode { font-weight: 700; color: var(--slate); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
        .t-bus { background: #e3000b; } .t-tube { background: #e32017; } .t-over { background: #f78410; } .t-rail { background: #1d5c8c; }

        /* Checklist */
        .checklist-intro { margin: 2px 0 14px; padding: 12px 14px; background: #fff8f1; border: 1px solid #fde6cf; border-radius: 12px; font-size: 13px; color: #555; line-height: 1.55; }
        .checklist-intro strong { color: var(--slate); }
        .check-section-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; font-size: 11px; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; }
        .check-section-title:first-of-type { margin-top: 8px; }
        .check-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #fdf2e9; font-size: 13px; color: #444; line-height: 1.6; cursor: pointer; user-select: none; }
        .check-item.critical { font-weight: 700; color: var(--slate); }
        .check-item:last-child { border-bottom: none; }
        .check-box { width: 22px; min-width: 22px; height: 22px; min-height: 22px; border: 2px solid #ddd; border-radius: 6px; flex-shrink: 0; position: relative; margin-top: 1px; transition: background 0.2s, border-color 0.2s; background: white; }
        .check-item.done .check-box { background: #4caf50; border-color: #4caf50; }
        .check-item.done .check-box::after { content: "✓"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 13px; font-weight: 700; line-height: 1; }
        .check-item.done > span { text-decoration: line-through; color: #aaa; }
        .checkout-fee-note { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--orange); background: #fff8f1; border-radius: 10px; font-size: 12px; color: #555; line-height: 1.55; }

        /* NPS */
        .nps-question { font-size: 13px; color: #555; margin-bottom: 14px; line-height: 1.6; }
        .nps-scale { display: flex; gap: 4px; justify-content: space-between; margin-bottom: 6px; }
        .nps-btn { flex: 1; min-width: 0; height: 36px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; background: white; color: #888; transition: all 0.15s; padding: 0; display: flex; align-items: center; justify-content: center; }
        .nps-btn:hover { border-color: var(--orange); color: var(--orange); }
        .nps-btn.selected { background: var(--orange); border-color: var(--orange); color: white; }
        .nps-labels { display: flex; justify-content: space-between; font-size: 9px; color: #bbb; margin-bottom: 16px; }
        .nps-feedback { display: block; width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12px; font-family: inherit; color: var(--slate); resize: none; line-height: 1.5; background: white; }
        .nps-feedback:focus { outline: none; border-color: var(--orange); }
        .nps-submit { display: block; width: 100%; padding: 12px; background: var(--orange); color: white; border: none; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 12px; transition: opacity 0.2s; }
        .nps-submit:disabled { opacity: 0.4; cursor: not-allowed; }
        .nps-thanks { text-align: center; padding: 16px 0 4px; }
        .nps-thanks .big { font-size: 2rem; }
        .nps-thanks p { font-size: 13px; color: #666; margin-top: 6px; }

        /* Lleyam note */
        #lleyam-note { display: none; }
        #lleyam-note.revealed { display: block; animation: fadeIn 0.5s ease-in; }

        /* All-done banner */
        #all-done { display: none; margin-top: 16px; padding: 14px; background: #f1f8f1; border: 1px solid #c8e6c9; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--green); text-align: center; }

        /* Bottom nav */
        nav.tab-bar { position: fixed; bottom: 0; width: 100%; background: white; height: 85px; display: flex; border-top: 1px solid var(--border); z-index: 1000; padding-bottom: env(safe-area-inset-bottom); }
        .nav-btn { flex: 1; border: none; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #b0b0b0; font-size: 10px; font-weight: 700; cursor: pointer; transition: color 0.18s, background 0.18s; border-radius: 0; }
        .nav-btn:hover { color: var(--orange); background: #fdf7f2; }
        .nav-btn.active { color: var(--orange); }
        .nav-btn i { font-size: 18px; }

        /* Toast */
        #toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--slate); color: white; padding: 10px 20px; border-radius: 20px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: auto; transition: opacity 0.3s, transform 0.3s; z-index: 9999; white-space: nowrap; }
        #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

        /* Help hub */
        #help-fab { position: fixed; right: 18px; bottom: 100px; z-index: 2000; min-width: 112px; height: 52px; border-radius: 26px; border: none; background: var(--orange); color: white; box-shadow: 0 3px 14px rgba(0,0,0,0.22); display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 900; font-size: 12px; cursor: pointer; padding: 0 16px; }
        #help-fab:active { transform: scale(0.96); }
        #help-modal { display: none; position: fixed; inset: 0; z-index: 4200; background: rgba(0,0,0,0.55); align-items: flex-end; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
        #help-modal.visible { display: flex; }
        #help-modal-box { position: relative; background: white; border-radius: 22px 22px 0 0; padding: 24px 18px 28px; width: 100%; max-width: 520px; box-shadow: 0 -10px 32px rgba(0,0,0,0.22); }
        .modal-close { position: absolute; top: 12px; right: 14px; border: none; background: #f3f4f6; color: #555; border-radius: 50%; width: 30px; height: 30px; font-size: 20px; line-height: 1; cursor: pointer; }
        .help-eyebrow { color: var(--orange); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
        #help-modal-box h2 { font-family: Georgia, serif; font-size: 1.25rem; color: var(--slate); margin: 0 0 8px; }
        .help-intro { font-size: 12px; color: #666; line-height: 1.55; margin-bottom: 14px; padding-right: 24px; }
        .help-option { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); text-decoration: none; color: var(--slate); margin-bottom: 9px; background: #fff; }
        button.help-option { font-family: inherit; appearance: none; -webkit-appearance: none; }
        .help-option.primary { background: #fff8f1; border-color: #ead8c7; box-shadow: inset 4px 0 0 var(--orange); }
        .help-option i { color: var(--orange); font-size: 18px; width: 22px; text-align: center; }
        .help-option strong { display: block; font-size: 13px; margin-bottom: 2px; }
        .help-option small { display: block; color: #777; font-size: 11px; line-height: 1.35; }

        /* Explore nav */
        #explore-nav { position: fixed; bottom: 100px; left: 16px; z-index: 1900; display: none; flex-direction: column; align-items: flex-start; }
        #explore-nav-toggle { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); border: none; color: white; font-size: 18px; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
        #explore-nav-toggle.open { transform: rotate(45deg); }
        #explore-nav-menu { display: none; flex-direction: column; gap: 6px; margin-bottom: 10px; }
        #explore-nav-menu.open { display: flex; }
        .exp-nav-btn { background: white; border: 1px solid #CC5500; border-radius: 20px; padding: 6px 13px; font-size: 11px; font-weight: 700; color: var(--slate); cursor: pointer; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12); text-align: left; display: flex; align-items: center; gap: 7px; }
        .exp-nav-btn:active { background: #fdf2e9; }
        .exp-nav-btn i, .man-nav-btn i { color: var(--orange); font-size: 10px; flex-shrink: 0; }


        /* Manual nav */
        #manual-nav { position: fixed; bottom: 100px; left: 16px; z-index: 1900; display: none; flex-direction: column; align-items: flex-start; }
        #manual-nav-toggle { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); border: none; color: white; font-size: 18px; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
        #manual-nav-toggle.open { transform: rotate(45deg); }
        #manual-nav-menu { display: none; flex-direction: column; gap: 6px; margin-bottom: 10px; }
        #manual-nav-menu.open { display: flex; }
        .man-nav-btn { background: white; border: 1px solid #CC5500; border-radius: 20px; padding: 6px 13px; font-size: 11px; font-weight: 700; color: var(--slate); cursor: pointer; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12); text-align: left; display: flex; align-items: center; gap: 7px; }
        .man-nav-btn:active { background: #fdf2e9; }

        /* ── Landscape: lock font sizes to portrait equivalents ── */
        @media screen and (orientation: landscape) and (max-height: 500px) {
            body { font-size: 13px !important; }
            header h1 { font-size: 1.2rem !important; }
            header { padding: 8px 20px 8px !important; }
            section.tab-content { padding-top: 16px !important; }
        }
        /* Prevent iOS text size adjust */
        html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

        /* ── Transport table — differentiated TfL icons ── */
        .t-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; color: white; font-weight: 700; }
        .t-bus    { background: #e3000b; }                        /* TfL red */
        .t-tube   { background: #e32017; }                        /* London Underground red */
        .t-over   { background: #f78410; }                        /* London Overground orange */
        .t-rail   { background: #003057; }                        /* National Rail dark navy */
        .t-mode   { font-weight: 700; color: var(--slate); white-space: nowrap; display: flex; align-items: center; gap: 7px; min-width: 90px; }
        .t-label  { font-size: 11px; font-weight: 700; line-height: 1.2; }

        /* ── Install button (cross-platform) ── */
        #install-bar { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 3000; background: var(--orange); color: white; padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
        #install-bar.visible { display: flex; }
        #install-bar p { font-size: 12px; font-weight: 600; flex: 1; margin: 0; line-height: 1.4; }
        #install-btn { background: white; color: var(--orange); border: none; border-radius: 20px; padding: 6px 16px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
        #install-dismiss { background: none; border: none; color: rgba(255,255,255,0.8); font-size: 18px; cursor: pointer; padding: 0 4px; flex-shrink: 0; line-height: 1; }
        /* Push content down when bar is visible */
        body.install-bar-open header { margin-top: 50px; }

        /* ── iOS install modal ── */
        #ios-modal { display: none; position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,0.55); align-items: flex-end; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
        #ios-modal.visible { display: flex; }
        #ios-modal-box { background: white; border-radius: 20px 20px 0 0; padding: 24px 24px 32px; width: 100%; max-width: 500px; text-align: center; animation: slideUp 0.3s ease-out; }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        #ios-modal-box h2 { font-family: Georgia, serif; font-size: 1.1rem; color: var(--orange); margin-bottom: 12px; }
        #ios-modal-box p { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 8px; }
        #ios-modal-box .ios-step { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 0; border-bottom: 1px solid #f0e8e0; }
        #ios-modal-box .ios-step:last-of-type { border-bottom: none; }
        #ios-modal-box .ios-num { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: white; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        #ios-modal-box .ios-text { font-size: 12px; color: #555; line-height: 1.5; }
        #ios-modal-close { margin-top: 20px; background: var(--orange); color: white; border: none; border-radius: 12px; padding: 12px 32px; font-size: 13px; font-weight: 700; cursor: pointer; width: 100%; }

        /* ── Place photographs ── */
        .rec-photo { width: calc(100% + 42px); max-width: none; margin: -16px -18px 12px -24px; height: 150px; object-fit: cover; display: block; border-radius: 12px 12px 0 0; background: #f7efe8; opacity: 0; transition: opacity 0.25s ease; position: relative; z-index: 1; }
        .rec-photo.loaded { opacity: 1; }

        .app-icon svg, .transport-logo svg { width: 26px; height: 26px; display:block; }
        .app-icon { overflow: hidden; }
        .transport-logo { width: 32px; height: 32px; flex-shrink: 0; display:inline-flex; align-items:center; justify-content:center; }
        .app-store-btn i { font-size: 12px; }
        .app-store-btn.alt-badge { background: #f3f4f6; color: var(--slate); border-color: #d9dbe1; }
        .app-store-btn.alt-badge:hover { background: #eceff3; }
        .app-actions { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
        .search-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; border-left: 5px solid var(--orange); }
        .search-wrap { display: flex; gap: 8px; align-items: center; }
        .search-input { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-family: inherit; color: var(--slate); background: white; outline: none; }
        .search-input:focus { border-color: var(--orange); }
        .search-btn { background: var(--orange); color: white; border: none; border-radius: 10px; padding: 9px 14px; font-size: 13px; cursor: pointer; flex-shrink: 0; }
        .search-results { margin-top: 10px; }
        .search-result-item { padding: 8px 0; border-bottom: 1px solid #fdf2e9; font-size: 12px; color: #555; line-height: 1.5; }
        .search-result-item:last-child { border-bottom: none; }
        .search-result-item .sr-name { font-weight: 700; color: var(--slate); font-size: 13px; }
        .search-result-item .sr-section { font-size: 10px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
        .search-no-results { font-size: 12px; color: #aaa; text-align: center; padding: 12px 0; font-style: italic; }

        .search-card.compact-search { padding: 10px 12px; }
        .search-card.compact-search .search-wrap { position: relative; gap: 0; }
        .search-card.compact-search .search-input { border-radius: 999px; padding: 11px 14px 11px 40px; border-color: #ead8c9; box-shadow: inset 0 1px 2px rgba(0,0,0,0.03); }
        .search-card.compact-search .search-input::placeholder { color: #ae9a88; }
        .search-card.compact-search .search-btn { position:absolute; left: 12px; top: 50%; transform: translateY(-50%); width: auto; height: auto; padding: 0; margin: 0; border-radius: 0; background: transparent; color: #ae9a88; pointer-events: auto; }
        .search-card.compact-search .search-results { margin-top: 8px; }
        .search-clear { display: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #ae9a88; font-size: 15px; cursor: pointer; padding: 0 2px; line-height: 1; z-index: 1; }
        .search-clear.visible { display: flex; align-items: center; justify-content: center; }
        .search-input.has-clear { padding-right: 34px; }
        .search-web-link { display: block; text-align: center; padding: 9px 0 2px; font-size: 11px; color: var(--orange); font-weight: 700; text-decoration: none; border-top: 1px solid #fdf2e9; margin-top: 6px; }
        .search-web-link:hover { text-decoration: underline; }
        .t-roundel { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 5px solid #e32017; background: transparent; box-sizing: border-box; display: inline-block; }
        .t-roundel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 5px; transform: translate(-50%, -50%); background: #003688; border-radius: 999px; }

@media (max-width: 380px) {
  section.tab-content { padding-left: 16px; padding-right: 16px; }
  .card { padding-left: 18px; padding-right: 18px; }
  .accordion-header, .explore-topic-header { padding-left: 16px; padding-right: 16px; }
  .accordion-body, .explore-topic-body { padding-left: 16px; padding-right: 16px; }
  .rec-card { padding-left: 22px; padding-right: 16px; }
  .rec-photo { width: calc(100% + 38px); margin-left: -22px; margin-right: -16px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1a1612;
    --border: #3a2e26;
    --muted: #a89080;
    --orange: #e8763a;
  }
  body { background: var(--cream); color: #e8ddd4; }
  header { background: #111 !important; }
  .card, .accordion-item, .rec-card {
    background: #241e1a;
    border-color: var(--border);
    color: #e8ddd4;
  }
  .card h3, .card h4, .rec-card h3,
  .accordion-item summary { color: #f0e8e0; }
  .card p, .rec-card p, .accordion-item p { color: #a89080; }
  .tip { background: #1e1a14; border-color: #3a2e20; color: #c8b89a; }
  .pill { background: #2a1f14; color: var(--orange); border-color: #3a2e20; }
  .copy-btn, .app-link { background: #2a1f14; color: var(--orange); border-color: #3a2e20; }
  .app-store-btn.alt-badge { background: #2a2a2a; color: #e8ddd4; border-color: #444; }
  .app-store-btn.alt-badge:hover { background: #333; }
  .rec-photo { background: #2a1f14; }
  .nav-btn:hover { background: #2a1f14; }
  #help-modal-box { background: #241e1a; color: #e8ddd4; }
  .help-option { background: #241e1a; color: #e8ddd4; border-color: var(--border); }
  .help-option.primary { background: #2a1f14; border-color: #3a2e20; }
  .help-option small, .help-intro { color: #a89080; }
  .modal-close { background: #2a2a2a; color: #e8ddd4; }

  input, select, textarea {    background: #241e1a;
    border-color: var(--border);
    color: #e8ddd4;
  }
  input::placeholder { color: #6a5a50; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
        .smart-home-callout { background: #fff8f1; border: 1.5px solid #f0c898; border-radius: 14px; padding: 16px 18px; margin: 14px 0 16px; }
        .smart-home-callout .callout-heading { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #7a3d00; margin-bottom: 8px; }
        .smart-home-callout .callout-heading i { font-size: 15px; color: #CC5500; }
        .smart-home-callout p { font-size: 12.5px; color: #5a3a1a; line-height: 1.65; margin: 0 0 8px; }
        .smart-home-callout p:last-child { margin-bottom: 0; }
        .smart-home-callout .callout-devices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
        .smart-home-callout .callout-device { background: #fff; border: 1px solid #f0c898; border-radius: 8px; padding: 7px 10px; font-size: 12px; color: #5a3a1a; display: flex; align-items: center; gap: 7px; }
        .smart-home-callout .callout-device i { color: #CC5500; font-size: 13px; width: 14px; text-align: center; }
        .smart-home-callout .callout-warning { background: #fff5f5; border: 1px solid #ffd5d5; border-radius: 8px; padding: 9px 12px; font-size: 12px; color: #7a2020; margin-top: 10px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }
        .smart-home-callout .callout-warning i { font-size: 13px; color: #c0392b; margin-top: 1px; flex-shrink: 0; }
        @media (prefers-color-scheme: dark) {
          .smart-home-callout { background: #2a1a08; border-color: #6a3d10; }
          .smart-home-callout .callout-heading { color: #f0a860; }
          .smart-home-callout p { color: #c8a888; }
          .smart-home-callout .callout-devices { }
          .smart-home-callout .callout-device { background: #1e1208; border-color: #5a3010; color: #c8a888; }
          .smart-home-callout .callout-warning { background: #2a1010; border-color: #6a2020; color: #e8a0a0; }
        }


/* Guided Checkout */
.checkout-progress { margin-bottom: 14px; }
#checkout-step-label { font-size: 11px; color: #777; font-weight: 800; display: block; margin-bottom: 7px; }
.checkout-bar { height: 8px; background: #f0e8e0; border-radius: 999px; overflow: hidden; }
#checkout-bar-fill { height: 100%; width: 14%; background: var(--orange); border-radius: 999px; transition: width 0.25s ease; }
.checkout-flow { background: #fff8f1; border: 1px solid #ead8c7; border-radius: 16px; padding: 18px; text-align: center; min-height: 158px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.flow-icon { width: 48px; height: 48px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 20px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.checkout-flow h3 { margin: 0 0 8px; color: var(--slate); font-size: 16px; }
.checkout-flow p { margin: 0; color: #555; font-size: 13px; line-height: 1.55; }
.checkout-actions { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; margin: 12px 0 10px; }
.checkout-actions button { border: none; border-radius: 12px; padding: 12px; font-weight: 900; cursor: pointer; }
#checkout-back { background: #f3f4f6; color: #555; }
#checkout-back:disabled { opacity: 0.45; cursor: not-allowed; }
#checkout-next { background: var(--orange); color: white; }
.compact-checklist details { border-top: 1px solid var(--border); padding-top: 10px; }
.compact-checklist summary { cursor: pointer; font-size: 12px; color: var(--orange); font-weight: 900; margin-bottom: 8px; }

/* v27: consistent card margins across 341A tabs while preserving image bleed/wrap */
section.tab-content > .card,
section.tab-content > .search-card,
section.tab-content > .accordion-item,
section.tab-content > .explore-topic,
section.tab-content > .compact-checklist,
section.tab-content > .checkout-fee-note {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#home .card,
#manual .accordion-item,
#explore .search-card,
#explore .explore-topic,
#depart .card,
#depart .compact-checklist,
#depart .checkout-fee-note {
  margin-left: 0;
  margin-right: 0;
}

.accordion-body,
.explore-topic-body {
  padding-left: 18px;
  padding-right: 18px;
}

.explore-topic-body .rec-card,
.rec-card {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}

.rec-photo {
  display: block;
  width: calc(100% + 42px);
  max-width: none;
  margin-left: -24px;
  margin-right: -18px;
}

@media (max-width: 380px) {
  section.tab-content { padding-left: 18px; padding-right: 18px; }
  .card { padding-left: 18px; padding-right: 18px; }
  .accordion-body,
  .explore-topic-body { padding-left: 16px; padding-right: 16px; }
  .rec-card { padding-left: 22px; padding-right: 16px; }
  .rec-photo { width: calc(100% + 38px); margin-left: -22px; margin-right: -16px; }
}
