/* Ocalab Store Locator 2026 — isolated UI */
.gp-presence,
.gp-presence * {
  box-sizing: border-box;
}

.gp-presence {
  --gp-green: #004c3b;
  --gp-green-2: #1f7a49;
  --gp-bg: #f4f9f0;
  --gp-panel: #e7f0e4;
  --gp-card: rgba(255, 255, 255, 0.72);
  --gp-card-shadow: 0 14px 34px rgba(0, 76, 59, 0.05);
  --gp-input-bg: rgba(255, 255, 255, 0.88);
  --gp-line: rgba(0, 76, 59, 0.18);
  --gp-text: #003f32;
  --gp-muted: rgba(0, 63, 50, 0.72);
  --gp-shadow: 0 20px 60px rgba(0, 76, 59, 0.12);
  --gp-widget-height: 540px;
  --gp-effective-height: min(var(--gp-widget-height), 540px);
  --gp-font-family: inherit;

  width: 100%;
  height: var(--gp-effective-height);
  min-height: 0;
  max-height: 540px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--gp-line);
  background: var(--gp-bg);
  color: var(--gp-text);
  font-family: var(--gp-font-family, inherit);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: var(--gp-shadow);
}

.gp-presence :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li) {
  margin: 0;
  padding: 0;
  letter-spacing: normal;
  text-transform: none;
}

.gp-presence :where(button, input, select, textarea) {
  font: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.gp-presence__header {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gp-line);
  background: rgba(244, 249, 240, 0.94);
}

.gp-presence .gp-control {
  all: unset !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  line-height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 76, 59, 0.2) !important;
  background: var(--gp-input-bg) !important;
  color: var(--gp-text) !important;
  box-shadow: 0 10px 26px rgba(0, 76, 59, 0.06) !important;
}

.gp-presence .gp-select,
.gp-presence .gp-input {
  padding: 0 18px !important;
  line-height: 46px !important;
}

.gp-presence .gp-select {
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 56px 0 20px !important;
  line-height: 46px !important;
  cursor: pointer !important;
  display: block !important;
  text-indent: 0 !important;
  text-align: left !important;
  vertical-align: middle !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: var(--gp-input-bg) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M2 2L7 7L12 2' stroke='%23004C3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 22px center !important;
  background-size: 14px 9px !important;
}

.gp-presence .gp-locate {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  background: var(--gp-green) !important;
  color: #fff !important;
  font-weight: 850 !important;
  border-color: var(--gp-green) !important;
}

.gp-presence .gp-locate__icon {
  display: block;
  width: 20px;
  height: 20px;
}

.gp-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gp-presence .gp-locate:hover {
  background: #063d31 !important;
}

.gp-presence .gp-control:focus-visible {
  outline: 3px solid rgba(31, 122, 73, 0.22) !important;
  outline-offset: 2px !important;
}

.gp-presence__body {
  height: calc(var(--gp-effective-height) - 83px);
  min-height: 0;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
}

.gp-presence__panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--gp-panel);
  border-right: 1px solid var(--gp-line);
}

.gp-presence__status {
  margin: 14px 14px 0;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 76, 59, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: var(--gp-muted);
  font-size: 13px;
  font-weight: 750;
}

.gp-presence__status[data-kind="success"] {
  color: #0f663a;
  background: rgba(31, 122, 73, 0.1);
}

.gp-presence__status[data-kind="error"] {
  color: #9d1a1a;
  background: rgba(198, 40, 40, 0.08);
}

.gp-presence__list {
  flex: 1;
  min-height: 0;
  max-height: calc(var(--gp-effective-height) - 83px);
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.elementor-kit-165 h3 {
  font-size: 14px !important;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2em;
}

.gp-item {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(0, 76, 59, 0.16);
  border-radius: 18px;
  background: var(--gp-card);
  color: var(--gp-text);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--gp-card-shadow);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.gp-item:hover,
.gp-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 76, 59, 0.34);
  background: var(--gp-card);
  box-shadow: var(--gp-card-shadow);
  outline: none;
}

.gp-item.is-active {
  border-color: var(--gp-green-2);
  background: var(--gp-card);
  box-shadow: var(--gp-card-shadow);
}

.gp-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gp-item__title {
  color: var(--gp-text);
  font-size: 14px;
  line-height: 1.16;
  font-weight: 950;
}

.gp-item__distance {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 122, 73, 0.1);
  color: var(--gp-green);
  font-size: 11px;
  font-weight: 900;
}

.gp-item__sub {
  margin-top: 6px;
  color: var(--gp-muted);
  font-size: 12px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gp-presence__map {
  position: relative;
  height: calc(var(--gp-effective-height) - 83px);
  min-height: 0;
  background: #e9efe7;
}

.gp-map-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gp-text);
}

.gp-map-error__title {
  font-size: 18px;
  font-weight: 950;
}

.gp-map-error__msg {
  margin-top: 8px;
  color: #9d1a1a;
  font-weight: 800;
}

.gp-map-error__hint {
  margin-top: 10px;
  max-width: 620px;
  color: var(--gp-muted);
  font-size: 13px;
}

.gp-empty {
  padding: 18px;
  border: 1px dashed rgba(0, 76, 59, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
}

.gp-empty__title {
  color: var(--gp-text);
  font-weight: 950;
}

.gp-empty__sub {
  margin-top: 6px;
  color: var(--gp-muted);
  font-size: 13px;
}

.gp-skel {
  display: grid;
  gap: 12px;
}

.gp-skel > div {
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.48));
  background-size: 220% 100%;
  animation: gpSkeleton 1.15s ease-in-out infinite;
  border: 1px solid rgba(0, 76, 59, 0.08);
}

@keyframes gpSkeleton {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -220% 0;
  }
}

/* Google Maps / InfoWindow */
.gm-style img {
  box-shadow: none !important;
  filter: none !important;
}

.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 46px rgba(0, 76, 59, 0.18) !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}

.gm-style button.gm-ui-hover-effect {
  display: none !important;
}

.gm-style .gp-iw {
  min-width: 280px;
  padding: 18px;
  color: var(--gp-text);
  font-family: var(--gp-font-family, inherit);
}

@media (max-width: 767px) {
  body .elementor h3 {
    font-size: 14px !important;
  }
}

.gm-style .gp-iw__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gm-style .gp-iw__title {
  min-width: 0;
  color: var(--gp-text);
  font-size: 17px;
  line-height: 1.18;
  font-weight: 950;
}

.gp-presence .gp-iw__close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;

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

  background: #eef4f0 !important;
  color: #004c3b !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;

  cursor: pointer !important;
  flex: 0 0 32px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.gm-style .gm-style-iw-c {
  max-height: 600px !important;
  max-width: 350px !important;
}

.gp-presence .gp-iw__close svg,
.gp-presence .gp-iw__close img {
  width: 12px !important;
  height: 12px !important;
  display: block !important;
  pointer-events: none !important;
}

.gp-presence .gp-iw__close::before {
  line-height: 1 !important;
}

.gm-style .gp-iw__close:hover {
  background: rgba(0, 76, 59, 0.14);
}

.gm-style .gp-iw__sub {
  margin-top: 5px;
  color: var(--gp-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gm-style .gp-iw__rows {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.gm-style .gp-iw__rows > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  color: var(--gp-muted);
  font-size: 12px;
}

.gm-style .gp-iw__rows span {
  font-weight: 850;
}

.gm-style .gp-iw__rows b,
.gm-style .gp-iw__rows a {
  color: var(--gp-text);
  font-weight: 850;
  text-decoration: none;
}

.gm-style .gp-iw__actions {
  margin-top: 16px;
}

.gm-style .gp-iw__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--gp-green);
  background: var(--gp-green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.gp-marker-label {
  font-family: var(--gp-font-family, inherit);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.gp-presence-error {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(198, 40, 40, 0.24);
  background: rgba(198, 40, 40, 0.08);
  color: #8e1616;
  font-weight: 800;
}

/* Dedicated agent page kept compatible with the original plugin */
.gp-agent-page {
  padding: 28px 16px;
}
.gp-agent-container {
  max-width: 1080px;
  margin: 0 auto;
}
.gp-agent-header {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.gp-agent-title,
.gp-agent-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}
.gp-agent-h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 950;
  color: #0f172a;
}
.gp-agent-tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(31, 122, 73, 0.08);
  color: rgba(15, 23, 42, 0.78);
  font-weight: 800;
  font-size: 12.5px;
}
.gp-agent-thumb img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}
.gp-agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.gp-agent-h2 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 950;
}
.gp-agent-dl {
  margin: 0;
}
.gp-agent-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.gp-agent-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.gp-agent-row dt {
  color: rgba(15, 23, 42, 0.55);
  font-weight: 850;
}
.gp-agent-row dd {
  margin: 0;
  color: rgba(15, 23, 42, 0.86);
  font-weight: 750;
}
.gp-agent-row a {
  color: #1d4ed8;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 78, 216, 0.18);
}
.gp-agent-content {
  color: rgba(15, 23, 42, 0.82);
  line-height: 1.55;
}
.gp-agent-back {
  margin-top: 16px;
}
.gp-agent-backlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.8);
  text-decoration: none;
  font-weight: 900;
}
.gp-agent-backlink:hover {
  background: rgba(15, 23, 42, 0.07);
}

@media (max-width: 1020px) {
  .gp-presence__body {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .gp-presence {
    border-radius: 22px;
    height: auto;
    max-height: none;
  }
  .gp-presence__header {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .gp-presence .gp-locate {
    width: 46px !important;
  }
  .gp-presence__body {
    height: auto;
    grid-template-columns: 1fr;
  }
  .gp-presence__map {
    height: 420px;
    min-height: 420px;
    order: 1;
  }
  .gp-presence__panel {
    order: 2;
    max-height: 360px;
    border-right: none;
    border-top: 1px solid var(--gp-line);
  }
}

@media (max-width: 980px) {
  .gp-agent-header,
  .gp-agent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .gp-presence .gp-item__title,
  .gp-presence h3.gp-item__title {
    font-size: 14px !important;
    line-height: 1.16 !important;
  }

  .gm-style .gp-iw {
    padding-bottom: 10px !important;
  }
}

.wrapper-sub {
  display: flex;
  gap: 10px;
}
