/* Reference design, 24 October 2026: pastel navigation and separate header themes. */
:root{--reference-ink:#10144c;--reference-yellow:#fff4a3}
html[data-category] body{background:#fff;color:#182b40}
.category-options{gap:12px!important;padding:0!important;margin:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.category-options .category-option{--option-bg:#eef2f7;aspect-ratio:auto!important;min-height:68px!important;height:auto!important;padding:12px 5px!important;border-radius:26px!important;background:var(--option-bg)!important;color:var(--reference-ink)!important;box-shadow:none!important;font:700 clamp(12px,2.8vw,18px)/1.25 system-ui,sans-serif!important;letter-spacing:-.3px;transition:transform .15s}
.category-options .category-option:hover{transform:translateY(-2px)}
.category-options .category-option[data-category=food]{--option-bg:#FFF4B8!important}
.category-options .category-option[data-category=fresh]{--option-bg:#D8F3E3!important}
.category-options .category-option[data-category=hotels]{--option-bg:#FAD1E6!important}
.category-options .category-option[data-category=auto]{--option-bg:#C9D9F5!important}
.category-options .category-option[data-category=services]{--option-bg:#E2D8F5!important}
.category-options .category-option[data-category=agriculture]{--option-bg:#CFEFF3!important}
.category-options .category-option[data-category=estate]{--option-bg:#F5D9DF!important}
.category-options .category-option[data-category=jobs]{--option-bg:#B7BDC9!important}
.category-options .category-option.selected{outline:2px solid var(--reference-ink)!important;outline-offset:3px!important}
.category-options .category-option>span{position:static!important;width:auto!important;height:auto!important;min-height:0!important;clip-path:none!important;margin:0!important;padding:0!important;overflow:visible!important;white-space:normal!important}
.category-options .category-art{display:none!important}
.category-navigation{padding:22px 18px 0!important}
html[data-category] .topbar{position:relative;top:auto;border:0!important;box-shadow:none!important;margin:0 0 2px!important;border-radius:0 0 30px 30px!important;padding:24px 20px 20px!important}
html[data-category] .topbar-row{min-height:70px;gap:14px;margin-bottom:14px}
html[data-category] .topbar .brand-name{font-size:clamp(23px,5vw,34px)!important;font-weight:800;letter-spacing:-1px;line-height:1.1}
.reference-brand{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.reference-brand img{width:56px;height:56px;object-fit:contain;border-radius:16px;background:white;padding:4px}
.reference-brand .brand-location{gap:5px}
.reference-subtitle{font-size:20px;line-height:1.3;color:white;font-weight:600}
html[data-category] .topbar .icon-btn{background:#ffffff19!important;border:1px solid #ffffff44;color:white!important;border-radius:50%;width:42px;height:42px;flex-shrink:0}
html[data-category] .topbar .search-row{margin:0!important;padding:0!important}
html[data-category] .topbar .search-bar{border-radius:999px!important;min-height:52px;padding:0 17px!important;box-shadow:none!important;border:0!important;color:var(--category-color)}
html[data-category] .topbar .search-bar input{font-size:14px;color:#233246;min-width:0}
.category-promotions{margin:20px 0 0;min-width:0}
.promotion-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin}
.promotion-card{position:relative;flex:0 0 100%;min-width:0;margin:0;border-radius:20px;background:#f4f7f8;border:1px solid #e1e7ed;overflow:hidden;scroll-snap-align:start}
.promotion-card img,.promotion-card video{display:block;width:100%;aspect-ratio:12/5;object-fit:contain;background:#edf1f4}
.promotion-card video{object-fit:contain}
.promotion-label{position:absolute;left:12px;top:12px;background:#fffef4;color:#243146;font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:700;padding:5px 9px;border-radius:5px;z-index:1}
.promotion-card figcaption{font-size:13px;line-height:1.55;padding:12px 16px;color:#34465a;overflow-wrap:anywhere}
.category-actions{display:flex;gap:12px;margin:12px 0 24px}
.category-actions a{flex:1;display:flex;justify-content:center;align-items:center;min-height:46px;padding:10px 16px;text-align:center;border-radius:18px;background:var(--reference-yellow);color:#242124;font-size:13px;font-weight:700;line-height:1.35;text-decoration:none}
.category-actions a:first-child{background:#6e1acb;color:white}
.category-actions a:focus-visible,.directory-view:focus-visible{outline:3px solid #151515;outline-offset:3px}
.vendor-directory .module-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.vendor-directory .module-card{border:1px solid #e5e8ed;border-radius:22px;padding:0;overflow:hidden;box-shadow:0 4px 14px #112c4306;background:white;display:flex;flex-direction:column;min-width:0}
.directory-photo{display:flex;justify-content:center;align-items:center;aspect-ratio:4/3;background:linear-gradient(140deg,var(--category-soft,#d8f3e3),#eff7fa);color:var(--category-color,#006878);font-size:42px;font-weight:700;overflow:hidden}
.directory-photo img{width:100%;height:100%;object-fit:cover}
.directory-card-body{padding:16px;display:flex;flex-direction:column;flex:1}
.vendor-directory .module-card h2{font-size:17px;line-height:1.4;margin:0 0 6px;overflow-wrap:anywhere}
.directory-card-body p{font-size:12px;line-height:1.6;color:#5a6877;overflow-wrap:anywhere}
.directory-category{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--category-color);margin-bottom:10px}
.directory-view{display:block;text-align:center;margin-top:auto;padding:11px;background:var(--reference-yellow);color:#18263b;font-weight:700;border-radius:15px;text-decoration:none;min-height:44px}
.directory-empty{padding:30px 20px;border-radius:22px;background:#f5f8fa;text-align:center;color:#556678;font-size:14px}
.directory-empty p{margin:0 0 12px}
.directory-detail{max-width:850px;margin:20px auto;padding:24px}
.directory-detail h1{font-size:30px;line-height:1.2}.directory-detail .description{white-space:pre-line;line-height:1.8;color:#536477}
.directory-detail dl{display:grid;grid-template-columns:130px 1fr;gap:12px}.directory-detail dd{margin:0;overflow-wrap:anywhere}
.directory-detail .contact-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.directory-detail .contact-actions a{padding:13px 24px;border-radius:16px;background:var(--category-color);color:white;font-weight:700;text-decoration:none}
.detail-gallery{display:flex;gap:12px;overflow:auto;margin-bottom:24px}.detail-gallery img{width:75%;max-height:360px;object-fit:cover;border-radius:20px}
.food-browser{display:block!important;padding-top:0!important;padding-bottom:24px!important}
.food-filter-tabs{position:static!important;display:flex!important;flex-direction:row!important;overflow-x:auto!important;max-height:none!important;margin:0 0 20px;gap:8px}
.food-filter-tabs .chip{width:auto!important;flex-shrink:0;white-space:nowrap!important;text-align:center!important;background:#f4f7f9}
.food-filter-tabs [data-cuisine-tabs]{flex-direction:row!important}
.food-browser .vendor-list,.has-app-shell .section>.vendor-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.food-browser .r-card-lg,.section .svc-card-lg{flex-direction:column;align-items:stretch;padding:0!important;border-radius:22px!important;border:1px solid #e5e8ed;overflow:hidden;min-width:0;background:white;box-shadow:none!important}
.food-browser .r-thumb-sq,.section .svc-thumb-lg{width:100%!important;height:140px!important;background:linear-gradient(135deg,var(--category-soft,#fff4b8),#f9fbff);border-radius:0!important}
.food-browser .r-body,.section .svc-body-lg{padding:16px!important}
.food-browser .r-cta{background:var(--reference-yellow);color:#18263b;border-radius:13px;padding:10px;display:block;text-align:center;margin-top:12px}
.reference-trending{padding-top:0}.reference-trending .hscroll{gap:14px}
.reference-trending .module-card{min-width:180px;max-width:240px;border:1px solid #e5e8ed;border-radius:20px;padding:14px;background:#fff}
.reference-trending img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}.reference-trending h3{font-size:14px;margin:10px 0 5px}.reference-trending p{font-size:12px;color:#657486}
.reference-trending a{color:inherit;text-decoration:none}
.bottom-nav{background:#092e47!important;backdrop-filter:none!important;border-radius:26px 26px 0 0!important;box-shadow:0 -4px 20px #0823380a!important;border:0!important}
.bottom-nav .nav-item{color:#d8e3ec!important}.bottom-nav .nav-item.active,.bottom-nav .nav-item[aria-current=page]{color:white!important}.bottom-nav .nav-item.active:after{background:#529bff!important}
.home-page .home-hero,.home-page .banner-section,.home-page #offer-list,.home-page #vendor-list,.home-page .ai-widget{display:none!important}
.home-page .home-services{padding-top:20px!important}.home-page .home-tab-section{padding-top:0!important}
@media(min-width:1000px){.category-navigation,.home-services,.reference-trending,.vendor-directory{max-width:1100px;margin-left:auto!important;margin-right:auto!important} .category-options .category-option{min-height:80px!important}.promotion-card img,.promotion-card video{max-height:400px}.topbar-row,.search-row{max-width:1064px;margin-left:auto!important;margin-right:auto!important}}
@media(max-width:600px){.category-options{gap:10px!important}.category-options .category-option{min-height:62px!important;border-radius:22px!important;font-size:12px!important}.vendor-directory .module-cards{gap:10px}.vendor-directory .module-card h2{font-size:13px}.directory-card-body{padding:12px 9px}.directory-card-body p{font-size:11px}.directory-photo{font-size:30px}.directory-view{font-size:13px;padding:10px 6px}.food-browser .vendor-list,.has-app-shell .section>.vendor-list{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-subtitle{font-size:18px}.topbar .brand-name{font-size:26px!important}.category-actions a{padding:10px;font-size:11px}.category-navigation{padding:18px 14px 0!important}}
@media(max-width:359px){.vendor-directory .module-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.category-options .category-option{font-size:11px!important}.reference-brand img{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.category-options .category-option{transition:none}}

.section .svc-card-lg{display:flex}.section .svc-card-lg .r-thumb-sq{width:100%;height:140px}.section .svc-card-lg .r-body{padding:16px}.section .svc-card-lg .r-cta{display:block;text-align:center;padding:10px;background:var(--reference-yellow);color:#18263b;border-radius:13px} [hidden]{display:none!important}

.category-actions{margin-bottom:18px}.vendor-directory .module-card{gap:0}.vendor-directory .directory-card-body{gap:6px}.directory-photo{text-decoration:none}.directory-card-body p{margin:0 0 10px}.bottom-nav{left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;transform:none!important;padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}.has-app-shell{padding-bottom:100px!important}.home-page .home-services{margin-bottom:0;padding-bottom:0!important}.home-page .vendor-directory{padding-top:10px}.category-navigation>.category-actions{margin-bottom:0}.section .svc-card-lg[hidden]{display:none!important}

.business-initial{font-size:42px;font-weight:800;color:var(--category-color);display:flex;align-items:center;justify-content:center;height:100%}.food-browser .r-thumb-sq{position:relative;background:var(--category-soft,#fff4b8)!important}.food-browser .r-offer-badge{position:absolute;left:10px;bottom:10px}

.vendor-directory .module-card h2,.directory-card-body p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.topbar .search-bar input{font-family:system-ui,sans-serif!important}

.food-quick-filters{display:flex;gap:10px;overflow-x:auto;padding:16px 0;margin-bottom:6px}.food-quick-filters .chip{white-space:nowrap;min-height:44px;border-radius:999px;padding:10px 18px}.food-quick-filters .chip.active{background:var(--category-color);color:#fff}

.marketplace-directory,.business-dashboard{max-width:1100px;margin:0 auto}.market-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 24px}.market-actions a,.market-actions input[type=submit]{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:16px;padding:12px 18px;background:var(--reference-yellow);color:#1b2940;font-weight:700;font-size:13px;text-decoration:none;min-height:44px}.market-actions a:first-child{background:var(--category-color,#8052b8);color:#fff}.market-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.market-form-grid .wide{grid-column:1/-1}.market-filter-group{display:contents}.market-form-grid .field{min-width:0}.market-form-grid input,.market-form-grid textarea,.market-form-grid select{width:100%;max-width:100%;box-sizing:border-box}.market-filters{background:#f7f9fb;border:1px solid #e6ebf0;border-radius:22px;padding:20px;margin:20px 0}.market-filters summary{font-weight:700;cursor:pointer;margin-bottom:18px}.market-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.market-listing-card{background:#fff;border:1px solid #e1e7ed;border-radius:22px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.market-listing-card h3{font-size:18px;line-height:1.4;overflow-wrap:anywhere}.market-listing-card .directory-photo{aspect-ratio:4/3}.market-listing-card .directory-card-body{gap:8px}.business-dashboard>.module-card,.business-dashboard .app-form-card>.module-card{margin:14px 0}.business-dashboard .module-card h3{font-size:18px}.business-banner{width:100%;max-height:350px;object-fit:cover;border-radius:20px;margin-bottom:20px}.business-logo{width:90px;height:90px;object-fit:contain;border-radius:18px}.directory-detail .module-card img{width:100%;max-height:240px;object-fit:cover;border-radius:14px}.app-form-card{width:calc(100% - 32px)!important;max-width:1000px!important;margin:24px auto!important;box-sizing:border-box}.app-form-card .field label{font-size:13px;font-weight:600}.app-form-card .textarea-field{width:100%;box-sizing:border-box}.app-form-card input[type=file]{font-size:12px;max-width:100%}.business-dashboard .market-actions{margin-bottom:10px}@media(max-width:650px){.market-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.market-form-grid{grid-template-columns:1fr;gap:12px}.market-form-grid .wide{grid-column:auto}.market-filters{padding:16px}.market-listing-card h3{font-size:15px}.market-actions a{font-size:12px;padding:10px 14px}.app-form-card{padding:20px!important}}@media(max-width:359px){.market-card-grid{grid-template-columns:1fr}}

.market-form-grid input[type=checkbox]{width:auto}.business-dashboard .module-card p{white-space:pre-line}

/* Shared screen polish. */
#app-loader{display:none!important}
.topbar .brand-logo,.reference-brand>img{display:none!important}
.drawer-link>i{display:inline-flex;flex:0 0 22px;width:22px;align-items:center;justify-content:center}
.business-tabs{gap:8px;flex-wrap:wrap;margin-bottom:20px}
.business-tabs a.active{background:#0b3047;color:#fff}
[data-business-panel][hidden]{display:none!important}

@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}

/* Uniform 1200 x 500 banner frame; retain the whole image/GIF/video. */
.promotion-track{align-items:flex-start;overscroll-behavior-x:contain}
.promotion-card img,.promotion-card video{width:100%;height:auto;aspect-ratio:12/5;object-fit:contain;max-width:100%;background:#edf1f4}

/* White glyphs beside the title; retain transparent circular buttons. */
.topbar .topbar-row .icon-btn svg,.topbar .app-menu-btn svg{color:#fff!important}

/* Sidebar glyphs follow the current section's strong header colour. */
.drawer-nav .drawer-link:not(.logout) svg,.drawer-row-label svg,.drawer-close svg{color:var(--drawer-accent,var(--category-color,#0b3047))!important}

/* Keep bottom-tab tap targets above page content and handle glyph/text taps alike. */
.bottom-nav{z-index:1400;pointer-events:auto}
.bottom-nav a.nav-item{pointer-events:auto;touch-action:manipulation;min-height:48px}
.bottom-nav a.nav-item svg,.bottom-nav a.nav-item span{pointer-events:none}

/* Food keeps one wide restaurant card per row at every screen size. */
.food-browser .vendor-list{display:flex!important;flex-direction:column;gap:14px}
.food-browser .r-card-lg{display:flex;flex-direction:row!important;align-items:stretch;gap:14px;width:100%;padding:12px!important}
.food-browser .r-thumb-sq{width:112px!important;height:120px!important;flex:0 0 112px;border-radius:14px!important;overflow:hidden;align-self:center}
.food-browser .r-body{flex:1;min-width:0;padding:2px 0!important}
.food-browser .business-initial{height:100%;font-size:36px}
.food-browser .r-cta{margin-top:8px;padding:8px 12px}
.home-trending-initial{display:flex;align-items:center;justify-content:center;width:100%;height:140px;background:#eef3f7;color:#0b3047;font-size:44px;font-weight:700;border-radius:14px}
@media(max-width:359px){.food-browser .r-card-lg{gap:10px;padding:10px!important}.food-browser .r-thumb-sq{width:88px!important;flex-basis:88px;height:112px!important}}

.food-business-directory .module-cards{display:flex!important;flex-direction:column;gap:14px}
.food-business-directory .module-card{display:flex!important;flex-direction:row;align-items:stretch;width:100%;gap:0}
.food-business-directory .directory-photo{width:120px;flex:0 0 120px;aspect-ratio:auto;min-height:140px}
.food-business-directory .directory-card-body{flex:1;min-width:0;padding:14px}

/* Immediate tap feedback while the next real page is requested. */
.bottom-nav a.is-pending{background:#ffffff20!important;color:#fff!important}
.bottom-nav a.is-pending svg{color:#fff!important}
