.tlmb-offices-module {
  --tlmb-loc-dark: #0A0D31;
  --tlmb-loc-text: #5F6567;
  --tlmb-loc-bg: #E7ECF2;
  --tlmb-loc-card: #ffffff;
  --tlmb-loc-line: rgba(10, 13, 49, 0.12);
  --tlmb-loc-red: #E53F3E;
  --tlmb-loc-red-soft: rgba(229, 63, 62, 0.1);
  --tlmb-loc-shadow: 0 12px 38px rgba(10, 13, 49, 0.1);
  position: relative;
  padding: 20px 0 8px;
}

.tlmb-offices-module #tlmbOfficeMap,
.tlmb-offices-module .maplibregl-canvas-container,
.tlmb-offices-module .maplibregl-canvas {
  width: 100%;
  height: 100%;
}

.tlmb-offices-module,
.tlmb-offices-module *,
.tlmb-offices-module *::before,
.tlmb-offices-module *::after {
  box-sizing: border-box;
}

.tlmb-offices-module a,
.tlmb-offices-module a:hover,
.tlmb-offices-module a:focus,
.tlmb-offices-module a:visited,
.tlmb-offices-module a:active {
  text-decoration: none;
}

.tlmb-offices-module::before {
  content: none;
}

.tlmb-offices-module > * {
  position: relative;
  z-index: 1;
}

.tlmb-offices-header {
  text-align: center;
  margin-bottom: 22px;
}

.tlmb-offices-kicker {
  display: inline-block;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tlmb-loc-red);
}

.tlmb-offices-title {
  margin: 10px 0 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--tlmb-loc-dark);
}

.tlmb-offices-module .tlmb-offices-kicker,
.tlmb-offices-module .tlmb-offices-title {
  margin-top: 0;
  margin-bottom: 0;
}

.tlmb-office-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.tlmb-office-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1.5px solid var(--tlmb-loc-line);
  border-radius: 15px;
  padding: 18px 18px;
  background: var(--tlmb-loc-card);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.tlmb-offices-module .tlmb-office-card {
  margin: 0;
}

.tlmb-office-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(140px 100px at 0% 0%, rgba(229, 63, 62, 0.08), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.tlmb-office-card:hover,
.tlmb-office-card:focus {
  border-color: rgba(229, 63, 62, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(10, 13, 49, 0.09);
}

.tlmb-office-card:hover::before,
.tlmb-office-card:focus::before,
.tlmb-office-card.is-active::before {
  opacity: 1;
}

.tlmb-office-card.is-active {
  border-color: var(--tlmb-loc-red);
  box-shadow: 0 0 0 1px rgba(229, 63, 62, 0.35), 0 10px 30px rgba(10, 13, 49, 0.12);
}

.tlmb-office-card__flag {
  flex-shrink: 0;
  width: 36px;
  height: 24px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(10, 13, 49, 0.1);
}

.tlmb-office-card__flag--ro {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%23002B7F'/%3E%3Crect x='1' width='1' height='2' fill='%23FCD116'/%3E%3Crect x='2' width='1' height='2' fill='%23CE1126'/%3E%3C/svg%3E");
}

.tlmb-office-card__flag--md {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%23003DA5'/%3E%3Crect x='1' width='1' height='2' fill='%23FFD100'/%3E%3Crect x='2' width='1' height='2' fill='%23CC0001'/%3E%3C/svg%3E");
}

.tlmb-office-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.tlmb-office-card__name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--tlmb-loc-dark);
  margin-bottom: 2px;
}

.tlmb-office-card__building {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tlmb-loc-red);
  margin-bottom: 4px;
}

.tlmb-office-card__addr,
.tlmb-office-card__city {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tlmb-loc-text);
}

.tlmb-office-card__city {
  font-size: 11px;
}

.tlmb-office-card__maps {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--tlmb-loc-red-soft);
  color: var(--tlmb-loc-red) !important;
  border: 1px solid rgba(229, 63, 62, 0.22);
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.tlmb-offices-module .tlmb-office-card__maps {
  margin: 0;
  line-height: 1;
}

.tlmb-office-card__maps:hover {
  background: rgba(229, 63, 62, 0.16);
  border-color: rgba(229, 63, 62, 0.35);
}

.tlmb-map-wrap {
  position: relative;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--tlmb-loc-line);
  box-shadow: var(--tlmb-loc-shadow);
  background: #dfe5ee;
}

.tlmb-offices-module .tlmb-map-wrap {
  margin: 0;
}

.tlmb-map-wrap.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  height: 100dvh;
  border-radius: 0;
  max-width: none;
}

#tlmbOfficeMap {
  width: 100%;
  height: 100%;
}

.tlmb-map-fs-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(10, 13, 49, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(10, 13, 49, 0.76);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10, 13, 49, 0.12);
  transition: background 0.18s ease, color 0.18s ease;
}

.tlmb-offices-module .tlmb-map-fs-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(10, 13, 49, 0.16) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: rgba(10, 13, 49, 0.76) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10, 13, 49, 0.12);
  margin: 0;
  padding: 0;
}

.tlmb-map-fs-btn:hover {
  background: #ffffff !important;
  color: var(--tlmb-loc-red) !important;
}

.tlmb-map-dot {
  position: relative;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.tlmb-map-dot__core {
  position: absolute;
  inset: 3px;
  background: var(--tlmb-loc-red);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(229, 63, 62, 0.45);
  transition: transform 0.2s ease;
}

.tlmb-map-dot__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--tlmb-loc-red);
  opacity: 0.5;
  animation: tlmbDotRing 2.2s ease-out infinite;
}

.tlmb-map-dot.is-active .tlmb-map-dot__core {
  transform: scale(1.28);
  box-shadow: 0 3px 14px rgba(229, 63, 62, 0.56);
}

.tlmb-map-dot.is-active .tlmb-map-dot__ring {
  animation-duration: 1.35s;
  opacity: 0.72;
}

@keyframes tlmbDotRing {
  0% { transform: scale(1); opacity: 0.5; }
  60% { transform: scale(2.35); opacity: 0; }
  100% { transform: scale(2.35); opacity: 0; }
}

.tlmb-map-popup .maplibregl-popup-content {
  padding: 0;
  min-width: 196px;
  border-radius: 13px;
  border: 1px solid rgba(10, 13, 49, 0.08);
  box-shadow: 0 10px 32px rgba(10, 13, 49, 0.2);
  overflow: hidden;
}

.tlmb-map-popup .maplibregl-popup-tip {
  border-top-color: #ffffff !important;
}

.tlmb-map-popup__flag {
  height: 6px;
  background-size: cover;
  background-position: center;
}

.tlmb-map-popup__flag--ro {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%23002B7F'/%3E%3Crect x='1' width='1' height='2' fill='%23FCD116'/%3E%3Crect x='2' width='1' height='2' fill='%23CE1126'/%3E%3C/svg%3E");
}

.tlmb-map-popup__flag--md {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%23003DA5'/%3E%3Crect x='1' width='1' height='2' fill='%23FFD100'/%3E%3Crect x='2' width='1' height='2' fill='%23CC0001'/%3E%3C/svg%3E");
}

.tlmb-map-popup__body {
  padding: 12px 14px 14px;
}

.tlmb-map-popup__name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--tlmb-loc-dark);
  margin-bottom: 3px;
}

.tlmb-map-popup__building {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tlmb-loc-red);
  margin-bottom: 6px;
}

.tlmb-map-popup__addr {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: var(--tlmb-loc-text);
}

.tlmb-offices-module .maplibregl-ctrl-top-right {
  display: none;
}

/* map controls: harden against theme button styles without resetting MapLibre internals */
.tlmb-offices-module .maplibregl-ctrl-top-right {
  top: 12px;
  right: 12px;
}

.tlmb-offices-module .maplibregl-ctrl-bottom-right {
  right: 8px;
  bottom: 8px;
}

.tlmb-offices-module .maplibregl-ctrl-group {
  border: 1px solid rgba(10, 13, 49, 0.16) !important;
  border-radius: 9px !important;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(10, 13, 49, 0.12) !important;
}

.tlmb-offices-module .maplibregl-ctrl-group button,
.tlmb-offices-module .maplibregl-ctrl-group button:hover,
.tlmb-offices-module .maplibregl-ctrl-group button:focus {
  margin: 0 !important;
  padding: 0 !important;
  width: 29px !important;
  height: 29px !important;
  border: 0 !important;
  background: #fff !important;
  color: #0A0D31 !important;
  line-height: 29px !important;
  box-shadow: none !important;
}

.tlmb-offices-module .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  width: 100%;
  height: 100%;
}

.tlmb-offices-module .maplibregl-ctrl-attrib {
  background: rgba(255, 255, 255, 0.88) !important;
  border-radius: 7px;
  padding: 1px 6px;
  margin: 0;
  border: 1px solid rgba(10, 13, 49, 0.1);
  font: 11px/1.35 Helvetica, Arial, sans-serif;
  color: rgba(10, 13, 49, 0.76);
}

.tlmb-offices-module .maplibregl-ctrl-attrib a {
  color: rgba(10, 13, 49, 0.82) !important;
  text-decoration: none;
}

@media (max-width: 900px) {
  .tlmb-office-cards {
    grid-template-columns: 1fr;
  }

  .tlmb-office-card {
    align-items: flex-start;
    gap: 12px;
  }

  .tlmb-office-card__maps {
    margin-top: 4px;
  }

  .tlmb-map-wrap {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .tlmb-offices-module {
    padding-top: 6px;
  }

  .tlmb-offices-module::before {
    inset: -8px -8px auto;
    height: 170px;
  }

  .tlmb-offices-header {
    margin-bottom: 24px;
  }

  .tlmb-office-card {
    padding: 15px 14px;
  }

  .tlmb-map-wrap {
    height: 280px;
    border-radius: 16px;
  }
}
