/* Location Pages Mobile Fix - Normal Heights, Proper Spacing */

/* Fix for mobile devices - stack everything vertically and center properly */
@media (max-width: 768px) {
  /* Fix directions grid - stack vertically on mobile */
  .location-directions {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  
  .location-directions > div {
    margin-bottom: 30px;
  }
  
  /* Fix testimonials grid */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Ensure all text aligns properly */
  .info-section ol,
  .info-section ul {
    text-align: left;
    padding-left: 25px;
    margin-left: 0;
  }
  
  .info-section h4 {
    text-align: left;
  }
  
  /* Fix lists in service cards */
  .service-card ul {
    padding-left: 20px;
    text-align: left;
  }
  
  /* Ensure proper spacing for all sections */
  section {
    padding: 40px 0;
  }
  
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Fix hero stats */
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-stats .stat {
    width: 100%;
  }
  
  /* Fix feature cards grid */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  /* Fix services grid */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }
  
  /* Tables - make responsive */
  table {
    display: table;
    width: 100%;
    overflow-x: auto;
  }
  
  /* Fix buttons */
  .btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
  }
  
  /* Hero buttons */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  
  /* Fix heading sizes */
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem !important;
    line-height: 1.3;
  }
  
  /* Fix breadcrumb */
  .breadcrumb {
    font-size: 0.85rem;
    flex-wrap: wrap;
  }
  
  /* Fix hero lead text */
  .lead {
    font-size: 1rem !important;
  }
  
  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Fix padding on info boxes */
  .info-section > div > div {
    padding: 20px !important;
  }
  
  /* Fix nested grids */
  div[style*="display: grid"] {
    display: block !important;
  }
  
  /* Re-enable specific grids that should remain */
  .features-grid,
  .services-grid,
  .testimonials-grid {
    display: grid !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem !important;
  }
  
  h2 {
    font-size: 1.35rem !important;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  section {
    padding: 30px 0;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Landscape fixes for mobile */
@media (max-width: 992px) and (orientation: landscape) {
  .hero {
    padding: 3rem 0 2rem;
  }
  
  h1 {
    font-size: 1.5rem !important;
  }
}
