/* Base styling inspired by the Creative Listing brand */

/* Global resets and variables */
:root {
  --primary-bg: #ffffff;
  --header-bg: #1B1B1E;
  --primary-color: #007bff;
  --text-dark: #1B1B1E;
  --text-light: #ffffff;
  --accent-color: #2188b6;
  --border-radius: 8px;
  font-family: Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

header {
  background-color: var(--header-bg);
  color: var(--text-light);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

nav a {
  color: var(--text-light);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #f5f8fa;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #555;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  margin: 0 0.5rem;
  transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

/* Forms */
.form-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  background-color: #fafafa;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
}

.form-container .btn-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Dashboard */
.dashboard {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.dashboard h2 {
  margin-bottom: 1rem;
}

.dashboard-summary {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.summary-card {
  flex: 1 1 250px;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 1rem;
  background-color: #ffffff;
  text-align: center;
}

/* Listing cards */
.listings-container {
  max-width: 900px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.listing-card {
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 1rem;
  background-color: #ffffff;
}

.listing-card h3 {
  margin-bottom: 0.5rem;
}

.listing-card .price {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.listing-card .financing {
  font-size: 0.9rem;
  color: #666;
}

/* Property details */
.property-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.property-header {
  margin-bottom: 1rem;
}

.property-details {
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 1rem;
  background-color: #ffffff;
}

.property-details h3 {
  margin-bottom: 0.5rem;
}

.property-details .info {
  margin-bottom: 1rem;
}

.footer {
  padding: 1rem 2rem;
  background-color: var(--header-bg);
  color: var(--text-light);
  text-align: center;
  margin-top: 2rem;
}
