/* Reset default spacing */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Global typography */
h1, h2, h3 {
    color: #2c3e50;
    font-weight: 700;
}

p, li {
    font-size: 1.1rem;
    color: #222222;
}

/* Hero section */
.hero {
    height: 100vh;
    background-image: url('images/Rancho.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    padding-top: 80px;
    margin-top: 20px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1, .hero h2, .hero h3, .hero p, .hero li {
    color: #FFFFFF;
}

.hero p {
    text-align: center;
    max-width: 700px;
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Feature buttons */
.feature-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.feature-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    backdrop-filter: blur(5px);
}

.feature-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: #333;
}

/* Listings section */
.listings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.listing-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.listing-card img {
    width: 100%;
    height: auto;
}

.listing-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
}

.listing-card p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

/* Footer */
.site-footer {
    background-color: #333333;
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 1rem;
    margin-top: 3rem;
    border-top: 4px solid #444444;
}

.site-footer p {
    margin: 0.5rem 0;
}

.site-footer a {
    color: #eee;
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    padding-top: 1rem;
    font-size: 0.95rem;
}

.sidebar-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.sidebar-logo img {
    max-height: 80px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    margin: auto;
    display: block;
}

.sidebar-item a {
    padding: 0.3rem 0;
    display: block;
    color: #007bff;
    text-decoration: none;
}

.sidebar-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Contact Form Styling */
form {
  max-width: 500px;
  margin: 1.5rem auto;
  padding: 1rem;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

form div {
  margin-bottom: 0.75rem;
}

form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

form input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  height: 60px;
  resize: vertical;
}

form button {
  padding: 0.5rem 1.5rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #0056b3;
}

/* Table of contents and cards */
.toc {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
}

.card, .panel {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table, th, td {
    border: 1px solid #ddd;
    padding: 12px;
}

th {
    background-color: #f3f3f3;
}

/* Template Suggestion Section */

.template-container {
    text-align: center;
    margin: 3rem 1rem;
}

.template-message {
    font-size: 1.3rem;
    color: #222222;
    margin-bottom: 1.5rem;
    font-family: 'Georgia', serif;
}

/* Green Gradient Button (default style) */
.template-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.template-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Luxury Black Button */
.luxury-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.3s, transform 0.3s;
}

.luxury-button:hover {
    background: #444444;
    transform: translateY(-3px);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .hero {
    padding-top: 40px;
    height: auto;
  }

  .feature-buttons {
    flex-direction: column;
    align-items: center;
  }

  .listing-card {
    width: 90%;
  }

  .sidebar {
    font-size: 1rem;
  }

  form {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  p, li {
    font-size: 1rem;
  }

  .template-message {
    font-size: 1.1rem;
  }

  .feature-button {
    padding: 0.5rem 1rem;
  }
}

/* Market Insights Section */

.market-container {
    text-align: center;
    margin: 3rem 1rem;
}

.market-message {
    font-size: 1.3rem;
    color: #222222;
    margin-bottom: 1.5rem;
    font-family: 'Georgia', serif;
}

/* Dark button style for Market Insights */
.market-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: #333333;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, transform 0.3s;
}

.market-button:hover {
    background-color: #555555;
    transform: scale(1.05);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}

.gallery img {
  flex: 1;
  min-width: 300px;
  max-width: 48%;
  height: 300px;              /* fixed height */
  object-fit: cover;          /* crop edges but keep proportion */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.kpi-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}

.kpi-card {
  flex: 1;
  min-width: 200px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
}

.kpi-label {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 4px;
}


