/* ==============================================
   MOBILE FOOTER RESPONSIVE FIXES
   ============================================== */

/* Mobile-specific footer fixes */
@media screen and (max-width: 768px) {
  
  /* ===== Map Section Mobile Fixes ===== */
  .contact_map {
    height: 280px !important; /* Reduce height for mobile */
    padding: 10px !important;
  }
  
  .gmap_canvas, #gmap_canvas {
    height: 100% !important;
    border-radius: 8px !important; /* Smaller border radius for mobile */
  }
  
  /* ===== Contact Info Overlay Mobile Fixes ===== */
  .contact_map > div[style*="position: absolute"] {
    /* Override inline styles for mobile */
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    max-width: none !important;
    margin-top: 15px !important;
    padding: 16px 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
  }
  
  /* Company name title - mobile sizing */
  .contact_map div[style*="font-weight: bold"] {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }
  
  /* Address and contact details - mobile optimization */
  .contact_map div[style*="font-size: 15px"] {
    font-size: 14px !important;
  }
  
  .contact_map div[style*="display: flex"][style*="gap: 12px"] {
    gap: 10px !important;
    margin-bottom: 10px !important;
  }
  
  /* Icon container adjustments */
  .contact_map div[style*="width: 22px"] {
    width: 20px !important;
    min-width: 20px !important;
  }
  
  .contact_map i[style*="font-size:18px"] {
    font-size: 16px !important;
  }
  
  /* Social media section mobile fixes */
  .contact_map div[style*="border-top: 1px solid"] {
    padding-top: 12px !important;
    margin-top: 12px !important;
  }
  
  .contact_map div[style*="font-size: 14px"] {
    font-size: 13px !important;
  }
  
  /* Social media links container */
  .contact_map div[style*="display: flex"][style*="gap: 16px"] {
    gap: 12px !important;
    justify-content: center !important;
  }
  
  /* Social media links */
  .contact_map a[style*="padding: 6px 10px"] {
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
  }
  
  .contact_map a i[style*="font-size: 18px"] {
    font-size: 16px !important;
  }
  
  /* ===== Copyright Section Mobile Fixes ===== */
  .footer-style-1 div[style*="border-top: 1px solid"][style*="margin-top: 44px"] {
    margin-top: 20px !important;
    padding-top: 16px !important;
  }
  
  .footer-style-1 div[style*="border-top: 1px solid"] p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    padding: 0 10px !important;
  }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
  
  /* Further reduce map height for very small screens */
  .contact_map {
    height: 240px !important;
    padding: 8px !important;
  }
  
  /* Even more compact overlay */
  .contact_map > div[style*="position: absolute"] {
    padding: 12px 16px !important;
    margin-top: 10px !important;
  }
  
  /* Smaller text for tiny screens */
  .contact_map div[style*="font-weight: bold"] {
    font-size: 15px !important;
  }
  
  .contact_map div[style*="font-size: 15px"] {
    font-size: 13px !important;
  }
  
  /* Stack social media links vertically on very small screens */
  .contact_map div[style*="display: flex"][style*="gap: 16px"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  .contact_map a[style*="padding: 6px 10px"] {
    padding: 6px 10px !important;
    min-width: 120px !important;
    justify-content: center !important;
  }
}

/* Tablet portrait mode fixes */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  
  /* Adjust map height for tablets */
  .contact_map {
    height: 320px !important;
  }
  
  /* Position overlay better on tablets */
  .contact_map > div[style*="position: absolute"] {
    right: 24px !important;
    bottom: 24px !important;
    max-width: 350px !important;
    padding: 20px 28px !important;
  }
}

/* Landscape phone orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
  
  /* Reduce map height in landscape mode */
  .contact_map {
    height: 200px !important;
  }
  
  /* Make overlay more compact in landscape */
  .contact_map > div[style*="position: absolute"] {
    padding: 10px 14px !important;
    margin-top: 8px !important;
  }
  
  /* Smaller text in landscape */
  .contact_map div[style*="font-weight: bold"] {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }
  
  .contact_map div[style*="font-size: 15px"] {
    font-size: 12px !important;
  }
}
