/* ========================================
   QUICK FLIP REAL ESTATE - MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile Navigation - Full Screen Overlay */
.qf-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--qf-secondary);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.qf-mobile-nav.active {
    transform: translateX(0);
}

.qf-mobile-nav-inner {
    padding: 2rem;
    min-height: 100%;
}

.qf-mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--qf-white);
    cursor: pointer;
    padding: 0.5rem;
}

.qf-mobile-menu {
    list-style: none;
    padding: 4rem 0 2rem;
}

.qf-mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qf-mobile-menu a {
    display: block;
    padding: 1.25rem 0;
    color: var(--qf-white);
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.qf-mobile-menu a:hover {
    color: var(--qf-primary);
}

.qf-mobile-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qf-mobile-phone,
.qf-mobile-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: var(--qf-white);
    font-size: 1.1rem;
}

.qf-mobile-whatsapp {
    color: #25D366;
}

/* Hide desktop elements on mobile */
@media (max-width: 991px) {
    .qf-nav-menu,
    .qf-header-actions .qf-btn-ghost,
    .qf-header-actions .qf-btn-primary {
        display: none !important;
    }
    
    .qf-mobile-toggle {
        display: flex !important;
    }
    
    .qf-header-inner {
        padding: 0 1rem;
    }
}

/* Tablet Styles (768px - 991px) */
@media (max-width: 991px) {
    /* Hero Section */
    .qf-hero {
        min-height: auto;
        padding-bottom: 2rem;
    }
    
    .qf-hero-content {
        padding: 100px 1rem 2rem;
    }
    
    .qf-hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .qf-hero-description {
        font-size: 1rem;
    }
    
    .qf-hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .qf-hero-stat-number {
        font-size: 2rem;
    }
    
    /* Search Box */
    .qf-hero-search {
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    .qf-search-box {
        padding: 1.25rem;
    }
    
    .qf-search-tabs {
        flex-wrap: wrap;
    }
    
    .qf-search-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .qf-search-form {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .qf-form-control {
        padding: 0.75rem;
    }
    
    /* Sections */
    .qf-section {
        padding: 3rem 0;
    }
    
    .qf-section-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .qf-section-title {
        font-size: 1.75rem;
    }
    
    .qf-section-description {
        font-size: 1rem;
    }
    
    /* Property Cards Grid */
    .qf-listings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .qf-property-card {
        max-width: 100%;
    }
    
    .qf-property-image {
        height: 200px;
    }
    
    .qf-property-content {
        padding: 1rem;
    }
    
    .qf-property-price {
        font-size: 1.5rem;
    }
    
    .qf-property-title {
        font-size: 1.1rem;
    }
    
    .qf-property-features {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    /* Investment Section */
    .qf-investment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .qf-investment-card {
        padding: 1.5rem;
    }
    
    .qf-investment-icon {
        width: 60px;
        height: 60px;
    }
    
    .qf-investment-icon svg {
        width: 30px;
        height: 30px;
    }
    
    /* About Section */
    .qf-about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .qf-about-images {
        order: -1;
    }
    
    .qf-about-image-secondary {
        display: none;
    }
    
    .qf-about-content h2 {
        font-size: 1.75rem;
    }
    
    .qf-about-content p {
        font-size: 1rem;
    }
    
    .qf-about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .qf-about-stat-number {
        font-size: 1.75rem;
    }
    
    /* Testimonials */
    .qf-testimonials-slider {
        padding: 0 1rem;
    }
    
    .qf-testimonial {
        padding: 1.5rem;
    }
    
    .qf-testimonial-quote {
        font-size: 1.1rem;
    }
    
    /* CTA Section */
    .qf-cta {
        padding: 3rem 1rem;
    }
    
    .qf-cta h2 {
        font-size: 1.75rem;
    }
    
    .qf-cta p {
        font-size: 1rem;
    }
    
    .qf-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .qf-cta .qf-btn-primary,
    .qf-cta .qf-btn-outline {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    /* Footer */
    .qf-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem 2rem;
    }
    
    .qf-footer-column h4 {
        margin-bottom: 1rem;
    }
    
    .qf-footer-bottom {
        padding: 1rem;
    }
    
    /* WhatsApp Float Button */
    .qf-whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .qf-whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile Styles (up to 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Header */
    .qf-header-inner {
        height: 60px;
    }
    
    .qf-logo img {
        height: 40px;
    }
    
    .qf-logo-text {
        font-size: 1.1rem;
    }
    
    /* Hero */
    .qf-hero-content {
        padding: 80px 1rem 1.5rem;
    }
    
    .qf-hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    
    .qf-hero-title {
        font-size: 1.75rem;
    }
    
    .qf-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .qf-hero-stat-number {
        font-size: 1.5rem;
    }
    
    .qf-hero-stat-label {
        font-size: 0.7rem;
    }
    
    .qf-hero-actions {
        flex-direction: column;
    }
    
    .qf-hero-actions .qf-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Search Box */
    .qf-search-tabs {
        gap: 0.25rem;
    }
    
    .qf-search-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .qf-form-label {
        font-size: 0.75rem;
    }
    
    /* Property Cards */
    .qf-property-badges {
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .qf-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .qf-property-actions {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .qf-property-action {
        width: 32px;
        height: 32px;
    }
    
    /* About Stats */
    .qf-about-stats {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .qf-about-stat {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .qf-about-stat-number {
        font-size: 1.5rem;
    }
    
    /* Testimonials */
    .qf-testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    /* Market Section */
    .qf-market-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .qf-market-card {
        padding: 1.5rem;
    }
    
    .qf-market-number {
        font-size: 2.5rem;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .qf-hero-title {
        font-size: 1.5rem;
    }
    
    .qf-hero-stats {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .qf-hero-stat {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .qf-section-title {
        font-size: 1.5rem;
    }
    
    .qf-property-features {
        font-size: 0.8rem;
    }
    
    .qf-property-feature svg {
        width: 14px;
        height: 14px;
    }
    
    .qf-investment-card h3 {
        font-size: 1.25rem;
    }
    
    .qf-investment-card p {
        font-size: 0.9rem;
    }
    
    .qf-cta h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   SINGLE PROPERTY PAGE - MOBILE
   ======================================== */

@media (max-width: 991px) {
    .qf-property-header {
        padding: 100px 1rem 1.5rem;
    }
    
    .qf-property-title {
        font-size: 1.5rem;
    }
    
    .qf-property-price-main {
        font-size: 1.75rem;
    }
    
    .qf-gallery-container {
        padding: 0;
    }
    
    .qf-gallery-main {
        height: 250px;
    }
    
    .qf-gallery-thumbs {
        display: none;
    }
    
    .qf-property-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .qf-property-quick-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .qf-quick-info-item {
        padding: 1rem;
    }
    
    .qf-quick-info-value {
        font-size: 1.25rem;
    }
    
    .qf-property-section h2 {
        font-size: 1.25rem;
    }
    
    .qf-property-features-list {
        grid-template-columns: 1fr;
    }
    
    .qf-sidebar-card {
        padding: 1.25rem;
    }
    
    .qf-mortgage-calculator .qf-form-group {
        margin-bottom: 0.75rem;
    }
    
    .qf-similar-properties .qf-listings-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PROPERTY ARCHIVE PAGE - MOBILE
   ======================================== */

@media (max-width: 991px) {
    .qf-page-header-section {
        padding: 100px 1rem 2rem;
    }
    
    .qf-page-title {
        font-size: 1.75rem;
    }
    
    .qf-filter-section {
        padding: 0 1rem;
    }
    
    .qf-filter-bar {
        padding: 1rem;
    }
    
    .qf-filter-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .qf-filter-group {
        width: 100%;
    }
    
    .qf-filter-btn {
        width: 100%;
    }
    
    .qf-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .qf-results-sort {
        width: 100%;
    }
    
    .qf-results-sort select {
        width: 100%;
    }
    
    .qf-results-view {
        display: none;
    }
    
    .qf-pagination {
        padding: 0 1rem;
    }
    
    .qf-pagination .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .qf-pagination .page-numbers {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .qf-compare-bar {
        padding: 0.75rem 1rem;
    }
    
    .qf-compare-bar-inner {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .qf-compare-actions {
        width: 100%;
    }
    
    .qf-compare-actions .qf-btn {
        flex: 1;
    }
}

/* ========================================
   CONTACT PAGE - MOBILE
   ======================================== */

@media (max-width: 991px) {
    .qf-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .qf-contact-info {
        order: -1;
    }
    
    .qf-contact-card {
        padding: 1.5rem;
    }
    
    .qf-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .qf-contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .qf-social-links {
        justify-content: flex-start;
    }
    
    .qf-contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .qf-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .qf-map-container {
        height: 250px;
    }
}

/* ========================================
   BLOG PAGE - MOBILE
   ======================================== */

@media (max-width: 991px) {
    .qf-posts-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .qf-post-card {
        flex-direction: column;
    }
    
    .qf-post-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .qf-post-content {
        padding: 1.25rem;
    }
    
    .qf-post-title {
        font-size: 1.25rem;
    }
    
    .qf-post-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ========================================
   UTILITY CLASSES - MOBILE
   ======================================== */

@media (max-width: 991px) {
    .qf-container {
        padding: 0 1rem;
    }
    
    .qf-hide-mobile {
        display: none !important;
    }
    
    .qf-show-mobile {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .qf-hide-desktop {
        display: none !important;
    }
}

/* ========================================
   ANIMATIONS - MOBILE OPTIMIZED
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .qf-btn:hover {
        transform: none;
    }
    
    .qf-property-card:hover {
        transform: none;
    }
    
    .qf-property-card:hover .qf-property-image img {
        transform: none;
    }
}
