/* Search scope uses the same compact control language as region and filter buttons. */
.search-toolbox__section-head--scope {
  margin-top: 0;
}

.search-toolbox > .search-scope {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  overflow: visible;
  border: 0;
  background: transparent;
}

.search-toolbox > .search-scope .search-scope__button {
  width: auto;
  min-height: 40px;
  flex: 0 1 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #c9d1cd;
  border-radius: 3px;
  background: #fff;
  text-align: center;
}

.search-toolbox > .search-scope .search-scope__button.is-active {
  border-color: #2f5b4a;
  background: #2f5b4a;
  color: #fff;
}

.search-toolbox > .search-scope .search-scope__button:disabled {
  border-color: #d7ddda;
  background: #f2f4f3;
}

.property-list-row__access {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset;
}

/* Property detail: image first, then one consolidated summary and detail tabs. */
.property-detail-section {
  padding: 1.5rem 0 4rem;
  background: #f7f8f7;
}

.property-detail__bit-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.25rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8dfdb;
  border-top: 0;
  border-radius: 6px;
  background: #fff;
}

.property-detail__bit-hero {
  order: 0;
  width: 100%;
  border-bottom: 1px solid #d8dfdb;
  background: #eef1ef;
}

.property-detail__media-viewer {
  width: 100%;
  max-width: none;
  gap: 0;
}

.property-detail__media-main {
  height: clamp(240px, 28vw, 360px);
  border: 0;
  border-radius: 0;
  background: #eef1ef;
}

.property-detail__media-image {
  background: #eef1ef;
}

.property-detail__media-placeholder--empty {
  min-height: 320px;
  border: 0;
  border-radius: 0;
}

.property-detail__media-caption {
  min-height: 38px;
  padding: 0.5rem 1rem;
  border-top: 1px solid #e2e7e4;
  background: #fff;
}

.property-detail__media-caption span {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #5d6a64;
}

.property-detail__bit-info {
  order: 1;
  gap: 0.85rem;
  padding: 1.25rem 1.4rem 1.4rem;
}

.property-detail__bit-title-row {
  min-height: 24px;
}

.property-detail__bit-address {
  display: block;
  margin: 0;
  color: #15201b;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.4;
}

.property-detail__identity {
  margin: -0.3rem 0 0;
  color: #67736d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.property-detail__bid-deadline {
  border-left-color: #2f5b4a;
  background: #f1f5f2;
}

.property-detail__bit-actions {
  align-items: center;
  margin-top: 0;
  padding-top: 0.2rem;
}

.property-detail__tabs {
  position: sticky;
  top: 60px;
  z-index: 5;
  margin-bottom: 1rem;
  border: 1px solid #d8dfdb;
  border-radius: 4px;
  background: #fff;
}

.property-detail__content {
  min-width: 0;
}

/* Favorites are a task page, not an account setting. */
.favorites-section {
  min-height: calc(100vh - 60px);
  padding: 2.25rem 0 4rem;
  background: #f7f8f7;
}

body.is-app-mode .favorites-section {
  width: 100%;
  max-width: none;
}

.favorites-header {
  margin-bottom: 1.25rem;
}

.favorites-header h1 {
  margin: 0;
  color: #15201b;
  font-size: 1.55rem;
}

.favorites-header p {
  margin: 0.35rem 0 0;
  color: #67736d;
  font-size: 0.88rem;
}

.favorites-section .favorites-empty {
  padding: 4rem 1rem;
  border: 1px solid #d8dfdb;
  border-radius: 4px;
  background: #fff;
}

.favorites-section .favorites-empty .btn {
  margin-top: 1rem;
}

/* Upload workspace: one clear action, detail context, then history. */
.upload-section {
  background: #f7f8f7;
}

.upload-section .container {
  max-width: 960px;
  padding-top: 2.25rem;
}

.upload-workspace__masthead {
  max-width: none;
  margin: 0 0 1.25rem;
  text-align: left;
}

.upload-workspace__title {
  color: #15201b;
  font-size: 1.75rem;
  line-height: 1.3;
}

.upload-workspace__lead {
  max-width: none;
  margin: 0.35rem 0 0;
  color: #67736d;
  font-size: 0.92rem;
  line-height: 1.6;
}

.upload-source-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid #2f5b4a;
  background: #edf3ef;
}

.upload-source-context > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.upload-source-context__label {
  color: #5f6d66;
  font-size: 0.7rem;
}

.upload-source-context strong {
  overflow: hidden;
  color: #1f382d;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-area {
  margin-bottom: 0;
}

.upload-area .upload-panel {
  max-width: none;
  padding: 1.25rem;
  border-color: #cdd6d1;
  background: #fff;
  box-shadow: none;
}

.upload-area .upload-panel__header {
  margin-bottom: 0.85rem;
  text-align: left;
}

.upload-area .upload-panel__title {
  color: #15201b;
  font-size: 1.1rem;
}

.upload-area .upload-panel__desc {
  color: #67736d;
  font-size: 0.8rem;
}

.upload-area .upload-dropzone {
  min-height: 190px;
  padding: 1.5rem;
  border-color: #9baba3;
  background: #f7f9f8;
}

.upload-area .upload-dropzone:hover,
.upload-area .upload-dropzone.is-dragover,
.upload-area .upload-dropzone.is-active {
  border-color: #2f5b4a;
  background: #f0f5f2;
  box-shadow: none;
}

.upload-area .upload-dropzone__icon {
  width: 50px;
  height: 50px;
  border-color: #c9d8d0;
  background: #e8f0eb;
  color: #2f5b4a;
}

.upload-area .upload-dropzone__action,
.upload-area .upload-submit {
  background: #2f5b4a;
  color: #fff;
  box-shadow: none;
}

.upload-area .upload-submit:disabled {
  display: inline-flex;
  background: #dce2df;
  color: #78827d;
}

.upload-support-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.75rem 0 0;
  color: #67736d;
  font-size: 0.78rem;
}

.upload-support-links a {
  color: #2f5b4a;
  font-weight: 700;
}

.upload-history {
  max-width: none;
  margin-top: 2rem;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid #cdd6d1;
  border-radius: 0;
  background: transparent;
}

body.is-app-mode .result-section {
  min-height: calc(100vh - 60px);
  padding: 2rem 0 4rem;
  background: #f7f8f7;
}

.result-section .back-btn {
  margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .search-toolbox > .search-scope {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-toolbox > .search-scope .search-scope__button {
    width: 100%;
    justify-content: flex-start;
  }

  .property-detail__media-main {
    height: min(68vw, 300px);
  }

  .property-detail__media-caption {
    padding-inline: 0.75rem;
  }

  .property-detail__bit-info {
    padding: 1rem;
  }

  .property-detail__bit-address {
    font-size: 1.15rem;
  }

  .property-detail__tabs {
    top: 56px;
    overflow-x: auto;
  }

  .property-detail__tab {
    flex: 0 0 auto;
    min-width: 6.5rem;
  }

  .upload-source-context {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-source-context strong {
    white-space: normal;
  }

  .upload-support-links {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
