/**
 * Office Map Block Styles v2
 * Interactive floor plan with hover tooltips and fullscreen modal
 */
.office-map-section {
  padding: 4rem 0;
}
.office-map-section__header {
  margin-bottom: 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .office-map-section__header {
    text-align: left;
  }
}
.office-map-section__title {
  margin-bottom: 1rem;
}

.office-map {
  position: relative;
  width: 100%;
}
.office-map__svg-wrapper {
  position: relative;
  width: 100%;
  height: 587px;
  overflow: hidden;
  background: transparent;
}
.office-map__svg-wrapper svg {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}
.office-map__room {
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
  cursor: default;
}
.office-map__room.is-active {
  cursor: pointer;
}
.office-map__fullscreen-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease, -webkit-transform 0.1s ease;
  transition: background-color 0.2s ease, -webkit-transform 0.1s ease;
  transition: background-color 0.2s ease, transform 0.1s ease;
  transition: background-color 0.2s ease, transform 0.1s ease, -webkit-transform 0.1s ease;
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.office-map__fullscreen-btn svg {
  width: 40px;
  height: 40px;
  display: block;
}
.office-map__fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
}
.office-map__fullscreen-btn:active {
  -webkit-transform: scale(0.95);
      -ms-transform: scale(0.95);
          transform: scale(0.95);
}
.office-map__fullscreen-btn:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}
.office-map__tooltip {
  position: absolute;
  width: 154px;
  min-height: 122px;
  padding: 14px 12px;
  background: #FFFFFF;
  border: 1px solid #000000;
  border-radius: 0;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.2s ease, visibility 0.2s ease;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.office-map__tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.office-map__tooltip-title {
  color: #000000;
  text-align: center;
  font-family: "e-Ukraine", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.28px;
  text-transform: uppercase;
  margin-bottom: 12px;
  word-wrap: break-word;
}
.office-map__tooltip-button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 30px;
  padding: 14px 18px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  background: #000000;
  color: #FFFFFF;
  font-family: "e-Ukraine", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.28px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease, -webkit-transform 0.1s ease;
  transition: background-color 0.2s ease, -webkit-transform 0.1s ease;
  transition: background-color 0.2s ease, transform 0.1s ease;
  transition: background-color 0.2s ease, transform 0.1s ease, -webkit-transform 0.1s ease;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.office-map__tooltip-button:hover {
  background: #333333;
  -webkit-transform: translateY(-1px);
      -ms-transform: translateY(-1px);
          transform: translateY(-1px);
}
.office-map__tooltip-button:active {
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}
.office-map__tooltip-button:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.office-map-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.office-map-modal.is-open {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.office-map-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.office-map-modal__content {
  position: relative;
  z-index: 1;
}
@media (min-width: 993px) {
  .office-map-modal__content {
    width: 90%;
    height: 890px;
    max-width: 1600px;
  }
}
@media (max-width: 992px) {
  .office-map-modal__content {
    width: 100%;
    height: 100%;
  }
}
.office-map-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease, -webkit-transform 0.1s ease;
  transition: background-color 0.2s ease, -webkit-transform 0.1s ease;
  transition: background-color 0.2s ease, transform 0.1s ease;
  transition: background-color 0.2s ease, transform 0.1s ease, -webkit-transform 0.1s ease;
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.office-map-modal__close svg {
  width: 32px;
  height: 32px;
  display: block;
}
.office-map-modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
}
.office-map-modal__close:active {
  -webkit-transform: scale(0.95);
      -ms-transform: scale(0.95);
          transform: scale(0.95);
}
.office-map-modal__close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 992px) {
  .office-map-modal__close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
}
.office-map-modal__svg {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.office-map-modal__svg svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}
@media (max-width: 992px) {
  .office-map-modal__svg svg {
    -ms-touch-action: none;
        touch-action: none;
    -webkit-transition: -webkit-transform 0.1s ease-out;
    transition: -webkit-transform 0.1s ease-out;
    transition: transform 0.1s ease-out;
    transition: transform 0.1s ease-out, -webkit-transform 0.1s ease-out;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
  }
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .office-map-section {
    padding: 2rem 0;
  }
  .office-map-section__header {
    margin-bottom: 2rem;
  }
  .office-map__svg-wrapper {
    height: 384px;
  }
  .office-map__fullscreen-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
  .office-map__fullscreen-btn svg {
    width: 36px;
    height: 36px;
  }
  .office-map__tooltip-title {
    font-size: 13px;
    letter-spacing: -0.26px;
  }
  .office-map__tooltip-button {
    font-size: 13px;
    letter-spacing: -0.26px;
    padding: 12px 16px;
  }
}
.editor-styles-wrapper .office-map__svg-wrapper {
  border: 1px dashed #ccc;
}
.editor-styles-wrapper .office-map__room.is-active {
  cursor: help;
}
.editor-styles-wrapper .office-map__fullscreen-btn {
  pointer-events: none;
  opacity: 0.5;
}

@media print {
  .office-map__tooltip,
  .office-map__fullscreen-btn,
  .office-map-modal {
    display: none !important;
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.office-map-modal.is-open {
  -webkit-animation: fadeIn 0.3s ease;
          animation: fadeIn 0.3s ease;
}