:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f9fafb;
  color: #111827;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  max-width: 420px;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.card img {
  border-radius: 16px;
}

h1 {
  margin: 16px 0 8px;
  font-size: 1.5rem;
}

.lead {
  margin: 0 0 12px;
  color: #374151;
  line-height: 1.5;
}

.muted,
.fine {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
}

.fine {
  margin-top: 20px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* Privacy policy and other prose pages */
body.policy-page {
  display: block;
  padding: 32px 20px 48px;
}

.policy {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  text-align: left;
}

.policy h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.policy .updated {
  margin: 0 0 28px;
  color: #6b7280;
  font-size: 0.9rem;
}

.policy h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.policy p,
.policy li {
  color: #374151;
  line-height: 1.6;
}

.policy ul {
  margin: 8px 0 16px;
  padding-left: 1.25rem;
}

.policy a {
  color: #1e3a8a;
}

.policy .back {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Guest property web view (/property/{slug})                         */
/* ------------------------------------------------------------------ */

body.guest-property-page {
  display: block;
  padding: 0 0 120px;
  place-items: unset;
}

.guest-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.guest-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
}

.guest-brand img {
  border-radius: 10px;
}

.guest-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.guest-loading,
.guest-error {
  text-align: center;
  padding: 48px 16px;
}

.guest-error .btn {
  margin-top: 16px;
}

.guest-error-home {
  display: inline-block;
  margin-top: 14px;
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.guest-hero-wrap,
.guest-hero-placeholder {
  margin: 16px -16px 0;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #1e3a5f);
}

.guest-hero {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.guest-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.guest-title-block {
  padding: 20px 0 8px;
}

.guest-title-block h1 {
  margin: 8px 0 6px;
  font-size: 1.65rem;
  line-height: 1.2;
  text-align: left;
}

.guest-address {
  margin: 0;
  color: #374151;
  line-height: 1.45;
  text-align: left;
}

.guest-shared {
  margin: 8px 0 0;
  font-size: 0.85rem;
  text-align: left;
}

.guest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.guest-badge-verified {
  background: #d1fae5;
  color: #065f46;
}

.guest-badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.guest-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px 18px;
  margin-top: 16px;
  text-align: left;
}

.guest-section-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.3;
}

.guest-section-title-dark {
  color: #111827;
}

.guest-body {
  margin: 0;
  color: #111827;
  line-height: 1.55;
  font-size: 0.95rem;
}

.guest-photo-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.guest-photo-thumb {
  flex: 0 0 auto;
  border: none;
  padding: 0;
  background: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  width: 140px;
  height: 105px;
}

.guest-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guest-link-btn {
  display: inline-block;
  margin-top: 12px;
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
}

.guest-link-btn:hover {
  text-decoration: underline;
}

.guest-contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.guest-app-cta {
  background: #f9fafb;
}

.guest-disclaimer {
  margin: 20px 4px 0;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.45;
  text-align: left;
}

.guest-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

.guest-footer a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
}

.guest-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -4px 20px rgba(17, 24, 39, 0.08);
}

.guest-sticky-primary {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  box-sizing: border-box;
}

.guest-sticky-primary-disabled {
  background: #9ca3af;
  pointer-events: none;
}

.guest-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.guest-store-row-compact {
  margin-top: 10px;
}

.guest-store-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 120px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1e3a8a;
  color: #1e3a8a;
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-sizing: border-box;
}

.guest-store-btn-disabled {
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

.guest-open-app-link {
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
  margin-top: 2px;
}

.guest-open-app-link:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

.guest-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.guest-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}

.guest-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.guest-lightbox-caption {
  margin: 12px 0 0;
  color: #e5e7eb;
  font-size: 0.9rem;
  text-align: center;
  max-width: 480px;
}

body.guest-lightbox-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .guest-hero-wrap,
  .guest-hero-placeholder {
    margin: 20px 0 0;
    border-radius: 16px;
  }

  .guest-hero,
  .guest-hero-placeholder {
    border-radius: 16px;
  }

  .guest-sticky {
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
  }
}
