/* Public marketplace and account screens */
:root {
  color: #222b26;
  background: #fff;
  --ink: #222b26;
  --dark: #174c3b;
  --green: #215e48;
  --muted: #58645c;
  --line: #dce3dd;
  --mint: #eef5ec;
  --paper: #fff;
}
body { font-family: "ProAider Inter", Inter, system-ui, sans-serif; font-size: 15px; font-weight: 400; line-height: 1.55; }
.shell, .topbar, .footer { width: 100%; max-width: 1360px; padding-inline: clamp(16px,4vw,48px); }
.shell { padding-top: 24px; }
.topbar { min-height: 72px; }
.market-topbar nav { gap: clamp(9px,1.6vw,22px); font-size: 14px; }
.market-topbar nav a, .market-topbar #post-link { font-weight: 560; }
.market-topbar nav a:first-child { display: inline; }
.brand { font-size: 21px; font-weight: 680; letter-spacing: -.035em; }
.brand small { font-size: 9px; font-weight: 620; }
h1, .detail-title, .provider-hero .detail-title, .offer-heading h1 { font-size: clamp(25px,3vw,34px); line-height: 1.18; font-weight: 650; letter-spacing: -.03em; overflow-wrap: anywhere; }
h2 { font-size: clamp(19px,1.8vw,23px); line-height: 1.25; font-weight: 630; }
h3 { font-size: 16px; line-height: 1.38; font-weight: 620; }
strong { font-weight: 620; }
p { overflow-wrap: break-word; }
small { font-size: 13px; }
.kicker { font-size: 11px; font-weight: 650; }
.kicker:empty { display: none; }
label, legend { font-size: 14px; font-weight: 550; }
input, select, textarea { color: var(--ink); font-size: 15px; font-weight: 400; min-width: 0; padding: 9px 11px; border-radius: 8px; border-color: #cbd5cc; }
select { padding-right: 9px; }
fieldset { min-inline-size: 0; border: 1px solid var(--line); border-radius: 8px; }
input[type="file"] { max-width: 100%; }
input[type="file"]::file-selector-button { background: var(--mint); border: 0; border-radius: 5px; margin-right: 8px; padding: 6px 8px; color: var(--green); }
.btn { font-size: 14px; font-weight: 600; min-height: 42px; padding: 8px 13px; border-radius: 8px; max-width: 100%; overflow-wrap: anywhere; }
.btn.link { min-height: 36px; }
.card { padding: clamp(14px,2.2vw,22px); border-radius: 11px; box-shadow: none; min-width: 0; }
.card > *, .stack > *, .form > * { min-width: 0; }
.form, .stack { gap: 14px; }
.pagehead { gap: 7px; margin: 0 0 15px; }
.pill { padding: 3px 8px; font-size: 12px; font-weight: 580; }
.price { font-size: 20px; font-weight: 650; }
summary { font-size: 14px; font-weight: 600; cursor: pointer; }
.breadcrumbs { display:flex; align-items:center; flex-wrap:wrap; gap: 8px; font-size: 13px; margin-bottom: 18px; color: var(--muted); }
.breadcrumbs a { text-decoration:none; }
.breadcrumbs a:hover { text-decoration:underline; }

.mode-switch { display:flex; align-items:center; background:#f1f5f0; padding:3px; border:1px solid var(--line); border-radius:9px; gap:2px; }
.mode-switch button { min-height:33px; padding:4px 10px; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:13px; font-weight:600; }
.mode-switch [aria-pressed="true"] { background:#fff; color:var(--dark); box-shadow:0 1px 3px #253b2520; }
.workspace-nav { gap:7px; margin-bottom:12px; }
.workspace-nav .btn { min-height:37px; }

.hero { background:#eaf3e6; border-color:#e0ebdd; }
.hero h1 { font-size:clamp(32px,4.3vw,54px); }
.hero-copy > p:not(.kicker) { max-width:47ch; }
.hero-actions { gap:10px 17px; font-size:14px; font-weight:550; }
.hero-actions a:not(.btn) { text-underline-offset:3px; }
.service-tile { text-decoration:none; }
.market-choice { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px 16px; }
.market-choice > div { flex:1 1 235px; min-width:0; }
.market-choice .btn { flex:0 0 auto; min-width:max-content; white-space:normal; }
.steps article { padding:15px; }
.steps article p { font-size:14px; color:var(--muted); }

.explore-heading { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:8px 18px; margin-bottom:18px; }
.explore-heading p { color:var(--muted); margin-top:5px; }
.explore-search { max-width:720px; display:flex; gap:8px; margin-bottom:24px; }
.explore-search label { flex:1; display:flex; gap:8px; align-items:center; padding-left:12px; border:1px solid #cbd5cc; border-radius:8px; min-width:0; }
.explore-search svg { flex:0 0 18px; color:var(--muted); }
.explore-search input { border:0; background:transparent; padding-left:0; outline-offset:0; }
.explore-layout { display:grid; grid-template-columns:minmax(185px,218px) minmax(0,1fr); gap:clamp(20px,3vw,37px); align-items:start; }
.explore-filters { border:1px solid var(--line); border-radius:9px; padding:12px 14px; }
.explore-filters summary { padding:0; }
.filter-fields { display:grid; gap:13px; margin-top:12px; }
.filter-fields select { font-size:14px; }
.filter-fields .near-button { justify-self:start; margin-top:-8px; }
.filter-message { font-size:13px; }
.price-filter { padding:0; border:0; margin:0; }
.price-filter legend { padding:0; margin-bottom:5px; }
.price-filter .two { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.result-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:9px; }
.result-mode { display:flex; flex-wrap:wrap; gap:5px; }
.result-mode button { padding:7px 10px; min-height:37px; font-size:14px; font-weight:570; color:var(--muted); border:1px solid var(--line); border-radius:7px; background:#fff; }
.result-mode [aria-pressed="true"] { background:var(--mint); color:var(--dark); border-color:#a9c4af; }
.result-sort select { font-size:14px; }
.results-count { margin:12px 0 15px; font-size:14px; }
.explore-main #gigs { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 16px; }
.explore-main #catalog-companies { grid-template-columns:repeat(3,minmax(0,1fr)); }
#catalog-empty { margin-top:12px; }

.gig-card { border:0; padding:0; background:transparent; box-shadow:none; overflow:visible; border-radius:0; min-width:0; }
.gig-card:hover { transform:none; }
.gig-card .gig-image { display:block; width:100%; overflow:hidden; border-radius:9px; background:#f1f4f0; border:1px solid #e9eeea; }
.gig-card .gig-image img { display:block; width:100%; height:auto; aspect-ratio:1.63; object-fit:cover; transition:filter .15s ease; }
.gig-card .gig-image:hover img { filter:brightness(.95); }
.gig-body { padding:9px 0 0; gap:5px; }
.gig-body h3 { font-size:15px; font-weight:500; line-height:1.42; }
.gig-body h3 a, .gig-seller { color:var(--ink); text-decoration:none; }
.gig-body h3 a:hover, .gig-seller:hover { text-decoration:underline; text-underline-offset:3px; }
.gig-body h3 a { overflow-wrap:anywhere; }
.gig-seller { display:flex; align-items:center; min-width:0; gap:7px; font-size:13px; font-weight:600; }
.gig-seller > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gig-card .gig-seller img, .seller-initial { width:24px; height:24px; flex:0 0 24px; border-radius:50%; object-fit:contain; }
.seller-initial { display:inline-grid; place-items:center; background:var(--mint); color:var(--green); font-size:10px; font-weight:650; }
.catalog-company .seller-initial { width:42px; height:42px; flex-basis:42px; font-size:14px; }
.gig-price { margin:0; padding:2px 0 0; border:0; font-size:14px; }
.gig-body .gig-price strong { color:var(--ink); font-weight:640; }
.gig-rating { margin:0; font-size:13px; }
.gig-body .gig-rating strong { color:var(--ink); }

.service-layout { grid-template-columns:minmax(0,1.65fr) minmax(285px,1fr); grid-template-areas:"intro booking" "gallery booking" "body booking"; gap:16px clamp(22px,5vw,62px); }
.service-intro { grid-area:intro; display:grid; gap:11px; }
.service-gallery { grid-area:gallery; }
.service-body { grid-area:body; }
.service-booking { grid-area:booking; align-self:start; }
.service-booking .booking-card { position:static; }
.service-booking .booking-surface, .offer-checkout .booking-surface { padding:clamp(14px,2vw,22px); }
.service-rating { color:var(--ink); font-size:13px; }
.listing-provider a { font-size:14px; font-weight:600; }
.listing-provider img { flex:none; object-fit:contain; }
.gallery-stage { position:relative; }
.gallery-stage .gallery { width:100%; max-height:495px; aspect-ratio:1.6; object-fit:cover; border-radius:10px; }
.gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); width:36px; height:36px; padding:0; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); font-size:22px; }
.gallery-arrow.prev { left:9px; }.gallery-arrow.next { right:9px; }
.service-gallery .thumbs { margin-top:8px; }
.service-actions .btn { flex:1 1 auto; }
.section-links { display:flex; flex-wrap:wrap; gap:9px 16px; border-bottom:1px solid var(--line); padding:10px 0; }
.section-links a { font-size:14px; color:var(--green); text-decoration:none; font-weight:560; }
.section-links a:hover { text-decoration:underline; }
.service-section { display:grid; gap:10px; border-bottom:1px solid var(--line); padding:0 0 16px; scroll-margin:16px; }
.service-section details { border-top:1px solid var(--line); padding-top:8px; }
.service-section details > :not(summary) { margin-top:6px; }
.service-section > .card { border:0; padding:0; }
.package-picker { display:grid; gap:9px; }
.package-options { display:flex; gap:5px; flex-wrap:wrap; padding:4px; background:#f4f6f3; border:1px solid var(--line); border-radius:9px; }
.package-options button { flex:1 1 76px; min-width:0; background:transparent; border:1px solid transparent; border-radius:6px; min-height:40px; padding:5px 6px; color:var(--muted); font-size:13px; font-weight:560; overflow-wrap:anywhere; }
.package-options [aria-pressed="true"] { background:#fff; border-color:#b1c9b6; color:var(--dark); font-weight:640; }
.package-heading { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; align-items:center; margin-top:3px; }
.package-heading p { font-size:18px; font-weight:640; color:var(--ink); }
.package-duration,.package-description { font-size:14px; }
.package-total { margin:0; padding-top:8px; border-top:1px solid var(--line); font-size:17px!important; }
.package-comparison { overflow:auto; }
.package-comparison table { border-collapse:collapse; width:100%; font-size:14px; text-align:left; }
.package-comparison th, .package-comparison td { padding:9px; border-bottom:1px solid var(--line); vertical-align:top; }
.package-comparison thead { background:#f3f7f2; }
.package-comparison td:last-child,.package-comparison th:last-child { white-space:nowrap; }
.package-comparison small { display:block; font-weight:400; color:var(--muted); }
.booking-fields { border-top:1px solid var(--line); padding-top:13px; }
@media (min-width:850px) and (min-height:725px) { .service-booking:not(:has(.checkout-open)) { position:sticky; top:18px; } }

.offer-layout { max-width:none; margin:0; grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr); gap:clamp(18px,4vw,44px); align-items:start; }
.offer-summary { border:0; box-shadow:none; border-radius:0; }
.offer-heading { display:grid; gap:10px; margin-bottom:15px; }
.offer-photo { position:static; z-index:auto; display:block; width:100%; height:auto; aspect-ratio:1.6; max-height:445px; object-fit:cover; border-radius:10px; }
.offer-info { padding:15px 0 0; }
.offer-total { display:flex; gap:8px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.offer-total strong { font-size:21px; color:var(--ink); }
.offer-expiry { border-top:0; padding:0 0 10px; margin:0; border-bottom:1px solid var(--line); }
#accept-offer .auth-form h2 { font-size:19px; }
.auth-card { width:min(100%,460px); margin:clamp(14px,4vw,48px) auto; }
.auth-form h1,.auth-form h2 { font-size:23px; line-height:1.25; }
.auth-form .row { gap:5px 13px; }
.auth-form .row .btn { font-size:13px; }
.account-settings, .application-shell { max-width:760px; margin:0 auto; }
.account-settings .form + .form, .business-documents { border-top:1px solid var(--line); padding-top:14px; }
.application-steps { display:flex; flex-wrap:wrap; gap:8px 18px; color:var(--muted); font-size:14px; padding-left:22px; margin:0; }
.application-steps [aria-current="step"] { color:var(--dark); font-weight:650; }
.address-row > div { flex:1 1 180px; }
.account-addresses > div, [data-private-record] { padding-top:10px; }
.doc-state { border-bottom:1px solid var(--line); padding-bottom:10px; }
.business-documents .doc-state { border-bottom:1px solid var(--line); padding-bottom:8px; }

@media (max-width:1000px) {
  .explore-main #gigs,.explore-main #catalog-companies { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .shell { padding-top:15px; }
  .market-topbar { min-height:65px; }
  .market-topbar nav { font-size:13px; gap:7px 12px; }
  .market-topbar nav:has(#bookings-link:not([hidden])) { width:auto; }
  .explore-layout { grid-template-columns:minmax(0,1fr); gap:15px; }
  .explore-search { margin-bottom:15px; }
  .filter-fields { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:10px; }
  .filter-fields .near-button { margin:14px 0 0; align-self:start; }
  [data-location-status] { grid-column:1/-1; }
  .service-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"intro" "gallery" "booking" "body"; }
  .offer-layout { grid-template-columns:minmax(0,1fr); }
  .service-layout:has(.mobile-book) { padding-bottom:10px; }
}
@media (max-width:390px) {
  .explore-main #gigs,.explore-main #catalog-companies { gap:13px 10px; }
  .market-choice > div { flex-basis:100%; }
  .hero-actions a { font-size:13px; }
  .gig-body h3 { font-size:14px; }
  .gig-seller { font-size:12px; }
}
