/*
============================================================================
ASKCARBI REAL ESTATE SEARCH V1
============================================================================
*/

body.carbi-real-estate-search-open {
  overflow: hidden;
}

.cres-panel {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.cres-backdrop {
  position: absolute;
  inset: 0;
  background:
    rgba(15, 34, 55, 0.56);
  backdrop-filter:
    blur(8px);
}

.cres-shell {
  position: relative;
  width:
    min(620px, calc(100vw - 24px));
  max-height:
    min(860px, calc(100vh - 28px));
  overflow: hidden;
  border:
    1px solid
    rgba(205, 224, 241, 0.96);
  border-radius: 28px;
  display: grid;
  grid-template-rows:
    auto minmax(0, 1fr);
  background: #f7fbff;
  box-shadow:
    0 28px 80px
    rgba(7, 31, 55, 0.34);
}

.cres-header {
  min-height: 76px;
  padding: 14px 16px;
  border-bottom:
    1px solid #d9e7f2;
  display: flex;
  align-items: center;
  justify-content:
    space-between;
  gap: 14px;
  color: #163954;
  background:
    linear-gradient(
      135deg,
      #ffffff,
      #eaf6ff
    );
}

.cres-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.cres-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      145deg,
      #20b178,
      #0876c9
    );
  box-shadow:
    0 8px 20px
    rgba(13, 132, 146, 0.23);
  font-size: 24px;
}

.cres-brand > span:last-child {
  min-width: 0;
  display: grid;
}

.cres-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.cres-brand small {
  margin-top: 3px;
  color: #6a8297;
  font-size: 11px;
}

.cres-close {
  width: 39px;
  height: 39px;
  border:
    1px solid #ccdce9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #466277;
  background: #ffffff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.cres-content {
  overflow-y: auto;
  padding: 17px;
}

.cres-introduction {
  padding: 15px;
  border:
    1px solid #d6e7f3;
  border-radius: 20px;
  color: #244a65;
  background:
    linear-gradient(
      135deg,
      #eaf7ff,
      #f6fcff
    );
}

.cres-introduction strong {
  font-size: 16px;
}

.cres-introduction p {
  margin:
    7px 0 0;
  color: #5c778c;
  font-size: 12px;
  line-height: 1.55;
}

.cres-form {
  margin-top: 15px;
  display: grid;
  gap: 12px;
}

.cres-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.cres-field > span {
  color: #375c77;
  font-size: 11px;
  font-weight: 750;
}

.cres-field input,
.cres-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border:
    1px solid #cbddea;
  border-radius: 14px;
  color: #183d58;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.cres-field input:focus,
.cres-field select:focus {
  border-color: #1689dc;
  box-shadow:
    0 0 0 4px
    rgba(22, 137, 220, 0.11);
}

.cres-two-column {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.cres-location-button {
  min-height: 43px;
  border:
    1px solid #bcd8e9;
  border-radius: 13px;
  color: #14689d;
  background: #ebf8ff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cres-location-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.cres-submit {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #0c89e5,
      #13b59d
    );
  box-shadow:
    0 11px 25px
    rgba(8, 128, 181, 0.25);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.cres-results {
  margin-top: 18px;
  padding-top: 17px;
  border-top:
    1px solid #d8e5ef;
}

.cres-result-heading {
  display: grid;
  gap: 4px;
}

.cres-result-heading span {
  color: #1e4966;
  font-size: 14px;
  font-weight: 850;
}

.cres-result-heading small {
  color: #71879a;
  font-size: 10px;
  line-height: 1.45;
}

.cres-source-grid {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.cres-source-card {
  min-height: 70px;
  padding: 11px;
  border:
    1px solid #d1e1ed;
  border-radius: 18px;
  display: grid;
  grid-template-columns:
    48px 1fr auto;
  align-items: center;
  gap: 11px;
  color: inherit;
  background: #ffffff;
  box-shadow:
    0 7px 18px
    rgba(32, 78, 112, 0.08);
  text-decoration: none;
}

.cres-source-card:active {
  transform:
    translateY(1px)
    scale(0.995);
}

.cres-source-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      145deg,
      #e5f5ff,
      #eefcf8
    );
  font-size: 22px;
}

.cres-source-copy {
  min-width: 0;
  display: grid;
}

.cres-source-copy strong {
  color: #214965;
  font-size: 13px;
}

.cres-source-copy small {
  margin-top: 3px;
  color: #71889b;
  font-size: 10px;
}

.cres-source-arrow {
  color: #3c88b8;
  font-size: 28px;
}

.cres-chat-search,
.cres-room-search-button {
  min-height: 43px;
  border:
    1px solid #a9d0e8;
  border-radius: 14px;
  color: #126a9e;
  background:
    linear-gradient(
      135deg,
      #e8f7ff,
      #edfdf8
    );
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.cres-chat-search {
  width: 100%;
  margin-top: 12px;
}

.cres-source-notice {
  margin:
    10px 3px 0;
  color: #8193a2;
  font-size: 9px;
  line-height: 1.5;
}

.cres-room-search-button {
  padding:
    8px 12px;
}

@media (max-width: 620px) {
  .cres-shell {
    width:
      calc(100vw - 14px);
    max-height:
      calc(100vh - 14px);
    border-radius: 23px;
  }

  .cres-content {
    padding: 13px;
  }

  .cres-two-column {
    grid-template-columns: 1fr;
  }

  .cres-header {
    min-height: 68px;
    padding: 11px 12px;
  }

  .cres-brand-icon {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }

  .cres-brand strong {
    font-size: 14px;
  }
}
