/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Links */
a {
  color: #2c5aa0;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #f39c12;
  text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #2c3e50;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 28px;
  margin: 0 0 1em 0;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

h4 {
  font-size: 20px;
  margin-top: 20px;
  color: #2980b9;
}

/* Logo */
.logo {
  text-align: center;
  margin: 2em 0 1.5em 0;
}

.logo img {
  max-width: 100%;
  height: auto;
  width: 450px;
  border: none;
}

/* Instructions Section */
.instructions {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 2em;
  margin: 2em 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.instructions p {
  font-size: 16px;
  margin-bottom: 1em;
  font-weight: 500;
}

.instructions ul {
  list-style-type: none;
  padding-left: 0;
}

.instructions li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
}

.instructions li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

/* Property Listings */
.sale-listings, .property-listings {
  padding: 0;
}

ol {
  counter-reset: property-counter;
  list-style: none;
  padding-left: 0;
}

ol li {
  counter-increment: property-counter;
  margin-bottom: 2em;
  padding: 1.5em;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
}

ol li::before {
  content: counter(property-counter);
  position: absolute;
  top: 1em;
  left: 1em;
  background: #364B5E;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.sold, .sale-date {
  font-weight: bold;
  color: #e74c3c;
  font-size: 16px;
  margin-bottom: 10px;
  display: block;
  margin-left: 45px;
}

/* Property Details Table */
table.sale, table.property-info {
  width: 100%;
  max-width: 800px;
  margin: 0 0 1em 45px;
  border-collapse: collapse;
  background: #fafafa;
  border-radius: 6px;
  overflow: hidden;
}

table.sale tr:nth-child(even), table.property-info tr:nth-child(even) {
  background: #f5f5f5;
}

table.sale td, table.property-info td {
  padding: 12px 15px;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}

table.sale td:first-child, table.property-info td:first-child {
  font-weight: 600;
  color: #2c3e50;
  width: 25%;
  background: #ecf0f1;
}

td.p1 {
  font-weight: 600;
  color: #2c3e50;
  width: 25%;
  background: #ecf0f1;
}

td.p2 {
  font-weight: 600;
  color: #2c3e50;
  width: 25%;
  background: #ecf0f1;
}

.price {
  font-weight: bold;
  font-size: 18px;
  color: #27ae60;
}

/* Results Summary */
.total {
  background: #354A5E;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-block;
  margin-bottom: 1.5em;
  font-size: 15px;
}

/* Navigation */
nav {
  text-align: center;
  margin: 3em 0 2em 0;
  padding: 20px;
  background: #364B5E;
  border-radius: 8px;
}

nav a, nav span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  border-radius: 4px;
  font-weight: 500;
}

nav a {
  background: #3498db;
  color: white;
}

nav a:hover {
  background: #2980b9;
  text-decoration: none;
}

nav span {
  background: #e74c3c;
  color: white;
}

/* Year Links */
.year-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 2em 0;
}

.year-link {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.year-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.year-link h4 {
  margin: 0 0 10px 0;
  color: #2c5aa0;
}

.year-link p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Footer */
.footer {
  background: #34495e;
  color: #bdc3c7;
  text-align: center;
  padding: 20px;
  margin-top: 3em;
  border-top: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .logo img {
    width: 300px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  table.sale {
    font-size: 14px;
    margin-left: 20px;
  }
  
  ol li {
    padding: 1em;
  }
  
  ol li::before {
    top: 0.8em;
    left: 0.8em;
  }
  
  .sold {
    margin-left: 35px;
  }
  
  .year-links {
    grid-template-columns: 1fr;
  }
}
