/**
 * Contact Information Mobile Fixes
 * Ensures proper display of contact icons and information across all devices
 */

/* Footer Contact Items - Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-list {
        max-width: none;
        margin: 0;
    }
    
    .contact-item {
        text-align: left;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .contact-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    .contact-content {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .footer-menu {
        text-align: left;
    }
    
    .footer-menu li {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .contact-item {
        gap: 0.625rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .contact-icon svg {
        width: 1rem;
        height: 1rem;
    }
    
    .contact-content {
        font-size: 0.875rem;
    }
}

/* Contact Page - Mobile Responsive */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-list {
        gap: 1.25rem;
    }
    
    .info-item {
        gap: 0.875rem;
    }
    
    .info-icon {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .info-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 3rem 0;
    }
    
    .hero-title-contact {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-contact {
        font-size: 1.125rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .info-item {
        gap: 0.75rem;
    }
    
    .info-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .info-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    .info-content h4 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .info-content p {
        font-size: 0.8125rem;
    }
}

/* Property Cards - Mobile Contact Buttons */
@media (max-width: 640px) {
    .property-actions {
        gap: 0.5rem;
    }
    
    .action-btn-card {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.375rem;
    }
    
    .action-btn-card svg {
        width: 1rem !important;
        height: 1rem !important;
    }
    
    .whatsapp-icon {
        width: 1rem !important;
        height: 1rem !important;
    }
}

@media (max-width: 480px) {
    .property-actions {
        gap: 0.375rem;
    }
    
    .action-btn-card {
        width: 2rem;
        height: 2rem;
        border-radius: 0.25rem;
    }
    
    .action-btn-card svg {
        width: 0.875rem !important;
        height: 0.875rem !important;
    }
    
    .whatsapp-icon {
        width: 0.875rem !important;
        height: 0.875rem !important;
    }
}

/* Single Property Page - Mobile Contact Buttons */
@media (max-width: 768px) {
    .property-contact-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .btn-contact svg {
        width: 1.125rem;
        height: 1.125rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .btn-contact {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .btn-contact svg {
        width: 1rem;
        height: 1rem;
        margin-right: 0.375rem;
    }
}

/* Mobile Sticky Contact Bar - Enhanced */
@media (max-width: 768px) {
    .mobile-sticky-contact {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .sticky-contact-btn {
        min-width: 4rem;
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .sticky-contact-btn svg {
        width: 1.125rem;
        height: 1.125rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .mobile-sticky-contact {
        padding: 0.625rem 0.75rem;
        gap: 0.375rem;
    }
    
    .sticky-contact-btn {
        min-width: 3.5rem;
        padding: 0.625rem 0.375rem;
        font-size: 0.75rem;
    }
    
    .sticky-contact-btn svg {
        width: 1rem;
        height: 1rem;
        margin-bottom: 0.125rem;
    }
    
    .sticky-contact-btn span {
        font-size: 0.6875rem;
    }
}

/* WhatsApp Icon Consistency */
.whatsapp-icon-single,
.whatsapp-icon {
    fill: currentColor !important;
}

/* Ensure proper touch targets on mobile */
@media (max-width: 768px) {
    .contact-link,
    .action-btn-card,
    .btn-contact,
    .sticky-contact-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-link {
        min-height: auto;
        min-width: auto;
        display: inline;
        padding: 0.25rem 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-icon {
        border: 2px solid currentColor;
    }
    
    .contact-icon.whatsapp-icon {
        border-color: #25d366;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .contact-link,
    .action-btn-card,
    .btn-contact {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .contact-icon {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .contact-icon svg {
        color: #fbbf24;
    }
    
    .contact-icon.whatsapp-icon {
        background: #25d366;
    }
    
    .contact-icon.whatsapp-icon svg {
        color: white;
    }
}