/* Medyaf mobile marketplace surfaces — v72 */
.mobile-marketplace-home,.mobile-services-browser,.mobile-marketplace-nav,.mobile-service-book-link,.service-package-mobile-badge{display:none}

@media (max-width:820px){
  :root{--mobile-market-maroon:#78172a;--mobile-market-maroon-dark:#5c121f;--mobile-market-gold:#c79a39;--mobile-market-ink:#20181b;--mobile-market-muted:#8d8588;--mobile-market-line:#ece7e5;--mobile-market-bg:#f8f7f6}
  body.home-has-fullscreen-hero,body.marketplace-services-page{padding-bottom:calc(94px + max(env(safe-area-inset-bottom,0px),14px))}

  /* Public header: compact and app-like while preserving Medyaf identity. */
  .site-header{position:sticky;top:0;z-index:900;padding:9px 0!important;background:rgba(255,255,255,.97);border-bottom:1px solid #eee9e7;box-shadow:none!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  .site-header .nav-shell{min-height:58px;display:flex;align-items:center;gap:9px}
  .site-header .brand{font-size:20px;gap:8px;margin-inline-end:auto}.site-header .brand-mark{width:42px;height:42px;border-radius:14px;font-size:20px}.site-header .brand>span:last-child{font-weight:900}
  .site-header .nav-toggle{order:10;width:44px;height:44px;border:1px solid var(--mobile-market-line);border-radius:14px;background:#fff;display:flex;justify-content:center;align-items:center;gap:4px;padding:10px}
  .site-header .nav-actions{gap:7px}.site-header .language-switch{height:44px;padding:0 10px;border:1px solid var(--mobile-market-line);border-radius:14px;background:#fff;font-size:11px}.site-header .language-switch-icon{font-size:15px}
  .site-header .nav-actions>.link-button,.site-header .nav-actions>.btn{display:none!important}.site-header .nav-user-group .account-copy,.site-header .nav-user-group .nav-logout-form{display:none!important}.site-header .account-link{padding:0;border:0;background:transparent}.site-header .account-link .avatar-mini{width:42px;height:42px;border-radius:14px;background:var(--mobile-market-maroon);color:#fff}
  .site-header .main-nav{top:72px!important;right:12px!important;left:12px!important;border-radius:20px!important;padding:12px!important;box-shadow:0 24px 50px -32px rgba(48,16,23,.55)!important}
  /* The desktop fullscreen-hero rules make header controls white until scroll.
     Mobile home always uses a white app bar, so keep every control visible immediately. */
  body.home-has-fullscreen-hero .site-header,
  body.home-has-fullscreen-hero .site-header:not(.scrolled){opacity:1!important;visibility:visible!important;transform:none!important;color:var(--mobile-market-maroon-dark)!important}
  body.home-has-fullscreen-hero .site-header:not(.scrolled) .brand,
  body.home-has-fullscreen-hero .site-header:not(.scrolled) .language-switch{color:var(--mobile-market-maroon-dark)!important}
  body.home-has-fullscreen-hero .site-header:not(.scrolled) .nav-toggle span{background:var(--mobile-market-maroon-dark)!important}
  body.home-has-fullscreen-hero .site-header:not(.scrolled) .language-switch{border-color:var(--mobile-market-line)!important;background:#fff!important;backdrop-filter:none!important}
  body.home-has-fullscreen-hero .site-header:not(.scrolled) .account-link{color:var(--mobile-market-maroon-dark)!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}

  /* Public mobile home replaces the desktop marketing stack. */
  body.home-has-fullscreen-hero:not(.builder-preview-page) #main-content>[data-home-section]{display:none!important}
  .mobile-marketplace-home{display:block;background:var(--mobile-market-bg);min-height:calc(100dvh - 72px);padding:0 14px 28px;color:var(--mobile-market-ink)}
  .mobile-home-search-band{margin:0 -14px 18px;padding:17px 14px 22px;background:linear-gradient(145deg,var(--mobile-market-maroon-dark),var(--mobile-market-maroon));border-radius:0 0 28px 28px}
  .mobile-home-search{height:58px;display:grid;grid-template-columns:28px minmax(0,1fr) 48px;align-items:center;gap:7px;padding:4px 5px 4px 12px;border-radius:19px;background:#fff}
  [dir="rtl"] .mobile-home-search{padding:4px 12px 4px 5px}.mobile-home-search>span{display:grid;place-items:center;color:#9d9396}.mobile-home-search>span .ui-icon{width:20px;height:20px}.mobile-home-search input{min-width:0;width:100%;height:48px;border:0;outline:0;background:transparent;font-size:16px;color:#2b2325;font-weight:700}.mobile-home-search input::placeholder{color:#aaa1a4;font-weight:600}.mobile-home-search button{width:48px;height:48px;border:0;border-radius:15px;background:#f7eef0;color:var(--mobile-market-maroon);display:grid;place-items:center}
  .mobile-home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:26px}.mobile-home-actions a{min-height:106px;padding:15px;display:flex;flex-direction:column;justify-content:center;gap:11px;border:1px solid var(--mobile-market-line);border-radius:21px;background:#fff;text-decoration:none;color:var(--mobile-market-ink);box-shadow:0 15px 28px -26px rgba(48,20,26,.52)}.mobile-home-actions a>span{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#f8edef;color:var(--mobile-market-maroon)}.mobile-home-actions a.mobile-home-studio>span{background:linear-gradient(145deg,#8f2036,#681326);color:#fff}.mobile-home-actions a:nth-child(2)>span{background:#fbf3df;color:#9f6b09}.mobile-home-actions a:nth-child(3)>span{background:#edf7f2;color:#157355}.mobile-home-actions a:nth-child(4)>span{background:#f2eef7;color:#755493}.mobile-home-actions .ui-icon{width:21px;height:21px}.mobile-home-actions strong{font-size:14px;font-weight:900}
  .mobile-home-block{margin:0 -14px 26px}.mobile-home-block-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;margin-bottom:12px}.mobile-home-block-head h2{margin:0;font:900 21px/1.25 'Cairo',sans-serif;color:var(--mobile-market-ink)}.mobile-home-block-head a{font-size:11px;font-weight:800;color:#776a6e;text-decoration:none}
  .mobile-category-row{display:flex;gap:11px;padding:0 14px 7px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.mobile-category-row::-webkit-scrollbar{display:none}.mobile-category-row a{scroll-snap-align:start;flex:0 0 86px;text-align:center;text-decoration:none;color:inherit}.mobile-category-row a>span{width:76px;height:76px;margin:0 auto 7px;border:3px solid #fff;border-radius:22px;display:block;overflow:hidden;background:#eee;box-shadow:0 10px 22px -19px rgba(42,22,28,.6)}.mobile-category-row img{width:100%;height:100%;object-fit:cover;display:block}.mobile-category-row strong{display:block;font-size:11px;line-height:1.25;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:0 14px}.mobile-feature-card{min-width:0;border:1px solid var(--mobile-market-line);border-radius:20px;overflow:hidden;background:#fff;color:inherit;text-decoration:none;box-shadow:0 14px 28px -25px rgba(47,20,27,.58)}.mobile-feature-media{height:142px;position:relative;display:block;background:#eee;overflow:hidden}.mobile-feature-media img{width:100%;height:100%;object-fit:cover;display:block}.mobile-feature-media>b,.mobile-feature-media>em{position:absolute;top:9px;padding:6px 8px;border-radius:10px;font-size:9px;font-weight:900;font-style:normal;line-height:1}.mobile-feature-media>b{inset-inline-end:9px;background:#fff;color:#5b450f}.mobile-feature-media>em{inset-inline-start:9px;background:var(--mobile-market-maroon);color:#fff}.mobile-feature-copy{min-height:148px;padding:11px;display:flex;flex-direction:column}.mobile-feature-copy>strong{font-size:14px;line-height:1.45;font-weight:900;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mobile-feature-copy>small{margin-top:5px;color:var(--mobile-market-muted);font-size:9.5px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mobile-feature-copy>span{margin-top:auto;padding-top:9px;border-top:1px solid #f1edeb;display:flex;align-items:baseline;justify-content:space-between;gap:5px}.mobile-feature-copy i{font-size:8px;color:#a09598;font-style:normal}.mobile-feature-copy b{font-size:13px;color:var(--mobile-market-maroon);font-weight:900}

  /* Public mobile services browser. */
  body.marketplace-services-page{background:var(--mobile-market-bg)}
  body.marketplace-services-page .desktop-services-hero{display:none!important}.mobile-services-browser{display:block;padding:28px 14px 8px;background:var(--mobile-market-bg)}
  .mobile-services-title{text-align:center;margin:0 0 24px}.mobile-services-title>span{display:inline-block;margin-bottom:4px;color:var(--mobile-market-maroon);font-size:10px;font-weight:900}.mobile-services-title h1{margin:0;font:900 31px/1.25 'Cairo',sans-serif;color:#20181b;letter-spacing:-.6px}
  .mobile-filter-group{margin-bottom:18px}.mobile-filter-group>strong{display:block;margin:0 3px 9px;font-size:13px;color:#34292c}.mobile-filter-chips{display:flex;gap:8px;overflow-x:auto;padding:1px 2px 5px;scrollbar-width:none}.mobile-filter-chips::-webkit-scrollbar{display:none}.mobile-filter-chips a{flex:0 0 auto;min-width:72px;padding:10px 14px;border:1px solid #e7e2df;border-radius:14px;background:#fff;color:#665d60;text-decoration:none;text-align:center;font-size:11px;font-weight:800}.mobile-filter-chips a.active{background:var(--mobile-market-maroon);border-color:var(--mobile-market-maroon);color:#fff;box-shadow:0 10px 20px -15px rgba(92,18,31,.75)}
  .mobile-category-filter .mobile-filter-chips a{border-radius:999px;min-width:auto;padding:9px 14px}.mobile-services-search{height:56px;margin:3px 0 11px;display:grid;grid-template-columns:28px minmax(0,1fr) 44px;align-items:center;gap:6px;padding:5px 6px 5px 12px;border:1px solid #e7e2df;border-radius:17px;background:#fff}.mobile-services-search>span{color:#9d9396;display:grid;place-items:center}.mobile-services-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:16px;font-weight:700}.mobile-services-search button{width:44px;height:44px;border:0;border-radius:13px;background:#f8edef;color:var(--mobile-market-maroon);display:grid;place-items:center}
  .mobile-advanced-filters{margin:0 0 13px;border:1px solid #e8e2df;border-radius:17px;background:#fff;overflow:hidden}.mobile-advanced-filters summary{list-style:none;padding:12px 14px;display:flex;align-items:center;gap:8px;cursor:pointer;color:#685d60;font-size:11px;font-weight:850}.mobile-advanced-filters summary::-webkit-details-marker{display:none}.mobile-advanced-filters summary .ui-icon{width:17px;height:17px}.mobile-advanced-filters form{padding:0 13px 13px;display:grid;gap:10px}.mobile-advanced-filters label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#65595d}.mobile-advanced-filters .select{min-height:46px;font-size:16px}.mobile-advanced-filters .btn{min-height:46px;border-radius:13px}
  .mobile-results-count{display:flex;align-items:baseline;justify-content:flex-start;gap:6px;padding:6px 2px}.mobile-results-count strong{font-size:19px;color:var(--mobile-market-maroon)}.mobile-results-count span{font-size:10px;color:#8f8588;font-weight:700}
  body.marketplace-services-page .marketplace-results-section{padding:10px 0 28px!important}.marketplace-results-section .directory-layout{display:block!important}.marketplace-results-section .filter-card{display:none!important}.marketplace-results-section .results-toolbar{display:none!important}.marketplace-results-section .service-grid{grid-template-columns:1fr!important;gap:17px!important}

  /* Large, clear marketplace service cards on mobile. */
  body.marketplace-services-page .service-card{border:1px solid #e8e3e1;border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 16px 32px -28px rgba(48,18,25,.58);transform:none!important}
  body.marketplace-services-page .service-image{height:225px}.service-image .service-package-mobile-badge{display:inline-flex;position:absolute;top:13px;inset-inline-start:13px;padding:7px 10px;border-radius:11px;background:var(--mobile-market-maroon);color:#fff;font-size:9px;font-weight:900;z-index:3}.service-image .featured-badge{top:13px;inset-inline-start:13px;right:auto;padding:7px 10px;border-radius:11px;background:#f3c85c;color:#4b3708}.service-image .service-package-mobile-badge+.rating-badge,.service-image .rating-badge{top:13px;inset-inline-end:13px;left:auto;padding:7px 9px;border-radius:11px;background:rgba(255,255,255,.95);color:#5b450e;backdrop-filter:blur(8px)}
  body.marketplace-services-page .service-image:has(.featured-badge) .service-package-mobile-badge{top:49px}
  body.marketplace-services-page .service-card-body{padding:17px 17px 16px}.marketplace-services-page .service-meta{gap:7px;font-size:10px;color:#927d82;font-weight:800}.marketplace-services-page .service-card h3{margin:8px 0 7px;font-size:20px;line-height:1.35}.marketplace-services-page .service-card h3 a{color:#24191d}.marketplace-services-page .service-card p{margin:0;color:#7f7477;font-size:12px;line-height:1.75;-webkit-line-clamp:2}.marketplace-services-page .provider-line{margin-top:12px;padding-top:11px;border-top:1px solid #f1edeb;font-size:11px}.marketplace-services-page .provider-card-logo,.marketplace-services-page .provider-line .avatar-mini{width:31px;height:31px;border-radius:10px}
  .marketplace-services-page .service-card-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:11px;align-items:end;margin-top:13px;padding-top:13px;border-top:1px solid #f1edeb}.marketplace-services-page .service-card-footer>div small{font-size:9px}.marketplace-services-page .service-card-footer>div strong{display:block;margin-top:2px;font-size:20px;color:var(--mobile-market-maroon)}.marketplace-services-page .service-price-varies{display:none}.marketplace-services-page .card-arrow{display:none!important}.marketplace-services-page .mobile-service-book-link{grid-column:1/-1;min-height:50px;display:flex;align-items:center;justify-content:center;gap:8px;border:2px solid var(--mobile-market-maroon);border-radius:15px;background:#fff;color:var(--mobile-market-maroon);text-decoration:none;font-size:13px;font-weight:900}.marketplace-services-page .mobile-service-book-link .ui-icon{width:18px;height:18px}
  .marketplace-services-page .pagination{margin-top:22px;padding-bottom:10px}

  /* Public mobile tab bar. */
  .site-footer{padding-bottom:96px}.mobile-marketplace-nav{position:fixed;z-index:980;right:0;left:0;bottom:0;height:calc(84px + max(env(safe-area-inset-bottom,0px),14px));padding:7px 12px max(env(safe-area-inset-bottom,0px),14px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;border-top:1px solid #ece7e5;border-radius:24px 24px 0 0;background:rgba(255,255,255,.98);box-shadow:0 -12px 34px -28px rgba(47,16,23,.68);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .mobile-marketplace-nav a{height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:15px;color:#8d8487;text-decoration:none;position:relative}.mobile-marketplace-nav a .ui-icon{width:20px;height:20px}.mobile-marketplace-nav a span{font-size:9px;font-weight:800;white-space:nowrap}.mobile-marketplace-nav a.active{background:#f8edef;color:var(--mobile-market-maroon)}.mobile-marketplace-nav a.primary{width:64px;height:64px;margin:-16px auto 0;border-radius:18px;background:linear-gradient(145deg,#8f2036,#681326);color:#fff;box-shadow:0 14px 26px -14px rgba(92,18,31,.78)}.mobile-marketplace-nav a.primary span{color:#fff}
}

@media (max-width:380px){
  .mobile-home-actions{gap:8px}.mobile-home-actions a{min-height:98px;padding:12px}.mobile-feature-media{height:128px}.mobile-feature-copy{padding:9px;min-height:144px}.mobile-feature-copy>strong{font-size:13px}.mobile-services-title h1{font-size:28px}.marketplace-services-page .service-image{height:205px}
}
