/* TALAVISTA — axtarış nəticələri səhifəsinin MOBİL görünüşü (≤ 760px). WEB görünüşünə təsir etmir: masaüstündə yalnız .m-only gizlədilir.
   Struktur: başlıq (kateqoriya + nəticə sayı) → kateqoriya tabları → yığcam axtarış zolağı (toxunanda tam forma) →
   sıralama / filtr çipləri → üfüqi kartlar. Filtrlər alt paneldə açılır. Məzmun search-page.js-dən (real məlumat). */

.m-only { display: none; }

@media (max-width: 760px) {
    .m-only { display: revert; }
    .m-only[hidden] { display: none !important; }

    /* ---------- Hero: şəhər fonu, başlıq ---------- */
    .page-hero { position: relative; padding: 76px 14px 0 !important; overflow: visible;
        background: linear-gradient(180deg, rgba(46, 16, 101, .92) 0%, rgba(76, 29, 149, .78) 55%, rgba(76, 29, 149, .55) 100%),
            url("/assets/img/hero/baku-flame-towers-night.webp") center 35% / cover no-repeat; }
    .page-hero .crumbs, .page-hero .kicker, .page-hero .page-title, .page-hero .page-sub { display: none; }
    .page-hero .m-edit { display: none; }
    body.m-editing .page-hero .m-edit { display: block; margin-top: 12px; }

    .m-head { display: flex; align-items: center; gap: 10px; color: #fff; }
    .m-back { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; }
    .m-back .ic { width: 22px; height: 22px; stroke-width: 2.4; }
    .m-head-txt { min-width: 0; }
    .m-title { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
    .m-title .ic { width: 24px; height: 24px; flex: none; }
    .m-count { margin: 3px 0 0; color: rgba(255, 255, 255, .82); font-size: 13.5px; }

    /* ---------- Kateqoriya tabları (ana səhifədəki kimi) ---------- */
    .m-tabs { display: flex !important; gap: 8px; margin: 14px -14px 0; padding: 0 14px 2px; overflow-x: auto; scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
    .m-tabs::-webkit-scrollbar { display: none; }
    .m-tabs a { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 13px;
        background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
    .m-tabs a .ic { width: 16px; height: 16px; }
    .m-tabs a.on { background: #fff; border-color: #fff; color: #4c1d95; box-shadow: 0 8px 18px rgba(17, 10, 36, .25); }

    /* ---------- Yığcam axtarış zolağı: məkan | tarixlər | qonaqlar ---------- */
    .m-bar { display: grid !important; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, 1fr); width: 100%; margin: 14px 0 -30px; padding: 12px 6px;
        border: 1px solid #ebe6f6; border-radius: 18px; background: #fff; color: #1d1440; font: inherit; text-align: left; cursor: pointer;
        box-shadow: 0 16px 36px rgba(46, 16, 101, .18); position: relative; z-index: 2; }
    .m-bar-c { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 7px; }
    .m-bar-c + .m-bar-c { border-left: 1px solid #ebe6f6; }
    .m-bar-c > .ic { width: 20px; height: 20px; flex: none; color: #4c1d95; }
    .m-bar-c > span { display: grid; min-width: 0; }
    .m-bar-c small { overflow: hidden; color: #6b6385; font-size: 10.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
    .m-bar-c b { overflow: hidden; font-size: 13px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
    body.m-editing .m-bar { margin-bottom: 0; border-color: #c4b5fd; }
    /* Obyekt səhifəsi: tək sətirli zolaq ("Axtarışı dəyiş") */
    .m-bar--single { grid-template-columns: 1fr; margin-bottom: 14px; }
    .m-bar--single .m-bar-c .tv-ico { width: 20px; height: 20px; flex: none; color: #4c1d95; }
    body.m-editing .page-hero { padding-bottom: 14px !important; }

    /* ---------- Siyahı və çiplər ---------- */
    .layout { display: block; width: auto; margin: 0; padding: 44px 12px 24px; background: #f6f4fb; }
    body.m-editing .layout { padding-top: 16px; }
    .main-col .results-bar { display: none; }
    .m-chips { display: flex !important; gap: 8px; margin: 0 -12px 14px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; }
    .m-chips::-webkit-scrollbar { display: none; }
    .m-chip { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid #ebe6f6; border-radius: 13px; background: #fff;
        color: #3b2a6b; font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .m-chip .ic { width: 16px; height: 16px; color: #6d28d9; }
    .m-chip.on { border-color: transparent; background: linear-gradient(135deg, #5b21b6, #4c1d95); color: #fff; box-shadow: 0 8px 16px rgba(76, 29, 149, .28); }
    .m-chip.on .ic { color: #fff; }
    .m-chip-n:empty { display: none; }
    .m-chip-n { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #6d28d9; color: #fff; font-size: 11px; }

    /* ---------- Filtrlər: alt panel ---------- */
    .layout .sidebar { display: none; }
    body.m-filters { overflow: hidden; }
    body.m-filters .layout .sidebar { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: 64px; z-index: 1100; max-height: none; margin: 0;
        padding-bottom: 84px; border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px rgba(17, 10, 36, .35); overflow-y: auto; }
    body.m-filters .layout .sidebar .mapcard { height: 72px; }
    .m-sheet-bar { display: none !important; }
    body.m-filters .m-sheet-bar { display: block !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1101;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #ebe6f6; }
    body.m-filters::before { content: ""; position: fixed; inset: 0; z-index: 1099; background: rgba(17, 10, 36, .5); }
    .m-sheet-btn { width: 100%; height: 50px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #5b21b6, #4c1d95); color: #fff;
        font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

    /* ---------- Mobil kart: şəkil solda, məlumat sağda ---------- */
    .layout .cards.list { display: grid; gap: 12px; }
    .mcard { display: grid; grid-template-columns: 38% minmax(0, 1fr); overflow: hidden; border: 1px solid #ebe6f6; border-radius: 18px; background: #fff;
        box-shadow: 0 8px 22px rgba(46, 16, 101, .07); color: #1d1440; }
    .mcard-img { position: relative; display: block; min-height: 172px; margin: 6px; border-radius: 14px; background-color: #32145f; background-size: cover; background-position: center; }
    .mcard-off, .mcard-new { position: absolute; top: 8px; left: 8px; padding: 4px 9px; border-radius: 9px; background: #4c1d95; color: #fff; font-size: 12px; font-weight: 800; }
    .mcard-new { background: #059669; }
    .mcard-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 10px 10px 10px 4px; }
    .mcard-top { display: flex; align-items: flex-start; gap: 6px; }
    .mcard-name { flex: 1; min-width: 0; margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
    .mcard-name a { color: inherit; text-decoration: none; }
    main section .mcard-name::after { display: none; }
    .mcard-heart { display: grid; place-items: center; width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #4c1d95; cursor: pointer; }
    .mcard-heart .ic { width: 20px; height: 20px; }
    .mcard-heart.on .ic { fill: #e11d48; stroke: #e11d48; }
    .mcard-rate { display: flex; align-items: center; gap: 5px; font-size: 13px; }
    .mcard-rate .ic { width: 15px; height: 15px; fill: #f5b301; stroke: #f5b301; }
    .mcard-rate small { overflow: hidden; color: #6b6385; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
    .mcard-addr { display: flex; align-items: flex-start; gap: 5px; color: #6b6385; font-size: 12px; line-height: 1.35; }
    .mcard-addr .ic { width: 14px; height: 14px; flex: none; margin-top: 1px; color: #4c1d95; }
    .mcard-addr span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .mcard-foot { display: grid; gap: 8px; margin-top: auto; }
    .mcard-am { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; margin: 2px 0 0; padding: 0; list-style: none; }
    .mcard-am li { display: flex; align-items: center; gap: 5px; min-width: 0; color: #3b2a6b; font-size: 11.5px; }
    .mcard-am .ic { width: 15px; height: 15px; flex: none; color: #4c1d95; }
    .mcard-am span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .mcard-buy { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 10px; }
    .mcard-buy s { grid-column: 1 / -1; color: #9a93b3; font-size: 12px; }
    .mcard-buy b { color: #2e1065; font-size: 19px; font-weight: 800; white-space: nowrap; }
    .mcard-buy small { color: #6b6385; font-size: 12px; }
    .mcard-btn { grid-column: 1 / -1; display: grid; place-items: center; height: 40px; margin-top: 6px; border-radius: 12px; background: linear-gradient(135deg, #5b21b6, #4c1d95);
        color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 16px rgba(76, 29, 149, .25); }
    .mcard-btn[aria-disabled="true"] { background: #e9e4f5; color: #6b6385; box-shadow: none; }
    /* Endirim və reytinq — masaüstü kartı ilə eyni rənglər: endirim qırmızı, köhnə qiymət qırmızı xətli, bal premium yaşıl */
    .mcard-off { background: linear-gradient(135deg, #e5484d, #b42318) !important; box-shadow: 0 4px 10px rgba(180, 35, 24, .3); }
    .mcard-was { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; }
    .mcard-was s { color: #d92d20; font-size: 12.5px; font-weight: 800; text-decoration-color: #d92d20; text-decoration-thickness: 1.5px; }
    .mcard-was em { padding: 2px 7px; border-radius: 7px; background: linear-gradient(135deg, #e5484d, #b42318); color: #fff; font-size: 11px; font-style: normal; font-weight: 900; }
    .mcard-score { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 9px 9px 9px 3px;
        background: linear-gradient(135deg, #1fa971 0%, #0e7a4f 55%, #0b5d3b 100%); color: #fff; font-size: 13px; font-weight: 900;
        box-shadow: 0 4px 10px rgba(14, 122, 79, .28), inset 0 1px 0 rgba(255, 255, 255, .28); }
    .mcard-rate small.mcard-word { color: #0b5d3b; font-weight: 800; }
    .layout .cards .empty { padding: 28px 16px; border-radius: 18px; background: #fff; text-align: center; }}

@media (max-width: 380px) {
    .mcard { grid-template-columns: 34% minmax(0, 1fr); }
    .m-bar-c > .ic { display: none; }
    .m-title { font-size: 21px; }
}
