/* =========================================================
   Base layout
   ========================================================= */

.br-locator {
  width: 100%;
  position: relative;
}

.br-locator__mapwrap {
  position: relative;
}

.br-locator__map {
  width: 100%;
  height: 520px;
}

/* =========================================================
   Section titles (bold, for Polylang strings)
   ========================================================= */

.br-locator__sectiontitle {
  font-weight: 700;
  font-size: 34px;
  margin: 30px 0 14px;
}

/* =========================================================
   Search row
   ========================================================= */

.br-locator__searchrow {
  margin-top: 10px;
}

.br-locator__search {
  width: 100%;
  max-width: 520px;
  min-width: 240px;
  padding: 10px 12px;
  font-size: 15px;
}

/* =========================================================
   Country switch (Latvia / Estonia)
   ========================================================= */

.br-locator__country {
  position: absolute;
  right: 150px;
  bottom: 25px;
  display: flex;
  background: transparent !important;
  z-index: 5;
  gap: 5px !important;
  padding: 0 !important;
}

.br-locator__country button {
  all: unset;
  padding: 10px 14px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.65) !important;
}

.br-locator__country button.is-active {
  background: rgba(255,255,255,0.2);
}

/* =========================================================
   Brands (checkboxes) layout (All brands full width,
   left col Daily + children, right col other brands)
   ========================================================= */

.br-locator__filters {
  margin-top: 14px;
}

.br-locator__brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 60px;
  max-width: 720px;
}

.br-locator__brands-all {
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.br-locator__brandcheck {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
}

.br-locator__brands-col--left .br-locator__brandcheck,
.br-locator__brands-col--right .br-locator__brandcheck {
  padding-bottom: 10px;
}

.br-locator__brandcheck input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.br-locator__brandcheck--child {
  padding-left: 32px;
}

/* =========================================================
   Results list (grouped by brand)
   Columns: title+address / phone+email / hours / description
   ========================================================= */

.br-locator__results {
  margin-top: 30px;
}

.br-locator__brandblock {
  margin-bottom: 40px;
}

.br-locator__brandheader {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.br-locator__brandlogo {
  width: 48px;
  height: auto;
  display: block;
}

.br-locator__brandtitle {
  font-size: 44px;
  font-weight: 300;
  line-height: 1.1;
}

.br-locator__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1.2fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #eaeaea;
  cursor: pointer;
}

.br-locator__row:hover {
  background: rgba(0,0,0,0.02);
}

.br-locator__col--addr {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.br-locator__pin {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.br-locator__pinimg {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px;
  display: block;
}

.br-locator__col--contact div {
  line-height: 1.4;
}

.br-locator__col--hours {
  white-space: nowrap;
}

.br-locator__email {
  color: #9aa200; /* adjust to your brand green */
}

/* =========================================================
   Info window
   ========================================================= */

.br-locator__iw {
  max-width: 320px;
  font-size: 14px;
}

.br-locator__iw-logo {
  max-width: 120px;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.br-locator__iw-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.br-locator__iw-desc {
  margin-top: 10px;
  opacity: 0.9;
}

/* =========================================================
   Bottom-right map controls (Reset + My Location)
   ========================================================= */

/* Neutralize Elementor / theme styles */
.br-locator .br-locator__mapcontrolsbar button,
.br-locator .br-locator__mapbtn--bar {
  all: unset;
  box-sizing: border-box !important;
}

/* Wrapper */
.br-locator__mapcontrolsbar {
  display: flex;
  gap: 8px !important;
  background: transparent;
  margin: 0 12px 12px 0 !important;
}

.br-locator__mapbtn--bar {

  width: 48px !important;           /* close to Google zoom size */
  height: 48px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #fff !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;

  cursor: pointer !important;
  user-select: none !important;
  font-size: 22px !important;
  line-height: 1 !important;

  pointer-events: auto !important;
  touch-action: manipulation !important;
}

.br-locator__mapbtn--bar:hover{
  background: #f7f7f7 !important;
}

.br-locator__mapbtn--bar:active{
  background: #eee !important;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */

@media (max-width: 900px) {
  .br-locator__brands-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .br-locator__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .br-locator__col--hours {
    white-space: normal;
  }

  .br-locator__brandtitle {
    font-size: 32px;
  }

  .br-locator__sectiontitle {
    font-size: 28px;
  }
}

/* =========================================================
   Google/Elementor/Theme tweaks
   ========================================================= */

/* Fix theme rule: .alignfull, .alignfull img { width: 100vw; }
   It breaks Google Maps footer controls by forcing internal images to full viewport width. */
.br-locator__mapwrap .gm-style img {
  width: auto !important;
  max-width: none !important;
}

/* Prevent theme link styles from breaking Google attribution/footer layout */
.br-locator__mapwrap .gm-style .gm-style-cc a,
.br-locator__mapwrap .gm-style .gmnoprint a {
  display: inline !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

