/* abujudom-mobile.css - Mobile fine-tuning (May 2026) */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (max-width: 991px) {
    html, body, #main, #wrapper, .content { overflow-x: clip; max-width: 100%; }
    .container { padding-inline: clamp(12px, 4vw, 16px); }
    input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
    input[type="number"], input[type="password"], select, textarea,
    .select2-container .select2-selection--single .select2-selection__rendered {
        font-size: 16px !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .aj-home-section .geodir-category-listing.aj-card:hover,
    .gallery-item:hover .geodir-category-listing,
    .listing-item:hover .geodir-category-listing,
    .aj-amman-item:hover img { transform: none !important; }
    .aj-home-section .geodir-category-listing.aj-card:hover .geodir-category-img img,
    .gallery-item:hover .geodir-category-img img,
    .listing-item:hover .geodir-category-img img { transform: none !important; }
}

@media (max-width: 767px) {
    .aj-top-strip__inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 8px; }
    .aj-top-strip__tagline { display: none; }
    .aj-top-strip__heritage { font-size: 10px; }
}

@media (max-width: 600px) {
    html header.main-header .aj-header-actions .aj-search-trigger,
    html header.main-header .aj-header-actions .show-reg-form a,
    html header.main-header .aj-header-actions .cart-btn,
    html header.main-header .aj-header-actions .aj-header-actions__icon-btn {
        width: 44px !important; min-width: 44px !important;
        height: 44px !important; min-height: 44px !important;
    }
    header.main-header .aj-header-actions .aj-lang-toggle { height: 44px !important; min-height: 44px !important; }
    header.main-header .nav-button-wrap {
        width: 44px !important; height: 44px !important;
        min-width: 44px !important; min-height: 44px !important;
    }
    header.main-header .aj-header-actions .add-list_wrap .add-list span,
    header.main-header .aj-header-actions .add-list_wrap .aj-add-btn span { display: none !important; }
    header.main-header .aj-header-actions .add-list_wrap .add-list,
    header.main-header .aj-header-actions .add-list_wrap .aj-add-btn {
        width: 44px !important; min-width: 44px !important; height: 44px !important;
        padding: 0 !important; justify-content: center !important;
    }
}

@media (max-width: 991px) {
    html header.main-header .nav-holder.main-menu {
        padding-block-start: max(12px, env(safe-area-inset-top)) !important;
        padding-block-end: max(16px, env(safe-area-inset-bottom)) !important;
    }
    html header.main-header .nav-holder.main-menu nav > ul > li > a {
        min-height: 48px !important; padding-block: 12px !important; font-size: 15px !important;
    }
}

@media (max-width: 767px) {
    .aj-hero-search-section {
        min-height: clamp(220px, 46vh, 340px) !important;
        padding-block: clamp(48px, 12vw, 72px) clamp(20px, 5vw, 32px) !important;
    }
    .aj-hero-content { padding: clamp(32px, 8vw, 48px) 16px 12px !important; }
    .aj-hero-content .aj-hero-title {
        font-size: clamp(22px, 6.5vw, 30px) !important;
        line-height: 1.2 !important;
    }
    .aj-hero-content .aj-hero-subtitle {
        font-size: clamp(12px, 3.5vw, 15px) !important;
        line-height: 1.45 !important;
    }
}

@media (max-width: 600px) {
    .aj-home-fbar-wrap .aj-fbar.aj-fbar--home .aj-fbar__btn {
        height: 48px !important; min-height: 48px !important;
    }
    .aj-home-fbar-wrap .aj-fbar.aj-fbar--home select.aj-fbar__select,
    .aj-home-fbar-wrap .aj-fbar.aj-fbar--home .chosen-container-single .chosen-single,
    .aj-home-fbar-wrap .aj-fbar.aj-fbar--home .select2-container .select2-selection--single {
        height: 48px !important; min-height: 48px !important;
    }
}

@media (max-width: 767px) {
    section.gray-bg.small-padding > .container > .aj-fbar {
        flex-direction: column; align-items: stretch; gap: 8px; padding: 12px;
        border-radius: 12px; background: #fff;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    }
    section.gray-bg.small-padding > .container > .aj-fbar .aj-fbar__field { flex: 1 1 100%; min-width: 100%; }
    section.gray-bg.small-padding > .container > .aj-fbar .aj-fbar__btn,
    section.gray-bg.small-padding > .container > .aj-fbar .aj-fbar__advanced-toggle {
        width: 100%; min-height: 48px; justify-content: center;
    }
    .aj-advanced-filters__grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 767px) {
    .aj-home-section.aj-latest-properties-section .aj-latest-head {
        flex-direction: column; align-items: stretch !important;
    }
    .aj-home-section.aj-latest-properties-section .aj-latest-tabs-col {
        justify-content: stretch !important; position: relative;
    }
    .aj-home-section.aj-latest-properties-section .listing-filters.gallery-filters {
        flex-wrap: nowrap !important; overflow-x: auto !important;
        -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
        padding-block-end: 6px; scrollbar-width: none;
    }
    .aj-home-section.aj-latest-properties-section .listing-filters.gallery-filters::-webkit-scrollbar {
        display: none;
    }
    .aj-home-section.aj-latest-properties-section .listing-filters .gallery-filter {
        flex: 0 0 auto; scroll-snap-align: start;
        height: 36px !important; white-space: nowrap;
    }
    .aj-latest-properties-section .section-title h1 { font-size: 22px !important; }
}

@media (max-width: 575px) {
    .aj-latest-properties-section .gallery-items .gallery-item {
        width: 100% !important; max-width: 100% !important;
    }
}

@media (max-width: 767px) {
    .aj-amman-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: minmax(140px, 1fr) !important; gap: 10px !important;
    }
    .aj-amman-wide, .aj-grid-featured, .aj-grid-tall {
        grid-column: span 2 !important; grid-row: span 1 !important;
    }
}

@media (max-width: 480px) {
    .aj-amman-grid { grid-template-columns: 1fr !important; }
    .aj-amman-wide, .aj-grid-featured, .aj-grid-tall { grid-column: span 1 !important; }
    .aj-amman-item { min-height: 160px; }
    .aj-amman-overlay { opacity: 1 !important; }
}

@media (max-width: 767px) {
    .geodir_save-btn, .compare-btn {
        width: 44px !important; height: 44px !important;
        min-width: 44px !important; min-height: 44px !important;
    }
}

@media (max-width: 600px) {
    .aj-view-all-btn, .aj-view-all-wrap .btn.float-btn {
        width: 100% !important; max-width: 100% !important;
        justify-content: center !important; min-height: 48px !important;
    }
}

@media (max-width: 767px) {
    footer .row > [class*="col-"] { margin-block-end: 24px; }
    .secondary-nav {
        bottom: max(68px, calc(12px + env(safe-area-inset-bottom))) !important;
        right: max(12px, env(safe-area-inset-right)) !important;
    }
    html[dir="rtl"] .secondary-nav {
        left: max(12px, env(safe-area-inset-left)) !important; right: auto !important;
    }
    .to-top, .to-top.color-bg {
        bottom: max(14px, env(safe-area-inset-bottom)) !important;
        right: max(12px, env(safe-area-inset-right)) !important;
    }
    html[dir="rtl"] .to-top, html[dir="rtl"] .to-top.color-bg {
        left: max(12px, env(safe-area-inset-left)) !important;
    }
    .pagination { flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; }
    .pagination li a { min-width: 40px !important; height: 40px !important; line-height: 40px !important; }
    .list-single-main-wrapper .col-md-8,
    .list-single-main-wrapper .col-md-4 {
        width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important;
    }
}

@media (max-width: 600px) {
    .breadcrumbs, .list-single-breadcrumbs {
        font-size: 12px !important; overflow-x: auto; white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}