/* ===================================
   RESPONSIVE CSS - All Media Queries
   =================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr) auto;
    }

    #hero {
        min-height: 65.1vh;
    }

    /*body.admin-bar #hero {*/
    /*    min-height: calc(65.1vh - 32px);*/
    /*}*/

    button.back-top {
        top: 17px;
        max-width: 72px;
        max-height: 72px;
        left: 10px;
    }

    body.admin-bar button.back-top {
        top: calc(17px + 32px);
    }
}

/* Tablets */
@media (max-width: 992px) {
    img.PUIUX-logo {
        width: 75px;
    }
 
    .newsletter-card {
        padding: 40px 50px;
        border-radius: 0 100px;
        max-width: 574px;
    }
}

@media (max-width: 991px) {
    .navbar-brand {
        margin: 0 !important;
        padding: 0 !important;
    }

    .about-main-title {
        font-size: 32px;
    }

    .about-description p {
        font-size: 15px;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.admin-bar .navbar {
        top: 32px;
    }

    .sidebar-contact-outer {
        position: static;
        margin-top: 40px;
    }

    .prop-full-title {
        font-size: 32px;
    }

    .prop-main-swiper {
        height: 420px;
    }

    .prop-thumbs-swiper .swiper-slide {
        width: 100px;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
    }

    .search-card {
        padding: 25px;
    }
}

/* Fix swiper navigation for mobile devices */
@media (max-width: 768px) {

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
        padding: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }

    /* Removed forced left/right positioning that breaks RTL navigation on mobile */
    /* Force show buttons on all swiper instances */
    .swiper .swiper-button-next,
    .swiper .swiper-button-prev {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }

    /* Package slider navigation */
    .pkg-nav-next,
    .pkg-nav-prev {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 768px) {
    footer .col-lg-3.col-md-6 {
        width: 49%
    }

    .col-lg-3.col-md-6.footer-brand {
        width: 100%
    }

    .back-top {
        width: 50px;
        height: 50px;
        font-size: 20px;
        left: 15px;
        bottom: 15px
    }

    /* Footer responsive styles */
    .newsletter-section {
        margin-bottom: -50px;
    }

    .newsletter-card {
        flex-direction: column;
        padding: 30px 20px;
        border-radius: 0 60px;
        text-align: center;
    }

    .newsletter-title {
        font-size: 24px;
    }

    .newsletter-form {
        margin-top: 15px;
    }

    .main-footer {
        padding-top: 100px;
    }

    .social-icons {
        margin-top: 30px;
    }

    .footer-heading {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .footer-bottom {
        gap: 20px;
    }

    img.footer_img,
    img.footer_img_bootom {
        display: none;
    }

    footer .col-lg-3.col-md-6 {
        width: 49%;
    }

    .col-lg-3.col-md-6.footer-brand {
        width: 100%;
    }

    .back-top {
        width: 50px;
        height: 50px;
        font-size: 20px;
        left: 15px;
        bottom: 15px;
    }

    /* Properties responsive styles */
    .filter-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .properties-page-section {
        padding: 60px 0;
    }

    .section-list-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .property-list-wrap {
        margin-bottom: 50px;
    }

    /* Main styles responsive */
    .about-description,
    .about-text,
    .about-title-side,
    .hero-content,
    .prop-main-header {
        text-align: center;
    }

    .about-center-img {
        max-height: 300px;
    }

    .about-text .d-flex,
    .grid_4,
    .hero-cta {
        justify-content: center;
    }

    img.hero-img,
    img.hero-img3 {
        max-width: 30%;
    }

    #hero {
        min-height: auto;
        padding-top: 170px;
    }

    .hero_content {
        position: relative;
        margin-bottom: -76px;
        top: -110px;
    }

    .hero-horse,
    img.properties-left,
    img.properties-right {
        display: none;
    }

    .hero-desc {
        max-width: 100%;
    }

    .stat-item {
        min-width: 39%;
        border-left: none !important;
        padding: 14px 0;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    #about .row {
        flex-direction: column;
        gap: 24px;
    }

    .row.g-4.g-md-5 {
        display: -webkit-inline-box;
        max-width: 88%;
    }

    .read-more-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: rgba(255, 255, 255, .4);
        font-size: .78rem;
        margin-bottom: 10px;
    }

    #propsRow {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #propsRow::-webkit-scrollbar {
        display: none;
    }

    #propsRow>div {
        flex: 0 0 82%;
        width: 82% !important;
        min-width: 260px;
        scroll-snap-align: center;
    }

    .prop-card {
        height: 100%;
    }

    #packages .col-md-5 {
        width: 100%;
    }

    .service-card {
        padding: 63px 40px;
    }

    .services-full-section .service-card {
        padding: 83px 40px;
        max-width: 304px;
        margin: auto;
    }

    .service-card h5 {
        font-size: .88rem;
    }

    .service-card p {
        font-size: .8rem;
    }

    .internal-hero h1 {
        font-size: 28px;
    }

    .internal-hero::after,
    .internal-hero::before {
        max-width: 80px;
    }

    .internal-hero {
        padding: 41px 0;
    }

    .details-page-content {
        padding: 40px 0 80px;
    }

    .prop-main-header {
        margin-bottom: 25px;
    }

    .prop-full-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .prop-loc-light {
        font-size: 16px !important;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .prop-full-price {
        margin: 15px auto 0;
        font-size: 28px;
    }

    .spec-icon-box,
    .spec-modern-val {
        font-size: 16px;
    }

    .action-btns-top {
        justify-content: center !important;
        margin-bottom: 15px !important;
    }

    .prop-main-swiper {
        height: 320px;
        border-radius: 20px;
    }

    .specs-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding-top: 30px !important;
    }

    .spec-modern-card {
        padding: 20px;
    }

    .spec-icon-box {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .prop-info-section {
        padding: 25px;
        border-radius: 20px;
    }

    .agent-name,
    .info-title {
        font-size: 20px;
    }

    .info-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .agent-card-premium {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .btn-whatsapp-premium {
        padding: 15px;
        font-size: 16px;
    }

    .navbar-brand img {
        max-width: 88px;
        max-height: 109px;
    }

    .pkg-card {
        min-height: 533px !important;
        height: auto !important;
        max-width: 475px;
        margin: auto;
    }

    .policy-section h3,
    .terms-section h3 {
        font-size: 26px;
    }

    .policy-section h4,
    .terms-section h4 {
        font-size: 20px;
    }

    .policy-card,
    .terms-card {
        padding: 25px;
    }

    .policy-section li,
    .policy-section p,
    .terms-section li,
    .terms-section p {
        font-size: 16px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {

    .pkg-nav-next,
    .pkg-nav-prev,
    .prop-nav-next,
    .prop-nav-prev {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
    }

    /* Removed old scaleX transforms to avoid double-flipping icons on mobile */

    .pkg-nav-next {
        left: 5px !important;
        right: auto !important;
    }

    .pkg-nav-prev {
        right: 5px !important;
        left: auto !important;
    }

    .search-card {
        padding: 20px;
        border-radius: 18px;
    }

    .price-values {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand .brand-text {
        font-size: 1.05rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-desc {
        font-size: .86rem;
        margin-top: 12px;
    }

    .hero-cta {
        margin-top: 20px;
        gap: 10px;
    }

    .btn-orange,
    .btn-outline-orange {
        padding: 10px 22px;
        font-size: .86rem;
        width: 100%;
        text-align: center;
    }

    .stats-bar {
        padding: 39px 0;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: .76rem;
    }

    .section-title {
        font-size: 28px;
        padding-bottom: 24px;
    }

    /* Services Swiper mobile fix */
    .services-swiper {
        padding: 20px 15px 68px !important;
        overflow: visible !important;
    }

    .services-swiper .swiper-wrapper {
        padding-left: 0;
    }

    .services-swiper .swiper-slide {
        margin-right: 15px !important;
    }

    #services {
        padding: 55px 0 35px;
    }

    .service-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .prop-loc,
    .prop-specs-table {
        margin-bottom: 15px;
    }

    .service-card h5 {
        font-size: .82rem;
        margin-bottom: 6px;
    }

    .service-card p {
        font-size: .75rem;
        line-height: 1.6;
    }

    .service-arrow {
        width: 30px;
        height: 30px;
        margin-top: 12px;
        padding: 6px;
        font-size: 14px;
    }

    #about {
        padding: 55px 0;
    }

    .about-text h2 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: .84rem;
    }

    #packages,
    #properties {
        padding: 60px 0;
    }

    .properties-swiper {
        padding: 20px 0 60px !important;
    }

    .prop-price,
    .prop-title {
        font-size: 16px;
    }

    .prop-loc,
    .spec-label,
    .spec-val {
        font-size: 12px;
    }

    .prop-specs-table {
        gap: 8px;
    }

    .prop-body {
        padding-top: 15px;
    }

    /* Services Swiper mobile fix */
    .services-swiper {
        overflow: visible !important;
    }

    .pkg-card::before,
    .swiper-slide.swiper-slide-active .pkg-card::before,
    .swiper-slide.swiper-slide-next .pkg-card::before {
        background-image: url('../images/packages2.webp');
    }

    .swiper-slide:nth-child(2n) .pkg-card::before {
        background-image: url('../images/packages.webp');
    }

    .swiper-slide:nth-child(2n) .pkg-card {
        border-radius: 60px 0 0;
    }

    .pkg-title {
        font-size: 1rem;
    }

    .pkg-price {
        font-size: 1.2rem;
    }

    .pkg-feature-title {
        font-size: .95rem;
        margin: 15px 0 8px;
    }

    .pkg-desc {
        font-size: .82rem;
        line-height: 1.6;
    }

    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    footer {
        padding: 18px 20px;
        font-size: .8rem;
    }

    .prop-full-title {
        font-size: 24px;
    }

    .prop-main-swiper {
        height: 240px;
    }

    .specs-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .spec-modern-card {
        padding: 15px 10px;
    }

    .spec-modern-val {
        font-size: 14px;
    }

    .breadcrumb-list {
        font-size: 12px;
        flex-wrap: wrap;
    }
}

/* Mobile specific fixes from mobile-menu-fix.css */
@media (max-width: 991px) {
    .offcanvas-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
}