@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200..800&display=swap');

.prr_normalize {
  border: 0;
  padding: 0;
  outline: none;
  -webkit-font-smoothing: antialiased;
  text-align: start;
}

.prr_visually-hidden {
  display: none !important;
}

.perare-button {
  width: 100%;
  display: flex;
  padding: 8px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  cursor: pointer;
  border-radius: 8px;
  background: #014FCF;

  color: #FFF;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px; /* 142.857% */
}

.perare-banner {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 100px;
  padding-bottom: 32px; /* Место для футера */
  box-sizing: border-box;
}

.perare-banner .prr_banner {
  flex-grow: 1;
  flex-shrink: 0;
}

.perare-banner .prr-loading-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  background: #F7F8FB;
  flex-direction: column;
}

.prr_top-controls {
  position: absolute;
  box-sizing: border-box;
  padding: 0 8px;
  top: 8px;
  width: 100%;
  height: 0;
}

.prr_bottom-controls {
  position: absolute;
  box-sizing: border-box;
  padding: 0 8px 0px 8px;
  bottom: 8px;
  width: 100%;
  height: 0;
}

.prr_top-controls .prr-parcel-data-link {
  left: 8px;
  position: absolute;
  width: 176px;
  height: 48px;
  box-sizing: border-box;
  display: flex;
  padding: 8px;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  border: 0.5px solid #E2E5EB;
  background: #FFF;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);
}

.prr_top-controls .prr_parcel-data-link_body {
  display: flex;
  padding: 6px;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 8px;
  background: #FFF;
}

.prr_top-controls .prr_map-actions {
  top: 10px;
  left: 16px;
}

.prr_bottom-controls .prr_map-actions {
  bottom: 0;
  right: 8px;
}

.prr_map-actions {
  position: absolute;
  box-sizing: border-box;
  z-index: 100;
  height: 32px;
  display: inline-flex;
  align-items: flex-start;
}

.prr_map-actions .prr_map-actions_icon {
  padding: 6px;
  border-radius: 8px;
  background: #FFF;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  color: #0E1217;
}

.prr_map-actions_vertical-divider {
  display: flex;
  margin: 4px 1.5px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  width: 1px;
  background: #E2E5EB;
}
.prr_parcel-data-link_body .prr_parcel-data-link_title {
  display: flex;
  padding: 0px 8px;
  justify-content: center;
  align-items: center;
  color: #0E1217;
  text-overflow: ellipsis;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px; /* 142.857% */
}

.prr_dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: block;
  min-width: 170px;
  padding: 4px;
  margin: -1px 0 0 0;
  list-style: none;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
  top: 40px;
  right: 0;
}

.info-dropdown {
  top: auto;
  bottom: 140%;
  right: -10px;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 8px;
  cursor: initial;
  user-select: text;
  pointer-events: initial;

  .info {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 10px;

    .top {
      color: #626D7C;
      font-family: "Inter", sans-serif;
      font-size: 14px;
      font-style: normal;
      font-weight: 500;
      line-height: 20px; /* 142.857% */
    }

    .bottom {
      color: #848E9E;
      /* style v2/Paragraph/X Small */
      font-family: "Inter", sans-serif;
      font-size: 12px;
      font-style: normal;
      font-weight: 500;
      line-height: 16px; /* 133.333% */
    }
  }

  .track-in-perare {
    user-select: none;
    cursor: pointer;
    display: flex;
    width: 200px;
    padding: 6px 8px;
    align-items: center;
    gap: 8px;
    border-radius: 4px;

    .left {
      display: flex;
      align-items: center;
      gap: 4px;
      flex: 1 0 0;

      .icon {
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .text {
        padding: 0 4px;
        color: #0E1217;
        font-family: "Inter", sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
      }
    }

    .right {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .delimiter {
    padding: 7px 10px;
    box-sizing: border-box;

    .body {
      height: 1px;
      width: 100%;
      background: #C3C9D1;
    }
  }

  .dropdown-menu-item {
    display: flex;
    padding: 4px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #626D7C;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
  }
}

.prr_dropdown-menu li {
  color: #0E1217;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prr_dropdown-menu li .prr_dropdown-title {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 142.857% */
  letter-spacing: 0.14px;
  flex-grow: 1;
}

.prr_dropdown-menu li:hover {
  background-color: #F7F8FB;
}








.perare-spinning {
  animation-name: perare-loading-spin;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes perare-loading-spin {
  from {
    transform:rotate(0deg);
  }
  to {
    transform:rotate(360deg);
  }
}

/* --- Tabs Panel (SDK Top Controls) --- */
.prr_tabs-panel {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  background: #F5F5F5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.prr_tab {
  display: flex;
  height: 28px;
  padding: 0px 6px;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  cursor: pointer;
}
.prr_tab-active {
  background: #fff;
}
.prr_tab-title {
  color: rgba(0, 0, 0, 0.80);

  /* Body 1/Semi Bold */
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  line-height: 16px; /* 133.333% */
  letter-spacing: 0.06px;
}

/* --- Tabs burger (mobile) --- */
.prr_tabs-burger {
  display: none;
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}
.prr_tabs-burger-icon {
  width: 14px;
  height: 2px;
  background: #0E1217;
  position: relative;
  display: inline-block;
}
.prr_tabs-burger-icon::before,
.prr_tabs-burger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 14px;
  height: 2px;
  background: #0E1217;
}
.prr_tabs-burger-icon::before { top: -5px; }
.prr_tabs-burger-icon::after { top: 5px; }

.prr_tabs-list { display: inline-flex; gap: 8px; }

@media (max-width: 500px) {
  .prr_tabs-panel { border: none; }
  .prr_tabs-burger { display: inline-flex; }
  .prr_tabs-list { display: none; position: absolute; top: 36px; left: 0; background: #fff; border: 1px solid #ececec; border-radius: 10px; padding: 6px; gap: 4px; flex-direction: column; z-index: 2000; min-width: 160px; box-shadow: 0 8px 24px rgba(1,79,207,0.12); }
  .prr_tabs-panel.prr_tabs-panel--open .prr_tabs-list { display: flex; }
  .prr_tabs-panel .prr_tab { height: 32px; border-radius: 6px; padding: 0 10px; }
  .prr_tabs-panel .prr_tab:hover { background: #F7F8FB; }
  .prr_tabs-list .prr_tab-title { white-space: nowrap; }
  .prr_tabs-panel .prr_tab-active { background: #f8f9fa; }
}

/* --- Bottom Bar (SDK Bottom Controls) --- */
.prr_bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  min-height: 20px;
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  z-index: 200;
}

.prr_bottom-link, .prr_bottom-sep, .prr_bottom-sep span {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #6c757d;
  text-decoration: none;
  opacity: 1;
  cursor: pointer;
}
.prr_bottom-link:hover {
  color: #495057;
  text-decoration: underline;
}

.prr_bottom-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.prr_bottom-logo-icon {
  width: 12px;
  height: 12px;
  background: none;
}
.prr_bottom-logo-text {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
}

/* --- Слайдер экранов SDK --- */
.prr-screen-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
}

.prr-screen-slider__container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.prr-screen-slider__slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.prr-screen-slider__slide--general {
    background: white;
    display: flex;
    flex-direction: column;
}

.prr-screen-slider__slide--general .prr-screen-slider__header {
    flex-shrink: 0;
}

.prr-screen-slider__slide--market .prr-screen-slider__title,
.prr-screen-slider__slide--general .prr-screen-slider__title {
    margin: 0;
    padding-left: 48px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

/* Show titles only on mobile (<= 500px) */
@media (min-width: 501px) {
  .prr-screen-slider__slide--market .prr-screen-slider__title,
  .prr-screen-slider__slide--general .prr-screen-slider__title {
    display: none;
  }
}

.prr-screen-slider__slide--general .prr-screen-slider__body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0 0 40px 0;
}

/* --- General Info Loading Overlay --- */
.prr-general-info-loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    background: #F7F8FB;
    flex-direction: column;
}

.prr-screen-slider__slide--market {
    background: white;
    display: flex;
    flex-direction: column;
}

.prr-screen-slider__slide--market .prr-screen-slider__header,
.prr-screen-slider__slide--general .prr-screen-slider__header {
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #e9ecef;
}

.prr-screen-slider__slide--market .prr-screen-slider__body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px 12px;
}

.prr-screen-slider__slide--map {
    background: transparent;
}

.prr-screen-slider__map-container {
    width: 100%;
    height: 100%;
}

.prr-screen-slider--general .prr-screen-slider__container {
    transform: translateX(-50%);
}

.prr-screen-slider--market .prr-screen-slider__container {
    transform: translateX(-100%);
}

.prr-screen-slider__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.prr-screen-slider__body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
} 

/* --- Land Details Block --- */
.prr-land-details-block {
    width: 100%;
    margin-bottom: 16px;
}

.prr-land-details-block__header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 16px;
}

.prr-land-details-block__title {
    display: flex;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.055px;
}

.prr-land-details-block__content {
    padding: 0 16px 16px 16px;
}

.prr-land-details-block__fields {
    display: flex;
    gap: 8px;
}

.prr-land-details-field {
    flex: 1;
    display: flex;
    padding: 0px 4px;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    height: 24px;
    overflow-y: hidden;
    border-radius: 6px;
    background: #f0f0f0;
    border: 1px solid #f0f0f0;
}

.prr-land-details-field:hover {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.prr-land-details-field__icon {
    margin-right: 4px;
    flex-shrink: 0;
}

.prr-land-details-field__text, .prr-land-details-field__text span {
    flex: 1;
    color: rgba(0, 0, 0, 0.80);
    font-family: Inter, sans-serif;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.055px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prr-land-details-field.disabled {
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.5);
    background: inherit;
} 

/* --- Common Row Component --- */
.prr-common-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.prr-common-row--title {
    padding: 4px 12px 4px 0px;
}

.prr-common-row--title .prr-common-row__title-label-1 {
    width: 90px;
    color: rgba(0, 0, 0, 0.5);
    font-family: Inter, sans-serif;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.055px;
}

.prr-common-row--title .prr-common-row__title-label-1:empty {
    display: none;
}

.prr-common-row--title .prr-common-row__title-label-2,
.prr-common-row--title .prr-common-row__title-label-2 span {
    flex: 1 0 0;
    color: rgba(0, 0, 0, 0.8);
    font-family: Inter, sans-serif;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.055px;
    display: flex;
    align-items: center;
}

/* --- Ownership Indicator --- */
.prr-ownership-indicator {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.prr-common-row__icons {
    display: flex;
    gap: 4px;
}

.prr-common-row__icons:empty {
    display: none;
}

.prr-common-row--icons-show-hover .prr-common-row__icons {
    display: none;
}

.prr-common-row--icons-show-hover:hover .prr-common-row__icons {
    display: initial;
}

@media (max-width: 640px) {
    .prr-common-row--icons-show-hover .prr-common-row__icons {
        display: initial;
    }
}

/* --- Reg Data Block --- */
.prr-reg-data-block {
    width: 100%;
    margin-bottom: 0;
}

.prr-reg-data-block__header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 16px;
}

.prr-reg-data-block__title,
.prr-reg-data-block__title span {
    display: flex;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.055px;
}

.prr-reg-data-block__content {
    padding: 0 16px 0 16px; /* Убираем padding-bottom */
}

.prr-reg-data-block__fields {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.prr-reg-data-block__fields:last-child {
    margin-bottom: 0;
}

.prr-common-row-container {
    margin-bottom: 8px;
}

/* --- Location Block --- */
.prr-location-block {
    width: 100%;
    margin-bottom: 0;
}

.prr-location-block__header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 16px;
}

.prr-location-block__title,
.prr-location-block__title span {
    display: flex;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.055px;
}

.prr-location-block__content {
    padding: 0 16px 0 16px; /* Убираем padding-bottom */
} 

/* --- Elevation Block --- */
.prr-elevation-block {
    width: 100%;
    margin-bottom: 0;
}

.prr-elevation-block__header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 16px;
}

.prr-elevation-block__title,
.prr-elevation-block__title span {
    display: flex;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.055px;
}

.prr-elevation-block__content {
    padding: 0 16px 0 16px;
} 

/* --- Risk Block --- */
.prr-risk-block {
    width: 100%;
    margin-bottom: 0;
}

.prr-risk-block__header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 16px;
}

.prr-risk-block__title,
.prr-risk-block__title span {
    display: flex;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.055px;
}

.prr-risk-block__content {
    padding: 0 16px 0 16px;
}

.prr-risk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.prr-risk-item:last-child {
    border-bottom: none;
}

.prr-risk-item__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: rgba(0, 0, 0, 0.5);
}

.prr-risk-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prr-risk-item__title,
.prr-risk-item__title span {
    color: rgba(0, 0, 0, 0.8);
    font-family: Inter, sans-serif;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.055px;
}

.prr-risk-item__progress {
    width: 100%;
}

.prr-risk-item__progress-bar {
    width: 100%;
    height: 2px; /* Изменили с 4px на 2px */
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1px; /* Изменили с 2px на 1px для соответствия */
    overflow: hidden;
}

.prr-risk-item__progress-fill {
    height: 100%;
    background: #18a0fb;
    border-radius: 1px; /* Изменили с 2px на 1px для соответствия */
    transition: width 0.3s ease;
}

.prr-risk-item__value,
.prr-risk-item__value span {
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.8);
    font-family: Inter, sans-serif;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.055px;
    min-width: 20px;
    text-align: right;
} 

/* --- Shape Block --- */
.prr-shape-block {
    width: 100%;
    margin-bottom: 0;
}

.prr-shape-block__header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 16px;
}

.prr-shape-block__title,
.prr-shape-block__title span {
    display: flex;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.055px;
}

.prr-shape-block__content {
    padding: 0 16px 0 16px;
} 

/* Market info styles */
.prr-market-info-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  border: none;
  overflow: hidden;
  padding-bottom: 32px; /* Место для футера */
}

/* Market Header */
.prr-market-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 16px;
  position: absolute;
  top: 0;
  right: 0;
}

.prr-market-title-section {
  flex: 1;
}

.prr-market-title {
  margin: 0 0 4px 0;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 24px;
}

.prr-market-subtitle {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666;
  line-height: 20px;
}

.prr-market-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.prr-control-group {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}

/* Mobile styles */
@media (max-width: 768px) {
  .prr-market-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .prr-market-controls {
    justify-content: flex-start;
    gap: 12px;
  }
  
  .prr-market-title {
    font-size: 16px;
    line-height: 22px;
  }
  
  .prr-market-subtitle {
    font-size: 13px;
    line-height: 18px;
  }
}

/* Hide Percentile label on narrow screens */
@media (max-width: 500px) {
  .prr-control-group:last-child .prr-market-label {
    display: none;
  }
}

.prr-market-period-select,
.prr-market-percentile-select {
  height: 30px;
  min-width: 48px;
  padding: 0 8px;
  border: 1px solid #ececec;
  border-radius: 8px;
  font-size: 11px;
  background: #fff;
  color: rgba(0, 0, 0, 0.5);
  font-family: Inter, sans-serif;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.055px;
  font-style: normal;
  outline: none;
  transition: border 0.2s;
  cursor: pointer;
  margin-left: 0;
}

.prr-market-period-select:focus,
.prr-market-percentile-select:focus {
  border-color: #014FCF;
}

.prr-market-period-select + .prr-market-label,
.prr-market-label + .prr-market-period-select {
  margin-left: 8px;
}

.prr-market-chart {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.prr-market-chart-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

.prr-market-info-loading-overlay {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
} 

.prr-market-label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.80);
  font-family: Inter, sans-serif;
  line-height: 16px;
  letter-spacing: 0.06px;
  font-style: normal;
  margin-right: 2px;
}
.prr-market-label + .prr-market-label {
  margin-left: 12px;
  margin-right: 2px;
} 



.prr-zoning-block {
    width: 100%;
    margin-bottom: 0;
}

.prr-zoning-block__header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 16px;
}

.prr-zoning-block__title,
.prr-zoning-block__title span {
    display: flex;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 0;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 11px !important;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.055px;
}

.prr-zoning-block__content {
    padding: 0 16px 0 16px;
} 

.prr-poi-tooltip {
  position: absolute;
  pointer-events: none;
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(1,79,207,0.10);
  padding: 8px 12px;
  font-size: 13px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  line-height: 1.4;
  z-index: 1000;
  min-width: 120px;
  max-width: 240px;
  border: 1px solid #ececec;
  display: none;
} 

.prr-loading-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  box-sizing: border-box;
}

.perare-banner .mapboxgl-ctrl-bottom-right {
    top: 0;
}

/* ============================================================================
   Candlestick Chart Widget Styles
   ============================================================================ */

.prr-candlestick-widget {
  display: block;
  background: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  max-width: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.prr-candlestick-widget.prr-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #6B7280;
}

/* Widget Header */
.prr-widget-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.prr-title-section .prr-widget-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.prr-update-section .prr-last-update {
  font-size: 12px;
  color: #9CA3AF;
  white-space: nowrap;
}

/* Price Display */
.prr-price-display {
  padding: 12px 16px 16px;
}

.prr-price-main {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.prr-price-total {
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 6px;
  font-weight: 500;
}

/* Period Switcher */
.prr-period-switcher {
  display: flex;
  gap: 6px;
  background: #efefef;
  border-radius: 8px;
  padding: 2px;
  margin: 0 16px;
}

.prr-period-btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.prr-period-btn.active {
  background: #fff;
}

.prr-period-btn > span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.prr-percentage {
  font-size: 13px;
  font-weight: 600;
}

.prr-percentage.positive {
  color: #10B981;
}

.prr-percentage.negative {
  color: #EF4444;
}

.prr-percentage:not(.positive):not(.negative) {
  color: #6B7280;
}

/* Chart */
.prr-chart-container {
  width: 100%;
  padding: 8px 16px;
}

.prr-chart {
  width: 100%;
  height: 220px;
}

/* Range Panel */
.prr-range-panel {
  padding: 12px 0;
  margin: 0 16px;
  display: flex;
  flex-direction: column;
}

.prr-range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.prr-range-label {
  flex: 1;
}

.prr-range-label.left {
  text-align: left;
}

.prr-range-label.center {
  text-align: center;
}

.prr-range-label.right {
  text-align: right;
}

.prr-range-number {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

.prr-range-text {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Range Bar */
.prr-range-bar {
  position: relative;
  height: 8px;
  margin: 4px 0;
}

.prr-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 16px;
  transform: translateY(-50%);
  background: linear-gradient(to right, #E5E7EB 0%, #D1D5DB 50%, #E5E7EB 100%);
  border-radius: 2px;
}

.prr-range-current {
  position: absolute;
  top: 50%;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 2px;
  transition: left 0.3s ease, width 0.3s ease, background-color 0.3s ease;
}

.prr-range-current.up {
  background: #10B981;
}

.prr-range-current.down {
  background: #EF4444;
}

/* Bounds Values */
.prr-bounds-values {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.prr-bound-value {
  font-size: 13px;
  color: #111827;
  font-weight: 600;
}

.prr-bound-arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.prr-bound-arrow {
  width: 10px;
  height: 10px;
  color: #111827;
  transform: rotate(-90deg);
}

/* ============================================================================
   Geometry Preview Widget Styles
   ============================================================================ */

.prr-geometry-widget {
  max-width: 450px;
  background: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.prr-geometry-header {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  padding: 24px;
  text-align: center;
  color: white;
}

.prr-geometry-title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
}

.prr-geometry-subtitle {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
  font-weight: 400;
}

.prr-geometry-canvas {
  padding: 0;
  background: #f9fafb;
}

.prr-geometry-svg {
  display: block;
  width: 100%;
  height: auto;
}

.prr-geometry-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e5e7eb;
}

.prr-geometry-metric {
  background: white;
  padding: 20px;
  text-align: center;
}

.prr-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.prr-metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

/* ============================================================================
   Shape Quality Index Widget Styles
   ============================================================================ */

.prr-shape-widget {
  max-width: 600px;
  background: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.prr-shape-header {
  padding: 24px;
  text-align: center;
}

.prr-shape-title {
  margin: 0 0 16px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
}

.prr-quality-badge {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
}

.prr-quality-excellent {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
}

.prr-quality-good {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.prr-quality-fair {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #b45309;
}

.prr-quality-poor {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  color: #b91c1c;
}

.prr-shape-body {
  padding: 0 24px 24px;
}

.prr-radar-container {
  text-align: center;
  margin-bottom: 24px;
}

.prr-radar-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
}

.prr-radar-svg {
  width: 100%;
  height: auto;
  max-width: 300px;
}

.prr-shape-metrics {
  margin-bottom: 24px;
}

.prr-shape-metric {
  margin-bottom: 20px;
}

.prr-shape-metric:last-child {
  margin-bottom: 0;
}

.prr-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.prr-metric-name {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.prr-metric-val {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.prr-progress-bar-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.prr-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.prr-orientation-section {
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  text-align: center;
}

.prr-orientation-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.prr-orientation-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.prr-compass-icon {
  font-size: 28px;
}

/* ============================================================================
   SEARCH WIDGET STYLES
   ============================================================================ */

.prr-search-widget {
  max-width: 600px;
  background: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.prr-search-header {
  background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%);
  padding: 24px;
  text-align: center;
  color: white;
}

.prr-search-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}

.prr-search-subtitle {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
  font-weight: 400;
}

.prr-search-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  margin: 0;
  font-size: 14px;
  color: #1e40af;
  line-height: 1.5;
}

.prr-search-info svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.prr-search-body {
  padding: 32px;
}

.prr-form-group {
  margin-bottom: 20px;
}

.prr-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.prr-form-input,
.prr-form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.prr-form-input:focus,
.prr-form-select:focus {
  outline: none;
  border-color: #ff6e7f;
}

.prr-form-select {
  background-color: white;
  cursor: pointer;
}

.prr-search-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.prr-btn {
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.prr-btn:hover {
  transform: translateY(-2px);
}

.prr-btn:active {
  transform: translateY(0);
}

.prr-btn-primary {
  background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%);
  color: white;
  flex: 1;
}

.prr-btn-primary:hover {
  box-shadow: 0 10px 20px rgba(255, 110, 127, 0.3);
}

.prr-btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.prr-btn-secondary:hover {
  background: #d1d5db;
}

.prr-search-results {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  background: #f9fafb;
}

.prr-search-loading {
  text-align: center;
  padding: 20px;
}

.prr-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #ff6e7f;
  border-radius: 50%;
  animation: prr-spin 1s linear infinite;
}

@keyframes prr-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.prr-search-loading p {
  color: #6b7280;
  font-size: 14px;
}

.prr-search-success {
  text-align: center;
  padding: 20px;
}

.prr-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.prr-search-success h4 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #059669;
}

.prr-result-item {
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.prr-result-item:last-child {
  margin-bottom: 0;
}

.prr-result-item strong {
  color: #374151;
  font-weight: 600;
}

.prr-result-item code {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #1f2937;
}

.prr-result-item a {
  color: #3b82f6;
  text-decoration: none;
  word-break: break-all;
}

.prr-result-item a:hover {
  text-decoration: underline;
}

.prr-search-error {
  text-align: center;
  padding: 20px;
}

.prr-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.prr-search-error p {
  color: #dc2626;
  font-size: 16px;
  font-weight: 500;
}

.prr-search-docs {
  background: #f9fafb;
  padding: 32px;
  border-top: 1px solid #e5e7eb;
}

.prr-docs-title {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.prr-docs-endpoint {
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #1f2937;
}

.prr-docs-endpoint strong {
  color: #059669;
  font-weight: 700;
}

.prr-docs-examples {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prr-docs-example {
  background: #1f2937;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

.prr-docs-example-title {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prr-docs-example pre {
  margin: 0;
  color: #d1d5db;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 🌊 Risk Assessment Widget */
.prr-risk-widget {
  padding: 24px;
}
.prr-risk-header {
  text-align: center;
  margin-bottom: 24px;
}
.prr-risk-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
}
.prr-overall-risk {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
}
.prr-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.prr-risk-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}
.prr-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.prr-card-icon {
  font-size: 20px;
  margin-right: 8px;
}
.prr-card-label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  flex-grow: 1;
}
.prr-risk-badge {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.prr-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.prr-progress-bar-track {
  flex-grow: 1;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.prr-progress-bar-fill {
  height: 100%;
}
.prr-card-value {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

/* Risk colors */
.prr-risk-no { background-color: #22c55e; color: #fff; }
.prr-risk-low { background-color: #facc15; color: #422006; }
.prr-risk-medium { background-color: #f97316; color: #fff; }
.prr-risk-high { background-color: #ef4444; color: #fff; }
.prr-risk-unknown { background-color: #9ca3af; color: #fff; }