/* V17: bounded media, content in document flow, and shared mobile safe areas. */
html {scroll-padding-bottom:calc(var(--ux-bottom-nav-height,66px) + var(--ux-safe-bottom,0px) + 24px)}
html body .brand-logo,html body .brand-mark {background:transparent!important;box-shadow:none!important;border:0!important;filter:none!important}
html body .topbar.premium-navbar-v3 .brand-mark {object-fit:contain;border-radius:0!important;border:0!important;box-shadow:none!important;filter:none!important}
html body.premium-ux[data-beta-ui] #explorar .catalog-card {flex-basis:264px;max-width:100%;border-radius:18px}
html body.premium-ux[data-beta-ui] #explorar .catalog-card .catalog-photo {aspect-ratio:4/5;height:auto;min-height:0;max-height:none}
html body.premium-ux[data-beta-ui] #explorar .catalog-card .catalog-photo.da-media-empty {aspect-ratio:4/5;min-height:0}
html body.premium-ux[data-beta-ui] #explorar .catalog-card-body {gap:5px;padding:12px}
html body.premium-ux[data-beta-ui] #explorar .catalog-card-title h3 {font-size:1rem;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html body.premium-ux[data-beta-ui] #explorar .catalog-card .catalog-provider-link {font-size:.75rem}
html body.premium-ux[data-beta-ui] #explorar .catalog-card .catalog-location {font-size:.72rem}
html body.premium-ux[data-beta-ui] #explorar .catalog-card .catalog-price {font-size:1.2rem}
html body.premium-ux[data-beta-ui] #explorar .catalog-card .catalog-unit {font-size:.68rem}
html body.premium-ux[data-beta-ui] #explorar .catalog-card .catalog-card-footer {padding-top:8px;margin-top:3px}
html body.premium-ux[data-beta-ui] #explorar .catalog-card [data-detail] {font-size:.72rem;min-height:44px;padding:0}
html body.premium-ux[data-beta-ui] #explorar .catalog-row[data-layout=grid] .catalog-rail {grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr))}
html body.premium-ux[data-beta-ui] #explorar .catalog-row[data-layout=grid] .catalog-card {max-width:340px;width:100%;justify-self:center}
#providerPublicProfile .pp-cover {aspect-ratio:16/9;max-height:440px;border-radius:18px}
#providerPublicProfile .pp-cover.da-media-empty {aspect-ratio:auto;min-height:76px;max-height:100px}
#providerPublicProfile .pp-cover.da-media-empty span {font-size:.78rem}
#providerPublicProfile .pp-shell {padding-bottom:calc(var(--ux-bottom-nav-height,66px) + var(--ux-safe-bottom,0px) + 24px)}
#providerPublicProfile .pp-reserve-bar {position:static;transform:none;inset:auto;width:100%;max-width:none;margin:16px 0;box-shadow:none}
#providerPublicProfile .pp-tabs {margin-top:14px;scroll-margin-block:90px}
#providerPublicProfile .pp-content {margin-top:14px}
#providerPublicProfile .pp-service-photo .da-media {aspect-ratio:4/3}
/* Services use document scrolling; only the gallery remains a horizontal rail. */
#providerPublicProfile .pp-services {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;overflow:visible;scroll-snap-type:none}
#providerPublicProfile .pp-services .pp-service {display:grid;grid-template-columns:clamp(72px,20vw,112px) minmax(0,1fr) 44px;align-items:center;gap:12px;padding:12px;min-width:0;border:1px solid #36415a;border-radius:16px}
#providerPublicProfile .pp-services .pp-service-photo {border-radius:10px;overflow:hidden;min-height:44px}
#providerPublicProfile .pp-services .pp-service-photo .da-media {aspect-ratio:4/3;border-radius:10px;min-height:0}
#providerPublicProfile .pp-services .pp-service-photo .da-media-empty {flex-direction:column;gap:2px;padding:4px}
#providerPublicProfile .pp-services .pp-service-photo .da-media-empty span {font-size:.6rem;line-height:1.2;text-align:center}
#providerPublicProfile .pp-services .pp-service-photo .da-media-empty svg {width:18px;height:18px;min-width:18px}
@media (max-width:360px) {#providerPublicProfile .pp-tabs {grid-template-columns:repeat(3,minmax(0,1fr)) minmax(82px,1.2fr)}}
#providerPublicProfile .pp-services .pp-service-data {padding:0;min-width:0}
#providerPublicProfile .pp-services .pp-service h3 {font-size:1rem;line-height:1.35}
#providerPublicProfile .pp-services .pp-service .pp-service-next {position:static;width:44px;height:44px;min-width:44px;min-height:44px}
#providerPublicProfile .pp-gallery-item .da-media {aspect-ratio:4/5}
#providerPublicProfile .pp-introduction {margin:12px 0;line-height:1.55}
#providerPublicProfile .pp-avatar {width:64px;height:64px}
#providerPublicProfile .pp-cover img {object-position:var(--media-x,50%) var(--media-y,50%)}
.v17-geo-results {display:grid;gap:5px;max-height:min(42dvh,320px);overflow:auto;overscroll-behavior:contain;margin-top:12px}
.v17-geo-results[hidden] {display:none}
.v17-geo-results button {min-height:48px;text-align:left;border:1px solid #48516b;border-radius:10px;padding:10px 12px;background:#18213a;color:#f4f6fc;font:inherit;font-size:.9rem}
.v17-geo-results button[aria-selected=true] {border-color:#bea4ee;background:#36234f}
.v17-geo-field {display:flex;align-items:center;gap:6px}
.v17-geo-field input {min-width:0;flex:1;min-height:48px}
.v17-geo-field button {min-width:44px;min-height:44px}
#v17LocationDialog {width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;border:1px solid #66527e;border-radius:20px;padding:20px;background:#10182b;color:#f4f6fc}
#v17LocationDialog::backdrop {background:#030712ba}
#v17LocationDialog h2 {font-size:1.25rem;color:#fff;margin:0 0 16px}
#v17LocationDialog header {display:flex;justify-content:space-between;align-items:center;gap:8px}
#v17LocationDialog p {color:#c6cbd9;font-size:.8rem;line-height:1.5}
#v17LocationDialog [data-location-all] {margin-top:12px;min-height:44px}
.v17-identity-editor {border:1px solid #424b63;border-radius:16px;padding:16px;margin-block:16px;display:grid;gap:12px}
.v17-identity-editor h4 {margin:0;font-size:1rem}
.v17-identity-assets {display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}
.v17-identity-assets label {display:grid;gap:8px;font-size:.85rem;min-width:0}
.v17-identity-assets input {max-width:100%;min-width:0;min-height:44px}
.v17-identity-assets input[type=range],
[data-builder-image-field=focalX], [data-builder-image-field=focalY] {accent-color:#c9adff!important}
.v17-identity-assets .da-media {aspect-ratio:16/9;border-radius:12px;min-height:100px}
.v17-identity-assets [data-identity-kind=avatar] .da-media {aspect-ratio:1;width:100px}
.v17-identity-editor p {font-size:.8rem;line-height:1.5;color:#c6cbd9;margin:0}
.service-builder-gallery-item .v17-framing-preview {aspect-ratio:4/5;width:100%;height:auto;max-height:none;border-radius:12px}
.service-builder-gallery-item .v17-framing-preview img {height:100%;width:100%;object-fit:cover}
.service-builder-gallery-item .v17-framing-preview.da-media-contain img {object-fit:contain}
html body.premium-ux[data-beta-ui] .mobile-saved-heading {display:grid;grid-template-columns:40px 1fr;gap:5px 12px;text-align:left;padding:14px 0}
html body.premium-ux[data-beta-ui] .mobile-saved-heading[hidden] {display:none}
html body.premium-ux[data-beta-ui] .mobile-saved-heading > svg {width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;padding:5px;grid-row:1/3;align-self:center;border:0}
.mobile-saved-heading h1 {margin:0}.mobile-saved-heading p {margin:0;grid-column:2}
.mobile-saved-heading button {grid-column:2;justify-self:start;min-height:44px}
html body.premium-ux:not(.is-splash-view) .app-shell > .privacy-entry {display:block;position:static;margin:24px 16px calc(var(--ux-bottom-nav-height,66px) + var(--ux-safe-bottom,0px) + 24px);width:fit-content;min-height:44px;line-height:44px;color:#c9b8ff}
@media(max-width:760px) {
 html body.premium-ux[data-beta-ui] #explorar {padding-top:12px!important;gap:12px!important}
 html body.premium-ux[data-beta-ui] #explorar #premiumFilterBar {gap:10px!important;margin-bottom:4px!important}
 html body.premium-ux[data-beta-ui] #explorar #listingGrid {margin-top:0!important;padding-top:0!important}
 html body.premium-ux[data-beta-ui] #explorar .catalog-row-heading {margin-bottom:8px}
 html body.premium-ux[data-beta-ui] #explorar .catalog-card {flex-basis:min(76vw,264px)}
 html body.premium-ux[data-beta-ui] #explorar #mobileCategories {padding-top:4px!important;margin-block:10px!important}
 #providerPublicProfile #provider-public-title {font-size:1.65rem!important;line-height:1.15!important}
 #providerPublicProfile .pp-header {height:62px;padding:9px 0}
 .v17-identity-assets {grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce) {.v17-geo-results {scroll-behavior:auto}}

/* Narrow screens show one readable step title and five progress bars. All five
   labels remain in the accessibility tree, with aria-current on the active step. */
#publicar .service-wizard-current-label {display:none}
@media(max-width:640px) {
 #loginDialog .auth-role-options {grid-template-columns:minmax(0,1fr)!important}
 #loginDialog .auth-role-options button > span {min-width:0;white-space:normal;overflow-wrap:anywhere}
 #loginDialog .auth-role-options small {display:block;line-height:1.4}
 #publicar .service-wizard-current-label {display:block;color:#f5f5f7;font-size:.9rem;line-height:1.4;overflow-wrap:anywhere}
 #publicar .service-wizard-progress ol {gap:6px!important;margin:0;padding:0;min-width:0}
 #publicar .service-wizard-progress li {position:relative;min-width:0;padding:0!important;height:4px;list-style:none}
 #publicar .service-wizard-step-label {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
}

/* Keep complete save labels inside their controls on narrow private profiles. */
:is(#providerOperationalPanels, #providerWizardIdentity) [data-provider-general-save].secondary-action,
#providerOperationalPanels [data-identity-save] {
 min-width:0;max-width:100%;height:auto;min-height:44px;
 white-space:normal;overflow-wrap:anywhere;line-height:1.35;padding:12px 16px;
}

/* Private profile headings no longer have a separate step-number column. */
#providerOperationalPanels .provider-setup-section-heading {
 grid-template-columns:minmax(0,1fr);
}
#providerOperationalPanels .provider-setup-section-heading > div {min-width:0}

/* Capacitor leaves insets to CSS. Keep header controls below the iOS status
   area and outside landscape cutouts; zero insets retain the web geometry. */
body.premium-ux {
 --ux-safe-top:max(env(safe-area-inset-top,0px),var(--safe-area-inset-top,0px));
 --ux-safe-left:max(env(safe-area-inset-left,0px),var(--safe-area-inset-left,0px));
 --ux-safe-right:max(env(safe-area-inset-right,0px),var(--safe-area-inset-right,0px));
 --ux-header-height:92px;--ux-header-padding:14px;--ux-header-inline:clamp(28px,2.25vw,40px);
 --ux-sticky-top:calc(80px + var(--ux-safe-top));
}
html body.premium-ux[data-beta-ui] .app-shell > .topbar.premium-navbar-v3 {
 height:calc(var(--ux-header-height) + var(--ux-safe-top))!important;
 min-height:calc(var(--ux-header-height) + var(--ux-safe-top))!important;
 padding-top:calc(var(--ux-header-padding) + var(--ux-safe-top))!important;
 padding-left:max(var(--ux-header-inline),var(--ux-safe-left))!important;
 padding-right:max(var(--ux-header-inline),var(--ux-safe-right))!important;
}
body.premium-ux #providerPublicProfile .pp-header {
 --ux-profile-header-height:76px;--ux-profile-header-padding:14px;
 height:calc(var(--ux-profile-header-height) + var(--ux-safe-top));
 padding-top:calc(var(--ux-profile-header-padding) + var(--ux-safe-top));
 padding-left:var(--ux-safe-left);padding-right:var(--ux-safe-right);
}
@media(max-width:900px) {
 body.premium-ux {--ux-header-height:76px;--ux-header-padding:10px;--ux-header-inline:14px}
}
@media(max-width:760px) {
 body.premium-ux {--ux-sticky-top:calc(78px + var(--ux-safe-top))}
 body.premium-ux #providerPublicProfile .pp-header {--ux-profile-header-height:62px;--ux-profile-header-padding:9px}
}
