/* ---------- Tippy.js Core Popup Styles ---------- */

.tippy-box {
  border-radius: 0.5rem !important;
  background-color: var(--colorBrandLight) !important;
  padding: 0.75rem !important;
  max-width: 320px !important;
}

.tippy-content {
  padding: 0 !important;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- Lot Popup Styles (Tippy-based Customization) ---------- */
.lot-popup {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.lot-popup img {
  height: auto;
  object-fit: cover;
  min-height: 65px;
  display: block;
  width: 100%;
}

.lot-popup-info-container {
  text-align: left;
  font-size: max(1.3vh, 11px);
  width: 100%;
  margin-top: 1rem;
}

.lot-popup-info-container > div:not(:last-child) {
  border-bottom: 1px solid rgba(131, 131, 131, 0.2);
}

.lot-popup-info-row {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  margin-bottom: 1rem;
  width: 100%;
}

.lot-popup-info-field {
  flex: 1;
  white-space: nowrap;
  padding-bottom: 0.5rem;
}

.lot-popup-title {
  font-weight: bold;
  color: var(--colorBrandSecondary);
}

.lot-popup-value {
  color: var(--colorBrandDark);
  font-family: var(--fontBig);
  white-space: pre-wrap !important;
}

.lot-popup-info-container span {
  display: inline-block;
  white-space: nowrap;
  font-weight: normal;
  margin-right: 0.2px;
  color: var(--colorBrandDark);
  font-family: var(--fontRegular);
}

.m2-popup {
  font-size: 0.7rem;
}

.lot-popup-title {
  color: var(--colorBrandSecondary);
  font-family: var(--fontBig);
}

.lot-popup-logo {
  width: max(17vh, 13vw);
  max-width: 200px;
  height: auto;
  display: inline-block;
  margin: 0.5rem 0 1.75rem 0;
  align-self: center;
}

.lot-popup-info-container > div {
  display: flex;
  justify-content: start;
  align-items: center;
  flex: 1;
  margin-bottom: 0.75rem;
}

.lot-popup .enquireButtonClass {
  width: 100% !important;
  margin-top: 0;
  background: var(--colorBrandGreen);
  /* color: var(--colorBrandLight); */
}

/* ---------- Additional Tippy Styles (Including Masterplan Specific) ---------- */

/* .tippy-box {
  width: fit-content !important;
  min-width: 270px !important;
  max-width: 430px !important;
} */

.tippy-box[data-theme~="lot-popup"] > .tippy-arrow:before {
  color: var(--colorBrandSecondary) !important;
}

.tippy-box[data-theme~="light"][data-placement^="top"] > .tippy-arrow:before,
.tippy-box[data-theme~="light"][data-placement^="bottom"]
  > .tippy-arrow:before {
  border-top-color: var(--colorBrandLight) !important;
  border-bottom-color: var(--colorBrandLight) !important;
}

.tippy-box[data-theme~="lot-popup"] > .tippy-arrow:before {
  color: var(--colorBrandSecondary) !important;
}

.tippy-box[data-theme~="lot-popup"] {
  background-color: var(--colorBrandSecondary) !important;
  border-radius: 1rem !important;
}

/* ---------- Masterplan-Specific Breakpoints ---------- */
@media only screen and (min-width: 412px) and (max-height: 767px) and (orientation: landscape) {
  .tippy-box {
    max-width: 240px !important;
  }
}

@media only screen and (min-width: 768px) and (orientation: portrait) {
  .tippy-box {
    min-width: 312px !important;
    max-width: 392px !important;
  }
}

@media (min-width: 1024px) and (orientation: landscape) {
  .tippy-box {
    max-width: 352px !important;
  }

  .tippy-box {
    padding: 1rem !important;
  }
}
