.tippy-box {
  border-radius: 0.75rem !important;
  background-color: var(--popup-bg-color) !important;
  padding: max(0.8rem, 10px) !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;
  gap: 1rem !important;
}

.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-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  /* row gap & column gap */
}

.popup .buttonPrimaryWithText {
  width: 100% !important;
  margin-top: 0.5rem;
  background: var(--popup-enquire-button-bg);
  color: white;
}

.popup .buttonPrimaryWithText: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-info-field {
  display: flex;
  flex-direction: column;
}

.popup-title {
  /* font-weight: bold !important; */
  font-family: var(--font-poppins);
  font-size: 0.75rem !important;
  color: var(--color-secondary) !important;
  text-transform: uppercase;
  opacity: 0.6;
  /* letter-spacing: 0.1rem; */
}

.popup-value {
  color: var(--color-secondary);
  text-transform: uppercase;
  font-size: 1rem !important;
  /* letter-spacing: 0.1rem; */
}

.popup-info-container span {
  display: inline-block;
  white-space: nowrap;
  /* font-weight: 300; */
  font-size: max(1.4vh, 12px);
  /* font-family: var(--font-poppins); */
  /* font-weight: var(--font-weight-light); */
}

.m2-popup {
  font-size: 0.7rem;
}

.popup-info-container strong {
  padding-left: 0.25rem;
  color: var(--color-secondary);
  font-family: var(--font-header);
}

.popup-logo {
  width: max(6vh, 8vw);
  height: auto;
  display: inline-block;
  margin: 0 0 1.25rem 0;
  align-self: center;
  max-width: 30%;
}

.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: 550px !important;
  }
}

@media (min-width: 1024px) and (orientation: landscape) {
  .tippy-box {
    max-width: 450px !important;
  }

  .tippy-box {
    padding: 1rem !important;
  }
}
