/* Force the app wrapper to take full width regardless of theme grid/flex constraints */
.closeby-app-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block !important;
}

/* Base container */
.closeby-container {
  width: 100%;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

/* Centered: Standard page width (~1200px) */
.closeby-container--centered {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media screen and (min-width: 750px) {
  .closeby-container--centered {
    padding: 0 40px;
  }
}

/* Centered Alt: Narrower width (~900px) */
.closeby-container--centered_alt {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

@media screen and (min-width: 750px) {
  .closeby-container--centered_alt {
    max-width: 75%;
    padding: 0 40px;
  }
}

/* Full Width: Breaks out of grid constraints */
.closeby-container--full_width {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Full Width Padded: Full width with responsive padding */
.closeby-container--full_width_2 {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 16px;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

@media screen and (min-width: 750px) {
  .closeby-container--full_width_2 {
    padding: 0 64px;
  }
}

/* Mobile-specific optimizations */
@media screen and (max-width: 749px) {
  .closeby-container--full_width,
  .closeby-container--full_width_2 {
    width: 100%;
    max-width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .closeby-container--full_width_2 {
    padding: 0 16px;
  }
}

/* Ensure the embed iframe takes full width */
.closeby-container iframe.closeby-inline-embed {
  width: 100% !important;
}

/* Fixed height for embed wrapper on all screen sizes */
[class*="closeby-embed-"] {
  height: 600px;
  max-height: 600px;
  overflow: hidden;
}

[class*="closeby-embed-"] iframe {
  height: 600px !important;
  max-height: 600px !important;
  min-height: 600px !important;
}
