/* Responsive Styles */

@media (max-width: 1200px) {
    .floor-plan-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .about-icons-bar {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-form-desktop {
        display: none;
    }
    
    .mobile-hero-form {
        display: block;
    }
    
    .about-content, 
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .floor-plan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .amenities-grid,
    .nearby-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .price-tag {
        font-size: 1.6rem;
    }
    
    .about-icons-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Social slider for tablet */
    .social-card {
        flex: 0 0 calc(33.33% - 17px);
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0.5rem;
    }
    
    .hero {
        display: none;
    }
    
    .mobile-hero-slider {
        display: block;
    }
    
    .mobile-hero-content {
        display: block;
    }
    
    .mobile-hero-form {
        background: url('../media/animation/fam.gif') center/cover, linear-gradient(to right, var(--A4), var(--A5));
        background-blend-mode: overlay;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .floor-plan-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .floor-plan-image {
        height: 220px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .floating-btn-container {
        bottom: 20px;
        right: 20px;
    }
    
    .specifications-table {
        display: block;
        overflow-x: auto;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .location-features {
        grid-template-columns: 1fr;
    }
    
    .floating-main-btn {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    
    .floating-action {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .floating-actions {
        gap: 12px;
        bottom: 65px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn, .shining-btn, .download-brochure-btn, #download-brochure-hero, .mobile-download-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .plan-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Center download button on mobile only */
    #download-brochure-hero {
        display: block !important;
        margin: 25px auto 0 auto !important;
        width: auto !important;
        min-width: 250px !important;
        text-align: center !important;
    }
    
    .mobile-download-btn {
        display: block !important;
        margin: 25px auto 0 auto !important;
        width: auto !important;
        min-width: 250px !important;
        text-align: center !important;
    }
    
    .about-icons-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Social slider for mobile */
    .social-card {
        flex: 0 0 calc(100% - 0px);
    }
    
    .social-header p {
        font-size: 1rem;
    }
    
    .social-card-upper {
        padding: 25px 15px 35px;
    }
    
    .social-profile-pic {
        width: 70px;
        height: 70px;
    }
    
    .social-profile-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .nearby-grid {
        grid-template-columns: 1fr;
    }
    
    .slide {
        height: 300px;
    }
    
    .floor-plan-image {
        height: 200px;
    }
    
    .social-slider-container {
        padding: 0 10px;
    }
    
    .social-card-lower {
        padding: 20px 15px;
    }
}

/* Tablet-specific floating button styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .floating-btn-container {
        bottom: 25px;
        right: 25px;
    }
    
    .floating-main-btn {
        width: 58px;
        height: 58px;
    }
    
    .action-btn {
        width: 42px;
        height: 42px;
    }
}

/* Desktop only styles */
@media (min-width: 769px) {
    .mobile-hero-slider,
    .mobile-hero-content {
        display: none !important;
    }
    
    .hero {
        display: flex !important;
    }
}

@media (min-width: 993px) {
    .social-card {
        flex: 0 0 calc(33.33% - 17px);
    }
}

/* Fix for mobile tap delay */
@media (max-width: 768px) {
    .floating-main-btn,
    .floating-action {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Add a small animation for mobile tap */
    .floating-main-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
    
    .floating-action:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}