.property-page {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 4rem;
}

.page-loading,
.page-error,
.grid-loading,
.grid-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.page-error {
  color: #f87171;
}

.opportunity-banner {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 184, 150, 0.4);
  background: linear-gradient(135deg, rgba(212, 184, 150, 0.12), rgba(212, 184, 150, 0.04));
}

.opportunity-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.opportunity-banner-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--gradient, var(--accent));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.opportunity-banner-inner strong {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
}

.opportunity-banner-inner p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.opportunity-banner-terms {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.25rem 1rem;
  margin: 0;
}

.opportunity-banner-terms li {
  font-size: 0.82rem;
  color: var(--text-muted);
  list-style: none;
  padding-left: 1rem;
  position: relative;
}

.opportunity-banner-terms li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.property-hero {
  padding: 2rem 0 2.5rem;
}

.property-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.property-hero-meta {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.prop-price-highlight {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
}

.property-specs-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.property-specs-inline li {
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16 / 10;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(10, 11, 15, 0.65);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.gallery-thumbs button {
  flex: 0 0 88px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}

.gallery-thumbs button.is-active {
  border-color: var(--accent);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-section,
.video-section,
.description-section {
  margin-bottom: 2.5rem;
}

.video-grid {
  display: grid;
  gap: 1.25rem;
}

.video-item video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.description-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 42rem;
}

.description-body p {
  margin: 0 0 1rem;
}

.proposal-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 32rem;
}

.proposal-card h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.proposal-card > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

#proposal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#proposal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#proposal-form input,
#proposal-form textarea {
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
}

#proposal-form input:focus,
#proposal-form textarea:focus {
  outline: none;
  border-color: rgba(212, 184, 150, 0.5);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.proposal-alt {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.proposal-alt a {
  color: var(--accent);
}

.property-image-link {
  display: block;
}

.property-image-fallback {
  background-image: linear-gradient(145deg, #1e2230, #2a3042);
}

.property-body h3 a {
  color: inherit;
}

.property-body h3 a:hover {
  color: var(--accent);
}