/* Independent card component: designs 2 (grid) and 3 (wide list). */
#root .phone-shell[data-directory-layout],#root .phone-shell[data-directory-layout]>.app-content{background:#fff!important}
#root .phone-shell[data-directory-layout] .store-list,#root .phone-shell[data-directory-layout] .pharmacy-list,#root .phone-shell[data-directory-layout] .service-card-grid{display:grid!important;gap:10px!important;grid-template-columns:minmax(0,1fr)!important}
#root .phone-shell[data-directory-layout="grid"] .store-list,#root .phone-shell[data-directory-layout="grid"] .pharmacy-list,#root .phone-shell[data-directory-layout="grid"] .service-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#root .phone-shell[data-directory-layout] [data-directory-card]{display:grid!important;grid-template-columns:clamp(104px,31vw,132px) minmax(0,1fr) 14px!important;align-items:center!important;gap:12px!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:10px!important;margin:0!important;box-sizing:border-box!important;border:1px solid #e3e8e5!important;border-radius:14px!important;background:#fff!important;color:#183d31!important;text-align:start!important;box-shadow:0 2px 5px #153d2510!important;overflow:hidden!important}
#root .phone-shell[data-directory-layout] [data-directory-card]:not(:has(.directory-card-chevron)){grid-template-columns:clamp(104px,31vw,132px) minmax(0,1fr)!important}
#root .phone-shell[data-directory-layout] [data-directory-card]::before,#root .phone-shell[data-directory-layout] [data-directory-card]::after{display:none!important}
#root .phone-shell[data-directory-layout] .directory-card-media{width:100%;aspect-ratio:1;min-width:0;overflow:hidden;border-radius:10px;background:#f6f8f6}
#root .phone-shell[data-directory-layout] .directory-card-media img{display:block;width:100%!important;height:100%!important;aspect-ratio:1!important;object-fit:contain!important;margin:0!important;padding:0!important;border-radius:10px!important}
#root .phone-shell[data-directory-layout] [data-media-fit="cover"] .directory-card-media img{object-fit:cover!important}
#root .phone-shell[data-directory-layout] .directory-card-placeholder{display:grid;place-items:center;width:100%;height:100%;min-height:104px;font-size:42px;color:#07563f}
#root .phone-shell[data-directory-layout] .directory-card-body{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;gap:5px}
#root .phone-shell[data-directory-layout] .directory-card-title{font-family:inherit!important;font-size:16px!important;font-weight:700!important;line-height:1.45!important;color:#173b2e!important;margin:0!important;padding:0!important;overflow-wrap:anywhere}
#root .phone-shell[data-directory-layout] .directory-card-area,#root .phone-shell[data-directory-layout] .directory-card-address{font-family:inherit!important;font-size:12px!important;line-height:1.5!important;color:#6a756e!important;margin:0!important;padding:0!important}
#root .phone-shell[data-directory-layout] .directory-card-state{display:inline-flex;align-items:center;gap:5px;font-size:12px!important;line-height:1.5;background:transparent!important;border:0!important;padding:0!important;color:#78847c}
#root .phone-shell[data-directory-layout] .directory-card-state.is-open{color:#13834f}
#root .phone-shell[data-directory-layout] .directory-card-state i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:currentColor;box-shadow:none!important}
#root .phone-shell[data-directory-layout] .directory-card-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;margin-top:5px}
#root .phone-shell[data-directory-layout] .directory-card-footer .directory-card-metrics{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
#root .phone-shell[data-directory-layout] .directory-card-footer span,#root .phone-shell[data-directory-layout] .directory-card-footer b,#root .phone-shell[data-directory-layout] .directory-card-footer small{font-size:11px!important;line-height:1.5!important;background:transparent!important;border:0!important;padding:0!important;color:#476153!important;box-shadow:none!important}
#root .phone-shell[data-directory-layout] .directory-card-footer .store-rating,#root .phone-shell[data-directory-layout] .directory-card-footer .directory-card-rating{color:#9b7b21!important}
#root .phone-shell[data-directory-layout] .directory-card-chevron{align-self:center;width:14px;color:#284d3b}
#root .phone-shell[data-directory-layout] .directory-card-chevron svg{width:16px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[dir="ltr"] .directory-card-chevron{transform:rotate(180deg)}
#root .phone-shell[data-directory-layout] .directory-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:3px;width:100%}
#root .phone-shell[data-directory-layout] .directory-card-actions a,#root .phone-shell[data-directory-layout] .directory-card-actions button{font-size:11px;min-height:30px;border-radius:7px;margin:0;padding:3px 6px;width:auto}
#root .phone-shell[data-directory-layout="grid"] [data-directory-card]{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:9px!important}
#root .phone-shell[data-directory-layout="grid"] .directory-card-body{flex:1}
#root .phone-shell[data-directory-layout="grid"] .directory-card-media{width:100%;aspect-ratio:1}
#root .phone-shell[data-directory-layout="grid"] .directory-card-chevron{display:none}
#root .phone-shell[data-directory-layout="grid"] .directory-card-title{font-size:15px!important}
#root .phone-shell[data-directory-layout] .directory-layout-toolbar{display:flex;justify-content:flex-end;margin:2px 0 8px}
#root .phone-shell[data-directory-layout] .sahla-search-row .directory-layout-toolbar{display:contents!important}
#root .phone-shell[data-directory-layout] .directory-layout-toolbar button{display:grid;place-items:center;flex:0 0 32px;width:32px!important;height:40px!important;min-height:40px!important;margin:0;padding:6px!important;border:1px solid #e0e7e2!important;border-radius:8px!important;background:#fff!important;color:#07563f;box-shadow:none;cursor:pointer}
#root .phone-shell[data-directory-layout] .directory-layout-toolbar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#root .phone-shell[data-directory-layout] .sahla-search-row{gap:6px}
#root .phone-shell[data-directory-layout] .sahla-search-back{flex:0 0 32px!important;width:32px!important}
#root .phone-shell[data-directory-layout] .sahla-search-submit{flex:0 0 40px!important;width:40px!important}
#root .phone-shell[data-directory-layout] .pharmacy-page-header .directory-layout-toolbar{margin-inline-start:auto}

#root .phone-shell[data-directory-layout] .compact-activity-filters{margin:8px 0!important;padding:0 0 5px!important;gap:7px!important}
#root .phone-shell[data-directory-layout] .compact-activity-filters button{min-height:34px!important;font-size:13px!important;padding:6px 13px!important;font-weight:500!important}
#root .phone-shell[data-directory-layout] .catalog-summary{margin:2px 0!important;padding:3px 0!important;font-size:11px!important;line-height:1.5!important}
#root .phone-shell[data-directory-layout] .municipality-heading{margin:7px 0 6px!important;padding:4px 0!important}
#root .phone-shell[data-directory-layout] .municipality-heading h3{font-size:14px!important;margin:0!important}

/* Reference colors and underline tabs; retain the existing taxonomy. */
#root .phone-shell[data-directory-layout] :is(.compact-activity-filters,.service-specialty-tabs,.pharmacy-service-nav){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;padding:0 0 5px!important;margin:8px 0 12px!important;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow-x:auto;scrollbar-width:none}
#root .phone-shell[data-directory-layout] :is(.compact-activity-filters,.service-specialty-tabs,.pharmacy-service-nav)::-webkit-scrollbar{display:none}
#root .phone-shell[data-directory-layout] :is(.compact-activity-filters,.service-specialty-tabs,.pharmacy-service-nav)>button{position:relative!important;flex:0 0 auto!important;min-height:40px!important;padding:8px 11px 12px!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;color:#111111!important;font-size:13px!important;font-weight:500!important;line-height:1.5!important;box-shadow:none!important;white-space:nowrap}
#root .phone-shell[data-directory-layout] :is(.compact-activity-filters,.service-specialty-tabs,.pharmacy-service-nav)>button[aria-pressed="true"]{color:#07563f!important;background:#fff!important;font-weight:700!important}
#root .phone-shell[data-directory-layout] :is(.compact-activity-filters,.service-specialty-tabs,.pharmacy-service-nav)>button::after{content:none!important}
#root .phone-shell[data-directory-layout] :is(.compact-activity-filters,.service-specialty-tabs,.pharmacy-service-nav)>button[aria-pressed="true"]::after{content:""!important;position:absolute!important;bottom:1px!important;inset-inline:15%!important;height:3px!important;border-radius:3px!important;background:#f4c542!important;display:block!important}
#root .phone-shell[data-directory-layout] .sahla-search-field{min-height:42px!important;height:42px!important;border:0!important;border-radius:10px!important;background:#f0f1f2!important;box-shadow:none!important}
#root .phone-shell[data-directory-layout] .sahla-search-field>svg{display:none!important}
#root .phone-shell[data-directory-layout] .sahla-search-field input{font-size:14px!important;background:transparent!important}
#root .phone-shell[data-directory-layout] .sahla-search-submit{min-height:42px!important;height:42px!important;border-radius:10px!important;background:#07563f!important}
#root .phone-shell[data-directory-layout] .sahla-search-back{min-height:42px!important;height:42px!important;background:transparent!important;border:0!important;color:#173d32!important;border-radius:0!important}
#root .phone-shell[data-directory-layout] .directory-layout-toolbar button{border:0!important;background:transparent!important;color:#07563f!important}
#root .phone-shell[data-directory-layout] nav.sahla-bottom-nav{inset:auto 0 0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;transform:none!important;border:0!important;border-top:1px solid #edf0ed!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;gap:5px!important}
#root .phone-shell[data-directory-layout] nav.sahla-bottom-nav button{background:transparent!important;color:#07563f!important;border:0!important;border-radius:12px!important;font-size:11px!important;min-height:50px!important;padding:5px 2px!important;box-shadow:none!important}
#root .phone-shell[data-directory-layout] nav.sahla-bottom-nav button[aria-current="page"]{background:#f4c542!important;color:#07563f!important}
#root .phone-shell[data-directory-layout] nav.sahla-bottom-nav button svg{width:22px!important;height:22px!important;stroke:currentColor!important}
#root .phone-shell[data-directory-layout] .home-discovery{background:#fff!important;border:0!important;box-shadow:none!important}

#root .phone-shell[data-directory-layout] .directory-animated-tabs{position:relative!important}
#root .phone-shell[data-directory-layout] .directory-animated-tabs>button[aria-pressed=true]::after{content:none!important}
#root .phone-shell[data-directory-layout] [data-directory-tab-line]{position:absolute;left:0;bottom:6px;height:3px;border-radius:3px;background:#f4c542;pointer-events:none}
#root .phone-shell[data-directory-layout] .directory-animated-tabs>button{transition:color 180ms ease}
#root .phone-shell[data-directory-layout] :is(.store-list,.pharmacy-list,.service-card-grid,.artisan-grid,.home-project-list,.discovery-grid,.directory-list,.charity-list){touch-action:pan-y}
@media(prefers-reduced-motion:reduce){#root .phone-shell[data-directory-layout] .directory-animated-tabs>button{transition:none}}

/* White service pages need dark summary text and exclusive map/list views. */
body.customer-theme #root .phone-shell[data-directory-layout] .theme-home-stats,
body.customer-theme #root .phone-shell[data-directory-layout] .theme-home-message{color:#173f31!important;background:#fff!important;text-shadow:none!important;border-color:#e3e8e5!important}
body.customer-theme #root .phone-shell[data-directory-layout] .theme-home-stats :is(span,strong),
body.customer-theme #root .phone-shell[data-directory-layout] .theme-home-message strong{color:#173f31!important}
#root .phone-shell .pharmacy-service .pharmacy-service-nav>button{font-size:clamp(18px,2.5vw,22px)!important;font-weight:700!important;line-height:1.5!important;min-height:54px!important;white-space:normal!important;padding:10px 6px!important}
#root .phone-shell[data-directory-layout] .pharmacy-service [hidden]{display:none!important}
#root .phone-shell .pharmacy-service .pharmacy-map{height:80vh!important;height:80dvh!important;min-height:320px!important;width:100%!important;margin-top:8px!important;box-sizing:border-box}
#root .phone-shell .pharmacy-service[data-ph-view="map"] [data-ph-list]{display:none!important}

/* Tablet directories use the entire page, without a desktop sidebar track. */
@media(min-width:700px){
 body.customer-theme #root>.phone-shell[data-directory-layout]{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;grid-template-columns:none!important}
 body.customer-theme #root>.phone-shell[data-directory-layout]>.app-content{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:12px 16px 90px!important;box-sizing:border-box!important;grid-column:1/-1!important}
 #root .phone-shell[data-directory-layout="grid"] :is(.store-list,.pharmacy-list,.service-card-grid,.artisan-grid,.home-project-list,.discovery-grid,.directory-list,.charity-list){grid-template-columns:repeat(3,minmax(0,1fr))!important}
 #root .phone-shell[data-directory-layout="grid"] .directory-card-media{max-width:180px!important;justify-self:center!important;align-self:center!important}
}
@media(min-width:1000px){#root .phone-shell[data-directory-layout="grid"] :is(.store-list,.pharmacy-list,.service-card-grid,.artisan-grid,.home-project-list,.discovery-grid,.directory-list,.charity-list){grid-template-columns:repeat(4,minmax(0,1fr))!important}}

#root .doctor-map{height:80dvh;min-height:320px;width:100%;border-radius:12px}#root .doctor-view-tabs{display:flex;gap:8px;margin:8px 0}#root .doctor-view-tabs button{padding:8px 16px;border:1px solid #c9d9d0;background:white;color:#173f31;border-radius:8px}#root .doctor-view-tabs button[aria-pressed=true]{background:#07563f;color:white} .doctor-map-pin{border:2px solid white;border-radius:50%;background:#7b837e;box-shadow:0 0 0 1px #cad5cf}.doctor-map-pin.is-open{background:#159447}
#root .service-orders-shortcut{display:none!important}

@media(min-width:700px){body.customer-theme #root>.phone-shell.medical-directory{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;grid-template-columns:none!important}body.customer-theme #root>.phone-shell.medical-directory>.app-content{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:12px 16px 90px!important;box-sizing:border-box!important;grid-column:1/-1!important}}
/* Legacy desktop body padding must not shrink tablet service pages. */
body.customer-theme:has(#root>.phone-shell[data-directory-layout],#root>.phone-shell.medical-directory){padding:0!important}

/* Shared service directories, including artisans and home projects. */
#root .phone-shell[data-directory-layout] :is(.artisan-grid,.home-project-list,.discovery-grid,.directory-list,.charity-list){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%!important;min-width:0!important;margin:12px 0!important}
#root .phone-shell[data-directory-layout="grid"] :is(.artisan-grid,.home-project-list,.discovery-grid,.directory-list,.charity-list){grid-template-columns:repeat(2,minmax(0,1fr))!important}
#root .home-project-directory{width:100%;max-width:none;margin:0;padding:12px;box-sizing:border-box;background:white;color:#173f31}
#root .home-project-directory #surface{width:100%;min-width:0}
#root .home-project-directory .project-open{color:#07563f;font-weight:700;min-height:40px;display:inline-flex;align-items:center;text-decoration:none}
#root .home-project-directory .market-categories{display:flex;overflow-x:auto;white-space:nowrap;gap:12px}
#root .phone-shell[data-directory-layout] .directory-card-actions .doctor-booking-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:44px!important;padding:10px 14px!important;border:0!important;border-radius:12px!important;background:#07563f!important;color:#fff!important;font-family:inherit;font-size:14px;font-weight:700;line-height:1.4;box-shadow:0 3px 9px #07563f18;cursor:pointer}
#root .doctor-booking-button svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#root .doctor-booking-button:disabled{background:#edf1ee!important;color:#63746b!important;box-shadow:none;cursor:default}
#root .doctor-booking-button:focus-visible{outline:3px solid #f4c542;outline-offset:3px}
@media(min-width:700px){#root .phone-shell[data-directory-layout="grid"] :is(.artisan-grid,.home-project-list,.discovery-grid,.directory-list,.charity-list){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:1000px){#root .phone-shell[data-directory-layout="grid"] :is(.artisan-grid,.home-project-list,.discovery-grid,.directory-list,.charity-list){grid-template-columns:repeat(4,minmax(0,1fr))!important}}

#root .home-project-directory [hidden]{display:none!important}

#root .phone-shell[data-directory-layout] [hidden]{display:none!important}
#root .phone-shell[data-directory-layout] .listing-card details{width:100%;padding:0;margin:0;border:0;background:transparent;font-size:13px}
#root .phone-shell[data-directory-layout] .listing-description{max-height:220px;overflow:auto;white-space:pre-wrap;font-size:14px}
#root .free-service-shell{width:100%;max-width:none;margin:0;padding:12px;box-sizing:border-box;background:#fff;color:#173f31}
#root .free-service-shell .directory-manager-toolbar{display:block}
#root .free-service-shell .directory-layout{display:block}
#root .free-service-shell #map{height:80dvh;width:100%;min-height:320px}
#root .free-service-shell .discovery-grid{margin:12px 0}
#root .free-service-shell .discovery-intro{display:none}
#root .free-service-shell .section-heading>span{display:none}

#root .phone-shell[data-directory-layout] :is(.directory-list,.charity-list)>.section-heading{grid-column:1/-1}
#root .phone-shell[data-directory-layout] .directory-card-actions form{min-width:0;width:100%;margin:0}
#root .phone-shell[data-directory-layout] .directory-card-actions input{min-width:0;width:100%}


#root .phone-shell .service-directory-title{display:block!important;font-size:22px!important;font-weight:800!important;line-height:1.45!important;color:#111!important;margin:0 0 12px!important;padding:0!important;text-align:start}
#root .phone-shell .sahla-search-row{display:flex;align-items:center;flex-wrap:nowrap;gap:6px}
#root .phone-shell .sahla-search-field{flex:1;min-width:0}

/* Skip layout/paint for off-screen directory cards on long mobile lists. */
@supports (content-visibility:auto){
 [data-directory-card]{content-visibility:auto;contain-intrinsic-size:auto 180px}
 [data-directory-card]:focus-within{content-visibility:visible}
}


/* Keep the chosen list/grid geometry while catalog data is loading. */
#root .phone-shell[data-directory-layout] .catalog-skeleton{grid-template-columns:minmax(0,1fr);gap:10px}
#root .phone-shell[data-directory-layout] .catalog-skeleton>div{display:grid;grid-template-columns:clamp(104px,31vw,132px) minmax(0,1fr);align-items:center;gap:12px;height:auto;min-height:124px;box-sizing:border-box;background:#f7faf8;border:1px solid #e3e8e5;border-radius:14px;padding:10px}
#root .phone-shell[data-directory-layout] .catalog-skeleton i{height:auto;aspect-ratio:1;width:100%;background:#e8efeb}
#root .phone-shell[data-directory-layout] .catalog-skeleton span{width:80%;margin:0;background:#e8efeb}
#root .phone-shell[data-directory-layout="grid"] .catalog-skeleton{grid-template-columns:repeat(2,minmax(0,1fr))}
#root .phone-shell[data-directory-layout="grid"] .catalog-skeleton>div{display:flex;flex-direction:column;align-items:stretch;gap:10px}

html[data-experience-directory] body,html[data-experience-directory] .experience-page{background:#fff;color:#173b2e}html[data-experience-directory] .experience-page>header,html[data-experience-directory] #title{display:none}
