/* Guest-facing surfaces (public listings, property detail, landlord/agency
   profile) and the landing pricing section, aligned to the Ink & Blue system
   used by the landing page. Surfaces/text reuse the app tokens so dark mode
   keeps working; navy/blue accents ride on --gh-* locals that flip in dark. */

#pricing-section,
.public-listings-header,
.hz-hero,
.hz-profile,
.hz-agency-panel,
.public-listings-body,
.property-page-container,
.detail-signup-card {
  --gh-ink: #0c2340;
  --gh-accent: #2563eb;
  --gh-accent-dark: #1d4ed8;
  --gh-accent-soft: #eef3fe;
  --gh-accent-line: #dce6fa;
  --gh-line: rgba(30, 34, 41, 0.1);
  --gh-muted: #5b6472;
}
.dark-mode #pricing-section,
.dark-mode .public-listings-header,
.dark-mode .hz-hero,
.dark-mode .hz-profile,
.dark-mode .hz-agency-panel,
.dark-mode .public-listings-body,
.dark-mode .property-page-container,
.dark-mode .detail-signup-card {
  --gh-ink: #eef2f8;
  --gh-accent: #7aa7ff;
  --gh-accent-dark: #93c5fd;
  --gh-accent-soft: rgba(37, 99, 235, 0.16);
  --gh-accent-line: rgba(37, 99, 235, 0.35);
  --gh-line: #374151;
  --gh-muted: #9ca3af;
}

/* ---------------- Guest top bar ---------------- */
.public-listings-header {
  background: var(--off);
  border-bottom: 1px solid var(--gh-line);
  padding: 0 32px;
  height: 72px;
}
.public-listings-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.public-listings-header .btn {
  border-radius: 10px;
  font-size: 13.5px;
  padding: 9px 18px;
}
.public-listings-header .btn-o {
  background: var(--off);
  border-color: var(--gh-line);
  color: var(--tx);
  font-weight: 600;
}
.public-listings-header .btn-o:hover {
  border-color: var(--gh-ink);
  color: var(--gh-ink);
  background: var(--off);
  transform: none;
  box-shadow: none;
}
.public-listings-header .btn-p {
  background: #0c2340;
  box-shadow: none;
}
.public-listings-header .btn-p:hover {
  background: #0a1c33;
  box-shadow: none;
  transform: none;
}

/* Guest pages render in place at "/", so the browser Back button leaves the
   site. Keep a visible route back to the landing page next to the logo. */
.hz-back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 9px 14px;
  border: 1px solid var(--gh-line);
  border-radius: 10px;
  background: var(--off);
  color: var(--tx);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.hz-back-home svg {
  flex: none;
}
.hz-back-home:hover {
  border-color: var(--gh-ink);
  color: var(--gh-ink);
}
@media (max-width: 640px) {
  .hz-back-home {
    padding: 9px;
  }
  .hz-back-home span {
    display: none;
  }
}

/* ---------------- Guest listings hero ---------------- */
.hz-hero {
  background: var(--off);
  padding: 56px 32px 0;
}
.dark-mode .hz-hero {
  background: var(--bg);
}
.hz-hero-in {
  max-width: 1180px;
  margin: 0 auto;
}
.hz-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--gh-ink);
  margin: 0;
}
.hz-hero-sub {
  color: var(--gh-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 620px;
}
.hz-tabs {
  margin-top: 28px;
  gap: 24px;
  border-bottom: 1px solid var(--gh-line);
}
.hz-tab {
  margin-bottom: -1px;
  padding: 0 2px 14px;
  font-weight: 600;
  color: var(--gh-muted);
}
.hz-tab:hover {
  color: var(--gh-ink);
}
.hz-tab.active {
  color: var(--gh-ink);
  border-bottom-color: var(--gh-accent);
}

/* ---------------- Guest listings body ---------------- */
.public-listings-body {
  max-width: 1180px;
  padding: 28px 32px 72px;
}

/* Search bar: pill -> flat card, matching the landing search card */
.search-bar-modern {
  border-radius: 16px;
  border: 1px solid var(--gh-line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  padding: 8px 8px 8px 20px;
}
.search-bar-modern:hover {
  border-color: var(--gh-line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.search-segment:hover,
.search-segment:focus-within {
  background: var(--bg);
}
.search-divider {
  background: var(--gh-line);
}
.search-field-label {
  color: var(--gh-accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.search-btn-modern {
  background: #0c2340;
  border-radius: 10px;
  padding: 12px 24px;
}
.search-btn-modern:hover {
  background: #0a1c33;
  transform: none;
}
.search-btn-modern:active {
  transform: none;
}
.chip-btn {
  background: var(--off);
  border-color: var(--gh-line);
  color: var(--gh-muted);
  font-weight: 600;
}
.chip-btn:hover {
  border-color: var(--gh-accent);
  color: var(--gh-accent);
  background: var(--gh-accent-soft);
}
.chip-btn.active {
  background: var(--gh-accent);
  border-color: var(--gh-accent);
  color: #fff;
}
.filter-toggle {
  border-color: var(--gh-line);
  color: var(--gh-muted);
}
.filter-toggle.on {
  color: var(--gh-accent);
  border-color: var(--gh-accent);
  background: var(--gh-accent-soft);
}
.sort-clean {
  color: var(--gh-muted);
}
.more-filters-panel {
  border-radius: 16px;
  border-color: var(--gh-line);
}

/* ---------------- Guest listing cards ---------------- */
.public-listings-body .pc {
  border: 1px solid var(--gh-line);
  border-radius: 16px;
  background: var(--off);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}
.public-listings-body .pc:hover {
  border-color: #cfd6e0;
  box-shadow: 0 18px 32px -18px rgba(16, 24, 40, 0.28);
  transform: translateY(-2px);
}
.dark-mode .public-listings-body .pc:hover {
  border-color: #4b5563;
}
.public-listings-body .pc-thumb::after {
  display: none;
}
.public-listings-body .verified-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #0c2340;
  font-weight: 600;
  padding: 4px 10px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.18);
}
.public-listings-body .verified-badge svg,
.public-listings-body .verified-badge i {
  color: #2563eb;
}
.dark-mode .public-listings-body .verified-badge {
  background: rgba(20, 27, 38, 0.92);
  color: #eef2f8;
}
.amenity-tag {
  background: var(--bg);
  border-color: var(--gh-line);
  color: var(--gh-muted);
  font-weight: 500;
}
.public-listings-body .badge.bg,
.hz-profile .badge.bg {
  background: var(--gh-accent-soft);
  color: var(--gh-accent-dark);
  border: 1px solid var(--gh-accent-line);
}
.public-listings-body .pc-price {
  color: var(--gh-ink);
}
.public-listings-body .pc-arrow {
  background: var(--gh-accent-soft);
  color: var(--gh-ink);
}
.public-listings-body .pc:hover .pc-arrow {
  background: #0c2340;
  color: #fff;
}
.pc-owner a,
.pc-loc svg {
  color: var(--gh-accent);
}

/* ---------------- Property detail ---------------- */
.property-page-container {
  padding: 28px 32px 72px;
  max-width: 1180px;
}
.property-page-container .card {
  border-radius: 16px;
  border-color: var(--gh-line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.property-page-container .card:hover {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.carousel-wrapper {
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}
.detail-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.5px;
  color: var(--gh-ink);
}
.property-price {
  color: var(--gh-ink);
  font-weight: 800;
}
.detail-section {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.2px;
  color: var(--gh-ink);
}
.thumbnail:hover,
.thumbnail.active {
  border-color: var(--gh-accent);
}
/* Locked-location / locked-contact panels: warning amber & red -> ink + blue */
.property-page-container .info-box {
  background: var(--gh-accent-soft) !important;
  border-left-color: var(--gh-accent) !important;
}
.property-page-container [style*='color: var(--wa)'],
.property-page-container [style*='color: var(--da)'] {
  color: var(--gh-ink) !important;
}
/* Share panel: navy hairline border -> soft blue */
.property-page-container .card[style*='border:1px solid var(--p)'] {
  background: var(--gh-accent-soft) !important;
  border-color: var(--gh-accent-line) !important;
}

/* Guest sign-up prompt on the detail page */
.detail-signup-card {
  background: linear-gradient(135deg, #0c2340 0%, #2563eb 100%);
  border: none;
}
.detail-signup-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: #fff;
}
.detail-signup-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 auto 20px;
  max-width: 400px;
}
.detail-signup-card .btn-p {
  background: #fff;
  color: #0c2340;
}
.detail-signup-card .btn-p:hover {
  background: #eff6ff;
  transform: none;
  box-shadow: none;
}
.detail-signup-card .btn-o {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.detail-signup-card .btn-o:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ---------------- Landlord / agency profile ---------------- */
.hz-profile {
  background: var(--off);
  border-bottom: 1px solid var(--gh-line);
  box-shadow: none;
}
.hz-profile-name-row h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.3px;
  color: var(--gh-ink);
}
.hz-profile-avatar {
  background: #0c2340;
  box-shadow: none;
}
.hz-section-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--gh-ink);
}
.hz-agency-panel {
  border-color: var(--gh-line);
}
.hz-agency-avatar {
  background: var(--gh-accent-soft);
  color: var(--gh-accent);
}
.hz-agency-head h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--gh-ink);
}

/* ---------------- Pricing section ---------------- */
#pricing-section {
  background: var(--off);
}
.pz-trial-banner {
  background: var(--gh-accent-soft);
  border: 1px solid var(--gh-accent-line);
}
.pz-trial-icon {
  background: #0c2340;
}
.pz-trial-text strong {
  color: var(--gh-ink);
}
.pz-trial-text span {
  color: var(--gh-muted);
}
.pz-calc-card,
.pz-tier-card,
.pz-service-item,
.pz-faq-item,
.pz-calc-input {
  border-color: var(--gh-line);
}
.pz-calc-amount,
.pz-calc-tier {
  color: var(--gh-ink);
}
.pz-calc-slider::-webkit-slider-thumb,
.pz-calc-slider::-moz-range-thumb {
  background: #0c2340;
  box-shadow: 0 2px 8px rgba(12, 35, 64, 0.25);
}
.pz-tier-card:hover {
  border-color: var(--gh-accent);
  box-shadow: 0 8px 24px -12px rgba(16, 24, 40, 0.2);
}
.pz-tier-active {
  border-color: var(--gh-accent) !important;
  background: var(--gh-accent-soft);
  box-shadow: 0 8px 24px -12px rgba(37, 99, 235, 0.28);
}
.pz-tier-active .pz-tier-range,
.pz-tier-active .pz-tier-price {
  color: var(--gh-ink);
}
.pz-tier-includes svg {
  color: var(--gh-accent);
}
.pz-service-item:hover {
  border-color: var(--gh-accent);
  box-shadow: 0 8px 24px -16px rgba(16, 24, 40, 0.22);
}
.pz-check {
  color: var(--gh-accent);
}
.pz-faq-item[open] {
  border-color: var(--gh-accent);
}
.pz-faq-item[open] > .pz-faq-q::after {
  color: var(--gh-accent);
}
.pz-prop-savings {
  color: var(--gh-accent-dark);
  background: var(--gh-accent-soft);
}
/* Closing banner: one flat navy card carries the CTA and the trust badges,
   so the section ends on a single panel instead of two competing ones. */
.pz-cta-card {
  background: #0c2340;
  padding: 48px clamp(20px, 4vw, 40px) 36px;
}
.pz-final-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
/* landing.css's `.lp-home h3` (0,1,1) outranks a bare `.pz-cta-title` and
   paints this heading in landing ink on the navy card; two classes settle it. */
.pz-final-card .pz-cta-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 30px);
  color: #fff;
}
.pz-final-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.pz-final-badge-icon {
  width: 22px;
  height: 22px;
  color: #93c5fd;
}
.pz-final-badge strong {
  font-size: 13px;
  color: #fff;
}
.pz-final-badge span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}
.pz-btn-primary {
  background: #0c2340;
  box-shadow: 0 2px 6px rgba(12, 35, 64, 0.18);
}
.pz-btn-primary:hover {
  background: #0a1c33;
  box-shadow: 0 8px 20px -6px rgba(12, 35, 64, 0.35);
}
.pz-btn-outline:hover {
  border-color: #0c2340;
  color: #0c2340;
  background: var(--gh-accent-soft);
}
.pz-cta-actions .pz-btn-primary {
  background: #fff;
  color: #0c2340;
}
.pz-cta-actions .pz-btn-primary:hover {
  background: #eff6ff;
}
.pz-cta-actions .pz-btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.pz-cta-actions .pz-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* HOMu AI add-on: sits on navy in both themes, so every child sets its own
   light colour instead of inheriting the page ink. */
.pz-ai-addon {
  margin: 28px 0;
  background: #0c2340;
  border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  color: #f8fafc;
}
.pz-ai-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.pz-ai-intro {
  max-width: 640px;
}
.pz-ai-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.45);
  padding: 6px 14px;
  border-radius: 20px;
}
.pz-ai-intro h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  margin: 10px 0 6px;
  color: #f8fafc;
}
.pz-ai-lede {
  margin: 0;
  color: #bfdbfe;
  font-size: 14px;
  line-height: 1.6;
}
.pz-ai-allowance {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 18px;
  text-align: right;
}
.pz-ai-allowance-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}
.pz-ai-allowance strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  color: #fff;
}
.pz-ai-allowance strong span {
  font-weight: 600;
  color: #bfdbfe;
}
.pz-ai-allowance > span:last-child {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #93c5fd;
}
.pz-ai-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 22px;
}
.pz-ai-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
}
.pz-ai-card-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}
.pz-ai-card-title {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}
.pz-ai-card-price {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  color: #f8fafc;
}
.pz-ai-card-per {
  margin-top: 2px;
  font-size: 12px;
  color: #93c5fd;
}
.pz-ai-card-lines {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pz-ai-card-lines li {
  font-size: 12.5px;
  line-height: 1.5;
  color: #bfdbfe;
}
.pz-ai-card-lines strong {
  color: #f8fafc;
}
.pz-ai-costs {
  margin-top: 14px;
  font-size: 12px;
  color: #93c5fd;
}

@media (max-width: 860px) {
  .pz-final-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pz-ai-allowance {
    width: 100%;
    text-align: left;
  }
  .hz-hero {
    padding: 40px 20px 0;
  }
  .hz-hero h1 {
    font-size: 34px;
  }
  .public-listings-body {
    padding: 20px 16px 56px;
  }
  .public-listings-header {
    padding: 0 16px;
    height: 64px;
  }
  .detail-title {
    font-size: 30px;
  }
}
