:root {
  --font-1: "Montserrat", sans-serif;
  --dark-blue: #244e73;
  --blue: #2e4e8c;
  --light-blue: #4e98d9;
  --gold: #a6610d;
}

.sps-page {
  font-family: var(--font-1);
  color: var(--dark-blue);
  background: #f4f7fb;
  padding-bottom: 40px;
}

.sps-shell {
  width: min(920px, calc(100% - 24px));
  margin: 0 auto;
}

.sps-hero {
  background: linear-gradient(180deg, #e8f2fb 0%, #f4f7fb 100%);
  padding: 12px 0 0;
}

.sps-media-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(36, 78, 115, 0.14);
  box-shadow: 0 12px 28px rgba(36, 78, 115, 0.1);
}

.sps-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.sps-back {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.sps-back img {
  width: 28px;
  height: 28px;
}

.sps-status {
  background: #e8f8ee;
  color: #1b7a3d;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.sps-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
}

.sps-views img {
  width: 18px;
}

.sps-stage {
  position: relative;
  background: #0f2438;
}

.sps-slide {
  display: none;
  width: 100%;
}

.sps-slide.is-show {
  display: block;
}

.sps-slide img,
.sps-video,
.sps-iframe {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border: 0;
}

.sps-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--dark-blue);
  font-size: 22px;
  cursor: pointer;
}

.sps-nav.prev {
  left: 10px;
}

.sps-nav.next {
  right: 10px;
}

.sps-media-switch {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.sps-switch {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-blue);
  font-weight: 800;
  cursor: pointer;
}

.sps-switch.is-active {
  background: var(--dark-blue);
  color: #fff;
}

.sps-panel {
  display: none;
}

.sps-panel.is-show {
  display: block;
}

.sps-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(36, 78, 115, 0.14);
  box-shadow: 0 10px 24px rgba(36, 78, 115, 0.08);
  padding: 16px;
  margin: 14px auto;
}

.sps-loc-row,
.sps-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sps-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.sps-loc img {
  width: 18px;
}

.sps-district {
  font-size: 13px;
  color: #4e98d9;
  font-weight: 600;
}

.sps-title {
  font-size: 22px;
  line-height: 1.25;
  margin: 12px 0 8px;
}

.sps-chip {
  display: inline-flex;
  align-items: center;
  background: #eaf3fb;
  color: var(--dark-blue);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.sps-id-grid {
  margin-top: 12px;
  border-top: 1px solid #edf2f7;
  padding-top: 10px;
  font-size: 12px;
  color: #5b7388;
}

.sps-id-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.sps-price-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sps-price-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b7388;
  font-weight: 700;
}

.sps-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.sps-negotiable {
  background: #fff4e5;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.sps-section-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.sps-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sps-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f8fc;
  border: 1px solid rgba(36, 78, 115, 0.12);
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}

.sps-option img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sps-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #355066;
  max-height: 150px;
  overflow: hidden;
}

.sps-desc.is-open {
  max-height: none;
}

.sps-more {
  margin-top: 10px;
  border: 0;
  background: none;
  color: var(--light-blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.sps-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 16px;
}

.sps-agent-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sps-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--dark-blue);
  flex-shrink: 0;
}

.sps-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sps-agent-name {
  font-size: 18px;
  margin-bottom: 4px;
}

.sps-verified {
  display: inline-block;
  background: #e8f8ee;
  color: #1b7a3d;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.sps-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
  background: #f4f8fc;
  border-radius: 16px;
  padding: 10px;
  text-align: center;
}

.sps-stats strong {
  display: block;
  font-size: 16px;
}

.sps-stats span {
  font-size: 11px;
  color: #5b7388;
}

.sps-actions a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(36, 78, 115, 0.16);
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
  color: var(--dark-blue);
  font-weight: 700;
  background: #fff;
}

.sps-actions img {
  width: 20px;
}

.sps-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sps-form input,
.sps-form textarea {
  width: 100%;
  border: 1px solid rgba(36, 78, 115, 0.18);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 12px;
  font-family: inherit;
}

.sps-form textarea {
  min-height: 90px;
  resize: vertical;
}

.sps-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.sps-tag {
  border: 1px solid rgba(36, 78, 115, 0.16);
  background: #f4f8fc;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--dark-blue);
}

.sps-submit {
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, var(--light-blue), var(--dark-blue));
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  padding: 13px;
  cursor: pointer;
}

.sps-status-msg {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}

.sps-status-msg.is-error {
  color: #b42318;
}

.sps-status-msg.is-success {
  color: #1b7a3d;
}

.sps-similar-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.sps-similar-tab {
  border: 1px solid rgba(36, 78, 115, 0.16);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark-blue);
}

.sps-similar-tab.is-active {
  background: var(--dark-blue);
  color: #fff;
}

.sps-similar-panel {
  display: none;
}

.sps-similar-panel.is-show {
  display: block;
}

.sps-sim-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(36, 78, 115, 0.12);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  color: inherit;
}

.sps-sim-card img {
  width: 110px;
  height: 100%;
  min-height: 90px;
  object-fit: cover;
}

.sps-sim-body {
  padding: 10px 10px 10px 0;
}

.sps-sim-body h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.sps-sim-body p {
  font-size: 12px;
  color: #5b7388;
}

.sps-sim-price {
  margin-top: 6px;
  font-weight: 800;
  color: var(--gold);
}

.sps-empty {
  color: #5b7388;
  font-size: 13px;
}

@media (min-width: 700px) {
  .sps-slide img,
  .sps-video,
  .sps-iframe {
    height: 380px;
  }
}
