/* Mobile presentation of the public marketplace. Desktop uses style.css. */
.mobile-search-date,.mobile-categories,.mobile-cities,.mobile-card-heart,
.mobile-gallery-actions,.mobile-amenity-strip,.mobile-detail-tabs,
.mobile-gallery-thumbnails,.mobile-location-panel,.mobile-date-heading,
.mobile-date-strip,.mobile-pricing-heading { display:none; }

@media (max-width:767.98px) {
  body:not(.dashboard-body) { background:#fcfcff; color:#10111c; }
  body:not(.dashboard-body) h1,body:not(.dashboard-body) h2,body:not(.dashboard-body) h3 { font-family:'Inter',sans-serif; }
  .navbar-glass { background:#fff; border:0; box-shadow:none; min-height:72px; padding:12px 0 !important; }
  body:not(.dashboard-body) .navbar-glass .container { padding:0 24px; }
  .navbar-glass .navbar-brand { margin:0; font-size:27px; }
  .navbar-glass .site-wordmark { color:#5117ed !important; }
  .navbar-glass .site-brand-logo { width: 136px; height: 48px; }
  .navbar-glass .navbar-toggler { padding:4px 0 4px 12px; }
  .navbar-glass .navbar-collapse { padding:18px 0; }
  body:not(.dashboard-body) .btn-primary-gradient,
  .navbar-glass .btn-primary-gradient,
  .studio-detail-page .studio-booking-submit {
    background:linear-gradient(115deg,#8546ff,#5b13f9); color:#fff !important;
    border:1px solid #7028f5; box-shadow:0 7px 16px #6625ed25; border-radius:14px;
  }
  .bms-home { background:#fcfcff; padding:0 20px 32px; }
  .bms-hero { position:relative; display:block; min-height:0; margin:0 -20px; width:auto; }
  .bms-hero-visual { position:absolute; inset:0 0 auto; height:304px; margin:0; z-index:0; }
  .bms-hero-visual:before { display:none; }
  .bms-hero-visual:after { content:''; position:absolute; inset:0; border-radius:30px; background:linear-gradient(90deg,#080510d9,#08051020); }
  .bms-hero-visual>img { border:0; box-shadow:none; border-radius:30px; object-fit:cover; }
  .bms-hero-visual .bms-float { display:none; }
  .bms-hero-copy { position:relative; padding:38px 14px 0; z-index:1; }
  .bms-hero-copy .bms-eyebrow,.bms-trust { display:none; }
  .bms-hero h1 { margin:0 12px 12px; color:#fff; font-size:44px; line-height:1.02; letter-spacing:-1.6px; font-weight:800; }
  .bms-hero .hero-find { display:block; }
  .hero-desktop-break { display:none; }
  .bms-hero h1 em { color:#fff; }
  .bms-hero-copy>p { margin:0 12px; max-width:260px; color:#fff; font-size:16px; line-height:1.45; }
  .bms-search { margin:62px 0 0; padding:14px 18px 18px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border:1px solid #f0effb; border-radius:22px; background:#fff; box-shadow:0 12px 26px #40499212; gap:0; }
  .bms-search-field { gap:12px; padding:8px 0 14px; border:0; min-width:0; }
  .bms-search-field>i { color:#6b24ff; font-size:23px; }
  .bms-search-field b { font-weight:500; font-size:13px; margin-bottom:3px; }
  .bms-search-field span { flex:1; }
  .bms-search-field input,.bms-search-field select { max-width:none; font-size:12px; color:#59627e; min-height:24px; padding:0; }
  .bms-search .mobile-search-date { display:flex; padding-left:15px; border-left:1px solid #ebeaf5; margin-left:7px; }
  .bms-search-category { grid-column:1/-1; border-top:1px solid #ebeaf5; padding:15px 0; }
  .bms-search .btn { grid-column:1/-1; width:100%; min-height:51px; margin:0; font-weight:600; font-size:16px; }
  .bms-search .btn i { font-size:21px; }
  .bms-category-grid { display:none; }
  .mobile-categories { display:flex; justify-content:space-between; gap:5px; margin:22px 0 46px; }
  .mobile-categories a { color:#11121e; text-decoration:none; display:flex; flex:1; min-width:0; flex-direction:column; align-items:center; gap:8px; font-size:11px; }
  .mobile-categories a>span { width:49px; height:49px; display:grid; place-items:center; border-radius:50%; background:#eee6ff; color:#6b24ff; font-size:24px; }
  .mobile-categories a:nth-child(2)>span { background:#ffe5ef; color:#f23e83; }
  .mobile-categories a:nth-child(3)>span { background:#e4eeff; color:#4d4cff; }
  .mobile-categories a:nth-child(4)>span { background:#fff0e4; color:#eb8944; }
  .bms-featured>.d-flex { flex-wrap:nowrap !important; align-items:center !important; gap:8px !important; margin-bottom:16px !important; }
  .bms-featured .bms-eyebrow { display:none; }
  .bms-featured h2,.mobile-section-heading h2 { font-size:21px; letter-spacing:-.65px; margin:0; color:#10111c; font-weight:700; }
  .bms-view-all,.mobile-section-heading>a { font-size:12px; font-weight:400; white-space:nowrap; color:#6223ff; text-decoration:none; }
  .bms-featured>.row { flex-wrap:nowrap; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -20px; padding:0 20px 18px; gap:14px; scrollbar-width:none; }
  .bms-featured>.row>div { flex:0 0 80%; max-width:310px; padding:0; margin:0; scroll-snap-align:center; }
  .bms-studio-card { position:relative; border-radius:16px; box-shadow:0 7px 18px #1e21490a; border:1px solid #f1f0f8; }
  .bms-studio-image { height:166px; border-radius:15px; overflow:hidden; }
  .bms-studio-image>span { top:auto; bottom:10px; left:10px; border-radius:8px; font-size:10px; font-weight:500; color:#171827; }
  .mobile-card-heart { display:grid; place-items:center; position:absolute; z-index:2; right:12px; top:12px; border:0; border-radius:50%; width:35px; height:35px; background:#16131cc4; color:white; font-size:21px; }
  .bms-studio-info { padding:13px 12px 15px; }
  .bms-studio-info h3 { font-size:16px; line-height:1.35; }
  .bms-studio-info>.d-flex { flex-wrap:wrap; }
  .bms-studio-info>.d-flex h3 { width:100%; }
  .bms-studio-info p { font-size:12px; margin:8px 0 12px; }
  .bms-rating { font-size:12px; }
  .bms-studio-bottom { padding:0; border:0; }
  .bms-studio-bottom strong { font-size:18px; }
  .bms-studio-bottom>a { background:linear-gradient(115deg,#8546ff,#5b13f9); color:#fff; padding:10px 16px; border-radius:12px; font-size:13px; }
  .mobile-cities { display:block; margin:30px 0 0; }
  .mobile-section-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:17px; }
  .mobile-city-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
  .mobile-city-list>a { border:1px solid #e5e5f0; border-radius:11px; overflow:hidden; color:#171827; text-decoration:none; background:#fff; text-align:center; font-size:11px; box-shadow:0 5px 10px #3c336007; }
  .mobile-city-list img { display:block; width:100%; height:65px; object-fit:cover; }
  .mobile-city-list span { display:block; padding:9px 2px; }
  body:not(.dashboard-body)>.site-footer { padding-left:14px; padding-right:14px; }

  /* Gallery, title and booking follow the order of the mobile reference. */
  body:has(.studio-detail-page) .navbar-glass { display:none; }
  .studio-detail-page { background:#fcfcff; color:#10111c; }
  body:not(.dashboard-body) .studio-detail-page .studio-detail-container { padding:0 0 30px !important; }
  .studio-detail-layout { display:flex; flex-direction:column; gap:0; }
  .studio-detail-main { display:contents; }
  .studio-detail-page .studio-photo-gallery { order:0; width:100%; height:340px; margin:0; border-radius:0; }
  .studio-detail-page .studio-gallery-image { object-fit:cover; }
  .studio-gallery-count { bottom:35px; font-size:12px; padding:7px 12px; }
  .studio-gallery-carousel .carousel-indicators { bottom:23px; }
  .mobile-gallery-actions { display:flex; position:absolute; inset:22px 20px auto; justify-content:space-between; z-index:5; pointer-events:none; }
  .mobile-gallery-actions>div { display:flex; gap:9px; }
  .mobile-gallery-actions a,.mobile-gallery-actions button { pointer-events:auto; width:39px; height:39px; display:grid; place-items:center; border:0; border-radius:50%; background:#fff; color:#161522; font-size:22px; text-decoration:none; }
  .mobile-gallery-actions button { color:#fff; background:#16121bbd; }
  .studio-detail-heading { order:1; position:relative; margin-top:-23px; border-radius:26px 26px 0 0; background:#fcfcff; width:100%; padding:22px 22px 8px; z-index:3; display:flex; flex-wrap:wrap; gap:10px; }
  .studio-detail-heading .studio-category-label,.studio-detail-heading .studio-map-link { display:none; }
  .studio-detail-heading h1 { width:100%; font-size:25px; letter-spacing:-.9px; line-height:1.2; margin:0 0 4px; }
  .studio-detail-heading .studio-location { order:3; flex:1; font-size:12px; line-height:1.5; margin:0; display:block; }
  .studio-location i { color:#6927ff; margin-right:4px; }
  .studio-detail-heading .studio-rating-pill { order:2; padding:0 12px 0 0; border:0; border-right:1px solid #eae8f1; border-radius:0; box-shadow:none; background:none; font-size:14px; gap:5px; align-self:flex-start; }
  .studio-rating-pill span { font-size:10px; }
  .mobile-amenity-strip { order:2; display:flex; width:100%; justify-content:space-around; gap:10px; padding:17px 20px 22px; }
  .mobile-amenity-strip>div { flex:1; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; min-width:0; }
  .mobile-amenity-strip span { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; background:#f3f3f9; color:#0e101a; font-size:24px; }
  .mobile-amenity-strip small { font-size:11px; color:#232336; }
  .studio-detail-sidebar { order:3; width:100%; position:static; padding:10px 12px 0; }
  .studio-booking-card { padding:18px 16px; border:0; box-shadow:0 7px 35px #493d8907; border-radius:22px; background:white; }
  .studio-booking-card>.studio-booking-price { display:none; }
  .mobile-date-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:15px; }
  .mobile-date-heading h2,.mobile-pricing-heading h2 { font-size:17px; margin:0; color:#10111c; letter-spacing:-.5px; }
  .mobile-date-heading button { border:1px solid #e4dbff; background:#fff; color:#6223ff; border-radius:11px; font-size:10px; padding:7px 8px; white-space:nowrap; }
  .booking-date-field { display:none; }
  .booking-date-field.calendar-open { display:block; }
  .mobile-date-strip { display:flex; gap:8px; overflow-x:auto; margin-bottom:17px; scrollbar-width:none; }
  .mobile-date-strip button { flex:1 0 48px; display:flex; flex-direction:column; align-items:center; gap:2px; padding:12px 4px; border:1px solid transparent; border-radius:14px; background:#f6f6fb; color:#4e5774; font-size:11px; }
  .mobile-date-strip strong { font-size:21px; font-weight:500; color:#131422; }
  .mobile-date-strip .active { background:linear-gradient(120deg,#8240ff,#5916fa); color:#fff; border-color:#6823f6; box-shadow:0 6px 14px #6625ed20; }
  .mobile-date-strip .active strong { color:#fff; }
  .booking-slot-field>.form-label { display:none; }
  .studio-booking-slots { display:flex; gap:8px; overflow-x:auto; padding:3px 0 10px; scrollbar-width:thin; }
  .studio-booking-slots .slot-btn { flex:0 0 83px; min-height:42px; border:1px solid #dfdfea; border-radius:12px; font-size:11px; padding:10px 7px; color:#121321; }
  .studio-booking-slots .slot-available.selected { color:#fff; border-color:#6823f6; background:linear-gradient(120deg,#8240ff,#5916fa); box-shadow:0 5px 12px #6625ed24; }
  .studio-slot-legend { font-size:10px; margin-bottom:8px; }
  .studio-slot-legend .available { background:#6c23ff; }
  .booking-slot-field>.studio-muted { font-size:10px; }
  .mobile-pricing-heading { display:flex; justify-content:space-between; align-items:center; border-top:12px solid #fcfcff; margin:20px -16px 0; padding:20px 16px 14px; }
  .mobile-pricing-heading strong { color:#11111c; font-size:21px; letter-spacing:-.5px; }
  .mobile-pricing-heading small { font-size:13px; }
  .studio-booking-summary { margin:0 0 15px; padding:10px 0; font-size:12px; border:0; }
  .studio-booking-summary .studio-selected-slot { font-size:11px; color:#6325ed; line-height:1.6; }
  .studio-summary-total strong { font-size:20px; }
  .studio-coupon-details { font-size:11px; color:#626b84; margin:10px 0 14px; }
  .studio-booker-summary { font-size:11px; }
  .studio-detail-page .studio-booking-submit { font-size:17px; padding:15px; font-weight:500; }
  .studio-booking-submit:disabled { opacity:.5; }
  .studio-booking-footnote { font-size:10px; color:#7b829a; line-height:1.6; }
  .studio-booking-footnote i { color:#178b63; }
  .mobile-detail-tabs { order:4; display:flex; justify-content:space-between; width:calc(100% - 40px); margin:22px 20px 0; border-bottom:1px solid #edecf5; }
  .mobile-detail-tabs a { text-decoration:none; padding:12px 7px; color:#63708a; font-size:12px; border-bottom:2px solid transparent; }
  .mobile-detail-tabs a.active { color:#6122ff; border-color:#6928ff; }
  [data-mobile-panel] { order:5; width:100%; padding:20px 22px; scroll-margin-top:10px; }
  [data-mobile-panel]:not([data-mobile-panel="about"]):not(.mobile-panel-active),
  [data-mobile-panel].mobile-panel-inactive { display:none; }
  [data-mobile-panel].mobile-panel-active { display:block; }
  .studio-overview-section .studio-description { font-size:13px; line-height:1.7; color:#68718b; margin-bottom:17px; }
  .studio-overview-section .studio-facts-grid { display:none; }
  .mobile-gallery-thumbnails { display:flex; gap:8px; overflow-x:auto; }
  .mobile-gallery-thumbnails button { border:0; padding:0; border-radius:11px; flex:0 0 23%; overflow:hidden; background:#efedf5; }
  .mobile-gallery-thumbnails img { width:100%; height:69px; object-fit:cover; }
  .mobile-location-panel h2 { font-size:19px; }
  .mobile-location-panel p { font-size:13px; color:#68718b; }
}

@media (max-width:359.98px) {
  .bms-home { padding-left:14px; padding-right:14px; }
  .bms-hero { margin-left:-14px; margin-right:-14px; }
  .bms-hero h1 { font-size:39px; }
  .bms-search { padding:13px; }
  .bms-search-field { gap:7px; }
  .bms-search-field>i { font-size:19px; }
  .bms-featured h2,.mobile-section-heading h2 { font-size:19px; }
  .mobile-date-heading h2 { font-size:15px; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-hero-copy { position:absolute; padding:0; }
  body:has(.bms-home) .bms-trust { display:flex; }
  body:has(.bms-home) .bms-category-grid { display:grid; }
  body:has(.bms-home) .bms-category-card:last-child { display:block; }
  body:has(.bms-home) .bms-featured .bms-eyebrow { display:block; }
  body:has(.bms-home) .bms-featured .row { margin:0; padding:0 0 12px; }
  body:has(.bms-home) .bms-featured .row>div { flex:0 0 78%; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-hero { padding-bottom:18px; }
  body:has(.bms-home) .bms-hero-visual { height:420px; }
  body:has(.bms-home) .bms-hero-copy { height:246px;flex-basis:246px;padding:48px 4px 0; }
  body:has(.bms-home) .bms-hero h1 { max-width:100%;font-size:clamp(36px,10vw,44px);line-height:1.02;letter-spacing:-1.5px; }
  body:has(.bms-home) .bms-hero-copy>p { max-width:100%;font-size:13px;line-height:1.4; }
  body:has(.bms-home) .bms-search-field:nth-child(2) { border-left:0;padding-left:5px; }
  body:has(.bms-home) .bms-mobile-categories { margin-top:16px; }
  body:has(.bms-home) .bms-section-head:has(.bms-section-subtitle) { display:block;text-align:center;margin:0 0 14px; }
  body:has(.bms-home) .bms-section-subtitle { margin-top:5px;font-size:12px; }
  body:has(.bms-home) .bms-category-grid { align-items:stretch; }
  body:has(.bms-home) .bms-category-card { height:190px; }
  body:has(.bms-home) .bms-category-card>img { flex:0 0 52%;height:52%; }
  body:has(.bms-home) .bms-category-title { top:52%;height:48%;grid-template-columns:30px minmax(0,1fr) 14px;grid-template-rows:auto auto;padding:8px;gap:3px 6px; }
  body:has(.bms-home) .bms-category-title i:first-child { grid-row:1/3;width:29px;height:29px;flex-basis:29px; }
  body:has(.bms-home) .bms-category-title b { min-width:0;font-size:10px;line-height:1.2; }
  body:has(.bms-home) .bms-category-title small { font-size:8px;line-height:1.25; }
  body:has(.bms-home) .bms-business-grid { align-items:stretch; }
  body:has(.bms-home) .bms-business-card { height:100%; }
  body:has(.bms-home) .bms-stats>div { min-width:0;gap:8px; }
  body:has(.bms-home) .bms-stats span { min-width:0; }
  body:has(.bms-home) .bms-stats small { line-height:1.25; }
  body:has(.bms-home) .bms-steps .bms-step-grid { gap:9px; }
  body:has(.bms-home) .bms-steps .bms-step { min-height:112px; }
  body:has(.bms-home) .bms-steps .bms-step>strong { left:56px; }
  body:has(.bms-home) .bms-owner-cta .bms-cta-secondary { margin:8px 0 0 6px; }
}
/* Keep the mobile hero copy clear of the search panel on narrow screens. */
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-hero { padding-bottom:18px; }
  body:has(.bms-home) .bms-hero-visual { height:420px; }
  body:has(.bms-home) .bms-hero-copy { height:246px;flex-basis:246px;padding:48px 4px 0; }
  body:has(.bms-home) .bms-hero h1 { max-width:100%;font-size:clamp(36px,10vw,44px);line-height:1.02;letter-spacing:-1.5px; }
  body:has(.bms-home) .bms-hero-copy>p { max-width:100%;font-size:13px;line-height:1.4; }
  body:has(.bms-home) .bms-search-field:nth-child(2) { border-left:0;padding-left:5px; }
  body:has(.bms-home) .bms-mobile-categories { margin-top:16px; }
}
@media(max-width:360px) {
  body:has(.bms-home) .bms-hero-copy { height:236px;flex-basis:236px;padding-top:42px; }
  body:has(.bms-home) .bms-hero-visual { height:410px; }
  body:has(.bms-home) .bms-hero h1 { font-size:36px; }
}
@media(max-width:360px) {
  body:has(.bms-home) .bms-hero-copy { height:236px;flex-basis:236px;padding-top:42px; }
  body:has(.bms-home) .bms-hero-visual { height:410px; }
  body:has(.bms-home) .bms-hero h1 { font-size:36px; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-hero h1 { color:#fff; }
  body:has(.bms-home) .bms-hero h1 em { color:#70a7ff; }
  body:has(.bms-home) .bms-hero-visual:after { background:linear-gradient(90deg,#080e19d9,#080e1926); }
  body:has(.bms-home) .bms-search { left:12px;right:12px;bottom:10px;width:auto; }
  body:has(.bms-home) .bms-search-category { grid-column:auto;border-top:0;padding-top:8px; }
  body:has(.bms-home) .bms-search-field:nth-child(2) { border-left:1px solid #eeeef4;margin:0;padding-left:8px; }
  body:has(.bms-home) .bms-search-field:nth-child(3) { display:none; }
  body:has(.bms-home) .bms-search .btn { grid-column:1/-1; }
  body:has(.bms-home) .bms-category-card { height:205px; }
  body:has(.bms-home) .bms-category-card>img { height:52%; }
  body:has(.bms-home) .bms-category-title { top:52%; }
  body:has(.bms-home) .bms-business { margin:0 -16px 26px;padding:24px 16px;gap:18px; }
  body:has(.bms-home) .bms-business-grid { grid-template-columns:repeat(2,1fr); }
  body:has(.bms-home) .bms-business-card { min-height:142px;padding:12px; }
  body:has(.bms-home) .bms-stats { margin:0 -16px 24px;padding:13px 9px;grid-template-columns:repeat(2,1fr);gap:12px 0; }
  body:has(.bms-home) .bms-stats>div { justify-content:flex-start;padding-left:12px;border-right:0; }
  body:has(.bms-home) .bms-stats>div>i { font-size:23px; }
  body:has(.bms-home) .bms-stats b { font-size:14px; }
  body:has(.bms-home) .bms-stats small { font-size:8px; }
  body:has(.bms-home) .bms-owner-cta { margin:0 -16px;min-height:320px; }
  body:has(.bms-home) .bms-owner-cta>div { padding:20px; }
  body:has(.bms-home) .bms-owner-cta>img { width:100%;height:45%;opacity:.55; }
  body:has(.bms-home) .bms-owner-cta .bms-cta-secondary { margin:8px 0 0; }
}
/* Mobile refinements for the updated homepage */
@media(max-width:767.98px) {
  body:has(.bms-home) { overflow-x:hidden; }
  body:has(.bms-home) .navbar-glass { min-height:60px;padding:7px 0!important; }
  body:has(.bms-home) .navbar-glass .container { padding:0 15px; }
  body:has(.bms-home) .navbar-brand { font-size:20px;margin:0; }
  body:has(.bms-home) .site-wordmark { font-size:18px; }
  body:has(.bms-home) .bms-brand-icon { width:25px;height:25px;font-size:13px; }
  body:has(.bms-home) .navbar-glass .navbar-toggler { padding:3px 0 3px 10px; }
  body:has(.bms-home) .bms-home { padding:0 15px 28px!important;background:#fff; }
  body:has(.bms-home) .bms-hero { width:calc(100% + 30px);height:450px;min-height:0;margin:0 -15px;position:relative;display:block; }
  body:has(.bms-home) .bms-hero-visual { position:absolute;inset:0 0 auto;height:310px;margin:0; }
  body:has(.bms-home) .bms-hero-visual:after { border-radius:0 0 20px 20px;background:linear-gradient(90deg,#090712d9,#09071220); }
  body:has(.bms-home) .bms-hero-visual>img { border-radius:0 0 20px 20px; }
  body:has(.bms-home) .bms-hero-copy { position:absolute;top:50px;left:0;padding:0 20px; }
  body:has(.bms-home) .bms-hero h1 { margin:0 0 10px;font-size:clamp(37px,10vw,46px);line-height:.98;letter-spacing:-1.8px; }
  body:has(.bms-home) .bms-hero h1 em { color:#a177ff; }
  body:has(.bms-home) .bms-hero-copy>p { margin:0;max-width:265px;font-size:14px; }
  body:has(.bms-home) .bms-search { position:absolute;left:14px;right:14px;bottom:8px;width:auto;margin:0;padding:9px;display:grid;grid-template-columns:1fr 1fr;border:1px solid #ececf3;border-radius:16px;gap:0;box-shadow:0 9px 25px #242c5d1a; }
  body:has(.bms-home) .bms-search-field { min-width:0;gap:7px;padding:7px 5px;border:0; }
  body:has(.bms-home) .bms-search-field:nth-child(2) { border-left:1px solid #eeeef4;margin:0;padding-left:9px; }
  body:has(.bms-home) .bms-search-field>i { width:31px;height:31px;flex-basis:31px;font-size:13px; }
  body:has(.bms-home) .bms-search-field b { margin:0;font-size:9px; }
  body:has(.bms-home) .bms-search-field input,body:has(.bms-home) .bms-search-field select { width:100%;max-width:none;min-height:20px;padding:0;font-size:10px; }
  body:has(.bms-home) .bms-search-category { grid-column:1/-1;border-top:1px solid #eeeef4;padding-top:8px; }
  body:has(.bms-home) .bms-search .btn { grid-column:1/-1;width:100%;min-width:0;min-height:41px;margin:5px 0 0;padding:8px;font-size:12px; }
  body:has(.bms-home) .bms-trust { display:grid;grid-template-columns:1fr 1fr;justify-content:initial;gap:10px 8px;margin:14px 0 24px;font-size:9px; }
  body:has(.bms-home) .bms-trust span { white-space:normal;gap:6px; }
  body:has(.bms-home) .bms-section { margin:0 auto 27px; }
  body:has(.bms-home) .bms-section-head { align-items:end;margin-bottom:11px;gap:8px; }
  body:has(.bms-home) .bms-section-head h2 { font-size:19px;line-height:1.18; }
  body:has(.bms-home) .bms-eyebrow { font-size:8px;letter-spacing:2px; }
  body:has(.bms-home) .bms-category-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
  body:has(.bms-home) .bms-category-card,body:has(.bms-home) .bms-category-card:last-child { display:block;height:125px; }
  body:has(.bms-home) .bms-category-title { padding:7px;gap:6px; }
  body:has(.bms-home) .bms-category-title i:first-child { width:29px;height:29px;flex-basis:29px;font-size:12px; }
  body:has(.bms-home) .bms-category-title b { font-size:10px; }
  body:has(.bms-home) .bms-head-actions { gap:5px; }
  body:has(.bms-home) .bms-head-actions .bms-round { display:none; }
  body:has(.bms-home) .bms-view-all { font-size:10px; }
  body:has(.bms-home) .bms-featured .bms-eyebrow { display:block; }
  body:has(.bms-home) .bms-featured>.row { display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -15px;padding:0 15px 12px;gap:10px;scrollbar-width:none; }
  body:has(.bms-home) .bms-featured>.row::-webkit-scrollbar { display:none; }
  body:has(.bms-home) .bms-featured>.row>div { flex:0 0 78%;max-width:280px;padding:0;scroll-snap-align:start; }
  body:has(.bms-home) .bms-studio-image { height:145px; }
  body:has(.bms-home) .bms-studio-info { padding:10px; }
  body:has(.bms-home) .bms-studio-info h3 { font-size:12px; }
  body:has(.bms-home) .bms-chips span { font-size:8px; }
  body:has(.bms-home) .bms-benefits { grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 4px;padding:13px 8px;margin-bottom:27px; }
  body:has(.bms-home) .bms-benefit-title { grid-column:1/-1;text-align:left;padding:0 4px 6px; }
  body:has(.bms-home) .bms-benefit-title h2 { font-size:21px; }
  body:has(.bms-home) .bms-benefit { min-height:78px;border:0;padding:3px;font-size:9px; }
  body:has(.bms-home) .bms-benefit-icon { width:36px;height:36px;font-size:14px; }
  body:has(.bms-home) .bms-city-grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:7px; }
  body:has(.bms-home) .bms-city-grid a { height:88px; }
  body:has(.bms-home) .bms-city-grid b { bottom:6px;left:7px;font-size:10px; }
  body:has(.bms-home) .bms-step-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  body:has(.bms-home) .bms-step { min-height:94px;padding:10px;grid-template-columns:38px 1fr;column-gap:7px; }
  body:has(.bms-home) .bms-step>strong { font-size:20px; }
  body:has(.bms-home) .bms-step>small { font-size:8px;line-height:1.35; }
  body:has(.bms-home) .bms-step-arrow { display:none; }
  body:has(.bms-home) .bms-owner-cta { min-height:300px;align-items:flex-start; }
  body:has(.bms-home) .bms-owner-cta>div { width:100%;padding:20px; }
  body:has(.bms-home) .bms-owner-cta h2 { font-size:25px; }
  body:has(.bms-home) .bms-owner-cta p { max-width:260px;font-size:10px; }
  body:has(.bms-home) .bms-owner-cta>img { top:auto;bottom:0;width:100%;height:46%;clip-path:none;opacity:.8; }
}
@media(max-width:380px) {
  body:has(.bms-home) .bms-home { padding-right:12px!important;padding-left:12px!important; }
  body:has(.bms-home) .bms-hero { width:calc(100% + 24px);margin-right:-12px;margin-left:-12px; }
  body:has(.bms-home) .bms-category-card,body:has(.bms-home) .bms-category-card:last-child { height:112px; }
  body:has(.bms-home) .bms-category-title { gap:4px;padding:6px; }
  body:has(.bms-home) .bms-category-title b { font-size:9px; }
  body:has(.bms-home) .bms-featured>.row>div { flex-basis:86%; }
  body:has(.bms-home) .bms-benefit { font-size:8px; }
}

/* Tablet layouts: keep the marketplace readable between phone and desktop widths. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  html, body { max-width:100%; overflow-x:hidden; }
  body:has(.bms-home) .navbar-glass .container { padding-left:22px; padding-right:22px; }
  body:has(.bms-home) .navbar-glass { min-height:68px; }
  body:has(.bms-home) .navbar-glass .navbar-collapse { padding-top:12px; }
  body:has(.bms-home) .navbar-glass .navbar-nav { gap:2px!important; }
  body:has(.bms-home) .navbar-glass .nav-link { min-height:44px;display:flex;align-items:center; }

  body:has(.bms-home) .bms-home { min-width:0;padding:0 22px 42px!important; }
  body:has(.bms-home) .bms-hero { width:calc(100% + 44px);height:auto;min-height:0;margin:0 -22px 0;display:flex;flex-direction:column;align-items:stretch; }
  body:has(.bms-home) .bms-hero-visual { position:relative;inset:auto;order:0;width:100%;height:clamp(280px,42vw,390px);margin:0; }
  body:has(.bms-home) .bms-hero-visual:after { background:linear-gradient(90deg,#f6faffed 0%,#f6faffd9 42%,#f6faff35 100%); }
  body:has(.bms-home) .bms-hero-visual>img { border:0;border-radius:0;box-shadow:none;object-position:center 48%; }
  body:has(.bms-home) .bms-hero-copy { position:absolute;top:8%;left:5%;right:5%;width:auto;max-width:560px;padding:0; }
  body:has(.bms-home) .bms-hero h1 { max-width:540px;font-size:clamp(42px,6.4vw,64px);line-height:.98; }
  body:has(.bms-home) .bms-hero-copy>p { max-width:420px;font-size:15px;line-height:1.5; }
  body:has(.bms-home) .bms-search { position:relative;inset:auto;align-self:stretch;width:auto;min-width:0;max-width:calc(100% - 48px);box-sizing:border-box;margin:-30px 24px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:0;padding:12px;border-radius:16px; }
  body:has(.bms-home) .bms-nearby-quick { position:relative;left:auto;bottom:auto;align-self:flex-start;margin:10px 24px 0; }
  body:has(.bms-home) .bms-search-field { min-height:56px;gap:9px;padding:7px 11px;border-right:1px solid #eeeef4; }
  body:has(.bms-home) .bms-search-field>i { width:34px;height:34px;flex:0 0 34px;font-size:15px; }
  body:has(.bms-home) .bms-search-field b { font-size:11px; }
  body:has(.bms-home) .bms-search-field input,body:has(.bms-home) .bms-search-field select { max-width:100%;min-width:0;font-size:12px; }
  body:has(.bms-home) .bms-search .btn { grid-column:1/-1;min-height:48px;margin:8px 0 0;justify-content:center; }
  body:has(.bms-home) .bms-trust { display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;margin:20px 0 32px;font-size:11px; }
  body:has(.bms-home) .bms-section { margin-bottom:32px; }
  body:has(.bms-home) .bms-section-head { margin-bottom:14px; }
  body:has(.bms-home) .bms-category-viewport { width:100%;margin:0;padding:0 0 10px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#c9cfe0 transparent;-webkit-overflow-scrolling:touch; }
  body:has(.bms-home) .bms-category-viewport::-webkit-scrollbar { height:5px; }
  body:has(.bms-home) .bms-category-viewport::-webkit-scrollbar-thumb { border-radius:9px;background:#c9cfe0; }
  body:has(.bms-home) .bms-category-grid { width:max-content;max-width:none;display:flex;flex-wrap:nowrap;gap:14px;margin:0;animation:none;transform:none;will-change:auto; }
  body:has(.bms-home) .bms-category-card { flex:0 0 clamp(220px,30vw,300px);width:clamp(220px,30vw,300px);height:230px;scroll-snap-align:start; }
  body:has(.bms-home) .bms-category-card--clone { display:none; }
  body:has(.bms-home) .bms-category-card>img { flex-basis:52%;height:52%; }
  body:has(.bms-home) .bms-category-title { top:52%;bottom:0;height:48%;padding:10px; }
  body:has(.bms-home) .bms-business { grid-template-columns:1fr;gap:18px;margin-left:-22px;margin-right:-22px;padding:26px 22px; }
  body:has(.bms-home) .bms-business-intro h2 { font-size:30px; }
  body:has(.bms-home) .bms-business-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  body:has(.bms-home) .bms-business-card { min-height:140px;padding:16px; }
  body:has(.bms-home) .bms-featured .row { --bs-gutter-x:14px;--bs-gutter-y:14px; }
  body:has(.bms-home) .bms-studio-image { height:clamp(145px,20vw,190px); }
  body:has(.bms-home) .bms-benefits { grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 30px;padding:18px; }
  body:has(.bms-home) .bms-benefit-title { grid-column:1/-1;text-align:center;padding:0 0 6px; }
  body:has(.bms-home) .bms-benefit { border:0; }
  body:has(.bms-home) .bms-city-grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }
  body:has(.bms-home) .bms-city-grid a { height:clamp(100px,14vw,135px); }
  body:has(.bms-home) .bms-step-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  body:has(.bms-home) .bms-step { min-height:110px; }
  body:has(.bms-home) .bms-owner-cta { min-height:260px; }
  body:has(.bms-home) .bms-owner-cta>div { width:62%;padding:24px 5%; }

  .studios-page { padding-top:22px!important; }
  .studios-page-header { align-items:flex-start!important;gap:14px; }
  .studios-page-tools { flex-wrap:wrap;justify-content:flex-start; }
  .studios-page .studios-layout { --bs-gutter-x:18px;--bs-gutter-y:18px; }
  .studios-page .studios-layout>.col-lg-3 { width:34%; }
  .studios-page .studios-layout>.col-lg-9 { width:66%; }
  .studios-filter-card { padding:16px!important; }
  .studio-results-grid { --bs-gutter-x:12px;--bs-gutter-y:14px; }
  .studio-results-grid>[class*="col-"] { width:50%; }
  .studio-detail-layout { grid-template-columns:minmax(0,1fr) 320px;gap:20px; }
  .studio-detail-page .studio-detail-container { padding-left:18px!important;padding-right:18px!important; }
  .studio-detail-sidebar { position:static; }
  .studio-booking-card { padding:16px; }
  .studio-facts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .studio-amenities-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-content { padding:16px 14px; }
  .dashboard-topbar { gap:10px;padding-left:12px;padding-right:12px; }
}
/* Mobile app-style home and studio details matching the supplied phone reference */
.bms-mobile-categories { display:none; }
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-trust { display:none; }
  body:has(.bms-home) .bms-mobile-categories { display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:4px -3px 31px;overflow-x:auto;scrollbar-width:none; }
  body:has(.bms-home) .bms-mobile-categories::-webkit-scrollbar { display:none; }
  body:has(.bms-home) .bms-mobile-categories a { flex:1 0 58px;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;color:#111321;text-decoration:none;font-size:11px; }
  body:has(.bms-home) .bms-mobile-categories a>span { width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#eee6ff;color:#6827f5;font-size:23px; }
  body:has(.bms-home) .bms-mobile-categories a:nth-child(2)>span { color:#f13d82;background:#ffe5ef; }
  body:has(.bms-home) .bms-mobile-categories a:nth-child(3)>span { color:#455cf1;background:#e3edff; }
  body:has(.bms-home) .bms-mobile-categories a:nth-child(4)>span { color:#ed812d;background:#fff0e2; }
  body:has(.bms-home) .bms-mobile-categories a:nth-child(5)>span { color:#6924ef;background:#eee7ff; }
  body:has(.bms-home) .bms-mobile-categories b { font-weight:500;white-space:nowrap; }
  body:has(.bms-home) .bms-categories { display:none; }
  body:has(.bms-home) .bms-hero-visual>img { object-position:center 48%; }
  body:has(.bms-home) .bms-featured .bms-section-head { margin-bottom:12px; }
  body:has(.bms-home) .bms-featured .bms-eyebrow { display:none; }
  body:has(.bms-home) .bms-featured .bms-section-head h2 { font-size:22px; }
  body:has(.bms-home) .bms-featured>.row>div { flex-basis:82%;max-width:330px; }
  body:has(.bms-home) .bms-studio-image { height:185px; }
  body:has(.bms-home) .bms-studio-info h3 { font-size:15px; }
  body:has(.bms-home) .bms-studio-info p { font-size:12px; }
  body:has(.bms-home) .bms-studio-rating { font-size:12px; }
  body:has(.bms-home) .bms-chips span { font-size:9px; }
  body:has(.bms-home) .bms-studio-bottom strong { font-size:17px; }
  body:has(.bms-home) .bms-studio-bottom>a { padding:10px 14px;font-size:12px; }
  body:has(.bms-home) .bms-cities .bms-section-head h2 { font-size:21px; }
  body:has(.studio-detail-page) .studio-detail-page .studio-photo-gallery { height:42vh;min-height:300px;max-height:390px; }
  body:has(.studio-detail-page) .studio-detail-heading { padding:20px 20px 8px; }
  body:has(.studio-detail-page) .studio-detail-heading h1 { font-size:24px; }
  body:has(.studio-detail-page) .studio-detail-sidebar { padding:8px 12px 0; }
  body:has(.studio-detail-page) .studio-booking-card { border:1px solid #f0eff6;padding:17px 15px;border-radius:20px; }
  body:has(.studio-detail-page) .studio-booking-slots { overflow-x:auto;scroll-snap-type:x mandatory; }
  body:has(.studio-detail-page) .studio-booking-slots .slot-btn { scroll-snap-align:start; }
  body:has(.studio-detail-page) .mobile-detail-tabs { position:sticky;top:0;z-index:10;background:#fcfcff; }
}
@media(max-width:380px) {
  body:has(.bms-home) .bms-mobile-categories { gap:5px; }
  body:has(.bms-home) .bms-mobile-categories a { flex-basis:53px;font-size:10px; }
  body:has(.bms-home) .bms-mobile-categories a>span { width:46px;height:46px;font-size:21px; }
  body:has(.bms-home) .bms-studio-image { height:160px; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-hero-visual { height:390px; }
  body:has(.bms-home) .bms-search-field { padding-top:12px;padding-bottom:12px; }
  body:has(.bms-home) .bms-search-category { padding-top:12px;padding-bottom:12px; }
  body:has(.bms-home) .bms-search-field>i { width:36px;height:36px;flex-basis:36px;font-size:16px; }
  body:has(.bms-home) .bms-search-field b { font-size:11px; }
  body:has(.bms-home) .bms-search-field input,body:has(.bms-home) .bms-search-field select { font-size:12px; }
  body:has(.bms-home) .bms-search .btn { min-height:50px;font-size:14px; }
}
/* Fix narrow-screen clipping: keep the search card inside the phone viewport. */
@media(max-width:767.98px) {
  body:has(.bms-home) { width:100%;max-width:100%;overflow-x:hidden; }
  body:has(.bms-home) .bms-home { width:100%;max-width:100%;overflow:clip;padding:0 16px 28px!important; }
  body:has(.bms-home) .bms-hero { display:block;width:auto;height:auto;min-height:0;margin:0 -16px;padding:0 16px 0;box-sizing:border-box; }
  body:has(.bms-home) .bms-hero-visual { inset:0 0 auto;height:390px;width:100%; }
  body:has(.bms-home) .bms-hero-copy { top:48px;left:0;padding:0 20px; }
  body:has(.bms-home) .bms-search { position:relative;inset:auto;width:100%;max-width:100%;min-width:0;height:auto;box-sizing:border-box;margin:260px 0 0;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;overflow:hidden; }
  body:has(.bms-home) .bms-search-field { display:flex;align-items:center;min-width:0;width:100%;max-width:100%;box-sizing:border-box;gap:7px;padding:10px 5px; }
  body:has(.bms-home) .bms-search-field:nth-child(2) { margin:0;padding-left:8px;border-left:1px solid #eeeef4; }
  body:has(.bms-home) .bms-search-field>i { width:30px;height:30px;flex:0 0 30px;font-size:14px; }
  body:has(.bms-home) .bms-search-field>span { flex:1 1 auto;min-width:0;max-width:100%; }
  body:has(.bms-home) .bms-search-field b { font-size:10px; }
  body:has(.bms-home) .bms-search-field input,body:has(.bms-home) .bms-search-field select { display:block;width:100%;min-width:0;max-width:100%;font-size:12px; }
  body:has(.bms-home) .bms-search-category { grid-column:1/-1;border-top:1px solid #eeeef4;padding:10px 5px; }
  body:has(.bms-home) .bms-search .btn { display:flex;grid-column:1/-1;width:100%;min-width:0;max-width:100%;box-sizing:border-box;justify-content:center;align-items:center;white-space:nowrap;margin:6px 0 0;padding:12px 8px;min-height:48px;font-size:14px; }
  body:has(.bms-home) .bms-mobile-categories { width:100%;max-width:100%;box-sizing:border-box;gap:2px;margin:18px 0 30px;padding:0;overflow-x:auto; }
  body:has(.bms-home) .bms-mobile-categories a { flex:1 1 0;min-width:0;font-size:10px; }
  body:has(.bms-home) .bms-mobile-categories a>span { width:46px;height:46px; }
  body:has(.bms-home) .bms-mobile-categories b { font-size:10px; }
  body:has(.bms-home) .bms-featured>.row { width:calc(100% + 32px);max-width:none;box-sizing:border-box;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px; }
  body:has(.bms-home) .bms-featured>.row>div { flex:0 0 min(82vw,330px);width:auto;max-width:none; }
  body:has(.bms-home) .bms-studio-card { min-width:0;width:100%; }
}
@media(max-width:360px) {
  body:has(.bms-home) .bms-search { grid-template-columns:minmax(0,1fr);margin-top:250px;padding:10px; }
  body:has(.bms-home) .bms-search-field:nth-child(2) { border-left:0;border-top:1px solid #eeeef4;padding-left:5px; }
  body:has(.bms-home) .bms-mobile-categories a>span { width:42px;height:42px;font-size:19px; }
  body:has(.bms-home) .bms-mobile-categories b { font-size:9px; }
}
/* Final mobile hero flow: keep the hero image, copy, and search in one stable stack. */
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-home { width:100%;max-width:100%;overflow:hidden;padding:0 16px 28px!important; }
  body:has(.bms-home) .bms-hero { position:relative;display:flex;flex-direction:column;width:auto;height:auto;min-height:0;margin:0 -16px;padding:0 16px 16px;box-sizing:border-box;isolation:isolate; }
  body:has(.bms-home) .bms-hero-visual { position:absolute;z-index:0;display:block;top:0;left:0;right:0;bottom:auto;width:100%;height:390px;margin:0;overflow:hidden; }
  body:has(.bms-home) .bms-hero-visual>img { position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 48%;border:0;border-radius:0 0 20px 20px; }
  body:has(.bms-home) .bms-hero-visual:after { content:'';position:absolute;inset:0;border-radius:0 0 20px 20px;background:linear-gradient(90deg,#090712d9 0%,#09071270 55%,#09071220 100%); }
  body:has(.bms-home) .bms-hero-copy { position:relative;top:auto;left:auto;z-index:1;display:block;height:228px;flex:0 0 228px;padding:48px 4px 0;margin:0; }
  body:has(.bms-home) .bms-hero h1 { margin:0 0 10px;font-size:clamp(38px,10.5vw,48px);line-height:.98;letter-spacing:-1.8px;color:#fff; }
  body:has(.bms-home) .bms-hero h1 em { color:#a177ff; }
  body:has(.bms-home) .bms-hero-copy>p { margin:0;max-width:275px;color:#fff;font-size:14px;line-height:1.45; }
  body:has(.bms-home) .bms-search { position:relative;inset:auto;z-index:2;display:grid;width:100%;max-width:100%;min-width:0;height:auto;box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin:0;padding:12px;border:1px solid #ececf3;border-radius:20px;background:#fff;box-shadow:0 12px 30px #17142c24;overflow:hidden; }
  body:has(.bms-home) .bms-search-field { display:flex;align-items:center;min-width:0;width:100%;max-width:100%;box-sizing:border-box;gap:8px;padding:10px 5px;border:0; }
  body:has(.bms-home) .bms-search-field:nth-child(2) { margin:0;padding-left:9px;border-left:1px solid #eeeef4; }
  body:has(.bms-home) .bms-search-field>i { width:32px;height:32px;flex:0 0 32px;font-size:14px; }
  body:has(.bms-home) .bms-search-field>span { flex:1 1 auto;min-width:0;max-width:100%; }
  body:has(.bms-home) .bms-search-field b { font-size:10px; }
  body:has(.bms-home) .bms-search-field input,body:has(.bms-home) .bms-search-field select { display:block;width:100%;min-width:0;max-width:100%;min-height:24px;padding:0;font-size:12px; }
  body:has(.bms-home) .bms-search-category { grid-column:1/-1;padding:10px 5px;border-top:1px solid #eeeef4; }
  body:has(.bms-home) .bms-search .btn { display:flex;grid-column:1/-1;align-items:center;justify-content:center;width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:48px;margin:6px 0 0;padding:10px 8px;white-space:nowrap;font-size:14px; }
  body:has(.bms-home) .bms-mobile-categories { position:relative;z-index:1;display:flex;width:100%;max-width:100%;box-sizing:border-box;align-items:flex-start;justify-content:space-between;gap:2px;margin:13px 0 30px;padding:0;overflow-x:auto;scrollbar-width:none; }
  body:has(.bms-home) .bms-mobile-categories::-webkit-scrollbar { display:none; }
  body:has(.bms-home) .bms-mobile-categories a { display:flex;flex:1 1 0;flex-direction:column;align-items:center;gap:5px;min-width:0;color:#111321;text-decoration:none;font-size:10px; }
  body:has(.bms-home) .bms-mobile-categories a>span { width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#eee6ff;color:#6827f5;font-size:21px; }
  body:has(.bms-home) .bms-mobile-categories a:nth-child(2)>span { color:#f13d82;background:#ffe5ef; }
  body:has(.bms-home) .bms-mobile-categories a:nth-child(3)>span { color:#455cf1;background:#e3edff; }
  body:has(.bms-home) .bms-mobile-categories a:nth-child(4)>span { color:#ed812d;background:#fff0e2; }
  body:has(.bms-home) .bms-mobile-categories a:nth-child(5)>span { color:#6924ef;background:#eee7ff; }
  body:has(.bms-home) .bms-mobile-categories b { white-space:nowrap;font-size:10px;font-weight:500; }
}
@media(max-width:360px) {
  body:has(.bms-home) .bms-hero-copy { height:210px;flex-basis:210px;padding-top:42px; }
  body:has(.bms-home) .bms-search { grid-template-columns:minmax(0,1fr); }
  body:has(.bms-home) .bms-search-field:nth-child(2) { padding-left:5px;border-top:1px solid #eeeef4;border-left:0; }
  body:has(.bms-home) .bms-mobile-categories a>span { width:41px;height:41px;font-size:19px; }
  body:has(.bms-home) .bms-mobile-categories b { font-size:9px; }
}
/* Readability and persistent navigation on small screens */
@media(max-width:767.98px) {
  body:has(.bms-home) .navbar-glass { position:sticky;top:0;z-index:1040;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);box-shadow:0 2px 12px #1816260b; }
  body:has(.bms-home) .bms-benefits { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px 12px;margin-bottom:26px; }
  body:has(.bms-home) .bms-benefit-title { grid-column:1/-1;text-align:left;padding:0 3px 7px; }
  body:has(.bms-home) .bms-benefit-title h2 { font-size:22px; }
  body:has(.bms-home) .bms-benefit { min-height:60px;display:flex;flex-direction:row;justify-content:flex-start;gap:9px;padding:7px 6px;border:1px solid #eeedf6;border-radius:12px;background:#fff;text-align:left;font-size:11px;line-height:1.3; }
  body:has(.bms-home) .bms-benefit-icon { width:38px;height:38px;flex:0 0 38px;font-size:15px; }
}
@media(max-width:359.98px) {
  body:has(.bms-home) .bms-benefit { gap:6px;padding:6px 4px;font-size:10px; }
  body:has(.bms-home) .bms-benefit-icon { width:33px;height:33px;flex-basis:33px; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-hero-copy { width:100%;text-align:left; }
  body:has(.bms-home) .bms-hero h1 { width:100%;text-align:left; }
  body:has(.bms-home) .bms-hero h1 em { display:block; }
  body:has(.bms-home) .bms-hero-copy>p { width:100%;text-align:left; }
  body:has(.bms-home) .bms-search-field { text-align:left; }
  body:has(.bms-home) .bms-search-field>span { text-align:left; }
  body:has(.bms-home) .bms-search-field:nth-child(2)>span { margin-left:0; }
  body:has(.bms-home) .bms-search .btn { text-align:center; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-hero-copy { height:270px;flex-basis:270px; }
  body:has(.bms-home) .bms-hero-copy>p { max-width:320px;font-size:13px;line-height:1.42; }
}
@media(max-width:360px) {
  body:has(.bms-home) .bms-hero-copy { height:260px;flex-basis:260px; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-category-viewport { width:calc(100% + 32px);margin:0 -16px;padding:0 16px;overflow:hidden; }
  body:has(.bms-home) .bms-category-grid { display:flex;flex-wrap:nowrap;width:max-content;gap:10px;margin:0;animation:bms-category-scroll var(--bms-carousel-duration,32s) linear infinite; }
  body:has(.bms-home) .bms-category-card { flex:0 0 min(76vw,280px);width:min(76vw,280px);height:205px; }
}
@media(max-width:767.98px) and (prefers-reduced-motion:reduce) {
  body:has(.bms-home) .bms-category-viewport { overflow-x:auto; }
  body:has(.bms-home) .bms-category-grid { animation:none; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-cities { margin-bottom:26px; }
  body:has(.bms-home) .bms-city-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
  body:has(.bms-home) .bms-city-grid a { height:116px;border-radius:12px; }
  body:has(.bms-home) .bms-steps .bms-section-head { text-align:center; }
  body:has(.bms-home) .bms-steps .bms-section-subtitle { font-size:11px; }
  body:has(.bms-home) .bms-steps .bms-step { min-height:112px;padding:14px 24px 14px 10px;grid-template-columns:36px minmax(0,1fr);column-gap:8px; }
  body:has(.bms-home) .bms-steps .bms-step>strong { position:absolute;top:10px;right:10px;left:auto;width:auto;height:auto;padding:0;background:transparent;color:#1764eb;font-size:10px; }
  body:has(.bms-home) .bms-steps .bms-step>span { grid-column:1;grid-row:1/3;width:34px;height:34px; }
  body:has(.bms-home) .bms-steps .bms-step>b { grid-column:2;grid-row:1;font-size:11px; }
  body:has(.bms-home) .bms-steps .bms-step>small { grid-column:2;grid-row:2;font-size:9px; }
  body:has(.bms-home) .bms-steps .bms-step-arrow { right:8px;top:50%;transform:translateY(-50%); }
  body:has(.bms-home) .bms-stats { align-items:stretch; }
}
/* Make the owner callout readable and keep steps comfortable on mobile. */
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-step-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
  body:has(.bms-home) .bms-step { min-height:106px;padding:12px 10px;grid-template-columns:40px minmax(0,1fr);column-gap:8px; }
  body:has(.bms-home) .bms-step>strong { font-size:22px; }
  body:has(.bms-home) .bms-step>span { width:34px;height:34px; }
  body:has(.bms-home) .bms-step>b { font-size:12px; }
  body:has(.bms-home) .bms-step>small { max-width:none;font-size:10px;line-height:1.4; }
  body:has(.bms-home) .bms-owner-cta { display:flex;flex-direction:column;align-items:stretch;min-height:0;overflow:hidden;border-radius:16px;background:linear-gradient(125deg,#171052,#5422ed); }
  body:has(.bms-home) .bms-owner-cta>div { position:relative;z-index:2;width:100%;padding:22px 20px 19px;background:linear-gradient(125deg,#171052,#5422ed); }
  body:has(.bms-home) .bms-owner-cta .bms-eyebrow { color:#ddd5ff; }
  body:has(.bms-home) .bms-owner-cta h2 { color:#fff!important;font-size:26px;line-height:1.12;margin:0 0 9px; }
  body:has(.bms-home) .bms-owner-cta p { max-width:300px;color:#f1edff;font-size:12px;line-height:1.5;margin:0 0 15px; }
  body:has(.bms-home) .bms-owner-cta a { display:inline-flex;align-items:center;gap:9px;padding:11px 15px;border-radius:10px;background:#fff;color:#24145e;font-size:12px; }
  body:has(.bms-home) .bms-owner-cta>img { position:relative;inset:auto;display:block;width:100%;height:190px;max-height:none;object-fit:cover;clip-path:none;opacity:1; }
}
@media(max-width:359.98px) {
  body:has(.bms-home) .bms-step { grid-template-columns:34px minmax(0,1fr);padding:10px 8px;column-gap:6px; }
  body:has(.bms-home) .bms-step>small { font-size:9px; }
  body:has(.bms-home) .bms-owner-cta h2 { font-size:24px; }
}
/* Homepage footer contrast on phone screens */
@media(max-width:767.98px) {
  body:has(.bms-home) { overflow-x:hidden; }
  body:has(.bms-home) .bms-mobile-categories {
    justify-content:flex-start;
    gap:8px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    padding:0 2px 6px;
  }
  body:has(.bms-home) .bms-mobile-categories a {
    flex:0 0 66px;
    width:66px;
    min-width:66px;
    scroll-snap-align:start;
  }
  body:has(.bms-home) .bms-mobile-categories b {
    display:block;
    width:100%;
    max-width:66px;
    min-height:23px;
    white-space:normal;
    text-align:center;
    line-height:1.15;
  }
  body:has(.bms-home) .bms-featured>.row>div { flex:0 0 min(88vw,350px); }
}
@media(max-width:380px) {
  body:has(.bms-home) .bms-mobile-categories { gap:6px; }
  body:has(.bms-home) .bms-mobile-categories a { flex-basis:62px;width:62px;min-width:62px; }
  body:has(.bms-home) .bms-mobile-categories b { max-width:62px;font-size:9px; }
  body:has(.bms-home) .bms-featured>.row>div { flex-basis:88vw; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-hero-visual { height:400px; }
  body:has(.bms-home) .bms-hero-visual>img { object-position:58% center; }
  body:has(.bms-home) .bms-hero-visual:after { background:linear-gradient(180deg,#08071242 0%,#08071205 38%,#08071230 68%,#080712a8 100%),linear-gradient(90deg,#080712ed 0%,#080712a8 54%,#08071238 100%); }
  body:has(.bms-home) .bms-hero-copy { box-sizing:border-box;height:248px;flex-basis:248px;padding:34px 4px 0; }
  body:has(.bms-home) .bms-hero-copy .bms-eyebrow { display:flex;align-items:center;gap:7px;margin:0 0 9px;color:#e4e9ff;font-size:9px;font-weight:700;letter-spacing:1.5px;text-shadow:0 2px 10px #0009; }
  body:has(.bms-home) .bms-hero-copy .bms-eyebrow:before { content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#7e5cff;box-shadow:0 0 0 4px #8b6cff30; }
  body:has(.bms-home) .bms-hero h1 { display:block;width:100%;max-width:330px;margin:0 0 8px;text-align:left;font-size:clamp(34px,9.1vw,40px);line-height:.88;letter-spacing:-1.25px;text-wrap:balance;text-shadow:0 2px 15px #08071265; }
  body:has(.bms-home) .bms-hero h1 em { display:block;margin:0;text-align:left; }
  body:has(.bms-home) .bms-hero h1 em { color:#a98aff; }
  body:has(.bms-home) .bms-hero-copy>p { width:100%;max-width:290px;margin:0;text-align:left;font-size:13px;line-height:1.34;text-shadow:0 2px 10px #080712a0; }
  .nearby-results { padding:14px 11px;border-radius:16px; }
  .nearby-results-header { gap:10px;margin-bottom:13px; }
  .nearby-results-header h2 { font-size:20px;line-height:1.2; }
  .nearby-results-header p { max-width:34ch;font-size:12px;line-height:1.45; }
  .nearby-filters { gap:8px;margin-bottom:7px; }
  .nearby-filters label { font-size:10px; }
  .nearby-filters select { min-height:40px;border-radius:10px;font-size:12px; }
  .nearby-status { min-height:18px;margin:7px 2px 10px;font-size:11px; }
  .nearby-card-grid { gap:11px; }
  .nearby-studio-card { grid-template-columns:32% minmax(0,1fr);border-color:#e5eaf2;border-radius:15px;box-shadow:0 5px 16px #1932560d; }
  .nearby-studio-image { min-height:164px;height:100%;background:#f0f4fb; }
  .nearby-distance { left:7px;bottom:7px;gap:3px;padding:5px 7px;font-size:9px; }
  .nearby-favorite { top:7px;right:7px;width:31px;height:31px;font-size:14px; }
  .nearby-studio-body { display:flex;min-width:0;flex-direction:column;padding:10px 9px; }
  .nearby-studio-categories { gap:4px;margin:0 30px 6px 0;max-height:21px;overflow:hidden; }
  .nearby-studio-categories span { padding:4px 6px;font-size:8px;white-space:nowrap; }
  .nearby-studio-card h3 { margin-bottom:4px;font-size:13px;line-height:1.3; }
  .nearby-studio-location { min-height:0;margin-bottom:6px;font-size:9px;line-height:1.35; }
  .nearby-studio-rating { gap:4px;font-size:11px; }
  .nearby-studio-rating span { font-size:9px; }
  .nearby-studio-footer { align-items:stretch;flex-direction:column;justify-content:flex-start;gap:7px;margin-top:auto;padding-top:8px; }
  .nearby-studio-footer p { align-self:flex-start; }
  .nearby-studio-footer strong { font-size:15px; }
  .nearby-studio-footer p span { font-size:9px; }
  .nearby-view-studio { width:100%;min-height:34px;justify-content:center;gap:4px;padding:7px 8px;border-radius:8px;font-size:9px; }
  .nearby-manual-search { margin-top:15px;padding-top:13px; }
  .nearby-manual-search>div { flex-direction:column; }
  .nearby-manual-search .btn { width:100%; }
  body:has(.bms-home) .home-nearby-results .nearby-studio-card { grid-template-columns:31% minmax(0,1fr); }
  body:has(.bms-home) .home-nearby-results .nearby-studio-image { height:auto;min-height:148px; }
  body:has(.bms-home) .home-nearby-results .nearby-studio-body { display:block;padding:10px 9px 9px; }
  body:has(.bms-home) .home-nearby-results .nearby-studio-footer { margin-top:7px;padding-top:7px; }
  body:has(.bms-home) .home-nearby-results .nearby-view-studio { min-height:32px;padding:6px 7px;font-size:9px; }
  body:has(.bms-home) .site-footer { margin-top:20px;padding:30px 0 18px!important;background:#f6f7fc;border-top:1px solid #e9eaf2;color:#31364b; }
  body:has(.bms-home) .site-footer .container { padding-left:20px;padding-right:20px; }
  body:has(.bms-home) .site-footer .site-wordmark { color:#111321!important;font-family:'Plus Jakarta Sans',sans-serif;font-size:21px;letter-spacing:-.6px;text-transform:none; }
  body:has(.bms-home) .site-footer .site-wordmark span { color:#6127f5!important; }
  body:has(.bms-home) .site-footer h6,body:has(.bms-home) .site-footer .text-dark,body:has(.bms-home) .site-footer .fs-5 { color:#171a2a!important; }
  body:has(.bms-home) .site-footer .text-muted { color:#596177!important;line-height:1.65; }
  body:has(.bms-home) .site-footer .footer-link { color:#4b536b!important; }
  body:has(.bms-home) .site-footer .footer-link:hover { color:#6127f5!important; }
  body:has(.bms-home) .site-footer .footer-bottom { border-color:#e0e2eb!important;color:#616980!important; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-section-head:has(.bms-section-subtitle) { display:block;text-align:center;margin:0 0 14px; }
  body:has(.bms-home) .bms-section-subtitle { margin-top:5px;font-size:12px; }
  body:has(.bms-home) .bms-category-grid { align-items:stretch; }
  body:has(.bms-home) .bms-category-card { height:190px; }
  body:has(.bms-home) .bms-category-card>img { flex:0 0 52%;height:52%; }
  body:has(.bms-home) .bms-category-title { top:52%;height:48%;grid-template-columns:30px minmax(0,1fr) 14px;grid-template-rows:auto auto;padding:8px;gap:3px 6px; }
  body:has(.bms-home) .bms-category-title i:first-child { grid-row:1/3;width:29px;height:29px;flex-basis:29px; }
  body:has(.bms-home) .bms-category-title b { min-width:0;font-size:10px;line-height:1.2; }
  body:has(.bms-home) .bms-category-title small { font-size:8px;line-height:1.25; }
  body:has(.bms-home) .bms-business-grid { align-items:stretch; }
  body:has(.bms-home) .bms-business-card { height:100%; }
  body:has(.bms-home) .bms-stats>div { min-width:0;gap:8px; }
  body:has(.bms-home) .bms-stats span { min-width:0; }
  body:has(.bms-home) .bms-stats small { line-height:1.25; }
  body:has(.bms-home) .bms-steps .bms-step-grid { gap:9px; }
  body:has(.bms-home) .bms-steps .bms-step { min-height:112px; }
  body:has(.bms-home) .bms-steps .bms-step>strong { left:56px; }
  body:has(.bms-home) .bms-owner-cta .bms-cta-secondary { margin:8px 0 0 6px; }
}
@media(max-width:360px) {
  body:has(.bms-home) .bms-hero-copy { height:242px;flex-basis:242px;padding-top:31px; }
  body:has(.bms-home) .bms-hero h1 { max-width:300px;font-size:clamp(32px,9vw,36px);line-height:.88; }
  body:has(.bms-home) .bms-hero-copy>p { max-width:270px;font-size:12px; }
}

/* Last tablet pass: use the home root as the scope so older tablet browsers
   that do not support :has() still receive the layout and sizing fixes. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .navbar-glass .container { padding-left:22px;padding-right:22px; }
  .navbar-glass .navbar-collapse { padding-top:12px; }
  .navbar-glass .navbar-nav { gap:2px!important; }
  .navbar-glass .nav-link { min-height:44px;display:flex;align-items:center; }
  .bms-home { width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow-x:clip;padding:0 22px 42px!important; }
  .bms-home .bms-hero { position:relative;display:flex;flex-direction:column;align-items:stretch;width:calc(100% + 44px);height:auto;min-height:0;margin:0 -22px;padding:0 0 18px;box-sizing:border-box; }
  .bms-home .bms-hero-visual { position:relative;inset:auto;order:0;width:100%;height:clamp(300px,38vw,390px);margin:0; }
  .bms-home .bms-hero-copy { position:absolute;top:9%;left:6%;right:6%;width:auto;max-width:560px;padding:0; }
  .bms-home .bms-hero h1 { max-width:540px;margin:0 0 12px;font-size:clamp(42px,6vw,62px);line-height:.98; }
  .bms-home .bms-hero-copy>p { max-width:430px;font-size:15px;line-height:1.45; }
  .bms-home .bms-search { position:relative;inset:auto;left:auto;right:auto;bottom:auto;align-self:stretch;width:auto;min-width:0;max-width:calc(100% - 48px);box-sizing:border-box;margin:-28px 24px 0;padding:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0; }
  .bms-home .bms-search-field { min-width:0;min-height:56px;gap:8px;padding:7px 10px;border-right:1px solid #eeeef4; }
  .bms-home .bms-search-field>span { min-width:0; }
  .bms-home .bms-search-field b { font-size:11px; }
  .bms-home .bms-search-field input,.bms-home .bms-search-field select { width:100%;min-width:0;max-width:100%;font-size:12px; }
  .bms-home .bms-search .btn { grid-column:1/-1;min-width:0;min-height:48px;margin:8px 0 0;justify-content:center; }
  .bms-home .bms-nearby-quick { position:relative;left:auto;bottom:auto;align-self:flex-start;margin:10px 24px 0; }
  .bms-home .bms-category-viewport { width:100%;min-width:0;margin:0;padding:0 0 10px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#c9cfe0 transparent;-webkit-overflow-scrolling:touch; }
  .bms-home .bms-category-grid { display:flex;width:max-content;max-width:none;flex-wrap:nowrap;gap:14px;margin:0;animation:none;transform:none;will-change:auto; }
  .bms-home .bms-category-card { display:flex;flex:0 0 clamp(220px,30vw,300px);width:clamp(220px,30vw,300px);height:230px;scroll-snap-align:start; }
  .bms-home .bms-category-card--clone { display:none; }
  .bms-home .bms-category-card>img { flex:0 0 52%;height:52%; }
  .bms-home .bms-category-title { top:52%;bottom:0;height:48%;padding:10px; }
  .bms-home .bms-section { min-width:0; }
  .bms-home .bms-section-head { width:100%;min-width:0; }
  .bms-home .bms-section { margin-bottom:32px; }
  .bms-home .bms-business,.bms-home .bms-stats,.bms-home .bms-owner-cta { width:calc(100% + 44px);max-width:none;box-sizing:border-box;margin-left:-22px;margin-right:-22px; }
  .bms-home .bms-business { display:grid;grid-template-columns:1fr;gap:18px;margin-top:8px;margin-bottom:30px;padding:26px 22px; }
  .bms-home .bms-business-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  .bms-home .bms-business-card { min-height:140px;padding:16px; }
  .bms-home .bms-benefits { grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:18px;margin-bottom:30px; }
  .bms-home .bms-benefit-title { grid-column:1/-1;text-align:center;padding:0 0 6px; }
  .bms-home .bms-benefit { border:0; }
  .bms-home .bms-city-grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }
  .bms-home .bms-city-grid a { height:clamp(100px,14vw,135px); }
  .bms-home .bms-step-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  .bms-home .bms-step { min-height:110px; }
  .bms-home .bms-owner-cta { min-height:260px; }
  .bms-home .bms-owner-cta>div { width:62%;padding:24px 5%; }
}
@media(max-width:640px) {
  body:has(.bms-home) .navbar-glass .container { padding-right:16px;padding-left:16px; }
  body:has(.bms-home) .navbar-glass .navbar-collapse { display:flex!important;flex-basis:auto;padding:0; }
  body:has(.bms-home) .navbar-glass .navbar-toggler { display:none!important; }
  body:has(.bms-home) .navbar-glass .navbar-mobile-favorites { display:grid; }
}
@media(max-width:640px) {
  body:has(.bms-home) .bms-home { width:100%;max-width:none;overflow-x:clip;padding:0 16px 98px!important;background:linear-gradient(180deg,#f7fbff,#fff 65%); }
  body:has(.bms-home) .bms-hero { position:relative;display:block;width:calc(100% + 32px);height:350px;min-height:0;margin:0 -16px;padding:0; }
  body:has(.bms-home) .bms-hero-visual { position:absolute;inset:0;height:100%;margin:0; }
  body:has(.bms-home) .bms-hero-visual:after { background:linear-gradient(90deg,#f7fbfff4 0%,#f7fbffcf 47%,#0758c144 100%); }
  body:has(.bms-home) .bms-hero-copy { position:absolute;top:13%;left:7%;right:7%;padding:0; }
  body:has(.bms-home) .bms-hero h1 { max-width:350px;color:#10162b;font-size:clamp(2.8rem,11vw,4rem);line-height:.92; }
  body:has(.bms-home) .bms-hero h1 em { color:#1764eb; }
  body:has(.bms-home) .bms-hero-copy>p { max-width:300px;color:#35435f;font-size:14px; }
  body:has(.bms-home) .bms-search { position:absolute;left:12px;right:12px;bottom:-76px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 54px;grid-template-rows:58px 52px;gap:0;margin:0;padding:9px;border-radius:20px; }
  body:has(.bms-home) .bms-search-field { min-height:44px;padding:6px 8px;gap:7px;border:0; }
  body:has(.bms-home) .bms-search-field:nth-child(1) { grid-column:1/3;grid-row:1; }
  body:has(.bms-home) .bms-search-field:nth-child(2) { grid-column:1/2;grid-row:2; }
  body:has(.bms-home) .bms-search-field:nth-child(3) { grid-column:2/3;grid-row:2;padding-left:9px;border-left:1px solid #e2e7f1; }
  body:has(.bms-home) .bms-search-field>i { width:30px;height:30px;flex:0 0 30px;font-size:13px; }
  body:has(.bms-home) .bms-search-field b { display:none; }
  body:has(.bms-home) .bms-search-field input,body:has(.bms-home) .bms-search-field select { max-width:none;font-size:11px; }
  body:has(.bms-home) .bms-search-field:nth-child(1) input { font-size:12px; }
  body:has(.bms-home) .bms-search .btn { grid-column:3;grid-row:1/3;width:52px;height:52px;min-width:0;margin:0;padding:0;border-radius:50%;font-size:0; }
  body:has(.bms-home) .bms-nearby-quick { position:absolute;left:13px;bottom:-143px;min-height:45px;margin:0;padding:6px 12px 6px 7px; }
  body:has(.bms-home) .bms-trust { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:166px 0 27px;padding:10px;border-radius:17px; }
  body:has(.bms-home) .bms-trust span { min-height:55px;justify-content:flex-start;padding:5px 4px;border:0;font-size:10px; }
  body:has(.bms-home) .bms-trust i { width:34px;height:34px;flex:0 0 34px;font-size:15px; }
  body:has(.bms-home) .bms-category-viewport { overflow:visible; }
  body:has(.bms-home) .bms-category-grid { display:grid;width:100%;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;animation:none;transform:none; }
  body:has(.bms-home) .bms-category-card,body:has(.bms-home) .bms-category-card--clone { display:flex!important;height:190px; }
  body:has(.bms-home) .bms-category-card>img { flex:0 0 57%;height:57%; }
  body:has(.bms-home) .bms-category-title { top:57%;bottom:0;height:43%;grid-template-columns:30px minmax(0,1fr) 24px;padding:8px;gap:2px 6px; }
  body:has(.bms-home) .bms-next-booking { grid-template-columns:34% minmax(0,1fr) 15px;min-height:125px; }
  body:has(.bms-home) .bms-next-booking-image { height:125px; }
  body:has(.bms-home) .bms-next-booking-details { gap:6px;padding:11px;font-size:11px; }
  body:has(.bms-home) .bms-next-booking-details strong { font-size:14px;line-height:1.25; }
  body:has(.bms-home) .bms-booking-empty { grid-template-columns:38px 1fr;padding:12px; }
  body:has(.bms-home) .bms-booking-empty-cta { grid-column:2;font-size:11px; }
}
@media(max-width:640px) {
  body:has(.bms-home) .bms-category-card--clone { display:none!important; }
}
@media (min-width:641px) and (max-width:991px) {
  body:has(.bms-home) .bms-category-viewport { overflow:visible; }
  body:has(.bms-home) .bms-category-grid { display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;animation:none;transform:none; }
  body:has(.bms-home) .bms-category-card,body:has(.bms-home) .bms-category-card--clone { display:flex;height:205px; }
  body:has(.bms-home) .bms-category-card--clone { display:none!important; }
  body:has(.bms-home) .bms-category-title { top:62%;height:38%;grid-template-columns:30px minmax(0,1fr) 24px;padding:8px;gap:2px 6px; }
  body:has(.bms-home) .bms-category-card>img { flex-basis:62%;height:62%; }
}
/* Responsive home navigation and stacked discovery layout */
@media(max-width:991px) {
  body:has(.bms-home) .navbar-glass .container { max-width:100%;padding-right:20px;padding-left:20px; }
  body:has(.bms-home) .bms-home-nav .navbar-mobile-favorites { display:grid!important;flex:0 0 40px;margin-left:auto; }
  body:has(.bms-home) .bms-home-nav .navbar-toggler { display:block!important;margin-left:8px;padding:4px 0 4px 8px; }
  body:has(.bms-home) .bms-home-nav .navbar-collapse.collapse:not(.show) { display:none!important; }
  body:has(.bms-home) .bms-home-nav .navbar-collapse.collapse.show { display:block!important;flex-basis:100%;padding:10px 0 4px; }
  body:has(.bms-home) .bms-home-nav .navbar-nav { display:flex!important;align-items:stretch;gap:2px!important;margin:0!important; }
  body:has(.bms-home) .bms-home-nav .navbar-nav .nav-link { min-height:42px;padding:8px 12px!important;border-radius:10px; }
  body:has(.bms-home) .bms-home { padding-right:20px!important;padding-left:20px!important; }
  body:has(.bms-home) .bms-home>.bms-hero { width:100%;grid-template-columns:1fr;grid-template-rows:auto 240px auto;gap:14px;margin:12px auto 0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy { grid-column:1;grid-row:1;padding:15px 0 0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy h1 { max-width:600px;font-size:clamp(42px,8vw,62px); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy>p { max-width:560px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks { margin-top:12px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual { grid-column:1;grid-row:2;height:240px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search { grid-column:1;grid-row:3;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 58px;grid-template-rows:55px 50px;gap:0;padding:9px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(1) { grid-column:1/3;grid-row:1; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(2) { grid-column:1;grid-row:2; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(3) { grid-column:2;grid-row:2;border-left:1px solid #e1e8f4; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search .btn { grid-column:3;grid-row:1/3;width:52px;height:52px;min-width:52px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-nearby-quick { display:none; }
  body:has(.bms-home) .bms-home>.bms-trust { grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0 28px;padding:10px; }
  body:has(.bms-home) .bms-home>.bms-trust>span { min-height:60px;padding:7px 10px;border:0;font-size:11px; }
  body:has(.bms-home) .bms-home>.bms-trust>span>i { width:40px;height:40px;flex-basis:40px;font-size:17px; }
  body:has(.bms-home) .bms-home>.bms-trust b { font-size:11px; }
  body:has(.bms-home) .bms-home>.bms-trust small { font-size:9px; }
  body:has(.bms-home) .bms-home>.bms-categories { margin-bottom:27px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-card { height:205px; }
  body:has(.bms-home) .bms-home>.bms-my-bookings { display:block;order:5;margin-bottom:28px; }
  body:has(.bms-home) .bms-home>.bms-featured { order:6; }
  body:has(.bms-home) .bms-home>.bms-featured .row { --bs-gutter-x:12px; }
}
@media(max-width:575.98px) {
  body:has(.bms-home) .navbar-glass .container { padding-right:14px;padding-left:14px; }
  body:has(.bms-home) .bms-home { padding-right:14px!important;padding-left:14px!important; }
  body:has(.bms-home) .bms-home>.bms-hero { width:calc(100% + 28px);grid-template-rows:auto 205px auto;margin:0 -14px;padding:0 14px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy { padding-top:9px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-eyebrow { font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy h1 { font-size:clamp(38px,11vw,52px); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy>p { max-width:360px;font-size:13px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks { gap:10px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks span { gap:5px;font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks i { width:31px;height:31px;border-radius:10px;font-size:14px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual { height:205px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual>img { border-radius:16px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;grid-template-rows:48px 45px;padding:7px;border-radius:16px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field { min-height:40px;gap:5px;padding:4px 6px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field b { display:none; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field>i { width:22px;height:22px;flex-basis:22px;font-size:15px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field input,body:has(.bms-home) .bms-home>.bms-hero .bms-search-field select { font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search .btn { width:44px;height:44px;min-width:44px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-card { height:174px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title { grid-template-columns:27px minmax(0,1fr) 22px;padding:6px;gap:0 5px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title i:first-child { width:30px;height:30px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title b { font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title small { font-size:8px; }
  body:has(.bms-home) .bms-home>.bms-featured .row>div { flex:0 0 84%;max-width:84%; }
  body:has(.bms-home) .bms-home .bms-studio-card { min-height:150px; }
}

/* Final phone layout: keep the hero, search, and following content in normal flow. */
@media(max-width:640px) {
  body:has(.bms-home) { overflow-x:hidden; }
  body:has(.bms-home) .bms-home {
    display:flex;flex-direction:column;gap:0;width:100%;max-width:none;min-width:0;
    overflow-x:clip;padding:0 16px 112px!important;background:linear-gradient(180deg,#f7fbff,#fff 70%);
  }
  body:has(.bms-home) .bms-home>.bms-hero {
    position:relative;display:flex!important;flex-direction:column;width:100%;height:auto!important;min-height:0;
    gap:0;margin:0 auto;padding:10px 0 0;
  }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual {
    position:relative!important;inset:auto!important;order:0;width:100%;height:155px!important;flex:none;
    overflow:hidden;margin:0;border-radius:17px;
  }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual>img { width:100%;height:100%;border-radius:17px;object-fit:cover;object-position:center 43%; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual:after { border-radius:17px;background:linear-gradient(90deg,#09162b20,transparent 65%); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy {
    position:relative!important;inset:auto!important;order:1;width:100%;height:auto!important;flex:0 0 auto!important;
    max-width:none;padding:15px 2px 0!important;
  }
  body:has(.bms-home) .bms-home>.bms-hero .bms-eyebrow { display:flex;align-items:center;gap:7px;margin:0 0 8px;color:#7183a5;font-size:10px;font-weight:700;letter-spacing:1.2px;text-shadow:none; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-eyebrow:before { content:none; }
  body:has(.bms-home) .bms-home>.bms-hero h1 { display:block;width:100%;max-width:100%;margin:0;color:#101a34;font-size:clamp(35px,10vw,42px);line-height:.94;letter-spacing:-1.7px;text-align:left;text-shadow:none; }
  body:has(.bms-home) .bms-home>.bms-hero h1 br { display:none!important; }
  body:has(.bms-home) .bms-home>.bms-hero h1 .hero-find,
  body:has(.bms-home) .bms-home>.bms-hero h1 em { display:block;margin:0;text-align:left; }
  body:has(.bms-home) .bms-home>.bms-hero h1 em { color:#1764eb; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy>p { width:100%;max-width:100%;margin:9px 0 0;color:#586985;font-size:13px;line-height:1.45;text-align:left;text-shadow:none; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks { display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks span { display:flex;align-items:center;gap:6px;color:#344764;font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks i { display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#fff;color:#1764eb;font-size:14px;box-shadow:0 4px 12px #255a9a18; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search {
    position:relative!important;inset:auto!important;order:2;width:100%;max-width:none;display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 46px;grid-template-rows:46px 42px;gap:0;
    margin:14px 0 0;padding:7px;border:1px solid #e7edf7;border-radius:17px;background:#fffffff2;
    box-shadow:0 9px 25px #24518c14;backdrop-filter:blur(12px);
  }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field { min-width:0;min-height:38px;gap:5px;padding:4px 6px;border:0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(1) { grid-column:1/3;grid-row:1; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(2) { grid-column:1;grid-row:2; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(3) { grid-column:2;grid-row:2;border-left:1px solid #e2e8f2; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field>i { display:grid;width:25px;height:25px;flex:0 0 25px;background:transparent;color:#14203a;font-size:15px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field b { display:none!important; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field span { display:block;min-width:0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field input,
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field select { width:100%;min-width:0;max-width:100%;padding:0;font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search .btn { grid-column:3;grid-row:1/3;width:42px;height:42px;min-width:42px;margin:0;padding:0;border-radius:50%;font-size:0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search .btn i { font-size:17px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-nearby-quick { display:none; }
  body:has(.bms-home) .bms-home>.bms-trust {
    display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;
    margin:20px 0 25px;padding:8px;border:1px solid #edf1f8;border-radius:16px;background:#ffffffed;
    box-shadow:0 7px 20px #23518d0b;
  }
  body:has(.bms-home) .bms-home>.bms-trust>span { display:flex;min-width:0;min-height:54px;align-items:center;justify-content:flex-start;gap:8px;padding:5px;border:0;font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-trust>span>i { display:grid;width:32px;height:32px;flex:0 0 32px;font-size:14px; }
  body:has(.bms-home) .bms-home>.bms-trust>span>span { display:flex;min-width:0;flex-direction:column;gap:2px; }
  body:has(.bms-home) .bms-home>.bms-trust b { color:#14203a;font-size:10px;line-height:1.2; }
  body:has(.bms-home) .bms-home>.bms-trust small { color:#8795af;font-size:8px;line-height:1.2; }
  body:has(.bms-home) .bms-home>.bms-categories { width:100%;margin:0 0 25px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-section-head { display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;text-align:left; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-section-head h2,
  body:has(.bms-home) .bms-home>.bms-featured .bms-section-head h2 { font-size:19px;line-height:1.2;text-align:left; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-section-subtitle { display:none; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-view-all,
  body:has(.bms-home) .bms-home>.bms-featured .bms-view-all { flex:0 0 auto;font-size:11px;white-space:nowrap; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-viewport { width:100%;overflow:visible; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-grid { display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;animation:none;transform:none; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-card { display:flex!important;width:100%;height:150px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-card>img { flex:0 0 57%;height:57%; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title { top:57%;bottom:0;height:43%;grid-template-columns:27px minmax(0,1fr) 18px;padding:6px;gap:1px 5px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title i:first-child { width:28px;height:28px;flex-basis:28px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title b { font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title small { font-size:8px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title i:last-child { width:20px;height:20px;font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-my-bookings { margin:0 0 24px; }
  body:has(.bms-home) .bms-home>.bms-featured { width:100%;margin:0 0 28px; }
  body:has(.bms-home) .bms-home>.bms-featured .bms-section-head { display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px; }
  body:has(.bms-home) .bms-home>.bms-featured .bms-head-actions { gap:6px; }
  body:has(.bms-home) .bms-home>.bms-featured .bms-round { display:none; }
  body:has(.bms-home) .bms-home>.bms-featured .row>div { flex:0 0 84%;max-width:84%; }
  body:has(.bms-home) .bms-home .bms-studio-card { min-height:150px; }
  body:has(.bms-home) .bms-bottom-nav { right:10px;bottom:max(8px,env(safe-area-inset-bottom));left:10px;min-height:68px; }
}
@media(max-width:380px) {
  body:has(.bms-home) .bms-home { padding-right:13px!important;padding-left:13px!important; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual { height:140px!important; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks { gap:5px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks span { gap:4px;font-size:9px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search .btn { width:38px;height:38px;min-width:38px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-card { height:140px; }
}

.navbar-mobile-profile { display:none; }
/* Match the supplied mobile dashboard composition on phones and small tablets. */
@media(max-width:991px) {
  body:has(.bms-home) .bms-home-nav { min-height:clamp(62px,10vw,96px);padding:0!important;background:#fff; }
  body:has(.bms-home) .bms-home-nav>.container { display:flex;flex-wrap:nowrap;max-width:100%;gap:10px;padding-right:clamp(14px,5.8vw,55px);padding-left:clamp(14px,5.8vw,55px); }
  body:has(.bms-home) .bms-home-nav .navbar-brand { flex:0 1 auto;min-width:0;margin:0; }
  body:has(.bms-home) .bms-home-nav .site-brand-logo { display:block;width:clamp(150px,36vw,340px);height:auto;max-height:90px;object-fit:contain; }
  body:has(.bms-home) .bms-home-nav .navbar-mobile-favorites,
  body:has(.bms-home) .bms-home-nav .navbar-mobile-profile { display:grid!important;place-items:center;width:clamp(36px,7vw,66px);height:clamp(36px,7vw,66px);flex:0 0 auto;margin:0;border:1px solid #e7edf7;border-radius:50%;background:#f7faff;color:#1764eb;font-size:clamp(17px,2.5vw,28px);text-decoration:none; }
  body:has(.bms-home) .bms-home-nav .navbar-mobile-favorites { margin-left:auto; }
  body:has(.bms-home) .bms-home-nav .navbar-mobile-profile { color:#25324d; }
  body:has(.bms-home) .bms-home-nav .navbar-mobile-profile img { width:100%;height:100%;border-radius:50%;object-fit:cover; }
  body:has(.bms-home) .bms-home-nav .navbar-toggler { display:none!important; }
  body:has(.bms-home) .bms-home-nav .navbar-collapse { display:none!important; }
  body:has(.bms-home) .bms-home { display:flex;flex-direction:column;gap:0;width:100%;max-width:none;min-width:0;overflow-x:clip;padding:0 clamp(22px,5.8vw,55px) 110px!important;background:radial-gradient(ellipse at 82% 22%,#e4f0ff 0,transparent 48%),linear-gradient(180deg,#f7fbff,#fff 72%); }
  body:has(.bms-home) .bms-home>.bms-hero { position:relative;display:flex!important;flex-direction:column;width:100%;height:auto!important;min-height:0;gap:0;margin:0;padding:0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual { position:absolute!important;z-index:0;inset:0 auto auto 50%!important;order:0;width:100vw;height:clamp(270px,31vw,300px)!important;overflow:hidden;margin:0;transform:translateX(-50%); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual>img { width:100%;height:100%;border:0;border-radius:0;object-fit:cover;object-position:66% center; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual:after { background:linear-gradient(90deg,#f8fbfff8 0%,#f8fbffe8 34%,#f8fbff8a 53%,#eaf3ff18 76%,#1268f520 100%); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy { position:relative!important;z-index:1;inset:auto!important;order:0;width:53%;height:clamp(270px,31vw,300px)!important;flex:0 0 auto!important;max-width:520px;padding:clamp(26px,5vw,48px) 0 0 clamp(0px,1.3vw,12px)!important; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-eyebrow { display:block;margin:0 0 8px;color:#7183a5;font-size:clamp(9px,1.2vw,12px);font-weight:700;letter-spacing:1.25px;text-shadow:none; }
  body:has(.bms-home) .bms-home>.bms-hero h1 { width:100%;max-width:520px;margin:0;color:#101a34;font-size:clamp(38px,7.7vw,72px);line-height:.91;letter-spacing:-.065em;text-align:left;text-shadow:none; }
  body:has(.bms-home) .bms-home>.bms-hero h1 br { display:none!important; }
  body:has(.bms-home) .bms-home>.bms-hero h1 .hero-find,
  body:has(.bms-home) .bms-home>.bms-hero h1 em { display:block;margin:0;text-align:left; }
  body:has(.bms-home) .bms-home>.bms-hero h1 em { color:#1764eb; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy>p { width:100%;max-width:470px;margin:10px 0 0;color:#35435f;font-size:clamp(12px,1.8vw,17px);line-height:1.42;text-align:left;text-shadow:none; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks { display:flex;flex-wrap:wrap;gap:clamp(7px,1.8vw,18px);margin:14px 0 0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks span { display:flex;align-items:center;gap:7px;color:#344764;font-size:clamp(9px,1.35vw,13px);font-weight:600; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks i { display:grid;place-items:center;width:clamp(30px,4.5vw,44px);height:clamp(30px,4.5vw,44px);border-radius:13px;background:#fff;color:#1764eb;font-size:clamp(14px,2vw,20px);box-shadow:0 5px 14px #255a9a1a; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search { position:relative!important;z-index:2;inset:auto!important;order:1;width:100%;max-width:none;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.8fr) clamp(46px,8vw,78px);grid-template-rows:clamp(58px,8.5vw,82px) clamp(48px,6.5vw,62px);gap:0;margin:0;padding:clamp(9px,1.4vw,14px);border:1px solid #fff;border-radius:clamp(18px,2.7vw,27px);background:#ffffffed;box-shadow:0 15px 36px #24518c1e;backdrop-filter:blur(14px); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field { min-width:0;min-height:0;gap:clamp(7px,1.3vw,13px);padding:6px clamp(7px,2vw,19px);border:0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(1) { grid-column:1/3;grid-row:1;border-radius:22px;background:#fff;box-shadow:0 6px 22px #24477b14; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(2) { grid-column:1;grid-row:2; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(3) { grid-column:2;grid-row:2;border-left:1px solid #dce4f1; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field>i { display:grid;width:clamp(23px,3.6vw,35px);height:clamp(23px,3.6vw,35px);flex:0 0 clamp(23px,3.6vw,35px);background:transparent;color:#121d36;font-size:clamp(15px,2.6vw,24px); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field span { display:grid;min-width:0;gap:0; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field b { display:none; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field input,
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field select { width:100%;min-width:0;max-width:100%;padding:0;color:#52627e;font-size:clamp(10px,1.6vw,15px); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field:nth-child(1) input { font-size:clamp(11px,2vw,18px); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search .btn { grid-column:3;grid-row:1/3;align-self:center;justify-self:center;width:clamp(44px,7.5vw,72px);height:clamp(44px,7.5vw,72px);min-width:0;margin:0;padding:0;border:3px solid #fff;border-radius:50%;font-size:0;box-shadow:0 7px 20px #1764eb40; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search .btn i { font-size:clamp(18px,3vw,28px); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-nearby-quick { position:relative!important;inset:auto!important;z-index:1;order:2;display:flex;align-self:flex-start;min-height:clamp(54px,8vw,76px);gap:clamp(8px,2vw,18px);margin:clamp(14px,2.2vw,22px) 0 0;padding:7px clamp(16px,3vw,30px) 7px 8px;border:0;border-radius:999px;background:#ffffffeb;box-shadow:0 9px 24px #27538e16;color:#14203a; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-nearby-quick>i { display:grid;width:clamp(38px,6vw,58px);height:clamp(38px,6vw,58px);place-items:center;border-radius:50%;background:#e8f1ff;color:#1268f5;font-size:clamp(19px,3vw,28px); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-nearby-quick [data-nearby-label] { color:#111a32;font-size:clamp(13px,2.1vw,19px);font-weight:800; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-nearby-quick small { padding-left:clamp(8px,2vw,20px);border-left:1px solid #dbe4f2;color:#52627e;font-size:clamp(10px,1.8vw,16px); }
  body:has(.bms-home) .bms-home>.bms-hero .bms-nearby-quick:after { margin-left:auto;content:'›';color:#121d36;font-size:28px;line-height:1; }
  body:has(.bms-home) .bms-home>.bms-trust { order:2;display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:clamp(18px,2.5vw,24px) 0 clamp(24px,3.5vw,34px);padding:clamp(10px,1.5vw,15px);border:1px solid #edf1f8;border-radius:clamp(17px,2.5vw,24px);background:#ffffffec;box-shadow:0 9px 26px #23518d0e; }
  body:has(.bms-home) .bms-home>.bms-trust>span { display:flex;min-width:0;min-height:clamp(86px,13vw,125px);flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:5px 3px;border-right:1px solid #dce5f3;text-align:center; }
  body:has(.bms-home) .bms-home>.bms-trust>span:last-child { border:0; }
  body:has(.bms-home) .bms-home>.bms-trust>span>i { display:grid;width:clamp(42px,7.8vw,74px);height:clamp(42px,7.8vw,74px);flex:0 0 auto;font-size:clamp(19px,3.2vw,30px); }
  body:has(.bms-home) .bms-home>.bms-trust>span>span { display:flex;min-width:0;flex-direction:column;gap:1px; }
  body:has(.bms-home) .bms-home>.bms-trust b { color:#263651;font-size:clamp(9px,1.65vw,15px);line-height:1.25;font-weight:500; }
  body:has(.bms-home) .bms-home>.bms-trust small { display:none; }
  body:has(.bms-home) .bms-home>.bms-categories { order:3;width:100%;margin:0 0 clamp(28px,4vw,40px); }
  body:has(.bms-home) .bms-home>.bms-categories .bms-section-head { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 clamp(14px,2vw,20px);text-align:left; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-section-head h2 { color:#10162b;font-size:clamp(20px,3.2vw,34px);line-height:1.2;text-align:left; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-section-subtitle { display:none; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-view-all { flex:0 0 auto;font-size:clamp(11px,1.9vw,18px);white-space:nowrap; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-viewport { width:100%;overflow:visible; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-grid { display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,2vw,20px);margin:0;animation:none;transform:none; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-card { display:flex!important;width:100%;height:clamp(190px,29vw,272px); }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-card>img { flex:0 0 67%;height:67%; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title { top:67%;bottom:0;height:33%;grid-template-columns:clamp(32px,5.5vw,52px) minmax(0,1fr) 28px;grid-template-rows:auto auto;padding:clamp(7px,1.2vw,12px);gap:1px clamp(6px,1vw,10px); }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title i:first-child { grid-row:1/3;width:clamp(32px,5.5vw,52px);height:clamp(32px,5.5vw,52px);flex-basis:clamp(32px,5.5vw,52px);font-size:clamp(15px,2.5vw,23px); }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title b { align-self:end;color:#10162b;font-size:clamp(11px,1.9vw,17px); }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title small { grid-column:2/4;color:#5d6e8d;font-size:clamp(9px,1.5vw,14px); }
  body:has(.bms-home) .bms-home>.bms-my-bookings { order:4;display:block;width:100%;margin:0 0 26px; }
  body:has(.bms-home) .bms-home>.bms-my-bookings .bms-section-head { display:flex;align-items:center;justify-content:space-between;margin:0 0 16px; }
  body:has(.bms-home) .bms-home>.bms-my-bookings .bms-section-head h2 { color:#10162b;font-size:clamp(22px,3.3vw,34px); }
  body:has(.bms-home) .bms-home>.bms-my-bookings .bms-view-all { font-size:clamp(12px,1.9vw,18px); }
  body:has(.bms-home) .bms-home>.bms-my-bookings .bms-next-booking { grid-template-columns:38% minmax(0,1fr) 18px;min-height:clamp(118px,17vw,170px);border-radius:20px; }
  body:has(.bms-home) .bms-home>.bms-my-bookings .bms-next-booking-image { height:100%; }
  body:has(.bms-home) .bms-home>.bms-my-bookings .bms-next-booking-details { gap:6px;padding:clamp(10px,2vw,20px);font-size:clamp(10px,1.7vw,16px); }
  body:has(.bms-home) .bms-home>.bms-my-bookings .bms-next-booking-details strong { font-size:clamp(14px,2.5vw,24px);line-height:1.2; }
  body:has(.bms-home) .bms-bottom-nav { position:fixed;z-index:1035;right:14px;bottom:max(10px,env(safe-area-inset-bottom));left:14px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;min-height:clamp(78px,14vw,138px);padding:8px 5px 5px;border:1px solid #e6edf7;border-radius:clamp(22px,3.5vw,36px);background:#fffffff2;box-shadow:0 9px 32px #173b6d20;backdrop-filter:blur(18px); }
  body:has(.bms-home) .bms-bottom-nav>a { display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#596581;text-decoration:none;font-size:clamp(10px,1.8vw,17px); }
  body:has(.bms-home) .bms-bottom-nav>a i { font-size:clamp(21px,3.4vw,33px);line-height:1; }
  body:has(.bms-home) .bms-bottom-nav>a.is-active { color:#0865f5; }
  body:has(.bms-home) .bms-bottom-nav>a.is-active:after { width:clamp(42px,8vw,76px);height:4px;margin-top:4px;border-radius:5px;background:#1268f5;content:''; }
  body:has(.bms-home) .bms-bottom-nav>a.bms-bottom-nav-book { transform:translateY(clamp(-12px,-1.5vw,-6px));color:#fff; }
  body:has(.bms-home) .bms-bottom-nav-book i { display:grid;place-items:center;width:clamp(62px,11vw,104px);height:clamp(62px,11vw,104px);border:5px solid #fff;border-radius:50%;background:linear-gradient(145deg,#168cff,#0756ed);box-shadow:0 7px 18px #1764eb55;font-size:clamp(30px,5vw,48px); }
  body:has(.bms-home) .bms-bottom-nav-book span { color:#596581; }
  body:has(.bms-home) .bms-home>.bms-business,
  body:has(.bms-home) .bms-home>#why-bookmystudio,
  body:has(.bms-home) .bms-home>.bms-cities,
  body:has(.bms-home) .bms-home>.bms-steps,
  body:has(.bms-home) .bms-home>.bms-stats,
  body:has(.bms-home) .bms-home>.bms-owner-cta { order:5; }
}
@media(max-width:640px) {
  body:has(.bms-home) .bms-home { padding-right:16px!important;padding-left:16px!important; }
  body:has(.bms-home) .bms-home-nav>.container { padding-right:14px;padding-left:14px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-visual { height:clamp(245px,66vw,275px)!important; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy { position:relative!important;inset:auto!important;left:0!important;align-self:flex-start!important;width:68%!important;height:clamp(245px,66vw,275px)!important;margin:0!important;padding:clamp(24px,6vw,34px) 0 0!important;transform:none!important;text-align:left!important; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-eyebrow { margin-bottom:7px;font-size:9px; }
  body:has(.bms-home) .bms-home>.bms-hero h1 { font-size:clamp(35px,9.5vw,44px);line-height:.94; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-copy>p { max-width:245px;font-size:clamp(12px,3.5vw,14px);line-height:1.38; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-hero-perks { display:none!important; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;grid-template-rows:52px 46px;padding:7px;border-radius:18px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field { gap:4px;padding:4px 6px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field>i { width:22px;height:22px;flex-basis:22px;font-size:15px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field input,
  body:has(.bms-home) .bms-home>.bms-hero .bms-search-field select { font-size:11px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-search .btn { width:44px;height:44px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-nearby-quick { min-height:52px;padding-right:10px;gap:7px; }
  body:has(.bms-home) .bms-home>.bms-hero .bms-nearby-quick small { max-width:125px; }
  body:has(.bms-home) .bms-home>.bms-trust { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:has(.bms-home) .bms-home>.bms-trust>span { min-height:82px; }
  body:has(.bms-home) .bms-home>.bms-trust>span:nth-child(2) { border-right:0; }
  body:has(.bms-home) .bms-home>.bms-trust>span:nth-child(-n+2) { border-bottom:1px solid #e4eaf4; }
  body:has(.bms-home) .bms-home>.bms-trust small { display:block; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-card { height:clamp(150px,43vw,190px); }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-card>img { flex-basis:59%;height:59%; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title { top:59%;height:41%;grid-template-columns:28px minmax(0,1fr) 20px;padding:6px;gap:1px 5px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title i:first-child { width:29px;height:29px;flex-basis:29px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title b { font-size:10px; }
  body:has(.bms-home) .bms-home>.bms-categories .bms-category-title small { font-size:8px; }
  body:has(.bms-home) .bms-bottom-nav { right:8px;bottom:max(8px,env(safe-area-inset-bottom));left:8px; }
}

/* Compact five-item mobile navigation, matching the supplied reference. */
@media(max-width:991px) {
  body:has(.bms-home) .bms-bottom-nav {
    right:10px;bottom:max(8px,env(safe-area-inset-bottom));left:10px;
    min-height:54px;padding:5px 4px;
    align-items:center;border:1px solid #e3eaf5;border-radius:18px;
    background:rgba(255,255,255,.94);box-shadow:0 6px 22px rgba(25,55,104,.16);
    backdrop-filter:blur(16px);
  }
  body:has(.bms-home) .bms-bottom-nav>a {
    height:42px;gap:2px;justify-content:center;color:#71809c;font-size:10px;line-height:1.1;
  }
  body:has(.bms-home) .bms-bottom-nav>a i { font-size:18px;line-height:1; }
  body:has(.bms-home) .bms-bottom-nav>a.is-active { color:#0865f5; }
  body:has(.bms-home) .bms-bottom-nav>a.is-active:after { display:none; }
  body:has(.bms-home) .bms-bottom-nav>a.bms-bottom-nav-book { transform:none;color:#71809c; }
  body:has(.bms-home) .bms-bottom-nav-book i {
    display:block;width:auto;height:auto;border:0;border-radius:0;background:transparent;
    box-shadow:none;color:inherit;font-size:18px;
  }
  body:has(.bms-home) .bms-bottom-nav-book span { color:inherit; }
}
@media(max-width:640px) {
  body:has(.bms-home) .bms-home { padding-bottom:78px!important; }
}

/* Studio detail and booking flow: blue glass card treatment from the app reference. */
@media(max-width:767.98px) {
  body:has(.studio-detail-page) { background:#edf5ff; }
  body:has(.studio-detail-page) .studio-detail-page {
    min-height:100vh;
    color:#101a36;
    background:radial-gradient(ellipse at 92% 3%,#cfe3ff 0,transparent 42%),linear-gradient(180deg,#eaf4ff 0%,#f7fbff 58%,#e7f2ff 100%);
  }
  body:has(.studio-detail-page) .studio-detail-container { padding:0 0 32px!important; }
  body:has(.studio-detail-page) .studio-detail-layout { gap:0; }
  body:has(.studio-detail-page) .studio-photo-gallery {
    width:calc(100% - 28px);height:clamp(260px,72vw,350px);margin:12px 14px 0;
    overflow:visible;border-radius:22px;
  }
  body:has(.studio-detail-page) .studio-gallery-carousel {
    height:100%;overflow:hidden;border:1px solid #ffffffb8;border-radius:22px;
    background:#dceaff;box-shadow:0 14px 34px #1d4b8524;
  }
  body:has(.studio-detail-page) .studio-gallery-carousel .carousel-inner,
  body:has(.studio-detail-page) .studio-gallery-carousel .carousel-item { height:100%; }
  body:has(.studio-detail-page) .studio-gallery-carousel .studio-gallery-image { width:100%;height:100%;object-fit:cover; }
  body:has(.studio-detail-page) .studio-gallery-carousel .carousel-indicators { bottom:9px;margin-bottom:0; }
  body:has(.studio-detail-page) .studio-gallery-carousel .carousel-indicators [data-bs-target] { width:8px;height:8px;margin:0 3px;border-radius:50%;background:#fff;opacity:.62; }
  body:has(.studio-detail-page) .studio-gallery-carousel .carousel-indicators .active { background:#155eef;opacity:1; }
  body:has(.studio-detail-page) .studio-gallery-count { right:12px;bottom:12px;padding:5px 9px;border:1px solid #ffffff80;border-radius:99px;background:#10244870;font-size:10px; }
  body:has(.studio-detail-page) .mobile-gallery-actions { inset:12px 12px auto; }
  body:has(.studio-detail-page) .mobile-gallery-actions a,
  body:has(.studio-detail-page) .mobile-gallery-actions button { width:42px;height:42px;border:1px solid #ffffffb8;background:#ffffffed;color:#15203b;box-shadow:0 5px 14px #13274620;font-size:18px; }
  body:has(.studio-detail-page) .mobile-gallery-actions button { color:#15203b; }
  body:has(.studio-detail-page) .studio-portfolio-section {
    order:0;margin:14px 14px 0;padding:18px;border:1px solid #ffffffc9;border-radius:21px;
    background:#ffffffd9;box-shadow:0 10px 28px #1f4e8c12;backdrop-filter:blur(14px);
  }
  body:has(.studio-detail-page) .studio-portfolio-heading { align-items:flex-start;gap:10px; }
  body:has(.studio-detail-page) .studio-portfolio-heading h2 { margin:0 0 6px;color:#101a36;font-size:20px;font-weight:800;letter-spacing:-.5px; }
  body:has(.studio-detail-page) .studio-portfolio-heading p,
  body:has(.studio-detail-page) .studio-portfolio-section>.studio-muted { margin:0;color:#657798;font-size:12px;line-height:1.55; }
  body:has(.studio-detail-page) .studio-social-links a { color:#1268f5; }
  body:has(.studio-detail-page) .studio-detail-heading {
    order:1;margin:0;padding:18px 20px 8px;border-radius:0;background:transparent;
  }
  body:has(.studio-detail-page) .studio-detail-heading h1 { color:#101a36;font-size:24px;line-height:1.2; }
  body:has(.studio-detail-page) .studio-detail-heading .studio-location { color:#637696; }
  body:has(.studio-detail-page) .studio-detail-heading .studio-rating-pill i { color:#f6ad24; }
  body:has(.studio-detail-page) .mobile-amenity-strip { padding:12px 18px 18px; }
  body:has(.studio-detail-page) .mobile-amenity-strip span { color:#1268f5;background:#e6f0ff; }
  body:has(.studio-detail-page) .mobile-amenity-strip small { color:#526787; }
  body:has(.studio-detail-page) .studio-detail-sidebar { padding:8px 14px 0; }
  body:has(.studio-detail-page) .studio-booking-card {
    padding:18px 16px;border:1px solid #ffffffd1;border-radius:22px;
    background:#ffffffdf;box-shadow:0 12px 32px #1d4d8a17;backdrop-filter:blur(14px);
  }
  body:has(.studio-detail-page) .mobile-date-heading h2,
  body:has(.studio-detail-page) .mobile-pricing-heading h2 { color:#101a36;font-size:18px;font-weight:800;letter-spacing:-.45px; }
  body:has(.studio-detail-page) .mobile-date-heading button { border-color:#ccdcff;background:#f7faff;color:#2355de; }
  body:has(.studio-detail-page) .mobile-date-strip button { border-color:transparent;background:#f0f5ff;color:#526582; }
  body:has(.studio-detail-page) .mobile-date-strip button strong { color:#101a36; }
  body:has(.studio-detail-page) .mobile-date-strip button.active { border-color:#075be8;background:linear-gradient(145deg,#078cf5,#1748ed);color:#fff;box-shadow:0 7px 16px #1268f540; }
  body:has(.studio-detail-page) .mobile-date-strip button.active strong { color:#fff; }
  body:has(.studio-detail-page) .studio-slot-legend .available { background:#1764eb; }
  body:has(.studio-detail-page) .studio-booking-slots .slot-btn { border-color:#d5e1f5;background:#fff;color:#15203b; }
  body:has(.studio-detail-page) .studio-booking-slots .slot-available:hover,
  body:has(.studio-detail-page) .studio-booking-slots .slot-available.selected { border-color:#1268f5;background:linear-gradient(145deg,#078cf5,#1748ed);color:#fff;box-shadow:0 6px 14px #1268f533; }
  body:has(.studio-detail-page) .mobile-pricing-heading { border-top-color:#eef5ff; }
  body:has(.studio-detail-page) .mobile-pricing-heading strong { color:#101a36; }
  body:has(.studio-detail-page) .studio-booking-summary { color:#61718e; }
  body:has(.studio-detail-page) .studio-booking-summary .studio-selected-slot { color:#315de0; }
  body:has(.studio-detail-page) .studio-booking-summary .studio-summary-total { border-color:#dce7f7; }
  body:has(.studio-detail-page) .studio-booking-summary .studio-summary-total strong { color:#101a36; }
  body:has(.studio-detail-page) .studio-coupon-details { border-color:#e5edf9;color:#536987; }
  body:has(.studio-detail-page) .studio-detail-page .studio-booking-submit {
    display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:12px;
    border:0;border-radius:15px;background:linear-gradient(110deg,#0799f7,#1853f4 60%,#4f43f4);
    color:#fff!important;box-shadow:0 9px 19px #1764eb38;font-size:15px;font-weight:700;
  }
  body:has(.studio-detail-page) .studio-booking-submit>i:first-child { font-size:20px; }
  body:has(.studio-detail-page) .studio-booking-submit>i:last-child { margin-left:auto;padding:5px;border-radius:50%;background:#fff;color:#145de9;font-size:24px;line-height:1; }
  body:has(.studio-detail-page) .studio-booking-footnote { color:#71809b; }
  body:has(.studio-detail-page) .mobile-detail-tabs { border-color:#dce8f8;background:#edf5ff; }
  body:has(.studio-detail-page) .mobile-detail-tabs a { color:#607291; }
  body:has(.studio-detail-page) .mobile-detail-tabs a.active { color:#1268f5;border-color:#1268f5; }
  body:has(.studio-detail-page) [data-mobile-panel] { padding:18px 20px; }
  body:has(.studio-detail-page) .studio-overview-section .studio-description { color:#607291; }
  body:has(.studio-detail-page) .studio-info-section:not(.studio-portfolio-section) { border-color:#dce8f8; }
}

/* Keep discovery results ahead of promotional content and prevent card actions from clipping. */
@media(max-width:991.98px) {
  body:has(.bms-home) .bms-home>.bms-featured { order:6!important; }
  body:has(.bms-home) .bms-home>.bms-business,
  body:has(.bms-home) .bms-home>#why-bookmystudio,
  body:has(.bms-home) .bms-home>.bms-cities,
  body:has(.bms-home) .bms-home>.bms-steps,
  body:has(.bms-home) .bms-home>.bms-stats,
  body:has(.bms-home) .bms-home>.bms-owner-cta { order:7!important; }
}
@media(max-width:767.98px) {
  body:has(.bms-home) .bms-studio-card { width:100%;max-width:100%;min-width:0; }
  body:has(.bms-home) .bms-studio-info { min-width:0;grid-template-columns:minmax(0,1fr) auto; }
  body:has(.bms-home) .bms-studio-info h3 { min-width:0; }
  body:has(.bms-home) .bms-studio-bottom { min-width:0;gap:8px; }
  body:has(.bms-home) .bms-studio-bottom>a {
    display:grid!important;place-items:center;flex:0 0 32px;width:32px;height:32px;min-width:32px;
    margin:0;padding:0!important;overflow:hidden;border-radius:50%;font-size:0!important;line-height:1;
  }
  body:has(.bms-home) .bms-studio-bottom>a i { display:block;font-size:14px!important;line-height:1; }
}
