/* ========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   Breakpoints: 320px-480px (Small Mobile), 481px-767px (Large Mobile),
                768px-1024px (Tablet), 1025px-1440px (Notebook), 1441px+ (Desktop)
   ======================================================================== */

/* ========================================================================
   AUTO-SCALING DESKTOP/TABLET DESIGN (≥992px)
   Uses CSS clamp() for proportional scaling based on viewport width
   - Header, logo, menu, CTA auto-scale with viewport
   - Menu stays in one line with horizontal scroll if needed
   - Maintains Waisaka lotus theme
   - Breakpoint: 992px = 1px above hamburger menu (991px)
   ======================================================================== */
@media (min-width: 992px) {

    /* ----- HEADER CONTAINER AUTO-SCALING ----- */
    .waisaka-header-container {
        padding: 0 0 clamp(15px, 2vw, 30px) 0 !important;
    }

    /* ----- HEADER ROW AUTO-SCALING ----- */
    .waisaka-header-row {
        padding: 0 clamp(15px, 3vw, 50px) !important;
        gap: clamp(10px, 1.5vw, 20px);
    }

    /* ----- LOGO AUTO-SCALING ----- */
    .waisaka-logo {
        width: clamp(120px, 12vw, 200px) !important;
        min-width: clamp(120px, 12vw, 200px) !important;
        max-width: clamp(120px, 12vw, 200px) !important;
        display: flex !important;
    }

    .waisaka-logo img {
        height: clamp(35px, 4vw, 55px) !important;
        max-height: clamp(35px, 4vw, 55px) !important;
        width: auto !important;
        display: block !important;
    }

    /* ----- NAVIGATION AUTO-SCALING ----- */
    .waisaka-nav {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        flex: 1;
        display: flex;
        justify-content: center;
        position: relative;
    }

    .waisaka-nav::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .waisaka-menu {
        flex-wrap: nowrap !important;
        min-width: max-content;
        gap: clamp(2px, 0.3vw, 8px);
    }

    /* ----- MENU LINKS AUTO-SCALING ----- */
    .waisaka-menu-link,
    .waisaka-menu-item>a.waisaka-menu-link {
        font-size: clamp(11px, 1vw, 15px) !important;
        padding: clamp(6px, 0.6vw, 10px) clamp(8px, 0.8vw, 16px) !important;
        white-space: nowrap !important;
    }

    .waisaka-menu-item {
        margin-left: clamp(1px, 0.2vw, 5px);
    }

    /* ----- CTA BUTTON AUTO-SCALING ----- */
    .waisaka-cta-btn {
        font-size: clamp(11px, 0.95vw, 15px) !important;
        padding: clamp(6px, 0.6vw, 10px) clamp(10px, 1vw, 20px) !important;
        white-space: nowrap !important;
        min-width: max-content;
    }

    /* ----- TOP BAR AUTO-SCALING ----- */
    .waisaka-top-bar {
        padding: clamp(4px, 0.5vw, 8px) clamp(15px, 3vw, 40px) !important;
    }

    /* Store buttons - Auto-scaling for desktop */
    .download-text {
        font-size: clamp(9px, 0.75vw, 11px);
    }

    .store-btn {
        width: clamp(28px, 2.5vw, 36px);
        height: clamp(28px, 2.5vw, 36px);
        font-size: clamp(14px, 1.2vw, 18px);
    }

    .header-social a {
        width: clamp(24px, 2vw, 32px);
        height: clamp(24px, 2vw, 32px);
        font-size: clamp(11px, 1vw, 15px);
        margin-left: clamp(8px, 0.8vw, 15px);
    }

    /* ----- DROPDOWN AUTO-SCALING ----- */
    .waisaka-dropdown {
        max-width: 90vw;
    }

    .waisaka-dropdown-lotus:not(.waisaka-dropdown-sm) {
        min-width: clamp(400px, 45vw, 650px) !important;
    }

    .waisaka-dropdown-sm {
        min-width: clamp(300px, 35vw, 500px) !important;
    }

    .waisaka-dropdown-row {
        gap: clamp(15px, 2vw, 40px);
    }

    .waisaka-dropdown-col {
        width: clamp(140px, 12vw, 200px);
    }

    /* ----- DROPDOWN LIST AUTO-SCALING ----- */
    .waisaka-dropdown-list li a {
        font-size: clamp(12px, 1vw, 14px);
        padding: clamp(4px, 0.4vw, 8px) clamp(8px, 0.8vw, 15px);
    }

    .waisaka-dropdown-title-link {
        font-size: clamp(11px, 1vw, 14px);
    }

    /* ----- DESCRIPTION PETAL AUTO-SCALING ----- */
    .description-petal {
        width: clamp(220px, 20vw, 300px) !important;
    }

    .menu-desc-text {
        font-size: clamp(12px, 1vw, 14px);
    }

    /* ----- DROPDOWN HOVER VISIBILITY (DESKTOP) ----- */
    /* Ensure dropdown is visible but hidden by default */
    .waisaka-dropdown {
        display: block !important;
        position: absolute !important;
        z-index: 99999 !important;
        /* Match desktop z-index */
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    /* Show dropdown on hover or when JS adds .active class */
    .waisaka-menu-item:hover>.waisaka-dropdown,
    .waisaka-menu-item.active>.waisaka-dropdown {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    /* Ensure menu items are visible in desktop */
    .waisaka-menu,
    .waisaka-nav>ul,
    .waisaka-menu-item,
    .waisaka-menu-link,
    .waisaka-cta,
    .waisaka-cta-btn,
    nav.waisaka-nav>ul.waisaka-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* ========================================
   MOBILE: 320px - 991px (All Mobile & Tablet Devices)
   Hamburger menu active at this range
   ======================================== */
@media (max-width: 991px) {

    /* Header Container - Reduce Padding, Remove Border Radius for Full Width Box */
    .waisaka-header-container {
        padding: 0 0 20px 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Top Bar - Stack Vertically, Center Aligned */
    .waisaka-top-bar {
        flex-direction: column;
        padding: 8px 15px !important;
        gap: 10px;
        text-align: center;
    }

    .header-social {
        order: 2;
        margin: 0 auto;
    }

    .top-left {
        order: 1;
        margin: 0 auto;
    }

    /* Store Buttons - Hide text on mobile, smaller icons */
    .download-text {
        display: none;
    }

    .store-buttons {
        gap: 6px;
    }

    .store-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .header-social a {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin: 0 5px;
    }

    /* Header Row - Reduce Padding */
    .waisaka-header-row {
        padding: 0 15px !important;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    /* Logo - Hide on mobile for cleaner look */
    .waisaka-logo {
        display: none !important;
    }

    .waisaka-logo img {
        display: none !important;
    }

    /* Hide Desktop Menu - Comprehensive */
    .waisaka-menu,
    .waisaka-nav>ul,
    .waisaka-menu-item,
    .waisaka-menu-link,
    .waisaka-cta,
    .waisaka-cta-btn:not(.waisaka-mobile-cta .waisaka-cta-btn),
    .waisaka-dropdown,
    nav.waisaka-nav>ul.waisaka-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Ensure nav container doesn't take up space */
    .waisaka-nav {
        flex: 0 0 auto;
        width: auto;
        position: static;
    }

    /* Header row adjustment for mobile */
    .waisaka-header-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
    }

    /* Show Mobile Toggle - Enhanced */
    .waisaka-mobile-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        padding: 12px;
        cursor: pointer;
        position: fixed;
        right: 15px;
        top: 15px;
        z-index: 10001;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    .waisaka-mobile-toggle span {
        width: 24px;
        height: 3px;
        background: #160800;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .waisaka-mobile-toggle:hover span,
    .waisaka-mobile-toggle:active span {
        background: #2E7D32;
    }

    /* Mobile Menu Styles */
    .waisaka-mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 10002;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    .waisaka-mobile-menu.active {
        right: 0;
    }

    .waisaka-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 10001;
    }

    .waisaka-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .waisaka-mobile-menu-header {
        padding: 20px 15px;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .waisaka-mobile-menu-header img {
        height: 35px;
    }

    .waisaka-mobile-close {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #160800;
        cursor: pointer;
        padding: 5px;
    }

    /* ===== MOBILE ICON GRID (99.co Style) ===== */
    .mobile-icon-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px 15px;
        background: linear-gradient(135deg, #f8faf8 0%, #e8f5e9 100%);
        border-bottom: 1px solid #e0e0e0;
    }

    .mobile-icon-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 15px 8px;
        background: #ffffff;
        border-radius: 12px;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .mobile-icon-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-icon-item i {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--icon-bg, linear-gradient(135deg, #4CAF50, #388E3C));
        border-radius: 12px;
        color: #ffffff;
        font-size: 22px;
        margin-bottom: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .mobile-icon-item span {
        font-size: 11px;
        font-weight: 600;
        color: #333;
        text-align: center;
        line-height: 1.2;
    }

    .waisaka-mobile-nav {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .waisaka-mobile-nav>li {
        border-bottom: 1px solid #f0f0f0;
    }

    .waisaka-mobile-nav>li>a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #160800 !important;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .waisaka-mobile-nav>li>a i {
        margin-right: 10px;
        width: 20px;
        color: #2E7D32 !important;
    }

    .waisaka-mobile-nav>li>a:hover {
        background: #f8f9fa;
        color: #2E7D32 !important;
    }

    /* Mobile Dropdown */
    .mobile-dropdown-toggle {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-dropdown-toggle i.fa-chevron-down {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .mobile-dropdown.open .mobile-dropdown-toggle i.fa-chevron-down {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu {
        display: none;
        background: #f8f9fa;
        padding: 10px 0;
    }

    .mobile-dropdown.open .mobile-dropdown-menu {
        display: block;
    }

    .mobile-dropdown-menu li {
        list-style: none;
    }

    .mobile-dropdown-menu li a {
        display: block;
        padding: 10px 20px 10px 50px;
        color: #160800 !important;
        font-size: 13px;
        text-decoration: none;
    }

    .mobile-dropdown-menu li a:hover {
        background: #e9ecef;
        color: #2E7D32 !important;
    }

    .mobile-submenu-title {
        padding: 10px 20px 5px 50px;
        font-size: 11px;
        font-weight: 700;
        color: #999 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .waisaka-mobile-cta {
        padding: 15px 20px;
    }

    .waisaka-mobile-cta .waisaka-cta-btn {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }

    /* Search Section - Full Width */
    .donation-join .container .row .col-sm-12>div {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
    }

    /* Mobile Search Container Position - Match Desktop Bottom Alignment */
    .search-main-container {
        margin-top: -120px !important;
        /* Lowered for bottom alignment */
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Remove padding from the column to allow full width */
    section.donation-join .container .row .col-sm-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Promo Banner Image - Full Width */
    .promo-banner-img {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        object-fit: cover !important;
    }

    /* Search Container Wrapper - Match Desktop Exactly */
    .search-container-responsive {

        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 20px !important;
        padding: 25px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    /* Also ensure the alternative selector matches */
    .donation-join .container .row .col-sm-12>div {
        /* MOBILE: Remove blur, wider search container */
        background: rgba(255, 255, 255, 0.15) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 15px !important;
        padding: 10px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* MOBILE: Remove brown background from row container below promo banner */
    .donation-join .container .row {
        background: transparent !important;
        background-color: transparent !important;
        margin: 0 !important;
    }


    /* Quick Menu Section */
    .quick-menu-section {
        margin-top: -90px !important;
    }

    /* Search Input */
    #location.form-control {
        font-size: 14px;
        padding: 12px 15px;
    }

    /* Filter Buttons - Stack or Scroll */
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }

    .btn-home {
        font-size: 12px !important;
        padding: 6px 15px !important;
        margin: 2px !important;
        font-weight: 700 !important;
    }

    /* Filter Collapse - Better Touch Targets */
    .donation-join .btn-home[data-toggle="collapse"] {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    /* Filter Form - Full Width Inputs */
    #collapseExample .col-lg-6,
    #collapseExample .col-lg-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    #collapseExample .input-group {
        margin-top: 8px !important;
    }

    #collapseExample .input-group .form-control,
    #collapseExample select.form-control {
        height: 50px !important;
        font-size: 13px !important;
    }

    #collapseExample .input-group-text {
        height: 50px !important;
        min-width: 40px !important;
    }

    /* Property Cards - Single Column */
    .about .row>.col-sm-12,
    .about .row>.col-md-4,
    .about .row>.col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
    }

    .about .card {
        margin-bottom: 20px;
    }

    .about .card-body {
        padding: 15px !important;
    }

    .about .card-footer {
        padding: 10px 12px !important;
    }

    /* Contact Buttons - Larger Touch Targets */
    .btn-card-wa,
    .btn-card-call {
        font-size: 11px !important;
        padding: 6px 10px !important;
        white-space: nowrap;
    }

    /* Blog Section - Single Column */
    .h2-news .col-md-4,
    .h2-news .col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    .blog-post {
        margin-bottom: 20px;
    }

    /* Service Cards - Single Column */
    .katalog-layanan {
        margin-bottom: 30px;
    }

    section.about .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    /* Property Detail Page - Stack Layout */
    .donation-join .col-lg-4,
    .donation-join .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Agent Card First, Then Gallery */
    .donation-join .col-lg-4 {
        order: 1;
        margin-bottom: 20px;
    }

    .donation-join .col-lg-8 {
        order: 2;
    }

    /* Property Image Gallery */
    .mainSwiper .property-image-wrapper img {
        max-height: 300px !important;
    }

    .thumbSwiper .swiper-slide {
        width: 70px !important;
        height: 50px !important;
    }

    /* Share Buttons - Stack Vertically */
    .donation-join .d-flex.justify-content-end {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .donation-join .d-flex.justify-content-end .btn {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Specification Table - Smaller Text */
    .donation-join .table-borderless td {
        font-size: 13px !important;
        padding: 6px 3px !important;
    }

    .donation-join .table-borderless td:nth-child(2) {
        font-size: 12px;
    }

    /* KPR Calculator - Full Width */
    #kprCalculatorForm .form-control,
    #kprCalculatorForm .form-select {
        font-size: 14px !important;
    }

    /* Footer - Stack Columns */
    .footer-widgets .col-md-3,
    .footer-widgets .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center !important;
    }

    /* Typography Scaling */
    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4 {
        font-size: 18px !important;
    }

    h5 {
        font-size: 16px !important;
    }

    h6 {
        font-size: 14px !important;
    }

    /* Container Padding */
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Section Padding */
    .p80,
    .p100 {
        padding: 40px 0 !important;
    }

    /* ========================================
       ENHANCED SEARCH SECTION - Mobile
       ======================================== */
    #mainSearch,
    .donation-join .container .row .col-sm-12>div[style*="width:75%"],
    .donation-join .container .row .col-sm-12>div {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    .donation-join .btn-group {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100%;
    }

    .donation-join .btn-home {
        flex: 0 0 auto !important;
        min-width: 75px !important;
        font-size: 12px !important;
        padding: 8px 14px !important;
    }

    .donation-join #location.form-control {
        font-size: 15px !important;
        padding: 14px 16px !important;
        border-radius: 8px !important;
    }

    .donation-join .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 10px;
    }

    .donation-join .d-flex.justify-content-between .btn {
        flex: 1 1 auto;
        min-width: 100px;
    }

    /* Search Button - Smaller on Mobile */
    #btnMainSearch {
        font-size: 14px !important;
        padding: 0.55rem 1.2rem !important;
        font-weight: 600 !important;
    }

    /* Filters Button - Smaller on Mobile */
    .donation-join .btn-home[data-toggle="collapse"] {
        font-size: 13px !important;
        padding: 0.55rem 1rem !important;
    }


    /* ========================================
       ENHANCED PROPERTY CARD FOOTER - Mobile
       ======================================== */
    /* Keep card footer in horizontal layout but allow wrapping */
    .about .card-footer .d-flex.align-items-center.justify-content-between {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Agent info section - keep horizontal */
    .about .card-footer .d-flex.align-items-center>.d-flex.align-items-center {
        flex: 1 1 100% !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        min-width: 0 !important;
    }

    /* Agent image container */
    .about .card-footer .d-flex.align-items-center>.d-flex.align-items-center>div:first-child {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        margin-right: 8px !important;
        flex-shrink: 0 !important;
    }

    /* Agent image */
    .about .card-footer .d-flex.align-items-center img {
        width: 35px !important;
        height: 35px !important;
        object-fit: cover !important;
    }

    /* Agent name container - show properly */
    .about .card-footer .d-flex.align-items-center>.d-flex.align-items-center>div:last-child {
        display: block !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    /* Agent text - listing by and name */
    .about .card-footer small.text-muted,
    .about .card-footer .d-flex.align-items-center small {
        display: block !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .about .card-footer .d-flex.align-items-center span.d-block {
        display: block !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Contact buttons - full width at bottom */
    .about .card-footer .d-flex.flex-column {
        flex-direction: row !important;
        gap: 6px !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .about .card-footer .btn-card-wa,
    .about .card-footer .btn-card-call {
        flex: 1 1 48% !important;
        padding: 8px 10px !important;
        font-size: 10px !important;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    /* ========================================
       ENHANCED PROPERTY CARD IMAGE - Mobile
       ======================================== */
    .about .card-img-top,
    .about .zoom img {
        height: 200px !important;
        object-fit: cover;
    }

    /* ========================================
       ENHANCED BLOG/NEWS SECTION - Mobile
       ======================================== */
    .h2-news .section-title-2 h2 {
        font-size: 22px !important;
        margin-bottom: 8px;
    }

    .h2-news .section-title-2 h5 {
        font-size: 13px !important;
    }

    .h2-news .view-more {
        display: block !important;
        text-align: center !important;
        margin-top: 10px !important;
        font-size: 14px !important;
    }

    .blog-post .blog-thumb img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        border-radius: 8px 8px 0 0;
    }

    .blog-post .post-txt {
        padding: 15px !important;
    }

    .blog-post .post-txt h5 {
        font-size: 16px !important;
        margin-bottom: 10px;
    }

    .blog-post .post-txt p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .blog-post .post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .blog-post .post-meta li {
        font-size: 11px !important;
    }

    /* ========================================
       ENHANCED FOOTER - Mobile
       ======================================== */
    footer.h3footer .row>.col-md-4,
    footer.h3footer .row>.col-md-3,
    footer.h3footer .row>.col-sm-6,
    footer.h3footer .row>.col-sm-12,
    footer.h3footer .container>.row>[class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin-bottom: 25px !important;
    }

    footer.h3footer .footer-widget h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    footer.h3footer .footer-widget p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    footer.h3footer .footer-social {
        justify-content: center !important;
        display: flex !important;
        gap: 12px !important;
        flex-wrap: wrap;
    }

    footer.h3footer .footer-social a {
        width: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Footer products list */
    footer.h3footer .lastest-products li {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    footer.h3footer .lastest-products li:last-child {
        border-bottom: none;
    }

    footer.h3footer .lastest-products li img {
        margin: 0 0 10px 0 !important;
        width: 100px !important;
        height: 70px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    /* Footer copyright bar */
    footer.h3footer .footer-copyr .col-md-4,
    footer.h3footer .footer-copyr .col-sm-4,
    footer.h3footer .footer-copyr .col-md-8,
    footer.h3footer .footer-copyr .col-sm-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    footer.h3footer .footer-copyr img {
        max-height: 40px !important;
        margin-bottom: 10px !important;
    }

    /* ========================================
       ENHANCED SERVICE CARDS - Mobile
       ======================================== */
    .katalog-layanan {
        min-height: 0 !important;
        margin-bottom: 25px !important;
    }

    .katalog-layanan img {
        height: 180px !important;
        object-fit: cover !important;
    }

    .katalog-layanan .volbox h6 {
        font-size: 1.1rem !important;
        min-height: 0 !important;
        padding: 12px 0 !important;
    }

    .katalog-layanan .volbox p {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
    }

    .katalog-layanan .volbox a {
        font-size: 0.95rem !important;
        padding: 10px 18px !important;
    }
}

/* ========================================
   SMALL MOBILE: 320px - 480px
   ======================================== */
@media (max-width: 480px) {

    /* Even Smaller Logo */
    .waisaka-logo {
        max-width: 150px;
    }

    .waisaka-logo img {
        height: 35px !important;
    }

    /* Smaller Buttons */
    .btn,
    .btn-success,
    .btn-primary {
        font-size: 12px !important;
        padding: 8px 15px !important;
    }

    /* Property Cards - Smaller Images */
    .about .card-img-top {
        height: 180px !important;
    }

    /* Tighter Spacing */
    .about .row>.col-sm-12 {
        padding: 5px 10px !important;
    }

    /* Search Section - Tighter */
    .donation-join .container .row .col-sm-12>div {
        padding: 10px !important;
    }
}

/* ========================================
   TABLET/SMALL NOTEBOOK: 992px - 1024px
   ======================================== */
@media (min-width: 992px) and (max-width: 1024px) {

    /* NOTE: Header auto-scaling is handled by clamp() in the main desktop section above */
    /* This section focuses on layout adjustments specific to small screens */

    /* Property Cards - 2 Columns */
    .about .row>.col-md-4,
    .about .row>.col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 10px !important;
    }

    /* Blog - 2 Columns */
    .h2-news .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Service Cards - 2 Columns */
    section.about .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Property Detail - Keep 2 Column Layout */
    .donation-join .col-lg-4 {
        flex: 0 0 35% !important;
        max-width: 35% !important;
    }

    .donation-join .col-lg-8 {
        flex: 0 0 65% !important;
        max-width: 65% !important;
    }

    /* Search Section - Moderate Width */
    .donation-join .container .row .col-sm-12>div,
    #mainSearch {
        width: 85% !important;
        margin: 0 auto !important;
    }

    /* Typography - Moderate Scaling */
    h1 {
        font-size: clamp(24px, 3.5vw, 32px) !important;
    }

    h2 {
        font-size: clamp(22px, 3vw, 28px) !important;
    }

    h3 {
        font-size: clamp(20px, 2.5vw, 26px) !important;
    }

    /* Enhanced Footer - Tablet */
    footer.h3footer .row>.col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    footer.h3footer .row>.col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    footer.h3footer .footer-copyr .col-md-4,
    footer.h3footer .footer-copyr .col-md-8 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* ========================================
   NOTEBOOK: 1025px - 1440px
   ======================================== */
@media (min-width: 1025px) and (max-width: 1440px) {

    /* NOTE: Header auto-scaling is now handled by clamp() in the main desktop section above */
    /* This section focuses on layout adjustments specific to notebook */

    /* Property Cards - 3 Columns (Default) */
    .about .row>.col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }

    /* Search Section */
    .donation-join .container .row .col-sm-12>div {
        width: 75% !important;
        margin: 0 auto !important;
    }
}

/* ========================================
   DESKTOP: 1441px+
   ======================================== */
@media (min-width: 1441px) {

    /* NOTE: Header auto-scaling is now handled by clamp() in the main desktop section above */
    /* This section focuses on layout adjustments specific to large desktop */

    /* Search Section - Centered */
    .donation-join .container .row .col-sm-12>div {
        width: 70% !important;
        margin: 0 auto !important;
    }

    /* Property Cards - 3 Columns with More Space */
    .about .row>.col-lg-4 {
        padding: 15px !important;
    }
}

/* ========================================
   SMALL PHONES: 320px - 480px
   Extra compact styles for small mobile devices
   ======================================== */
@media (max-width: 480px) {

    /* ----- HEADER ADJUSTMENTS ----- */
    .waisaka-header-container {
        padding: 0 0 12px 0 !important;
    }

    .waisaka-top-bar {
        padding: 5px 10px !important;
        gap: 6px;
    }

    .header-social a {
        width: 24px;
        height: 24px;
        font-size: 11px;
        margin: 0 3px;
    }

    .store-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    /* Top bar logo for mobile */
    .top-bar-logo-img {
        height: 30px !important;
    }

    /* ----- MOBILE MENU TOGGLE ----- */
    .waisaka-mobile-toggle {
        padding: 10px;
        right: 10px;
        top: 10px;
    }

    .waisaka-mobile-toggle span {
        width: 20px;
        height: 2px;
    }

    /* ----- MOBILE MENU PANEL ----- */
    .waisaka-mobile-menu {
        max-width: 280px;
    }

    .waisaka-mobile-menu-header {
        padding: 15px 12px;
    }

    .waisaka-mobile-menu-header img {
        height: 28px;
    }

    .waisaka-mobile-close {
        font-size: 20px;
    }

    .waisaka-mobile-nav>li>a {
        padding: 12px 15px;
        font-size: 13px;
    }

    .waisaka-mobile-cta {
        padding: 12px 15px;
    }

    .waisaka-mobile-cta .waisaka-cta-btn {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }

    /* Mobile dropdown adjustments */
    .mobile-dropdown-menu li a {
        padding: 8px 15px 8px 40px;
        font-size: 12px;
    }

    .mobile-submenu-title {
        padding: 8px 15px 4px 40px;
        font-size: 10px;
    }

    /* ----- MOBILE ICON GRID ----- */
    .mobile-icon-grid {
        gap: 8px;
        padding: 15px 10px;
    }

    .mobile-icon-item {
        padding: 10px 6px;
        border-radius: 10px;
    }

    .mobile-icon-item i {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .mobile-icon-item span {
        font-size: 9px;
    }

    /* Store buttons in mobile menu */
    .mobile-menu-store-buttons .store-btn {
        width: auto;
        padding: 6px 10px;
    }

    .mobile-menu-store-buttons .store-btn .store-text {
        font-size: 10px;
    }

    .mobile-menu-store-buttons .store-icon {
        width: 16px;
        height: 16px;
    }

    /* ----- SEARCH CONTAINER ----- */
    .search-main-container {
        margin-top: -80px !important;
        padding: 0 8px !important;
    }

    .search-container-responsive {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    /* Search buttons */
    .btn-home {
        font-size: 11px !important;
        padding: 5px 12px !important;
    }

    .btn-green-solid {
        font-size: 12px !important;
        padding: 8px 14px !important;
    }

    /* Search input */
    #location.form-control {
        font-size: 13px;
        padding: 10px 12px;
    }

    /* Filter collapse */
    #collapseExample .input-group .form-control,
    #collapseExample select.form-control {
        height: 42px !important;
        font-size: 12px !important;
    }

    #collapseExample .input-group-text {
        height: 42px !important;
        min-width: 35px !important;
        font-size: 12px !important;
    }

    /* ----- QUICK MENU ----- */
    .quick-menu-section {
        margin-top: -70px !important;
        padding: 10px 0 !important;
    }

    /* ----- PROPERTY CARDS ----- */
    .about .card-body {
        padding: 12px !important;
    }

    .about .card-footer {
        padding: 8px 10px !important;
    }

    .btn-card-wa,
    .btn-card-call {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }

    /* ----- PROMO BANNER ----- */
    .promo-banner-img {
        min-height: 150px !important;
    }

    /* ----- TYPOGRAPHY ----- */
    h1 {
        font-size: 20px !important;
    }

    h2 {
        font-size: 18px !important;
    }

    h3 {
        font-size: 16px !important;
    }

    h4 {
        font-size: 14px !important;
    }

    h5 {
        font-size: 13px !important;
    }

    h6 {
        font-size: 12px !important;
    }

    p,
    li,
    td {
        font-size: 13px !important;
    }

    /* Section titles */
    .section-title-2 h2 {
        font-size: 1.3rem !important;
    }

    .section-title-2 h5 {
        font-size: 0.8rem !important;
    }

    /* ----- CONTAINER PADDING ----- */
    .container,
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* ----- SECTION SPACING ----- */
    .p80,
    .p100 {
        padding: 30px 0 !important;
    }

    /* ----- BLOG SECTION ----- */
    .blog-post .post-txt h5 a {
        font-size: 13px;
    }

    .blog-post .post-txt p {
        font-size: 11px;
    }

    .blog-post .post-meta li {
        font-size: 10px;
    }

    /* ----- FOOTER ----- */
    .footer-widgets {
        padding: 30px 0 !important;
    }

    .footer-widgets h5 {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }

    .footer-widgets p,
    .footer-widgets li {
        font-size: 12px !important;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* ----- AGENT PROPERTY GRID ----- */
    .agent-property-grid {
        gap: 10px;
    }

    .agent-property-content {
        padding: 10px;
    }

    .agent-property-price {
        font-size: 1rem;
    }

    .agent-property-title {
        font-size: 0.85rem;
    }

    .agent-property-location {
        font-size: 0.7rem;
    }

    .agent-property-spec {
        font-size: 0.65rem;
        padding: 2px 5px;
    }

    .agent-property-footer {
        padding: 8px 10px;
    }

    .property-agent-info .agent-avatar {
        width: 26px;
        height: 26px;
    }

    .property-agent-info .agent-details small {
        font-size: 8px;
    }

    .property-agent-info .agent-details span {
        font-size: 9px;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION FIXES
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {

    /* Mobile Menu - Reduce Padding in Landscape */
    .waisaka-mobile-nav>li>a {
        padding: 10px 20px;
    }

    .waisaka-mobile-menu-header {
        padding: 15px;
    }

    /* Header - Reduce Height */
    .waisaka-header-container {
        padding: 0 0 15px 0 !important;
    }

    .waisaka-top-bar {
        padding: 5px 15px !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    /* Hide Navigation */
    .waisaka-header-container,
    .waisaka-mobile-menu,
    .waisaka-mobile-overlay,
    .waisaka-mobile-toggle,
    footer {
        display: none !important;
    }

    /* Optimize for Print */
    body {
        background: white !important;
    }

    .donation-join {
        background: white !important;
    }

    /* Remove Shadows */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}