/* My spots page: the single source for its layout and responsive rules. */

#page-my-spots {
  max-width: 1080px;
  margin: 0 auto;
}

#page-my-spots>.back-button {
  margin-bottom: 16px;
  color: #738780;
}

.my-spots-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.my-spots-heading h1 {
  font-size: 28px;
  letter-spacing: 0;
}

.my-spots-heading p {
  font-size: 12px;
  color: #8a9991;
  margin-top: 8px;
}

.my-spots-heading p>span {
  white-space: nowrap;
}

.my-spots-heading>.button {
  white-space: nowrap;
  font-size: 12px;
  padding: 12px 16px;
}

.my-spots-heading>.button>span {
  font-size: 18px;
  line-height: 1;
}

.my-spots-tools {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px 16px;
}

.my-spots-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.my-spots-tabs>button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 17px 0;
  font-size: 13px;
  white-space: nowrap;
  color: #88958e;
}

.my-spots-tabs>button>span {
  font-size: 10px;
  color: #98a59b;
  font-variant-numeric: tabular-nums;
}

.my-spots-tabs>button.selected {
  color: var(--green);
  font-weight: 600;
}

.my-spots-tabs>button.selected>span {
  color: var(--green);
}

.my-spots-tabs>button.selected:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
}

.my-spots-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f4f7f5;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 12px;
  min-height: 42px;
}

.my-spots-search:focus-within {
  border-color: #a6cbbc;
  background: #fff;
}

.my-spots-search>span {
  font-size: 23px;
  color: #8d9f93;
}

.my-spots-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  color: #3c5b4b;
  padding: 12px 0;
}

.my-spots-search input:focus {
  outline: 0;
}

.my-spots-search input::-webkit-search-cancel-button {
  display: none;
}

.my-spots-search>button {
  font-size: 20px;
  color: #8b9a8e;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.my-spots-search>button[hidden],.my-spots-more[hidden] {
  display: none;
}

.my-spots-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 25px 0 14px;
}

.my-spots-list-heading h2 {
  font-size: 14px;
  letter-spacing: 0;
}

.my-spots-list-heading>span {
  font-size: 10px;
  color: #94a197;
}

.owned-spots-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  align-items: start;
}

.owned-spot-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e3eae5;
  border-radius: 13px;
  padding: 18px;
  box-shadow: 0 3px 12px #264d3210;
}

.owned-spot-main {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.owned-spot-cover {
  position: relative;
  flex-shrink: 0;
  width: 78px;
  height: 88px;
  border-radius: 9px;
  overflow: hidden;
  background: #eaf2ec;
}

.owned-spot-cover>img {
  width: 100%;
  height: 100%;
}

.owned-spot-cover.no-photo {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#e3eee5,#d4e6df);
}

.owned-spot-cover.no-photo>.icon {
  width: 29px;
  height: 29px;
  color: #79a18a;
  margin-bottom: 12px;
}

.owned-spot-cover>span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #edf4efeb;
  text-align: center;
  font-size: 10px;
  line-height: 23px;
  color: #597966;
}

.owned-spot-info {
  flex: 1;
  min-width: 0;
}

.owned-spot-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.owned-spot-title h3 {
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.owned-spot-title>.status-pill {
  flex-shrink: 0;
  font-size: 10px;
  white-space: nowrap;
  padding: 4px 7px;
}

.owned-spot-address {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  font-size: 11px;
  color: #8b9b8d;
  line-height: 1.6;
}

.owned-spot-address>.icon {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 2px;
}

.owned-spot-address>span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.owned-spot-facts {
  font-size: 10px;
  color: #7b927d;
  line-height: 1.6;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.owned-spot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf1eb;
  margin-top: 15px;
  padding-top: 12px;
}

.owned-spot-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.owned-spot-meta>span {
  font-size: 10px;
  color: #7d9182;
}

.owned-spot-meta>small {
  font-size: 9px;
  color: #a0aca2;
}

.owned-spot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.owned-spot-actions>button {
  font-size: 11px;
  padding: 8px 0;
}

.owned-spot-view,.owned-spot-edit {
  color: var(--green);
  font-weight: 500;
}

.owned-spot-actions>.owned-spot-delete {
  color: #a0aaa3;
  font-size: 10px;
  padding-left: 10px;
  border-left: 1px solid #e7ece7;
}

.owned-spot-rejection {
  font-size: 11px;
  line-height: 1.7;
  background: #fcf1eb;
  border-radius: 6px;
  color: #ab7d62;
  padding: 9px 11px;
  margin-top: 13px;
}

.owned-spot-review {
  border-top: 1px dashed #e5ebe3;
  margin-top: 12px;
  padding-top: 9px;
}

.owned-spot-review>summary {
  font-size: 10px;
  color: #9eac9c;
  cursor: pointer;
  width: max-content;
  padding: 4px 0;
}

.owned-spot-review>div {
  padding-top: 8px;
}

.owned-spot-review p {
  font-size: 10px;
  color: #95a28e;
  margin-bottom: 10px;
}

.owned-spot-review .button {
  font-size: 10px;
  padding: 8px 12px;
  margin-right: 5px;
}

.my-spots-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.my-spots-more>.button {
  font-size: 12px;
  padding: 12px 30px;
}

.my-spots-more>small {
  font-size: 10px;
  color: #9aa79b;
}

.owned-spots-list>.empty-state {
  padding: 60px 15px;
  background: #fff;
  border: 1px dashed #dce6db;
  border-radius: 13px;
}

@media (max-width:960px) {
  .owned-spots-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width:680px) {
  .my-spots-heading {
    margin-bottom: 22px;
    gap: 10px;
  }

  .my-spots-heading h1 {
    font-size: 24px;
  }

  .my-spots-heading p {
    font-size: 10px;
    margin-top: 7px;
    line-height: 1.8;
  }

  .my-spots-heading>.button {
    font-size: 11px;
    padding: 10px 12px;
    gap: 4px;
  }

  .my-spots-tools {
    border-radius: 12px;
    padding: 0 14px 14px;
  }

  .my-spots-tabs {
    gap: 0;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  .my-spots-tabs>button {
    font-size: 12px;
    gap: 4px;
    padding: 15px 0;
  }

  .my-spots-tabs>button>span {
    font-size: 9px;
  }

  .my-spots-search input {
    font-size: 12px;
  }

  .my-spots-list-heading {
    margin: 22px 0 12px;
  }

  .my-spots-list-heading h2 {
    font-size: 13px;
  }

  .my-spots-list-heading>span {
    font-size: 9px;
  }

  .owned-spots-list {
    gap: 13px;
  }

  .owned-spot-card {
    padding: 15px;
    border-radius: 12px;
    box-shadow: none;
  }

  .owned-spot-main {
    gap: 12px;
  }

  .owned-spot-cover {
    width: 68px;
    height: 82px;
  }

  .owned-spot-title {
    gap: 5px;
    margin-bottom: 7px;
  }

  .owned-spot-title h3 {
    font-size: 13px;
  }

  .owned-spot-title>.status-pill {
    font-size: 9px;
    padding: 4px 5px;
  }

  .owned-spot-address {
    font-size: 10px;
  }

  .owned-spot-facts {
    font-size: 10px;
  }

  .owned-spot-footer {
    margin-top: 13px;
    padding-top: 10px;
  }
}
