:root {
  color-scheme: light;
  --pine-deep: #0c1709;
  --pine: #142313;
  --forest: #39401f;
  --olive: #60693a;
  --cream: #fae8c0;
  --paper: #faf6e9;
  --card: #fffaf0;
  --gold: #dca74b;
  --gold-light: #f4d77b;
  --copper: #ab622b;
  --ink: #1b2818;
  --muted: #4f5a47;
  --line: #dcdcc7;
  --shadow: 0 16px 38px rgba(35, 44, 21, .09);
  --radius: 24px;
  --content: 1240px;
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, select, input[type=file] { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif; line-height: 1.13; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 5.5vw, 5.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); }
h3 { font-size: 1.28rem; }
:focus-visible { outline: 3px solid #824719; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .editorial-section :focus-visible, .profile-panel :focus-visible { outline-color: var(--gold-light); }
::selection { color: var(--pine); background: var(--gold-light); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-width { width: min(calc(100% - 64px), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 10px 16px; border-radius: 0 0 10px 10px; background: var(--gold-light); color: var(--pine); font-weight: 800; }
.skip-link:focus { top: 0; }

/* Personal discovery and account flows share the established botanical theme. */
.preferences-section { margin-block: 40px; }
.preferences-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: clip; }
.preferences-panel summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 30px; list-style: none; }
.preferences-panel summary::-webkit-details-marker { display: none; }
.preferences-panel summary > span:first-child { display: flex; gap: 16px; align-items: center; }
.preferences-panel summary strong, .preferences-panel summary small { display: block; }
.preferences-panel summary strong { font-size: 1.25rem; }
.preferences-panel summary small { color: var(--muted); margin-top: 4px; }
.preferences-edit { color: var(--forest); font-size: .9rem; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.preferences-panel[open] summary { border-bottom: 1px solid var(--line); }
.preferences-panel form { padding: 28px 30px; }
.preferences-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.preferences-grid fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.preferences-grid legend { font-weight: 800; margin-bottom: 16px; }
.preferences-grid label { display: block; font-size: .9rem; font-weight: 650; margin-bottom: 6px; }
.preferences-grid input:not([type=checkbox]) { display: block; width: 100%; min-height: 48px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid #a6ad93; border-radius: 10px; background: #fffdf7; color: var(--ink); }
.location-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--olive); border-radius: 10px; background: #edf0df; color: var(--pine); font-weight: 700; text-align: left; }
.location-button:disabled, button:disabled { cursor: wait; opacity: .65; }
.interest-options { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.interest-options label { display: flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding: 7px 10px; background: #f1eddf; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .8rem; }
.interest-options input, .checkbox-label input { width: 18px; height: 18px; flex: none; accent-color: var(--forest); }
.interest-options label:has(:checked) { background: #e1e8cb; border-color: var(--olive); }
.preferences-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 22px; }
.preferences-actions p { width: 100%; margin: 0; color: var(--muted); font-size: .86rem; }
.recommendations-section { padding-block: 32px 54px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.product-photo .photo-frame { display: block; height: 136px; border-radius: 12px; }
.product-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 7px 0; }
.product-card p { font-size: .83rem; color: var(--muted); margin-bottom: 8px; }
.product-card small { display: block; color: var(--muted); font-size: .75rem; }
.product-price, .business-price, .offering-list strong { color: var(--forest); font-variant-numeric: tabular-nums; }
.product-card .product-reason { font-size: .75rem; margin-block: 8px 5px; }
.business-locality { color: var(--muted); font-size: .83rem; margin-bottom: 10px; }
.card-author { display: flex; gap: 7px; align-items: start; color: var(--forest); font-size: .85rem; font-weight: 700; margin-bottom: 10px; }
.responsible-group { margin-block: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.distance-note { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; line-height: 1.5; }
.business-price { font-size: .9rem; font-weight: 750; }
.filter-panel .checkbox-label { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; }
.auth-section, .legacy-section { margin-bottom: 64px; }
.auth-card { max-width: 660px; margin: 0 auto; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.auth-card h2 { font-size: 2rem; margin-top: 20px; }
.auth-illustration { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px 24px 24px 4px; background: var(--forest); color: var(--gold-light); }
.google-signin { max-width: 100%; min-height: 52px; margin-block: 24px; }
.service-notice { padding: 18px; border-radius: 12px; background: #f5e8c8; margin-block: 22px; color: var(--forest); }
.service-notice p { margin: 8px 0 0; }
.auth-card .field-hint { margin-top: 16px; }
.account-email { overflow-wrap: anywhere; font-size: .92rem; }
.profile-panel #sign-out { margin-top: 14px; }
.product-editor { border: 1px solid var(--line); padding: 18px; border-radius: 12px; min-width: 0; }
.product-editor legend { padding: 0 6px; font-weight: 750; }
.product-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 44px; gap: 10px; align-items: end; margin-bottom: 14px; }
.remove-product { width: 44px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; }
.product-row input { width: 100%; min-width: 0; }
.offering-list li { align-items: center; }
.offering-list strong { margin-left: auto; white-space: nowrap; }
.privacy-copy { max-width: 800px; padding-bottom: 64px; }
.privacy-copy h2 { font-size: 1.6rem; margin-top: 32px; }
.business-card, .product-card, .auth-card, .privacy-copy { overflow-wrap: anywhere; }
.business-card { content-visibility: auto; contain-intrinsic-size: auto 530px; }
#recommended-title { scroll-margin-top: 30px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .preferences-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .preferences-grid fieldset:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .preferences-panel summary { padding: 20px; gap: 10px; }
  .preferences-panel summary > span:first-child { gap: 10px; min-width: 0; }
  .preferences-panel summary strong { font-size: 1.1rem; }
  .preferences-edit { font-size: .75rem; }
  .preferences-panel form { padding: 20px; }
  .preferences-grid, .product-grid { grid-template-columns: minmax(0, 1fr); }
  .preferences-grid { gap: 26px; }
  .preferences-grid fieldset:last-child { grid-column: auto; }
  .preferences-actions .button { width: 100%; }
  .recommendations-section { padding-block: 14px 32px; }
  .product-card { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
  .auth-card { padding: 24px; }
  .auth-card h2 { font-size: 1.65rem; }
  .product-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .product-row > div:first-child { grid-column: 1 / -1; }
  .offering-list li { flex-wrap: wrap; }
}

/* Navigation and brand */
.site-header { position: relative; z-index: 10; background: var(--pine-deep); color: var(--cream); border-bottom: 1px solid rgba(250,232,192,.16); }
.header-inner { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 11px; min-width: 252px; }
.brand-symbol { display: block; position: relative; overflow: hidden; width: 58px; height: 58px; border-radius: 15px; background: #0b1609; box-shadow: 0 0 0 1px rgba(242,208,131,.2); }
.brand-symbol img { position: absolute; max-width: none; width: 372px; height: auto; left: -33px; top: -338px; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-wordmark strong { font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 800; font-size: 1.71rem; letter-spacing: -.07em; }
.brand-wordmark > span { font-size: .95rem; font-weight: 500; letter-spacing: .165em; }
.brand-wordmark small { display: block; margin-top: 7px; color: #b4bd72; letter-spacing: .38em; font-size: .52rem; font-weight: 700; }
.desktop-nav { display: flex; align-items: center; gap: 5px; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 9px 15px; border-radius: 14px; font-size: .94rem; font-weight: 650; color: #e1e2c9; transition: background .18s ease, color .18s ease; }
.nav-link svg { opacity: .9; }
.nav-link:hover, .nav-link.is-active { background: rgba(250,232,192,.13); color: #fff9e4; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 45px; padding: 10px 17px; border: 1px solid var(--gold); border-radius: 14px; color: var(--gold-light); font-size: .9rem; font-weight: 800; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.header-cta:hover { background: var(--gold); color: var(--pine); }
.bottom-nav { display: none; }

/* Reusable UI */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; line-height: 1.25; text-align: center; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold-light); color: var(--pine); box-shadow: 0 8px 20px rgba(13,25,9,.12); }
.button-gold:hover { background: #f9dc87; }
.button-dark { background: var(--forest); color: #fff9e8; }
.button-dark:hover { background: var(--pine); }
.button-light { background: var(--cream); color: var(--pine); }
.button-light:hover { background: white; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(57,64,31,.35); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: currentColor; }
.site-footer .text-link { color: var(--gold-light); text-decoration-color: currentColor; }
.section-intro { margin: 0 0 8px; color: #955224; font-size: .92rem; font-weight: 800; letter-spacing: .01em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; }
.section-heading .text-link { flex: none; margin-bottom: 5px; }
.category-label { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 10px; border-radius: 20px; background: #e9edcf; color: #35421d; font-size: .78rem; font-weight: 800; line-height: 1.2; }
.demo-pill { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid #d8ddbd; border-radius: 40px; color: #4c5b38; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.photo-frame { position: relative; display: block; overflow: hidden; width: 100%; height: 100%; background: linear-gradient(130deg, #798156, #d6af67 56%, #ad6e42); color: #fff8e1; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; text-align: center; }
.photo-frame img ~ .photo-fallback { display: none; }
.photo-frame.is-missing img { display: none; }
.photo-frame.is-missing .photo-fallback { display: flex; }
.favorite-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dfdfc8; border-radius: 50%; background: #fffaf0; color: #6b713f; transition: background .18s ease, color .18s ease, transform .18s ease; }
.favorite-button:hover { background: #f2ebd4; transform: scale(1.05); }
.favorite-button.is-saved { border-color: var(--copper); background: #f8e5d4; color: #9d4d2f; }

/* Homepage */
.hero { position: relative; overflow: hidden; min-height: 570px; background: radial-gradient(circle at 85% 15%, #314021 0, transparent 43%), linear-gradient(120deg, var(--pine-deep), #1b2b17 75%, #39401f); color: #fff9e5; }
.hero::before { content: ""; position: absolute; right: -95px; top: -190px; width: 550px; height: 550px; border: 1px solid rgba(227,189,111,.13); border-radius: 50%; box-shadow: 0 0 0 92px rgba(211,174,95,.025), 0 0 0 185px rgba(211,174,95,.02); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -55px; bottom: -110px; width: 280px; height: 170px; background: var(--copper); opacity: .22; transform: rotate(34deg); border-radius: 80% 0 80% 0; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(35px, 6vw, 90px); padding-block: 70px 76px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 21px; color: #e4c98b; font-size: .95rem; font-weight: 700; }
.hero-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { max-width: 690px; margin: 0 0 21px; font-weight: 800; text-wrap: balance; }
.hero-content > p { max-width: 610px; margin-bottom: 27px; color: #e5e8d4; font-size: 1.13rem; line-height: 1.62; }
.hero-search { display: flex; align-items: center; gap: 12px; width: min(100%, 630px); min-height: 64px; padding: 7px 7px 7px 20px; border-radius: 18px; background: #fffaf0; color: #777f56; box-shadow: 0 12px 27px rgba(0,0,0,.14); }
.hero-search input { min-width: 0; flex: 1; padding: 8px 0; border: 0; background: transparent; outline: 0; color: var(--ink); font-size: 1rem; }
.hero-search:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero-search input::placeholder { color: #65705e; opacity: 1; }
.hero-search button { align-self: stretch; min-width: 102px; border: 0; border-radius: 12px; background: var(--gold); color: var(--pine); font-weight: 800; }
.hero-search button:hover { background: var(--gold-light); }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 25px; }
.hero-explore { color: var(--cream); text-decoration-color: rgba(250,232,192,.6); }
.hero-feature { position: relative; min-height: 438px; padding: 32px 28px 0 0; }
.hero-feature::before { content: ""; position: absolute; inset: 0 0 25px 35px; border: 1px solid rgba(229,189,111,.65); border-radius: 140px 34px 35px 35px; transform: rotate(4deg); }
.hero-feature-photo { position: relative; width: 100%; height: 405px; overflow: hidden; border-radius: 135px 30px 30px 30px; background: #766337; box-shadow: 0 24px 48px rgba(0,0,0,.25); }
.hero-feature-photo .photo-frame { height: 100%; }
.hero-feature-photo img { object-position: center 54%; }
.hero-feature-label { position: absolute; bottom: -13px; left: -35px; display: flex; flex-direction: column; gap: 2px; min-width: 255px; padding: 17px 21px; border-left: 5px solid var(--copper); border-radius: 13px; background: #fff9e8; box-shadow: var(--shadow); color: var(--pine); }
.hero-feature-label span { color: var(--copper); font-size: .78rem; font-weight: 800; }
.hero-feature-label strong { font-size: 1.1rem; }
.hero-leaf { position: absolute; z-index: -1; width: 90px; height: 45px; border-radius: 90px 0 90px 0; background: #7a8144; opacity: .55; }
.hero-leaf-one { top: 5px; right: -18px; transform: rotate(-42deg); }
.hero-leaf-two { top: 52px; right: -49px; transform: rotate(16deg); }
.categories-section { padding-block: 74px 78px; }
.category-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 13px; }
.category-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 168px; padding: 18px 16px 15px; border-radius: 20px; background: var(--forest); color: #fffbea; font-weight: 800; font-size: .92rem; line-height: 1.26; box-shadow: 0 8px 16px rgba(57,64,31,.08); transition: transform .18s ease, box-shadow .18s ease; }
.category-tile:hover { transform: translateY(-4px); box-shadow: 0 13px 22px rgba(57,64,31,.15); }
.category-tile > svg { position: absolute; right: 15px; bottom: 15px; opacity: .7; }
.category-tile > span:nth-child(2) { max-width: 90px; }
.category-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: rgba(255,255,255,.13); }
.category-2, .category-5 { background: var(--olive); }
.category-4 { background: #9b5529; }
.category-6 { background: #bf8d35; color: #1c2818; }
.category-6 .category-icon, .category-7 .category-icon { background: rgba(29,43,18,.12); }
.category-7 { background: var(--gold); color: #1c2818; }
.featured-section { padding-bottom: 88px; }
.demo-context { margin: -12px 0 24px; color: var(--muted); }
.story-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding-bottom: 100px; }
.story-photo { height: 365px; overflow: hidden; border-radius: 28px 130px 28px 28px; background: var(--olive); }
.story-copy { max-width: 530px; }
.story-copy h2 { margin: 0 0 18px; font-size: clamp(2rem, 3.4vw, 3.45rem); }
.story-copy > p:not(.section-intro) { margin-bottom: 21px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.business-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e5e3d1; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.business-card:hover { transform: translateY(-3px); box-shadow: 0 20px 43px rgba(35,44,21,.15); }
.card-photo-link { display: block; height: 216px; overflow: hidden; background: var(--olive); }
.card-photo-link img { transition: transform .25s ease; }
.business-card:hover .card-photo-link img { transform: scale(1.035); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 19px 22px 18px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.card-topline .favorite-button { margin: -6px -5px 0 0; }
.business-card h3 { margin: 0 0 8px; font-size: 1.42rem; }
.business-card h3, .card-description, .card-unit, .detail-title, .preview-card h3, .story-copy h2 { overflow-wrap: anywhere; }
.business-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 3px; }
.card-description { min-height: 51px; margin-bottom: 15px; color: var(--muted); line-height: 1.48; }
.card-unit { display: flex; align-items: flex-start; gap: 6px; margin: auto 0 16px; color: #4c5a3f; font-size: .9rem; font-weight: 650; }
.card-unit svg { margin-top: 2px; }
.card-unit span { min-width: 0; overflow-wrap: anywhere; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 13px; border-top: 1px solid #e5e4d3; }
.card-footer span { color: #667154; font-size: .76rem; }
.card-footer a { display: inline-flex; align-items: center; gap: 5px; color: var(--forest); font-size: .88rem; font-weight: 800; white-space: nowrap; }
.card-footer a:hover { text-decoration: underline; }
.editorial-section { position: relative; overflow: hidden; padding-block: 50px; background: var(--forest); color: #fff9e8; }
.editorial-section::before { content: ""; position: absolute; right: -65px; bottom: -155px; width: 370px; height: 250px; border: 2px solid rgba(238,208,139,.24); border-radius: 85% 0 85% 0; transform: rotate(-25deg); }
.editorial-grid { position: relative; display: grid; grid-template-columns: 155px 1fr auto; align-items: center; gap: 38px; }
.editorial-mark { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gold-light); font-weight: 800; letter-spacing: .12em; line-height: 1.1; text-align: center; }
.editorial-grid h2 { max-width: 580px; margin-bottom: 10px; }
.editorial-grid p:last-child { max-width: 590px; margin-bottom: 0; color: #e0e3d0; }
.editorial-grid .section-intro { color: var(--gold-light); }

/* Explore and shared page headings */
.page-heading { padding-block: 54px 34px; }
.page-heading h1 { margin: 0 0 10px; font-size: clamp(2.7rem, 5vw, 4.2rem); }
.page-heading > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.explore-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 90px; }
.filter-panel { position: sticky; top: 20px; padding: 24px; border: 1px solid #e3e2cf; border-radius: var(--radius); background: var(--card); box-shadow: 0 12px 28px rgba(35,44,21,.06); }
.filter-panel-title { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--forest); }
.filter-panel-title h2 { margin: 0; font-size: 1.3rem; }
.filter-panel label, .filter-category-heading > span { display: block; margin: 0 0 8px; font-size: .89rem; font-weight: 800; }
.filter-panel select, .field-with-icon { width: 100%; min-height: 46px; margin: 0 0 19px; border: 1px solid #c9ceb9; border-radius: 11px; background: #fffdf5; color: var(--ink); }
.filter-panel select { padding: 9px 11px; }
.field-with-icon { display: flex; align-items: center; gap: 8px; padding: 0 11px; color: var(--olive); }
.field-with-icon:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.field-with-icon input { min-width: 0; width: 100%; border: 0; background: transparent; outline: 0; font-size: 1rem; }
.field-with-icon input::placeholder { color: #697365; }
.filter-category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.clear-button { min-height: 44px; padding: 3px 0; border: 0; background: transparent; color: #7b4a20; font-size: .8rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 37px; padding: 7px 11px; border: 1px solid #cbd0b7; border-radius: 30px; background: transparent; color: var(--forest); font-size: .79rem; font-weight: 750; }
.filter-chip:hover { background: #eef0db; }
.filter-chip.is-active { border-color: var(--forest); background: var(--forest); color: #fff9e8; }
.results-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin: 3px 0 21px; }
.results-heading h2 { margin: 0 0 5px; font-size: 1.65rem; }
.results-heading p { margin: 0; color: var(--muted); font-size: .92rem; }
.explore-content .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.explore-content .card-photo-link { height: 190px; }
.listing-section { min-height: 360px; padding-bottom: 90px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 330px; padding: 36px; border: 1px dashed #bfc7aa; border-radius: var(--radius); background: #fffaf0; color: var(--forest); text-align: center; }
.empty-state h3 { margin: 16px 0 6px; font-size: 1.58rem; }
.empty-state p { max-width: 420px; margin-bottom: 19px; color: var(--muted); }

/* Details */
.detail-page { padding-block: 37px 90px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-bottom: 20px; color: var(--forest); font-weight: 800; }
.back-link:hover { text-decoration: underline; }
.success-banner { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 24px; padding: 15px 18px; border: 1px solid #a6b689; border-radius: 13px; background: #eaf0d9; color: #203b1d; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); align-items: start; gap: 34px; }
.detail-main { min-width: 0; }
.detail-photo { height: min(50vw, 510px); min-height: 330px; overflow: hidden; border-radius: 27px; background: var(--olive); }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.detail-gallery .photo-frame { height: 145px; border-radius: 14px; }
.detail-description { padding: 35px 4px; }
.detail-description h2 { margin: 0 0 11px; font-size: 1.65rem; }
.detail-description p { max-width: 770px; margin: 0 0 32px; font-size: 1.03rem; line-height: 1.72; }
.offering-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.offering-list li { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 30px; background: #e8edcf; color: #364723; font-weight: 700; }
.detail-sidebar { position: sticky; top: 20px; overflow: hidden; padding: 28px; border: 1px solid #e4e1cf; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.detail-heading { position: relative; padding-right: 48px; }
.detail-heading .favorite-button { position: absolute; right: 0; top: 0; }
.detail-heading .detail-title { margin: 16px 0 12px; color: var(--ink); font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif; font-size: clamp(2.2rem, 3vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.13; }
.detail-heading p { margin-bottom: 25px; color: var(--muted); }
.detail-facts { display: grid; gap: 18px; padding-block: 22px; border-block: 1px solid #e2e2cd; }
.detail-facts > div { display: flex; align-items: flex-start; gap: 11px; color: var(--olive); }
.detail-facts span { display: flex; flex-direction: column; }
.detail-facts small { color: #687459; font-size: .79rem; }
.detail-facts strong { color: var(--ink); font-size: .94rem; }
.detail-facts strong { overflow-wrap: anywhere; }
.contact-box { padding-block: 23px; }
.contact-box h2 { margin: 0 0 8px; font-size: 1.18rem; }
.contact-box p { overflow-wrap: anywhere; margin-bottom: 5px; font-weight: 750; }
.contact-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 5px; color: var(--forest); font-weight: 800; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.contact-box small { display: block; color: var(--muted); line-height: 1.5; }
.detail-demo { display: inline-flex; padding: 7px 11px; border-radius: 30px; background: #f3e4cc; color: #6a481f; font-size: .78rem; font-weight: 800; }

/* Publishing */
.publish-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .68fr); align-items: start; gap: 30px; padding-bottom: 96px; }
.publish-form, .preview-panel { border: 1px solid #e2e0ca; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.publish-form { padding: 32px; }
.form-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.form-intro h2 { margin: 0; font-size: 1.72rem; }
.form-intro p { margin: 0; color: var(--muted); font-size: .82rem; }
.form-intro span, .form-field label span { color: #9a3f24; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px 20px; }
.form-field { min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; font-size: .91rem; font-weight: 800; }
.form-field input:not([type=file]), .form-field select, .form-field textarea { display: block; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #c9ceb9; border-radius: 11px; background: #fffef8; color: var(--ink); }
.form-field textarea { resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #717967; }
.form-field [aria-invalid=true] { border-color: #aa4328 !important; background: #fff9f5 !important; }
.field-hint { margin: 5px 0 0; color: #66715d; font-size: .78rem; }
.field-error { margin: 5px 0 0; color: #9a3420; font-size: .82rem; font-weight: 700; }
.field-error:empty { display: none; }
.form-error-summary { margin-bottom: 20px; padding: 11px 13px; border: 1px solid #bd775c; border-radius: 10px; background: #fff0e8; color: #7d2c1b; font-weight: 750; }
.form-error-summary[hidden] { display: none; }
.upload-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 23px; border: 1px dashed #a5b18b; border-radius: 13px; background: #f2f3e4; color: var(--forest); text-align: center; }
.form-field label.upload-box { display: flex; margin-bottom: 0; font-size: inherit; font-weight: inherit; }
.upload-box { cursor: pointer; }
.upload-box:focus-within { outline: 3px solid #824719; outline-offset: 3px; }
.upload-box > span { color: var(--muted); font-size: .81rem; }
.upload-box input { width: min(100%, 280px); margin-top: 10px; font-size: .8rem; }
.uploaded-images { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.uploaded-thumb { position: relative; width: 76px; height: 76px; }
.uploaded-thumb img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.uploaded-thumb button { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 5px solid var(--card); border-radius: 50%; background: var(--pine); color: white; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 26px; padding-top: 24px; border-top: 1px solid #e5e2d0; }
.form-actions p { max-width: 260px; margin: 0; color: var(--muted); font-size: .82rem; }
.preview-panel { position: sticky; top: 20px; padding: 23px; }
.preview-heading span { color: var(--forest); font-size: 1.2rem; font-weight: 800; }
.preview-heading p { margin: 4px 0 19px; color: var(--muted); font-size: .88rem; }
.preview-card { overflow: hidden; border: 1px solid #e4e1cd; border-radius: 18px; background: #fffdf6; }
.preview-card > .photo-frame { height: 180px; }
.preview-card > div { padding: 17px; }
.preview-card h3 { margin: 10px 0 7px; overflow-wrap: anywhere; }
.preview-card p { max-height: 80px; overflow: hidden; margin-bottom: 14px; color: var(--muted); font-size: .88rem; }
.preview-card small { display: flex; align-items: center; gap: 5px; color: var(--forest); }
.preview-note { margin: 14px 0 0; color: var(--muted); font-size: .81rem; }

/* Profile and footer */
.profile-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); align-items: start; gap: 33px; padding-bottom: 90px; }
.profile-panel { padding: 26px; border-radius: var(--radius); background: var(--forest); color: #fff9e8; }
.profile-avatar { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 20px; border-radius: 18px; background: rgba(255,255,255,.14); color: var(--gold-light); }
.profile-panel h2 { margin-bottom: 11px; font-size: 1.55rem; }
.profile-panel p { color: #e3e8d0; font-size: .91rem; }
.profile-panel .button { margin-top: 7px; font-size: .89rem; }
.profile-content .section-heading { margin: 0 0 22px; }
.count-badge { display: inline-grid; place-items: center; min-width: 28px; height: 28px; vertical-align: middle; border-radius: 50%; background: #e1e7c7; color: var(--forest); font-family: "Segoe UI", sans-serif; font-size: .85rem; letter-spacing: 0; }
.profile-content .business-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.not-found { min-height: 480px; padding-block: 80px; }
.site-footer { padding-block: 37px 45px; background: var(--pine-deep); color: #e8ead5; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-name { margin-bottom: 5px; color: var(--cream); font-family: "Trebuchet MS", sans-serif; font-size: 1.25rem; font-weight: 800; }
.site-footer p { max-width: 460px; margin-bottom: 0; font-size: .89rem; }
.footer-label { margin-bottom: 5px !important; color: var(--gold-light); font-weight: 800; }
.toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 12px; background: var(--pine); box-shadow: 0 12px 32px rgba(0,0,0,.25); color: #fff9e8; font-weight: 750; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1170px) {
  .desktop-nav { gap: 0; }
  .desktop-nav .nav-link { padding-inline: 10px; }
  .desktop-nav .nav-link svg { display: none; }
  .brand { min-width: 223px; }
  .header-cta { padding-inline: 12px; }
  .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .category-tile { min-height: 145px; }
  .editorial-grid { grid-template-columns: 110px 1fr; }
  .editorial-grid .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(73px + env(safe-area-inset-bottom)); }
  .page-width { width: min(calc(100% - 40px), var(--content)); }
  .site-header { position: sticky; top: 0; }
  .header-inner { gap: 14px; }
  .desktop-nav { display: none; }
  .bottom-nav { position: fixed; z-index: 50; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 70px; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid #e0d8b5; background: #fff6dc; box-shadow: 0 -7px 26px rgba(32,42,20,.1); }
  .bottom-nav .nav-link { flex-direction: column; gap: 2px; min-height: 55px; padding: 3px; border-radius: 12px; color: var(--forest); font-size: .75rem; line-height: 1.1; }
  .bottom-nav .nav-link.is-active { background: #f0dfa7; color: var(--pine); }
  .bottom-nav .nav-link svg { width: 22px; height: 22px; }
  .hero-grid { grid-template-columns: 1fr .75fr; gap: 32px; }
  .hero h1 { font-size: clamp(2.6rem, 5.7vw, 4.1rem); }
  .hero-feature { min-height: 350px; }
  .hero-feature-photo { height: 330px; }
  .hero-feature-label { left: -16px; min-width: 210px; }
  .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-layout, .profile-layout { grid-template-columns: 1fr; gap: 24px; }
  .filter-panel { position: static; }
  .filter-chips { gap: 8px; }
  .explore-content .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
  .publish-layout { grid-template-columns: 1fr; gap: 20px; }
  .publish-form { padding: 24px; }
  .preview-panel { position: static; max-width: 540px; }
  .profile-panel { max-width: 580px; }
}

@media (max-width: 700px) {
  .page-width { width: min(calc(100% - 32px), var(--content)); }
  .header-inner { min-height: 70px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-symbol { width: 43px; height: 43px; border-radius: 11px; }
  .brand-symbol img { width: 276px; left: -24px; top: -251px; }
  .brand-wordmark strong { font-size: 1.25rem; }
  .brand-wordmark > span { font-size: .67rem; letter-spacing: .1em; }
  .brand-wordmark small { margin-top: 5px; font-size: .43rem; letter-spacing: .31em; }
  .header-cta { min-height: 42px; padding: 8px 12px; font-size: .79rem; }
  .header-cta svg { display: none; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 48px 58px; }
  .hero h1 { max-width: 590px; font-size: clamp(2.45rem, 10vw, 4.25rem); }
  .hero-content > p { font-size: 1rem; }
  .hero-feature { min-height: 315px; max-width: 500px; margin-inline: auto; padding: 0 18px 0 0; width: 100%; }
  .hero-feature::before { inset: -7px 3px 22px 26px; }
  .hero-feature-photo { height: 296px; border-radius: 105px 24px 24px 24px; }
  .hero-feature-label { bottom: 1px; left: -8px; min-width: 205px; padding: 13px 16px; }
  .categories-section { padding-block: 54px 58px; }
  .section-heading { align-items: start; }
  .section-heading .text-link { align-self: end; font-size: .84rem; }
  .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
  .category-tile { min-height: 119px; padding: 10px 8px; border-radius: 14px; font-size: .75rem; text-align: left; }
  .category-icon { width: 39px; height: 39px; border-radius: 10px; }
  .category-icon svg { width: 23px; height: 23px; }
  .category-tile > svg { display: none; }
  .category-tile > span:nth-child(2) { max-width: 100%; }
  .featured-section { padding-bottom: 62px; }
  .story-section { grid-template-columns: 1fr; gap: 24px; padding-bottom: 70px; }
  .story-photo { height: 300px; border-radius: 25px 105px 25px 25px; }
  .story-copy { max-width: 600px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 17px; }
  .editorial-mark { flex-direction: row; justify-content: start; font-size: .8rem; text-align: left; }
  .editorial-mark svg { width: 38px; height: 38px; }
  .editorial-grid .button { grid-column: 1; }
  .page-heading { padding-block: 38px 28px; }
  .page-heading h1 { font-size: clamp(2.6rem, 10vw, 3.7rem); }
  .detail-grid, .publish-layout { grid-template-columns: 1fr; }
  .detail-sidebar, .preview-panel { position: static; }
  .detail-photo { min-height: 290px; height: 58vw; }
  .detail-description { padding-bottom: 0; }
  .preview-panel { max-width: 540px; }
  .site-footer { padding-bottom: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .toast { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 510px) {
  .header-inner { gap: 12px; }
  .header-cta { max-width: 128px; min-width: 0; min-height: 44px; white-space: normal; text-align: center; line-height: 1.2; }
  .hero-grid { padding-top: 36px; }
  .hero-kicker { font-size: .82rem; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero-search { gap: 8px; min-height: 57px; padding-left: 13px; }
  .hero-search button { min-width: 75px; }
  .hero-search input { font-size: 1rem; }
  .hero-actions { flex-wrap: wrap; gap: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-feature { min-height: 272px; }
  .hero-feature-photo { height: 255px; }
  .hero-feature-label { min-width: 185px; }
  .section-heading { flex-direction: column; align-items: start; gap: 9px; }
  .section-heading .text-link { align-self: start; }
  .category-tile { min-height: 119px; }
  .business-grid, .explore-content .business-grid, .profile-content .business-grid { grid-template-columns: 1fr; }
  .card-photo-link { height: 218px; }
  .filter-panel { padding: 20px; }
  .results-heading { flex-direction: column; gap: 8px; }
  .detail-photo { min-height: 260px; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .detail-sidebar { padding: 23px; }
  .publish-form { padding: 19px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-intro { flex-direction: column; gap: 2px; }
  .form-field.full { grid-column: auto; }
}

@media (max-width: 390px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-tile { min-height: 112px; padding: 12px; font-size: .82rem; }
  .category-icon { width: 43px; height: 43px; }
  .story-photo { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
