:root {
  --ws-sts-blue: #0875c1;
  --ws-sts-blue-dark: #075f9d;
  --ws-sts-text: #10233f;
  --ws-sts-muted: #60748d;
  --ws-sts-border: #dce7f1;
  --ws-sts-surface: #ffffff;
  --ws-sts-subtle: #f4f7fb;
}

.ws-sts-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ws-sts-trigger {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-self: center;
  padding: 0 !important;
  color: var(--ws-sts-blue) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  appearance: none;
  cursor: pointer;
  line-height: 1;
}

.ws-sts-trigger svg,
.ws-sts-form svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ws-sts-trigger:hover,
.ws-sts-trigger:focus,
.ws-sts-trigger:active { background: transparent !important; box-shadow: none !important; }
.ws-sts-trigger--mobile { display: none; }

.ws-sts-trigger:focus-visible,
.ws-sts-dialog button:focus-visible,
.ws-sts-form input:focus-visible,
.ws-sts-card > a:focus-visible {
  outline: 3px solid rgba(8, 117, 193, 0.34);
  outline-offset: 3px;
}

body.ws-sts-open { overflow: hidden; }
.ws-sts-dialog[hidden] { display: none !important; }

.ws-sts-dialog {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: start center;
  padding: min(18vh, 150px) 20px 20px;
}

.ws-sts-dialog__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(7, 24, 43, 0.18);
  border: 0;
  cursor: default;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.ws-sts-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(7, 24, 43, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.ws-sts-dialog__panel h2 {
  margin: 0 44px 18px 0;
  color: var(--ws-sts-text);
  font-size: 24px;
  line-height: 1.2;
}

.ws-sts-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ws-sts-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.ws-sts-dialog__close:hover { background: var(--ws-sts-subtle); }

.ws-sts-form {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px 7px 6px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ws-sts-border);
  border-radius: 12px;
}

.ws-sts-form:focus-within {
  border-color: var(--ws-sts-blue);
  box-shadow: 0 0 0 3px rgba(8, 117, 193, 0.13);
}

.ws-sts-form__icon { display: grid; color: var(--ws-sts-blue); }

.ws-sts-form input {
  min-width: 0;
  height: 44px;
  padding: 0 !important;
  color: var(--ws-sts-text) !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 16px !important;
}

.ws-sts-form button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: var(--ws-sts-blue);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ws-sts-form button:hover { background: var(--ws-sts-blue-dark); }

.ws-sts-results {
  min-height: 62vh;
  padding: clamp(44px, 7vw, 88px) 24px 90px;
  background: var(--ws-sts-subtle);
}

.ws-sts-results__inner {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.ws-sts-results__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.ws-sts-results__heading h1 {
  margin: 0 0 8px;
  color: var(--ws-sts-text);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.ws-sts-results__heading p { margin: 0; color: var(--ws-sts-muted); }
.ws-sts-results__count { white-space: nowrap; font-weight: 700; }

.ws-sts-results__search {
  width: min(100%, 620px);
  margin-bottom: 34px;
  background: #fff;
}

.ws-sts-results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ws-sts-card {
  min-width: 0;
  overflow: hidden;
  background: var(--ws-sts-surface);
  border: 1px solid var(--ws-sts-border);
  border-radius: 14px;
}

.ws-sts-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.ws-sts-card__image { aspect-ratio: 16 / 10; overflow: hidden; background: #e7eef5; }
.ws-sts-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.ws-sts-card:hover img { transform: scale(1.025); }
.ws-sts-card__body { padding: 18px; }
.ws-sts-card__location { margin: 0 0 7px; color: var(--ws-sts-blue); font-size: 12px; font-weight: 600; }
.ws-sts-card h2 { margin: 0; color: var(--ws-sts-text); font-size: 18px; line-height: 1.35; }
.ws-sts-card__action { display: inline-block; margin-top: 18px; color: var(--ws-sts-blue); font-size: 14px; font-weight: 700; }

.ws-sts-results__empty {
  padding: 34px;
  color: var(--ws-sts-muted);
  background: #fff;
  border: 1px solid var(--ws-sts-border);
  border-radius: 14px;
}

.ws-sts-pagination { margin-top: 36px; }
.ws-sts-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin-right: 6px; padding: 0 12px; border: 1px solid var(--ws-sts-border); border-radius: 9px; text-decoration: none; }
.ws-sts-pagination .current { color: #fff; background: var(--ws-sts-blue); border-color: var(--ws-sts-blue); }

@media (max-width: 1024px) {
  .ws-sts-trigger--desktop { display: none; }
  .ws-mobile-master .ws-sts-trigger--mobile {
    display: flex;
    align-self: stretch;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 15px 40px !important;
    color: inherit !important;
  }
  .ws-sts-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .ws-sts-dialog { align-items: start; padding: 86px 14px 14px; }
  .ws-sts-dialog__panel { padding: 22px 16px 18px; border-radius: 14px; }
  .ws-sts-dialog__panel h2 { font-size: 21px; }
  .ws-sts-results { padding: 34px 16px 64px; }
  .ws-sts-results__heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 22px; }
  .ws-sts-results__grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-sts-card__image img { transition: none; }
}


/* Triply theme button reset — keep the search overlay translucent. */
.ws-sts-dialog > .ws-sts-dialog__backdrop {
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(7, 24, 43, 0.18) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.ws-sts-dialog .ws-sts-dialog__close {
  color: var(--ws-sts-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}
.ws-sts-dialog .ws-sts-dialog__close:hover {
  background: rgba(255, 255, 255, 0.38) !important;
}
.ws-sts-dialog .ws-sts-form button[type="submit"] {
  color: #fff !important;
  background: var(--ws-sts-blue) !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}
