/* Mobile browser shell follows the native Android layout. Desktop keeps its own layout. */
body .media-gallery,body .catalog-detail-media .media-gallery,body .place-detail>.media-gallery,body .place-card>.media-gallery,body .post-card.is-author>.media-gallery{--gallery-height:clamp(200px,55vw,420px);height:var(--gallery-height);min-height:0!important;grid-template-rows:minmax(0,1fr);box-sizing:border-box}
body .media-gallery.is-single{display:grid;grid-template-columns:minmax(0,1fr)}
body .media-gallery .gallery-main{width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;object-fit:contain}
body .media-gallery .gallery-side{height:70%!important;min-height:0!important;object-fit:contain}
.category-icon,.mobile-shortcut-icon{position:relative}
.home-unread-badge{position:absolute;top:-7px;right:-9px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:12px;background:#e53935;color:#fff;font:700 11px/1 Arial,sans-serif;box-shadow:0 1px 3px #0003}
.latest-content-item .thread-title{font-weight:400}
.latest-content-item.is-unread .thread-title{font-weight:700}
.mobile-shell-back,.mobile-shell-actions,.mobile-shell-nav,.mobile-home,.mobile-catalog-top,.mobile-topic-category{display:none}
@media(max-width:700px){.topic-solved-meta{display:none!important}}
.header-brand{display:flex;align-items:center;gap:12px;min-width:0}
.header-play-store{display:grid;place-items:center;flex:none;width:40px;min-height:44px;border-radius:9px;background:#ffffff0d;transition:background .15s}
.header-play-store:hover{background:#ffffff20}
.header-play-store img{display:block;width:24px;height:26px}
.service-feedback{padding:20px 24px;border-top:1px solid #dfe5e9}.service-feedback-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.service-feedback h2{margin:0;font-size:1.25rem}.service-comment-form{display:grid;gap:9px;margin:16px 0}.service-comment-form .btn{justify-self:start}.service-comment-list{display:grid;gap:12px}.service-comment{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e1e6ea;border-radius:12px;background:#f8fafb}.service-comment .post-avatar{flex:none;width:36px;height:36px}.service-comment time,.service-comment small{color:#66727d;font-size:.78rem}.service-comment p{margin:6px 0 0;white-space:normal}
.forum-subcategories{max-width:1200px;margin:12px auto;padding:0 16px;display:flex;gap:8px;overflow-x:auto}.forum-subcategories a{flex:none;padding:8px 12px;border:1px solid #dfe5e9;border-radius:9px;background:#fff;color:#1b4965}.forum-subcategories a.active{background:#1b4965;color:#fff}
.emlak-meta{display:none}

@media (max-width:767px){
  :root{--mobile-ink:#162f40;--mobile-muted:#65727d;--mobile-line:#e1e6e9;--mobile-card:#fff;--mobile-canvas:var(--site-canvas,#f0f2f5)}
  html{scroll-padding-top:76px}
  body{background:var(--mobile-canvas);color:var(--mobile-ink);font-size:14px;line-height:1.45;padding-bottom:calc(67px + env(safe-area-inset-bottom,0px))}
  body.theme-warm{--mobile-canvas:#fff8ef}
  body.theme-green{--mobile-canvas:#eef8f2}
  body.theme-blue{--mobile-canvas:#edf6ff}
  body.theme-dark{--mobile-canvas:#16232b}
  .container{padding-inline:16px}
  .top-bar,.nav-main,.header-actions,.account-bar,.breadcrumb,.footer,.sidebar{display:none!important}
  body:is(.page-profile,.page-my-content,.page-notifications) .account-bar{display:block!important}
  body:is(.page-profile,.page-my-content,.page-notifications) .account-bar .container{padding:4px 16px}
  body:is(.page-profile,.page-my-content,.page-notifications) .account-bar .container>span{display:none}
  body:is(.page-profile,.page-my-content,.page-notifications) .account-bar .inline-actions{width:100%;flex-wrap:nowrap;gap:16px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
  body:is(.page-profile,.page-my-content,.page-notifications) .account-bar .inline-actions>a,
  body:is(.page-profile,.page-my-content,.page-notifications) .account-bar .inline-actions form{flex:none}
  body:is(.page-profile,.page-my-content,.page-notifications) .account-bar .inline-actions a,
  body:is(.page-profile,.page-my-content,.page-notifications) .account-bar .text-button{display:inline-flex;align-items:center;min-height:40px;font-size:12px}
  .header{position:sticky;top:0;z-index:1000;background:linear-gradient(115deg,var(--site-header,#1b4965),#102b3d);box-shadow:none;border:0}
  .header .container{height:70px;min-height:70px;display:flex;align-items:center;gap:9px;padding-inline:10px}
  .header-brand{flex:1;gap:6px}
  .header-play-store{width:32px}
  .header-play-store img{width:22px;height:24px}
  .mobile-shell-back,.mobile-shell-actions{display:flex;align-items:center;justify-content:center;color:#fff;flex:none}
  .mobile-shell-back{width:34px;height:44px}
  body.page-home .mobile-shell-back{display:none}
  .mobile-shell-back svg{width:24px;height:24px}
  .header .logo{display:flex;flex:1;min-width:0;gap:8px;transform:none}
  .header .logo-icon,.header .logo-icon img{width:42px;height:42px;flex:none}
  .header .logo-text{min-width:0;max-width:none;font-size:15px;line-height:1.12;font-weight:700;text-transform:none;letter-spacing:0;color:#fff}
  .header .logo-text span{font-size:11px;line-height:1.2;letter-spacing:0;text-transform:none;font-weight:400;opacity:.78;margin-top:3px}
  .mobile-shell-actions{gap:0}
  .mobile-shell-actions a{display:grid;place-items:center;width:37px;height:44px;color:#fff}
  .mobile-shell-actions svg{width:23px;height:23px}
  .mobile-shell-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:1100;height:calc(67px + env(safe-area-inset-bottom,0px));padding:3px 2px env(safe-area-inset-bottom,0px);background:var(--mobile-nav-color,#1b4965);box-shadow:0 -1px 8px #102b3d24}
  .mobile-shell-nav a{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#e7f2f7;font-size:clamp(9px,2.7vw,11px);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1}
  .mobile-shell-nav a.active{color:var(--mobile-nav-accent,#f4a261);font-weight:700}
  .mobile-shell-nav.is-light a{color:#21465b}
  .mobile-shell-nav.is-light a.active{color:#a85a22}
  .mobile-shell-nav-icon{width:38px;height:32px;border-radius:18px;display:grid;place-items:center}
  .mobile-shell-nav a.active .mobile-shell-nav-icon{background:#ffffff18}
  .mobile-shell-nav svg{width:23px;height:23px;display:block}
  .mobile-shell-nav a:focus-visible,.mobile-shell-actions a:focus-visible,.mobile-shell-back:focus-visible{outline:2px solid #f4a261;outline-offset:-2px}
  .section{padding:14px 0}
  .section-header{margin-bottom:10px;gap:8px}
  .section-header h1,.section-header h2{font-size:20px;line-height:1.25;color:var(--mobile-ink)}
  .section-header .btn-primary,.page-forum .section-header .btn-primary,.page-latest .section-header .btn-primary,.page-search .section-header .btn-primary{background:var(--site-accent,#f49b52);border-color:var(--site-accent,#f49b52);color:#172f40;font-weight:700;border-radius:10px;padding:9px 12px;box-shadow:none;font-size:13px}
  .main-layout{display:block}
  .panel,.thread-list,.thread-item,.emlak-card,.service-listing,.post-card,.detail-card,.auth-card,.form-card{box-shadow:none;border:1px solid var(--mobile-line);border-radius:12px;background:var(--mobile-card)}
  .panel{padding:16px;margin-bottom:14px}
  .result-count{font-size:13px;margin:10px 0;color:var(--mobile-muted)}
  .pagination{margin-block:16px}

  /* Home: composer, six shortcuts, neighborhood, latest feed, then stats. */
  .desktop-home{display:none!important}
  .mobile-home{display:block;padding:16px 16px 0;max-width:760px;margin-inline:auto}
  .mobile-home-composer{margin-bottom:14px;background:#fff;border:1px solid var(--mobile-line);border-radius:12px;padding:11px}
  .mobile-composer-link{display:flex;align-items:center;gap:10px;min-width:0;color:var(--mobile-ink)}
  .mobile-composer-avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:#e8f0f4;color:#315b70;overflow:hidden;font-weight:700}
  .mobile-composer-avatar img{width:100%;height:100%;object-fit:cover}
  .mobile-composer-prompt{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:48px;flex:1;padding:7px 16px;border:1px solid #e0e6ea;border-radius:24px;background:#e8f0f4;color:#62717b;font-size:15px}
  .mobile-composer-prompt strong{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;background:var(--site-accent,#f49b52);color:#17384b;font-size:18px;line-height:1}
  .mobile-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 4px 14px}
  .mobile-shortcuts--categories{margin-bottom:9px}
  .mobile-shortcut{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:72px;padding:10px 8px 10px 10px;text-align:left;border:1px solid var(--mobile-line);border-radius:12px;background:#fff;color:var(--mobile-ink);font-size:12px;font-weight:700;line-height:1.2}
  .mobile-shortcut>span:last-child{min-width:0;flex:1}
  .mobile-shortcut-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:15px;background:#e8f0f4;color:#1b4965;font-size:21px}
  .mobile-shortcut-estate .mobile-shortcut-icon{background:#e7f0f5;color:#245a78}
  .mobile-shortcut-service .mobile-shortcut-icon{background:#e8f3ed;color:#28785e}
  .mobile-shortcut-notice .mobile-shortcut-icon{background:#fff1e6;color:#df8540}
  .mobile-shortcut-latest .mobile-shortcut-icon{background:#e8eff8;color:#3e6c99}
  .mobile-shortcut-question .mobile-shortcut-icon{background:#eeeafa;color:#7960a4}
  .mobile-shortcut-suggestion .mobile-shortcut-icon{background:#fff1e5;color:#bc7252}
  .mobile-neighborhood-banner{display:flex;align-items:center;gap:10px;min-height:58px;padding:8px 15px;margin-bottom:17px;border-radius:12px;background:var(--site-banner,#1b4965);color:#fff;font-size:13px;letter-spacing:.015em}
  .mobile-neighborhood-banner svg{width:28px;height:28px;flex:none;color:var(--site-accent,#f4a261)}
  .mobile-neighborhood-banner strong{flex:1}
  .mobile-neighborhood-banner>span{font-size:24px;line-height:1}
  .mobile-latest{margin-bottom:14px}
  .mobile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
  .mobile-section-heading h2{font-size:17px;line-height:1.2;color:var(--mobile-ink)}
  .mobile-section-heading a{font-size:12px;color:#315c73}
  .mobile-latest-list{overflow:hidden;background:#fff;border:1px solid var(--mobile-line);border-radius:12px}
  .mobile-latest-row{display:flex;align-items:center;gap:10px;min-height:46px;padding:7px 14px;border-bottom:1px solid #eef1f2;color:var(--mobile-ink);font-size:13px;font-weight:400;line-height:1.3}
  .mobile-latest-row.is-unread{font-weight:700}
  .mobile-latest-row:last-child{border-bottom:0}
  .mobile-latest-avatar{display:grid;place-items:center;position:relative;flex:none;width:28px;height:28px;border-radius:50%;background:#e8f0f4;color:#315b70;overflow:hidden;font-size:10px;font-weight:700}
  .mobile-latest-avatar img{width:100%;height:100%;object-fit:cover}
  .mobile-latest-status{display:block;position:absolute;right:0;bottom:0;width:8px;height:8px;border:1px solid white;border-radius:50%;background:#2a9d8f}
  .mobile-latest-status.is-new{background:#3bb879}
  .mobile-latest-status.is-closed{background:#dc555a}
  .home-rank-section{padding:0 16px 16px!important}
  .home-rank-section .container{padding:0}
  .rank-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .rank-links a{padding:8px 2px;min-height:54px;border-radius:9px}
  .rank-links strong{font-size:14px;line-height:1.1}
  .rank-links span{font-size:9px;text-align:center;line-height:1.1}

  /* Forum, listings, and services share a compact filter strip. */
  .mobile-catalog-top{display:flex;align-items:center;gap:8px;padding:12px 16px 0;max-width:1240px;margin-inline:auto}
  .mobile-catalog-chips{display:flex;align-items:center;gap:7px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:none}
  .mobile-catalog-chips::-webkit-scrollbar{display:none}
  .mobile-catalog-chips a{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;border:1px solid var(--mobile-line);border-radius:9px;background:#fff;color:#294b5d;font-size:13px;white-space:nowrap}
  .mobile-catalog-chips a.active{background:var(--site-header,#1b4965);border-color:var(--site-header,#1b4965);color:#fff;font-weight:700}
  .mobile-search-button{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:7px;border:0;border-radius:9px;background:#e7f0f5;color:#1b4965;cursor:pointer}
  .mobile-search-button svg{width:21px;height:21px}
  .mobile-collapsible-filter{display:none}
  .mobile-collapsible-filter.is-open{display:flex}
  .page-forum .section-header h1,.page-latest .section-header h1,.page-search .section-header h1{display:none}
  .page-forum .section-header,.page-latest .section-header,.page-search .section-header{justify-content:flex-end}
  .thread-list{background:transparent;border:0;box-shadow:none;display:grid;gap:10px;overflow:visible}
  .thread-item{border:1px solid var(--mobile-line);padding:13px;gap:9px;align-items:flex-start}
  .thread-title{font-size:15px;line-height:1.3;font-weight:700}
  .thread-avatar{width:34px;height:34px;font-size:12px;border-radius:9px}
  .thread-meta{font-size:11px;gap:5px}
  .thread-stats{font-size:11px}
  .services-grid{display:none}
  .service-listing{padding:12px;gap:11px;align-items:flex-start}
  .service-listing-media{width:88px;min-width:88px;min-height:88px;border:0;border-radius:9px;overflow:hidden;order:2}
  .service-listing-info{min-width:0;order:1;padding:0}
  .service-listing-info h2{font-size:15px;margin:0 0 5px}
  .service-listing-description{font-size:12px;line-height:1.4;margin:0 0 6px}
  .service-listing-meta{font-size:11px}
  .service-listing-contact{gap:7px}
  .service-listing-contact .btn{font-size:11px;min-height:34px;padding:5px 8px}
  .emlak-grid{grid-template-columns:1fr;gap:12px}
  .page-listings .emlak-card{display:flex;align-items:flex-start;min-height:164px}
  .page-listings .emlak-image{order:2;flex:0 0 120px;width:120px;height:164px;background:#fff}
  .page-listings .emlak-image::after,.page-listings .emlak-image>.emlak-badge{display:none}
  .page-listings .emlak-image img{object-fit:contain;padding:6px}
  .page-listings .emlak-body{order:1;display:flex;flex-direction:column;flex:1;min-width:0;padding:12px 8px 12px 14px}
  .page-listings .emlak-meta{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:6px}
  .page-listings .emlak-meta .emlak-badge{position:static;flex:none;padding:5px 10px;border-radius:12px;background:#e8f0f4;color:#1b4965;box-shadow:none;text-transform:none;letter-spacing:0;font-size:11px;line-height:1.2}
  .page-listings .emlak-meta-address{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--mobile-muted);font-size:11px}
  .page-listings .emlak-title{order:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0 0 3px;font-size:16px;line-height:1.3;font-weight:700}
  .page-listings .emlak-price{order:2;margin:0 0 5px;font-size:19px;line-height:1.2}
  .page-listings .emlak-features{order:3;gap:5px;margin:0;font-size:11px}
  .page-listings .emlak-features span{padding:0;background:transparent}
  .page-listings .emlak-address,.page-listings .emlak-footer{display:none}
  .details-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .detail-image,.topic-image{max-height:65vh;object-fit:contain}
  .mobile-topic-category{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:3px 0 7px;color:#1b4965;font-size:11px;font-weight:800;letter-spacing:.05em}
  .topic-header{padding:0;margin:0 0 14px;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
  .topic-header::before{display:none}
  .topic-header h1{font-size:23px;line-height:1.22;letter-spacing:-.02em;margin:0 0 9px;color:var(--mobile-ink)}
  .topic-header-meta{gap:6px;font-size:12px;color:var(--mobile-muted)}
  .topic-owner-label{display:inline-flex!important;background:transparent;color:var(--mobile-muted);padding:0;font-size:12px;font-weight:400}
  .post-card.is-author{border-left:1px solid var(--mobile-line)}
  .post-body{padding:16px;font-size:16px;line-height:1.5}
  .post-card .prose{min-height:0}
  .topic-post-footer{padding:9px 12px}
  .topic-action-bar{display:flex;width:100%;gap:5px;flex-wrap:nowrap;align-items:stretch}
  .topic-action-bar>form,.topic-action-bar>.topic-icon-action,.topic-action-bar>.report-form{flex:1;min-width:0}
  .topic-icon-action,.topic-action-bar .report-form>summary{display:flex;align-items:center;justify-content:center;width:100%;min-height:38px;padding:6px 4px;border:0;border-radius:9px;background:#e8f0f4;color:#1b4965;font-size:14px}
  .topic-icon-action span{font-size:11px}
  .topic-action-bar .action-like{background:#dff4e8;color:#19734d}
  .topic-action-bar .action-dislike{background:#fde5e7;color:#b73d4b}
  .topic-action-bar .action-share{background:#e1eefb;color:#236ba5}
  .topic-action-bar .action-report{background:#fff0dd;color:#b96913}
  .topic-action-bar .action-save{background:#eee7fa;color:#7045a5}
  .reply-card{background:#f4f6f8}
  .reply-card .post-header{padding:9px 12px}
  .reply-card .post-body{padding:10px 12px 12px;font-size:14px}
  .catalog-detail-page{padding-top:14px}
  .catalog-detail{border-radius:12px;box-shadow:none}
  .catalog-detail-header,.catalog-detail-header.is-listing{padding:17px 16px;background:#fff}
  .catalog-detail-header h1,.catalog-detail-header.is-listing h1{font-size:22px;line-height:1.25;letter-spacing:-.02em}
  .catalog-detail-meta{font-size:12px}
  .catalog-detail-media{min-height:0;padding:10px}
  .catalog-detail-summary{padding:16px;gap:13px}
  .page-listing .catalog-detail-price-row{display:flex;align-items:center;gap:12px;min-width:0}
  .page-listing .catalog-detail-price-row>.summary-label{flex:none;margin:0;white-space:nowrap}
  .page-listing .catalog-detail-price-row>.catalog-detail-price{min-width:0;margin:0;font-size:clamp(18px,5vw,26px);line-height:1.3}
  .page-listing .catalog-detail-contact{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}
  .page-listing .catalog-detail-contact>.member-link{display:none}
  .page-listing .catalog-detail-contact>.summary-label{font-size:12px;letter-spacing:0;text-transform:none;white-space:nowrap}
  .page-listing .catalog-detail-contact>.btn{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:42px;margin:0;padding:9px 10px;font-size:14px;white-space:nowrap}
  .catalog-detail-description{padding:16px}
  .catalog-detail-footer{padding:0 16px 16px}
  .media-gallery{grid-template-columns:42px minmax(0,1fr) 42px;min-height:220px;padding:8px}
  .media-gallery .gallery-main{min-height:200px;height:56vw;max-height:360px}
  .media-gallery .gallery-side{height:35vw}
  .catalog-detail-media .media-gallery{min-height:220px;padding:8px}
  .catalog-detail-media .detail-image{max-height:360px}
  .neighborhood-banner.is-page{min-height:58px;padding:12px;border-radius:12px}
  .neighborhood-shortcuts a,.place-card,.editor-business-grid a{border-radius:12px;box-shadow:none}
  .form-page,.auth-section{padding-block:15px}
  .form-card,.auth-card{padding:16px}
  .form-control,textarea,select,input[type=text],input[type=search]{font-size:16px}
}

@media (max-width:350px){
  .header-brand{gap:4px}
  .header-play-store{width:28px}
  .header .logo-text{font-size:13px}
  .header .logo-text span{font-size:10px}
  .header .logo-icon,.header .logo-icon img{width:36px;height:36px}
  .mobile-shell-actions a{width:32px}
  .mobile-shortcut{font-size:11px;gap:5px;padding-inline:7px}
  .mobile-shortcut-icon{width:38px;height:38px;font-size:19px}
  .mobile-shell-nav a{font-size:9px}
  .mobile-shell-nav svg{width:21px;height:21px}
}
