
/* Rehbi v60 - tüm public sayfalar için mobil responsive koruması */
*,*::before,*::after{box-sizing:border-box}

html{
  width:100%;
  min-width:100%;
  max-width:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  width:100%;
  min-width:100%;
  max-width:100%;
  margin:0;
  overflow-x:hidden;
}

html,body{
  overscroll-behavior-x:none;
}

#app,
#profileApp,
main,
header,
footer,
section,
article,
nav,
form{
  min-width:0;
}

img,video,canvas{
  max-width:100%;
  height:auto;
}

/* Leaflet harita görsellerine global img sınırı uygulanmasın. */
.leaflet-container img,
.leaflet-container .leaflet-tile{
  max-width:none !important;
}

input,
select,
textarea,
button{
  box-sizing:border-box;
  max-width:100%;
}

/* iOS form alanına odaklanınca otomatik zoom yapmasın. */
@media (max-width:768px){
  input,
  select,
  textarea{
    font-size:16px !important;
  }

  body{
    min-width:0;
  }

  .shell,
  .main,
  .nav,
  .topbar,
  .hero,
  .hero-inner,
  .profile-shell,
  .profile-main,
  .profile-header,
  .public-form-shell,
  .public-form-card,
  .account-shell,
  .account-page,
  .favorites-shell,
  .favorites-nav,
  .grid,
  .form-grid,
  .search-panel,
  .directory-card,
  .compact-card,
  .profile-card,
  .claim-panel,
  .report-panel,
  .links-builder,
  .business-image-field,
  .map-field{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .public-form-shell,
  .favorites-shell,
  .account-shell,
  .profile-shell,
  .main{
    margin-left:auto;
    margin-right:auto;
  }

  .form-grid{
    grid-template-columns:minmax(0,1fr) !important;
  }

  .form-grid .wide{
    grid-column:auto !important;
  }

  .business-map,
  #businessMap{
    width:100% !important;
    max-width:100% !important;
  }

  .links-heading,
  .business-image-upload,
  .report-summary{
    min-width:0;
  }

  .mobile-bottom-nav{
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100% !important;
    max-width:100% !important;
  }

  .mobile-bottom-nav .mobile-nav-item{
    min-width:0;
  }
}

/* Dar iPhone/Android ekranları */
@media (max-width:390px){
  .public-form-shell{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .public-form-card{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .favorites-shell,
  .profile-shell,
  .main{
    padding-left:12px !important;
    padding-right:12px !important;
  }
}


/* v61 - mobil sayfanın sağa/sola kaymasını ve zoom-out olmasını kesin engelle */
html,
body{
  position:relative;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow-x:clip !important;
  touch-action:pan-y;
}

body > *{
  max-width:100% !important;
}

.public-form-header,
.public-form-shell,
.public-form-card,
#businessSubmissionForm,
.form-grid,
.form-grid > *,
.map-field,
.business-map,
#businessMap,
.business-image-field,
.links-builder,
.link-rows,
.link-row{
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

.public-form-shell{
  width:100% !important;
  padding-left:16px !important;
  padding-right:16px !important;
}

.public-form-card{
  width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

#businessSubmissionForm,
.form-grid{
  width:100% !important;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.phone-input-fixed,
.map-location-btn{
  min-width:0 !important;
  max-width:100% !important;
}

@media(max-width:768px){
  .public-form-card{
    padding:20px !important;
  }

  .form-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;
  }

  .form-grid > label,
  .form-grid > div,
  .form-grid .wide{
    grid-column:1 !important;
    width:100% !important;
    min-width:0 !important;
  }

  .map-heading{
    width:100% !important;
  }

  .business-image-upload{
    width:100% !important;
    min-width:0 !important;
  }

  .business-image-actions{
    min-width:0 !important;
  }

  .links-builder{
    width:100% !important;
    padding:16px !important;
  }

  .link-row{
    width:100% !important;
    min-width:0 !important;
    grid-template-columns:minmax(0,1fr) 40px !important;
  }
}

/* Harita kendi dokunma davranışını korusun */
.leaflet-container{
  touch-action:pan-x pan-y !important;
}
