/**
 * Mobil genel düzeltmeler — taşan görseller, yatay kayma, menü hizası
 */
@media (max-width: 1023px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .wp-site-blocks,
  main,
  section,
  .hero-section,
  .values-section,
  .feature-treatment-section,
  .instagram-section,
  .reviews-section {
    max-width: 100% !important;
    overflow-x: hidden;
  }

  img:not(.logo):not(.language-logo):not(.language-check-icon),
  video,
  iframe {
    max-width: 100% !important;
    height: auto;
  }

  /* Hero alt başlıktaki konum bayrağı — mobilde gizle (tam genişlik taşmasını önler) */
  .hero-section .hero-subheading img,
  .hero-subheading img[src*="Location-Icon"],
  .hero-subheading img[alt*="turkey" i],
  .hero-subheading img[alt*="logo" i] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .values-trusted-img,
  .why-dentspa-content-container img:not(.why-dentspa-content-icon),
  .feature-treatment-link-icon img,
  .instagram-reel img,
  .before-after-slide img,
  .success-stories-img,
  .treatment-hero-wrapper img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Hamburger bar hizası — menü kaymasın */
  nav .menu-container {
    position: relative !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.25rem !important;
    min-height: 2.75rem;
  }

  nav .menu-container > .menu-list:not(.active) {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
  }

  nav .menu-container > .menu-list.active {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 3.5rem !important;
    width: 100vw !important;
    height: calc(100vh - 3.5rem) !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 10060 !important;
  }

  nav .menu-btn {
    order: 99;
    flex-shrink: 0 !important;
  }

  nav > .menu-container > .navbar-links:has(.language-container) {
    order: 98;
    flex-shrink: 0 !important;
  }

  /* Küçük dekoratif ikonlar — tam genişlik olmasın */
  .why-dentspa-content-icon,
  .values-section .travel-planing img,
  .values-section img[src*="DentSpa-theme/assets/images/"]:not(.values-trusted-img),
  .approved-by-logo img,
  .stars-wrapper img {
    width: auto !important;
    max-width: 4.5rem !important;
    height: auto !important;
    max-height: 4.5rem !important;
    object-fit: contain !important;
  }

  .why-dentspa-content-icon {
    width: 4rem !important;
    max-width: 4rem !important;
    height: 4rem !important;
  }
}
