.tippy-box {
  border-radius: 0.75rem !important;
  background-color: var(--popup-bg-color) !important;
  padding: 0.75rem !important;
  max-width: 320px !important;
}

.tippy-box[data-theme~="unit-popup"][data-placement^="top"]
  > .tippy-arrow:before {
  border-top-color: var(--popup-bg-color) !important;
}
.tippy-box[data-theme~="unit-popup"][data-placement^="bottom"]
  > .tippy-arrow:before {
  border-top-color: var(--popup-bg-color) !important;
}
.tippy-box[data-theme~="unit-popup"][data-placement^="left"]
  > .tippy-arrow:before {
  border-top-color: var(--popup-bg-color) !important;
}

.tippy-box[data-theme~="unit-popup"][data-placement^="right"]
  > .tippy-arrow:before {
  border-top-color: var(--popup-bg-color) !important;
}

.tippy-content {
  padding: 0 !important;
}

[data-theme~="poi-popup-tippy"] .tippy-content {
  width: 100% !important;
}

/* ------------------------------------------- */

.popup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-info-container {
  text-align: left;
  font-size: 14px;
  /* width: max(40vh, 50vw); */
  width: 100%;
  display: flex;
  flex-direction: column;
}

.popup-info-container > div:not(:last-child) {
  border-bottom: 1px solid var(--popup-row-border-color);
}

.popup-info-row {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 20px;
  margin-bottom: 6px;
  flex: 1;
  font-size: 0.8rem;
  width: 100%;
  padding: 0.5rem 0;
}

.popup .enquireButtonClass {
  width: 100% !important;
  margin-top: 0.5rem;
  background: var(--popup-enquire-button-bg);
  color: white;
}

.popup .enquireButtonClass:hover {
  background: var(--popup-enquire-button-bg-hover) !important;
  color: var(--popup-enquire-button-text-hover) !important;
}

.popup-info-field {
  flex: 1;
  white-space: nowrap;
  padding-bottom: 0.25rem;
}

.popup-title {
  font-weight: bold;
  font-family: var(--font-body);
  color: var(--color-quaternary);
}

.popup-value {
  color: #222;
  letter-spacing: 0.04rem;
}

.popup-info-container span {
  display: inline-block;
  white-space: nowrap;
  font-weight: 300;
  font-size: max(1.4vh, 12px);
  font-family: var(--font-body);
  font-weight: var(--font-weight-light);
}

.m2-popup {
  font-size: 0.7rem;
}

.popup-info-container strong {
  padding-left: 0.25rem;
  color: var(--popup-value-text-color);
}

.popup-logo {
  width: max(15vh, 12vw);
  height: auto;
  display: inline-block;
  margin: 0.75rem 0 1.25rem 0;
  align-self: center;
  max-width: 70%;
}

.popup-btn-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.popup-btn-container div {
  padding: 0.5rem !important;
}

/* ---------- Masterplan-Specific Breakpoints ---------- */
@media only screen and (min-width: 412px) and (max-height: 767px) and (orientation: landscape) {
  .tippy-box {
    max-width: 300px !important;
  }
}

@media only screen and (min-width: 768px) and (orientation: portrait) {
  .tippy-box {
    min-width: 312px !important;
    max-width: 450px !important;
  }
}

@media (min-width: 1024px) and (orientation: landscape) {
  .tippy-box {
    max-width: 450px !important;
  }

  .tippy-box {
    padding: 1rem !important;
  }
}
