/*
 * HorAplace Design System — additive foundation
 * Version: 1.0.0
 *
 * Additive shared foundation for pages opted in with .hpds-theme.
 * New hpds-* components are namespaced; shared legacy-shell refinements are
 * scoped beneath .hpds-theme. No page behavior, data, or permissions are changed.
 */

.hpds-theme {
  --hpds-brand: #8b1538;
  --hpds-brand-dark: #5b0c24;
  --hpds-brand-secondary: #6f0f2c;
  --hpds-gold: #b28a4a;
  --hpds-page: #fbf8f8;
  --hpds-surface: #ffffff;
  --hpds-surface-soft: #f8edf1;
  --hpds-text: #1d1b1b;
  --hpds-muted: #6d6668;
  --hpds-border: #eadfe2;
  --hpds-success: #067647;
  --hpds-warning: #b54708;
  --hpds-danger: #b42318;
  --hpds-shadow-sm: 0 2px 8px rgba(91, 12, 36, 0.06);
  --hpds-shadow-md: 0 10px 28px rgba(91, 12, 36, 0.09);
  --hpds-radius-sm: 8px;
  --hpds-radius-md: 12px;
  --hpds-radius-lg: 18px;
  --hpds-content-width: 1180px;
  --hpds-space-1: 4px;
  --hpds-space-2: 8px;
  --hpds-space-3: 12px;
  --hpds-space-4: 16px;
  --hpds-space-6: 24px;
  --hpds-space-8: 32px;
  --hpds-space-10: 40px;
  --hpds-space-12: 48px;
  color: var(--hpds-text);
}

.hpds-theme *,
.hpds-theme *::before,
.hpds-theme *::after {
  box-sizing: border-box;
}

.hpds-page {
  width: min(var(--hpds-content-width), calc(100% - 32px));
  margin-inline: auto;
}

.hpds-stack {
  display: flex;
  flex-direction: column;
  gap: var(--hpds-space-4);
}

.hpds-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--hpds-space-2);
}

.hpds-section {
  padding-block: clamp(24px, 4vw, 40px);
}

.hpds-page-heading {
  display: grid;
  gap: var(--hpds-space-2);
  margin-block: 0 var(--hpds-space-6);
}

.hpds-eyebrow {
  margin: 0;
  color: var(--hpds-brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hpds-title {
  margin: 0;
  color: var(--hpds-brand-dark);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.25;
  font-weight: 800;
}

.hpds-lead {
  max-width: 68ch;
  margin: 0;
  color: var(--hpds-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hpds-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--hpds-space-4);
}

.hpds-card {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background: var(--hpds-surface);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-card--flat {
  box-shadow: none;
}

.hpds-card__title {
  margin: 0 0 var(--hpds-space-2);
  color: var(--hpds-text);
  font-size: 1.0625rem;
  line-height: 1.45;
  font-weight: 750;
}

.hpds-card__body {
  color: var(--hpds-muted);
  line-height: 1.65;
}

.hpds-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--hpds-space-2);
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--hpds-radius-md);
  background: var(--hpds-brand);
  color: #fff;
  font: inherit;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.hpds-btn:hover {
  background: var(--hpds-brand-secondary);
}

.hpds-btn:focus-visible,
.hpds-link:focus-visible,
.hpds-field__control:focus-visible {
  outline: 3px solid rgba(139, 21, 56, 0.24);
  outline-offset: 2px;
}

.hpds-btn--secondary {
  border-color: var(--hpds-border);
  background: var(--hpds-surface-soft);
  color: var(--hpds-brand-dark);
}

.hpds-btn--secondary:hover {
  border-color: #d9c2ca;
  background: #f2e3e8;
}

.hpds-btn--outline {
  border-color: var(--hpds-border);
  background: var(--hpds-surface);
  color: var(--hpds-text);
}

.hpds-btn--outline:hover {
  background: var(--hpds-surface-soft);
}

.hpds-btn[disabled],
.hpds-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.hpds-link {
  color: var(--hpds-brand);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

.hpds-field__label {
  color: var(--hpds-text);
  font-size: 0.9375rem;
  font-weight: 700;
}

.hpds-field__hint {
  margin: 0;
  color: var(--hpds-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.hpds-field__control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7cbd0;
  border-radius: var(--hpds-radius-sm);
  background: var(--hpds-surface);
  color: var(--hpds-text);
  font: inherit;
  line-height: 1.45;
}

.hpds-field__control::placeholder {
  color: #8a8184;
}

.hpds-field__control[aria-invalid="true"] {
  border-color: var(--hpds-danger);
}

.hpds-field__error {
  margin: 0;
  color: var(--hpds-danger);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.hpds-notice {
  padding: 12px 14px;
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-md);
  background: var(--hpds-surface-soft);
  color: var(--hpds-text);
  line-height: 1.6;
}

.hpds-notice--success {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #05603a;
}

.hpds-notice--warning {
  border-color: #fedf89;
  background: #fffaeb;
  color: #93370d;
}

.hpds-notice--error {
  border-color: #fecdca;
  background: #fef3f2;
  color: #912018;
}

.hpds-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--hpds-border);
  border-radius: 999px;
  background: var(--hpds-surface-soft);
  color: var(--hpds-brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.hpds-divider {
  height: 1px;
  border: 0;
  background: var(--hpds-border);
}

.hpds-muted {
  color: var(--hpds-muted);
}

.hpds-visually-hidden {
  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;
}

@media (max-width: 640px) {
  .hpds-page {
    width: min(100% - 24px, var(--hpds-content-width));
  }

  .hpds-section {
    padding-block: 24px;
  }

  .hpds-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--hpds-space-3);
  }

  .hpds-btn {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpds-btn {
    transition: none;
  }
}


/* Homepage migration — intentionally limited to index.html. */
.hpds-home {
  background: var(--hpds-page);
}

.hpds-home .header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--hpds-border);
  box-shadow: 0 2px 12px rgba(91, 12, 36, 0.04);
  backdrop-filter: blur(12px);
}

.hpds-home .header-inner {
  min-height: 72px;
}

.hpds-home .logo {
  color: var(--hpds-brand-dark);
  letter-spacing: -0.035em;
}

.hpds-home .nav a {
  border-radius: 9px;
  transition: background-color 140ms ease, color 140ms ease;
}

.hpds-home .nav a:hover,
.hpds-home .home-nav-more[open] > summary {
  background: var(--hpds-surface-soft);
  color: var(--hpds-brand);
}

.hpds-home .header-auth {
  min-height: 42px;
  border: 1px solid var(--hpds-border);
}

.hpds-home .hero {
  padding: clamp(32px, 5vw, 58px) 0 clamp(24px, 3.5vw, 38px);
  background:
    radial-gradient(ellipse at 88% 12%, rgba(178, 138, 74, 0.10), transparent 34%),
    linear-gradient(135deg, #f7e9ed 0%, #fff 60%, #fbf8f8 100%);
  border-bottom: 1px solid var(--hpds-border);
}

.hpds-home .hero h1 {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--hpds-brand-dark);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hpds-home .hero-intro {
  max-width: 700px;
  margin: 0 0 20px;
  color: var(--hpds-muted);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.7;
}

.hpds-home .home-service-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-home .home-service-callout > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hpds-home .home-service-callout strong {
  color: var(--hpds-brand-dark);
  font-size: 15px;
  line-height: 1.45;
}

.hpds-home .home-service-callout span {
  color: var(--hpds-muted);
  font-size: 13px;
  line-height: 1.55;
}

.hpds-home .home-service-callout .btn {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 10px;
}

.hpds-home .home-searchbox {
  grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(120px, 1fr)) auto;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  box-shadow: var(--hpds-shadow-md);
}

.hpds-home .home-searchbox input,
.hpds-home .home-searchbox select {
  min-width: 0;
  min-height: 46px;
  border-color: #ded2d6;
  border-radius: 10px;
  font-size: 14px;
}

.hpds-home .home-searchbox input:focus,
.hpds-home .home-searchbox select:focus {
  border-color: var(--hpds-brand);
  outline: 3px solid rgba(139, 21, 56, 0.12);
}

.hpds-home .home-search-submit {
  min-height: 46px;
  padding-inline: 18px;
  white-space: nowrap;
}

.hpds-home main.section {
  padding-top: clamp(26px, 4vw, 40px);
}

.hpds-home .toolbar {
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hpds-home .toolbar h2 {
  margin: 0;
  color: var(--hpds-brand-dark);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.35;
}

.hpds-home .home-section-note {
  margin: 5px 0 0;
  color: var(--hpds-muted);
  font-size: 13px;
  line-height: 1.6;
}

.hpds-home #featured.grid {
  gap: 18px;
}

.hpds-home #featured .card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background: var(--hpds-surface);
  box-shadow: var(--hpds-shadow-sm);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.hpds-home #featured .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hpds-shadow-md);
}

.hpds-home #featured .card-img {
  border-radius: 0;
}

.hpds-home #featured .card-body {
  padding: 14px;
}

.hpds-home .home-category-wrap .panel {
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background: var(--hpds-surface);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-home .home-category-wrap .panel h2 {
  color: var(--hpds-brand-dark);
  font-size: 18px;
}

.hpds-home .home-category-wrap .tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--hpds-border);
  border-radius: 999px;
  background: #fff;
  color: var(--hpds-brand-dark);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.hpds-home .home-category-wrap .tag:hover {
  border-color: #d5aeba;
  background: var(--hpds-surface-soft);
}

.hpds-home .footer {
  margin-top: 28px;
  border-top: 1px solid var(--hpds-border);
  background: #fff;
  color: var(--hpds-muted);
}

@media (max-width: 900px) {
  .hpds-home .home-searchbox {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hpds-home .home-searchbox input[name="q"] {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .hpds-home .header-inner {
    min-height: 60px;
  }

  .hpds-home .hero {
    padding: 22px 0 18px;
  }

  .hpds-home .hero h1 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .hpds-home .home-service-callout {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .hpds-home .home-service-callout .btn {
    width: 100%;
  }

  .hpds-home .home-searchbox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .hpds-home .home-searchbox input[name="q"],
  .hpds-home .home-search-submit {
    grid-column: 1 / -1;
  }

  .hpds-home .home-searchbox input,
  .hpds-home .home-searchbox select {
    font-size: 13px;
  }

  .hpds-home .toolbar {
    align-items: flex-start;
  }

  .hpds-home #featured.grid {
    gap: 10px;
  }

  .hpds-home #featured .card-body {
    padding: 10px;
  }
}

@media (max-width: 380px) {
  .hpds-home .home-searchbox {
    grid-template-columns: minmax(0, 1fr);
  }

  .hpds-home .home-searchbox input[name="q"],
  .hpds-home .home-search-submit {
    grid-column: auto;
  }
}


/* Search page migration — preserves all existing filters and result hooks. */
.hpds-search {
  background: var(--hpds-page);
}

.hpds-search .header,
.hpds-property .header,
.hpds-post .header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--hpds-border);
  box-shadow: 0 2px 12px rgba(91, 12, 36, 0.04);
}

.hpds-search .header-inner,
.hpds-property .header-inner,
.hpds-post .header-inner {
  min-height: 68px;
}

.hpds-search main.section {
  padding-top: clamp(18px, 3vw, 30px);
}

.hpds-search main > .container > section.panel:first-child {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background: linear-gradient(135deg, #fff 0%, #fff9fb 100%);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-search #searchTitle {
  margin: 8px 0;
  color: var(--hpds-brand-dark);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}

.hpds-search #searchIntro,
.hpds-search #searchSummary {
  color: var(--hpds-muted);
  line-height: 1.65;
}

.hpds-search .category-hero-grid > .panel {
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-md);
  box-shadow: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.hpds-search .category-hero-grid > .panel:hover {
  border-color: #d5aeba;
  background: #fff9fb;
}

.hpds-search #propertyCategoryNav,
.hpds-search #locationTools {
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-search .category-pills .tag,
.hpds-search #locationTools .tag {
  min-height: 34px;
  border: 1px solid var(--hpds-border);
  border-radius: 999px;
  background: #fff;
}

.hpds-search .toolbar {
  align-items: center;
  gap: 14px;
}

.hpds-search .toolbar h2 {
  color: var(--hpds-brand-dark);
  line-height: 1.35;
}

.hpds-search #marketSearchForm {
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-search #marketSearchForm input,
.hpds-search #marketSearchForm select {
  min-width: 0;
  min-height: 44px;
  border-color: #ded2d6;
  border-radius: 10px;
}

.hpds-search #marketSearchForm button {
  min-height: 44px;
}

.hpds-search #results.grid {
  gap: 16px;
}

.hpds-search #results .card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background: var(--hpds-surface);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-search #results .card-img {
  border-radius: 0;
}

.hpds-search #results .card-body {
  padding: 14px;
}

.hpds-search #results .card h3 {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.hpds-search #results .price {
  color: var(--hpds-brand-dark);
  font-weight: 800;
}

.hpds-search #clearSearchFilters {
  min-height: 38px;
}

.hpds-search #listingResults {
  scroll-margin-top: 84px;
}

/* Property detail migration — styles the shell without changing dynamic data or contact permissions. */
.hpds-property {
  background: var(--hpds-page);
}

.hpds-property main.section {
  min-height: 48vh;
  padding-top: clamp(18px, 3vw, 32px);
}

.hpds-property #detail {
  min-width: 0;
}

.hpds-property #detail .panel,
.hpds-property #ownerClaimSection .panel {
  border-color: var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-property #ownerClaimSection {
  scroll-margin-top: 84px;
}

.hpds-property #ownerClaimSection h2 {
  color: var(--hpds-brand-dark);
}

.hpds-property #ownerClaimForm input,
.hpds-property #ownerClaimForm select,
.hpds-property #ownerClaimForm textarea {
  min-height: 44px;
  border-color: #ded2d6;
  border-radius: 10px;
}

.hpds-property #ownerClaimForm button {
  min-height: 44px;
}

/* Listing submission migration — retains existing five-step wizard and field contracts. */
.hpds-post {
  background: var(--hpds-page);
}

.hpds-post main.section {
  padding-top: clamp(18px, 3vw, 32px);
}

.hpds-post main > .container > h1 {
  margin: 0 0 8px;
  color: var(--hpds-brand-dark);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
}

.hpds-post .post-intro,
.hpds-post .post-progress,
.hpds-post #postForm {
  border-color: var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-post .post-intro {
  padding: clamp(14px, 2vw, 20px);
  line-height: 1.65;
}

.hpds-post .wizard {
  gap: 8px;
  margin-block: 16px;
}

.hpds-post .wizard .step {
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-md);
  background: #fff;
}

.hpds-post .post-progress {
  padding: 16px;
}

.hpds-post .post-progress-track {
  height: 9px;
  background: #f1e8eb;
}

.hpds-post #postProgressFill {
  background: var(--hpds-brand);
}

.hpds-post #postForm {
  padding: clamp(16px, 2.5vw, 26px);
}

.hpds-post #postForm h2 {
  color: var(--hpds-brand-dark);
  line-height: 1.4;
}

.hpds-post #postForm label {
  min-width: 0;
  color: var(--hpds-text);
  font-weight: 650;
  line-height: 1.55;
}

.hpds-post #postForm input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.hpds-post #postForm select,
.hpds-post #postForm textarea {
  min-height: 44px;
  border-color: #ded2d6;
  border-radius: 10px;
}

.hpds-post #postForm fieldset {
  min-width: 0;
  border-color: var(--hpds-border);
  border-radius: var(--hpds-radius-md);
}

.hpds-post #postForm .actions {
  gap: 10px;
}

.hpds-post #postForm .actions .btn {
  min-height: 46px;
  border-radius: 10px;
}

@media (max-width: 700px) {
  .hpds-search .header-inner,
  .hpds-property .header-inner,
  .hpds-post .header-inner {
    min-height: 60px;
  }

  .hpds-search #marketSearchForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .hpds-search #marketSearchForm input[name="q"],
  .hpds-search #marketSearchForm > button {
    grid-column: 1 / -1;
  }

  .hpds-search #results.grid {
    gap: 10px;
  }

  .hpds-search #results .card-body {
    padding: 10px;
  }

  .hpds-post #postForm {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .hpds-search #results.grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Shared legacy-page shell — only pages explicitly opted in with .hpds-theme use these rules. */
.hpds-theme {
  background-color: var(--hpds-page);
  color: var(--hpds-text);
}

.hpds-theme .header {
  border-bottom: 1px solid var(--hpds-border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(91, 12, 36, 0.045);
}

.hpds-theme .header-inner {
  min-height: 64px;
}

.hpds-theme .logo {
  color: var(--hpds-brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.hpds-theme .nav a {
  border-radius: 9px;
  transition: color 140ms ease, background-color 140ms ease;
}

.hpds-theme .nav a:hover,
.hpds-theme .nav a[aria-current="page"] {
  background: var(--hpds-surface-soft);
  color: var(--hpds-brand);
}

.hpds-theme .section {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(24px, 3vw, 36px);
}

.hpds-theme .panel,
.hpds-theme .card,
.hpds-theme .dashboard-shortcut,
.hpds-theme .provider-portal-card,
.hpds-theme .agency-quick-actions {
  border-color: var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background-color: var(--hpds-surface);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-theme .panel h1,
.hpds-theme .panel h2,
.hpds-theme .panel h3,
.hpds-theme .section h1,
.hpds-theme .section h2 {
  color: var(--hpds-brand-dark);
  line-height: 1.35;
}

.hpds-theme .btn {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.hpds-theme .btn:not(.secondary):not(.outline):not(.danger):not(.ghost) {
  background-color: var(--hpds-brand);
  border-color: var(--hpds-brand);
}

.hpds-theme .btn:not(.secondary):not(.outline):not(.danger):not(.ghost):hover {
  background-color: var(--hpds-brand-secondary);
  border-color: var(--hpds-brand-secondary);
}

.hpds-theme .btn.secondary,
.hpds-theme .btn.outline {
  border-color: var(--hpds-border);
  background-color: #fff;
  color: var(--hpds-brand-dark);
}

.hpds-theme .btn.secondary:hover,
.hpds-theme .btn.outline:hover {
  background-color: var(--hpds-surface-soft);
  border-color: #d5aeba;
}

.hpds-theme input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.hpds-theme select,
.hpds-theme textarea {
  border-color: #ded2d6;
  border-radius: var(--hpds-radius-sm);
}

.hpds-theme input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.hpds-theme select:focus,
.hpds-theme textarea:focus {
  border-color: var(--hpds-brand);
  outline: 3px solid rgba(139, 21, 56, 0.12);
  outline-offset: 1px;
}

.hpds-theme .notice,
.hpds-theme .empty {
  border-radius: var(--hpds-radius-md);
  line-height: 1.6;
}

.hpds-theme table {
  border-color: var(--hpds-border);
}

.hpds-theme th {
  color: var(--hpds-brand-dark);
}

.hpds-theme .footer {
  border-top: 1px solid var(--hpds-border);
  background: #fff;
}

.hpds-theme a {
  text-underline-offset: 0.16em;
}

@media (max-width: 700px) {
  .hpds-theme .header-inner {
    min-height: 58px;
  }

  .hpds-theme .section {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .hpds-theme .panel {
    border-radius: var(--hpds-radius-md);
  }

  .hpds-theme .btn {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpds-theme *,
  .hpds-theme *::before,
  .hpds-theme *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Rental and service marketplace page treatments. Workflow, states and permissions remain page-owned. */
.hpds-theme[data-page="rental-request"] .rental-request-hero,
.hpds-theme[data-page="vip-rental"] .hero,
.hpds-theme[data-page="services"] .services-hero,
.hpds-theme[data-page="service-board"] .hero,
.hpds-theme .provider-portal-hero {
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background:
    radial-gradient(ellipse at 90% 10%, rgba(178, 138, 74, 0.10), transparent 36%),
    linear-gradient(135deg, #f8edf1 0%, #fff 72%);
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-theme[data-page="rental-request"] .rental-request-eyebrow,
.hpds-theme[data-page="services"] .entry-kicker {
  color: var(--hpds-brand);
  font-weight: 750;
  letter-spacing: 0.02em;
}

.hpds-theme[data-page="rental-request"] .rental-request-form,
.hpds-theme[data-page="rental-request"] .rental-progress,
.hpds-theme[data-page="service-request"] .request-shell,
.hpds-theme[data-page="service-request"] .request-card,
.hpds-theme[data-page="service-board"] .service-profile,
.hpds-theme[data-page="service-provider-register"] .panel {
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background: #fff;
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-theme[data-page="rental-request"] .rental-step {
  border-color: var(--hpds-border);
  border-radius: var(--hpds-radius-md);
}

.hpds-theme[data-page="rental-request"] .rental-step.is-current {
  border-color: var(--hpds-brand);
  background: var(--hpds-surface-soft);
}

.hpds-theme[data-page="rental-request"] .rental-progress-track {
  overflow: hidden;
  border-radius: 999px;
  background: #f1e8eb;
}

.hpds-theme[data-page="rental-request"] .rental-step-actions,
.hpds-theme[data-page="service-request"] .request-actions {
  gap: 10px;
}

.hpds-theme[data-page="services"] .services-steps,
.hpds-theme[data-page="services"] .services-entry-grid,
.hpds-theme[data-page="service-provider-dashboard"] .provider-portal-grid {
  gap: 14px;
}

.hpds-theme[data-page="services"] .services-step,
.hpds-theme[data-page="services"] .services-entry {
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background: #fff;
  box-shadow: var(--hpds-shadow-sm);
}

.hpds-theme[data-page="services"] .services-entry {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.hpds-theme[data-page="services"] .services-entry:hover {
  transform: translateY(-2px);
  box-shadow: var(--hpds-shadow-md);
}

.hpds-theme[data-page="service-request"] .request-head h1,
.hpds-theme[data-page="service-board"] .hero h1,
.hpds-theme[data-page="service-provider-dashboard"] .provider-portal-hero h1 {
  color: var(--hpds-brand-dark);
  line-height: 1.3;
}

.hpds-theme[data-page="service-request"] .request-step {
  border-color: var(--hpds-border);
  border-radius: var(--hpds-radius-md);
}

.hpds-theme[data-page="service-request"] .request-step[aria-current="step"] {
  border-color: var(--hpds-brand);
  background: var(--hpds-surface-soft);
}

.hpds-theme[data-page="service-request"] .request-note,
.hpds-theme[data-page="service-request"] .request-login-note {
  border-radius: var(--hpds-radius-md);
  line-height: 1.65;
}

.hpds-theme[data-page="service-board"] .work-grid,
.hpds-theme[data-page="service-my-jobs"] .work-grid {
  gap: 14px;
}

.hpds-theme[data-page="service-provider-register"] .provider-register-nav {
  gap: 8px;
}

.hpds-theme[data-page="service-provider-dashboard"] .provider-portal-card {
  border: 1px solid var(--hpds-border);
  border-radius: var(--hpds-radius-lg);
  background: #fff;
  box-shadow: var(--hpds-shadow-sm);
}

@media (max-width: 700px) {
  .hpds-theme[data-page="rental-request"] .rental-request-hero,
  .hpds-theme[data-page="services"] .services-hero {
    border-radius: var(--hpds-radius-md);
  }

  .hpds-theme[data-page="rental-request"] .rental-step-actions,
  .hpds-theme[data-page="service-request"] .request-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hpds-theme[data-page="services"] .services-entry-grid,
  .hpds-theme[data-page="service-provider-dashboard"] .provider-portal-grid {
    gap: 10px;
  }
}
