/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

  /* Global background image */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", sans-serif;
  color: #f5f5f5;

  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* nice subtle parallax */
  background-color: #000;       /* fallback while image loads */
}


/* subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* adjust darkness here */
  z-index: -1;
}


/* ========== LAYOUT ========== */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

/* ========== HEADER ========== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f5f5f5;
}

.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.78rem;
  color: #d4d4d4;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav a:hover {
  color: #ffffff;
}

/* ========== HERO ========== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.6rem;
  margin-top: 2.3rem;
  margin-bottom: 2.6rem;
  align-items: flex-start;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text p {
  font-size: 0.95rem;
  color: #d4d4d4;
  margin-bottom: 1.1rem;
}

.hero-text strong {
  font-weight: 600;
  color: #ffffff;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #e5e5e5;
}

.hero-bullets li::before {
  content: "•";
  margin-right: 0.45rem;
  color: #9ca3af;
}

/* ========== CARD / FORM ========== */

.hero-card {
  background: radial-gradient(circle at top left, #2a2a2a 0, #060606 60%);
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.95);
  border: 1px solid #3f3f46;
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-card-sub {
  font-size: 0.88rem;
  color: #d4d4d4;
  margin-bottom: 1rem;
}

/* form */

form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

label {
  font-size: 0.8rem;
  color: #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

input {
  border-radius: 0.5rem;
  border: 1px solid #4b4b4b;
  padding: 0.55rem 0.6rem;
  font-size: 0.9rem;
  background: rgba(15, 15, 15, 0.9);
  color: #f5f5f5;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  outline: none;
  border-color: #f5f5f5;
  box-shadow: 0 0 0 1px #f5f5f5;
}

.primary-btn {
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  border: 1px solid #f5f5f5;
  background: transparent;
  color: #f5f5f5;
  font-size: 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.primary-btn.full-width {
  width: 100%;
  text-align: center;
}

.primary-btn:hover {
  background: #f5f5f5;
  color: #000;
}

.tiny-note {
  font-size: 0.72rem;
  color: #9ca3af;
}

.form-message {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  min-height: 1.3em;
}

.form-message.error {
  color: #fca5a5;
}

.form-message.success {
  color: #bbf7d0;
}

/* ========== SECTIONS ========== */

.section {
  margin-bottom: 2.6rem;
}

.section h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #f5f5f5;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.step {
  background: rgba(10, 10, 10, 0.95);
  border-radius: 0.9rem;
  padding: 1rem;
  border: 1px solid #3f3f46;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #18181b;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.step p {
  font-size: 0.88rem;
  color: #d4d4d4;
}

/* Why section */

.section-muted {
  background: radial-gradient(circle at top, #141414 0, #050505 70%);
  border-radius: 0.9rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid #3f3f46;
}

.section-muted h2 {
  margin-bottom: 0.8rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.why-grid h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.why-grid p {
  font-size: 0.88rem;
  color: #d4d4d4;
}

/* ========== FOOTER ========== */

.footer {
  border-top: 1px solid #27272a;
  padding: 0.85rem 1.25rem 1.3rem;
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
}

/* ========== MOBILE ========== */

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .page {
    padding-inline: 1rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }
}

/* === Listings section === */

.section-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
}

.section-sub {
  font-size: 0.85rem;
  color: #a3a3a3;
}

.listing-form-card {
  background: rgba(10, 10, 10, 0.95);
  border-radius: 0.9rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid #3f3f46;
  margin-bottom: 1.3rem;
}

.listing-form-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.4rem;
}

.input-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

textarea {
  border-radius: 0.5rem;
  border: 1px solid #4b4b4b;
  padding: 0.55rem 0.6rem;
  font-size: 0.9rem;
  background: rgba(15, 15, 15, 0.9);
  color: #f5f5f5;
  resize: vertical;
}

textarea::placeholder {
  color: #9ca3af;
}

textarea:focus {
  outline: none;
  border-color: #f5f5f5;
  box-shadow: 0 0 0 1px #f5f5f5;
}

.listings-feed-wrapper {
  margin-top: 0.8rem;
}

.feed-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.7rem;
  color: #e5e5e5;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.listing-card {
  background: rgba(8, 8, 8, 0.95);
  border-radius: 0.8rem;
  padding: 0.75rem 0.8rem 0.85rem;
  border: 1px solid #3f3f46;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
}

.listing-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.listing-title {
  font-weight: 600;
}

.listing-price {
  font-weight: 600;
}

.listing-meta {
  font-size: 0.78rem;
  color: #a3a3a3;
}

.listing-description {
  font-size: 0.85rem;
  color: #e5e5e5;
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #a3a3a3;
}

.listing-contact {
  text-decoration: none;
  color: #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}

.listing-contact:hover {
  color: #ffffff;
}

/* Mobile tweak */
@media (max-width: 768px) {
  .input-row {
    grid-template-columns: 1fr;
  }
}

.listing-images {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin-bottom: 0.6rem;
}

.listing-img {
  width: 100%;
  max-width: 110px;
  height: 120px;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid #333;
}

/* ========== MESSAGES ========== */

.messages-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 1rem;
  margin-top: 1rem;
}

.conversations-panel,
.chat-panel {
  background: rgba(10, 10, 10, 0.95);
  border-radius: 0.9rem;
  border: 1px solid #3f3f46;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.conversations-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 320px;
  overflow-y: auto;
}

.conversation-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.6rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.conversation-row:hover {
  border-color: #3f3f46;
  background: rgba(24, 24, 27, 0.9);
}

.conversation-row.active {
  border-color: #f5f5f5;
  background: rgba(24, 24, 27, 0.95);
}

.conversation-title {
  font-size: 0.85rem;
  color: #f5f5f5;
}

.conversation-preview {
  font-size: 0.78rem;
  color: #a3a3a3;
}

.chat-header {
  font-size: 0.86rem;
  font-weight: 500;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #27272a;
  margin-bottom: 0.5rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.2rem;
  font-size: 0.85rem;
}

.chat-message-row {
  display: flex;
}

.chat-message-row.self {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 70%;
  padding: 0.45rem 0.6rem;
  border-radius: 0.8rem;
  background: #18181b;
  border: 1px solid #3f3f46;
  color: #f5f5f5;
}

.chat-message-row.self .chat-bubble {
  background: #f5f5f5;
  color: #050505;
}

.chat-meta {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: #a3a3a3;
}

.chat-form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.chat-form input {
  flex: 1;
}

.success-message {
  color: #00c853;
  background: rgba(0, 200, 83, 0.12);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-top: 0.8rem;
  border: 1px solid #00c853;
  font-size: 0.9rem;
}

.error-message {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.12);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-top: 0.8rem;
  border: 1px solid #ff5252;
  font-size: 0.9rem;
}


@media (max-width: 768px) {
  .messages-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-panel {
    margin-top: 0.7rem;
  }
}


