/* Mobile Responsive Styles */

/* Performance optimizations */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Hardware acceleration for smooth animations */
.th-menu-wrapper,
.mobile-menu,
.th-header,
.filter-item {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Fast mobile menu transitions */
.th-menu-wrapper,
.mobile-menu {
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

/* Base mobile styles */
@media (max-width: 767px) {
    /* General adjustments */
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Container padding adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Section spacing */
    .space {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Typography */
    h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    h2, .sec-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    h3, .box-title {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    h4 {
        font-size: 15px !important;
    }

    h5 {
        font-size: 14px !important;
    }

    p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .sub-title {
        font-size: 12px !important;
    }

    /* Buttons */
    .th-btn, .btn {
        font-size: 12px !important;
        padding: 8px 16px !important;
        white-space: nowrap;
    }

    .th-btn.sm {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }

    /* Navigation */
    .th-header {
        padding: 10px 0;
    }

    .main-menu ul li a {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }

    /* Hero Section */
    .hero-wrapper {
        min-height: calc(100vh - 60px) !important;
        padding: 30px 0 !important;
    }

    .hero-style1 .hero-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .hero-style1 .hero-text {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    /* About Section */
    .about-sec-1 .title-area {
        margin-bottom: 20px !important;
    }

    .about-sec-1 .about-thumb img {
        width: 100%;
        height: auto;
    }

    .about-list {
        margin-bottom: 15px;
    }

    .about-list li {
        font-size: 13px !important;
        padding: 8px 0;
    }

    /* Popular Properties / Projects */
    .popular-sec-1 .filter-menu {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 15px !important;
    }

    .filter-menu .tab-btn {
        font-size: 11px !important;
        padding: 6px 12px !important;
        margin: 4px !important;
    }

    .popular-list-1 {
        margin-bottom: 20px;
    }

    .thumb-wrapper {
        height: 200px !important;
    }

    .property-content {
        padding: 15px !important;
    }

    .property-content .box-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .property-content .box-text {
        font-size: 11px !important;
        flex-direction: column;
        gap: 8px !important;
        align-items: flex-start !important;
    }

    .property-content .box-text span {
        font-size: 11px !important;
    }

    .property-content .box-text .vertical-line {
        display: none;
    }

    .popular-badge p {
        font-size: 10px !important;
    }

    /* Client info box */
    .property-content > div[style*="padding: 12px"] {
        padding: 10px !important;
        font-size: 12px !important;
    }

    .property-content > div[style*="padding: 12px"] p {
        font-size: 12px !important;
    }

    /* Services Section (What We Do) */
    .service-card {
        margin-bottom: 20px;
        padding: 20px !important;
    }

    .service-card .box-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .service-card .service-card_text {
        font-size: 12px !important;
    }

    .service-card .box-icon img {
        width: 50px !important;
        height: 50px !important;
    }

    /* Who We Are Section */
    .who-we-are-sec .counter-card {
        margin-bottom: 20px;
        padding: 20px 15px !important;
    }

    .counter-card_number {
        font-size: 28px !important;
    }

    .counter-card_text {
        font-size: 12px !important;
    }

    /* Property Values / Statistics */
    .property-values .value-card {
        margin-bottom: 20px;
        padding: 20px 15px !important;
    }

    .value-card .value-number {
        font-size: 32px !important;
    }

    .value-card .value-text {
        font-size: 12px !important;
    }

    /* Statistics Section */
    .statistics-sec .stat-item {
        margin-bottom: 20px;
    }

    .stat-item h3 {
        font-size: 28px !important;
    }

    .stat-item p {
        font-size: 12px !important;
    }

    /* Contact Form */
    .contact-form-sec {
        padding: 30px 0;
    }

    .contact-form .form-group {
        margin-bottom: 15px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 13px !important;
        padding: 10px 15px !important;
    }

    .contact-form label {
        font-size: 13px !important;
        margin-bottom: 8px;
    }

    /* Footer */
    .footer-wrapper {
        padding: 30px 0 15px !important;
    }

    .footer-widget {
        margin-bottom: 25px;
    }

    .footer-widget .widget-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .footer-widget ul li {
        font-size: 12px !important;
        padding: 5px 0;
    }

    .footer-widget p {
        font-size: 12px !important;
    }

    .copyright-wrap {
        text-align: center;
        padding: 15px 0;
    }

    .copyright-wrap p {
        font-size: 11px !important;
    }

    /* Cards and boxes */
    .card, .box {
        margin-bottom: 20px;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Grid adjustments */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Spacing utilities */
    .mb-2, .mb-3, .mb-4, .mb-5 {
        margin-bottom: 15px !important;
    }

    .mt-2, .mt-3, .mt-4, .mt-5 {
        margin-top: 15px !important;
    }

    .pt-2, .pt-3, .pt-4, .pt-5 {
        padding-top: 15px !important;
    }

    .pb-2, .pb-3, .pb-4, .pb-5 {
        padding-bottom: 15px !important;
    }

    /* Title area */
    .title-area {
        margin-bottom: 25px !important;
    }

    .title-area .sec-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .title-area .sub-title {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    /* WOW animations - reduce delays on mobile */
    .fadeinup.wow,
    .wow {
        animation-delay: 0s !important;
        animation-duration: 0.5s !important;
    }

    /* Actions buttons */
    .actions .icon-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    .actions-style-2-wrapper .action-text {
        font-size: 11px !important;
    }

    /* Tables */
    table {
        font-size: 12px !important;
    }

    table td, table th {
        padding: 8px !important;
        font-size: 12px !important;
    }

    /* Breadcrumb */
    .breadcumb-wrapper {
        padding: 60px 0 40px !important;
    }

    .breadcumb-title {
        font-size: 22px !important;
    }

    .breadcumb-menu {
        font-size: 12px !important;
    }

    /* Project Detail Page */
    .project-detail-wrapper {
        padding: 30px 0;
    }

    .project-detail-wrapper .project-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .project-info-list {
        font-size: 12px !important;
    }

    .project-info-list li {
        padding: 8px 0 !important;
        font-size: 12px !important;
    }

    /* Service Details */
    .service-detail-wrapper {
        padding: 30px 0;
    }

    .service-detail-wrapper .service-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    /* Sidebar */
    .sidebar-area {
        margin-top: 30px;
    }

    .widget {
        padding: 20px 15px !important;
        margin-bottom: 20px;
    }

    .widget-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    /* Pagination */
    .pagination {
        font-size: 13px !important;
    }

    .pagination li a {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    body {
        font-size: 15px;
    }

    h2, .sec-title {
        font-size: 24px !important;
    }

    h3, .box-title {
        font-size: 18px !important;
    }

    .thumb-wrapper {
        height: 250px !important;
    }

    .th-btn, .btn {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Make filter buttons stack better */
    .filter-menu .tab-btn {
        font-size: 10px !important;
        padding: 5px 10px !important;
        margin: 3px !important;
    }

    /* Reduce hero height on very small screens */
    .hero-wrapper {
        min-height: 70vh !important;
    }

    /* Smaller cards */
    .col-xxl-3, .col-xl-4, .col-lg-6, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Stack property info vertically */
    .property-content .box-text {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .property-content .box-text span:nth-child(2) {
        display: none !important; /* Hide vertical separator */
    }
}

/* Landscape mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-wrapper {
        min-height: 100vh !important;
        padding: 20px 0 !important;
    }

    .hero-style1 .hero-title {
        font-size: 22px !important;
    }
}

/* Hide elements that don't work well on mobile */
@media (max-width: 767px) {
    .d-none-mobile {
        display: none !important;
    }
}

/* Ensure touch targets are large enough */
@media (max-width: 767px) {
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }

    .icon-btn {
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* Fix overflow issues */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
