/*
 * Global styles for the property data platform. The design loosely draws
 * inspiration from modern real‑estate portals but is entirely custom coded.
 */

/* Color palette */
:root {
  --primary-color: #013d38; /* deep teal used for backgrounds */
  --secondary-color: #01796f; /* slightly lighter teal accent */
  --accent-color: #2bbf93; /* bright teal for buttons and highlights */
  --light-bg: #f5f7f8;
  --dark-text: #0a1e23;
  --muted-text: #4b6268;
  --card-bg: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
}

/* Utility container to limit width and center content */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('https://source.unsplash.com/1600x900/?real-estate,house');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 61, 56, 0.75);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.search-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.search-bar input {
  flex: 2 1 200px;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  outline: none;
}
.search-bar select {
  flex: 1 1 150px;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background: #f0f2f3;
  color: var(--dark-text);
}
.search-bar button {
  flex: 0 0 auto;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.search-bar button:hover {
  background-color: var(--secondary-color);
}

/* Lead types section */
.lead-types {
  padding: 4rem 0;
  text-align: center;
}
.lead-types h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.lead-types .subtitle {
  color: var(--muted-text);
  margin-bottom: 2rem;
}
.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}
.lead-item {
  background: var(--card-bg);
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8ea;
  border-radius: 4px;
  font-weight: 500;
  cursor: default;
  transition: background 0.2s;
}
.lead-item:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Features section */
.features {
  background-color: var(--primary-color);
  color: #fff;
  padding: 4rem 0;
}

/* Secondary header used on search and property pages */
.secondary-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 0;
}
.secondary-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.secondary-header a.logo {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
}
.secondary-header nav a {
  color: #cfe3e1;
  margin-left: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.secondary-header nav a:hover {
  color: #fff;
}

/* Search results hero section */
.search-results-hero {
  padding: 2rem 0 1rem;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}
.search-results-hero h1 {
  margin-bottom: 1rem;
}

/* Search results layout */
.search-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 500px;
}
.map-wrapper {
  flex: 1 1 50%;
  min-height: 400px;
}
.results-panel {
  /* give the results list a soft background and border on large screens */
  flex: 1 1 45%;
  padding: 1rem;
  overflow-y: auto;
  background: #f9fbfb;
  border-left: 1px solid #e2e8ea;
}
.results-panel h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}
.property-card {
  border: 1px solid #e2e8ea;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f9fbfb;
  /* subtle shadow for depth */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.property-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.property-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}
.property-card h3 a:hover {
  text-decoration: underline;
}
.property-card .card-meta {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.property-card .value {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}
.property-card .tags {
  display: flex;
  gap: 0.5rem;
}

/* Tags styling reused across cards */
.tag {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Property page header */
.property-header {
  background-color: var(--light-bg);
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.property-header h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--primary-color);
}
.property-header .subtitle {
  margin-top: 0.25rem;
  color: var(--muted-text);
}

/* Tabs */
.tabs {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  /* allow wrapping and add a subtle underline */
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8ea;
}
.tab {
  background: #f0f4f4;
  border: 1px solid #e2e8ea;
  border-bottom: none;
  padding: 0.5rem 1rem;
  border-radius: 4px 4px 0 0;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab.active {
  /* active tab appears connected to content */
  background: var(--card-bg);
  color: var(--primary-color);
  border-color: #e2e8ea #e2e8ea #fff #e2e8ea;
}
.tab:hover:not(.active) {
  background: #e2eaea;
}

/* Tab content container */
.tab-content-container {
  background: #fff;
}
.tab-pane {
  padding: 2rem 0;
}

/* Property info layout */
.property-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.property-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
}
.property-details {
  flex: 1 1 300px;
}
.property-details .value {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}
.detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.detail-list li {
  margin-bottom: 0.25rem;
}
.cta-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.primary-btn, .secondary-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.primary-btn {
  background-color: var(--accent-color);
  color: #fff;
}
.secondary-btn {
  background-color: #e5f5f1;
  color: var(--secondary-color);
}
.primary-btn:hover {
  background-color: var(--secondary-color);
}
.secondary-btn:hover {
  background-color: #d2ebe5;
}

/* Owner page styling */
.owner-card {
  background: #f9fbfb;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e2e8ea;
  margin-bottom: 2rem;
  /* subtle shadow for depth */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.note-box {
  background: #eaf7f5;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Data table styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.data-table th, .data-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5eaea;
  text-align: left;
  font-size: 0.9rem;
}
.data-table th {
  background: #f5f7f8;
  font-weight: 600;
}
.data-table tbody tr:nth-child(odd) {
  background: #f9fbfb;
}

/* History page summary */
.history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.history-summary .summary-item {
  background: #f0f4f4;
  padding: 1rem;
  border-radius: 6px;
  flex: 1 1 200px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.history-summary .summary-item h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}
.history-summary .summary-item p {
  margin: 0;
  color: var(--muted-text);
}

/* Market tab summary */
.market-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.market-summary .summary-item {
  background: #f0f4f4;
  padding: 1rem;
  border-radius: 6px;
  flex: 1 1 200px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.market-summary .summary-item h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary-color);
}
.market-summary .summary-item p {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.9rem;
}
.market-summary .summary-item small {
  color: var(--secondary-color);
  font-size: 0.8rem;
}

/* Comps map small version */
.map-small {
  /* Removed map container styling since the map is no longer shown.  Hide it entirely. */
  display: none;
}

/* Also hide any element with id compsMap in case it is present */
#compsMap {
  display: none;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.feature {
  flex: 1 1 250px;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.feature p {
  color: #cfe3e1;
  font-size: 0.95rem;
}

/* Testimonials section */
.testimonials {
  padding: 4rem 0;
  text-align: center;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-align: left;
}
.testimonial .quote {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--dark-text);
}
.testimonial .author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Call to action section */
.cta {
  position: relative;
  background-image: url('https://source.unsplash.com/1200x600/?neighborhood,real-estate');
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 61, 56, 0.8);
  z-index: 0;
}
.cta .container {
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.cta p {
  margin-bottom: 1.5rem;
  color: #e0f2f0;
}
.cta-btn {
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}
.cta-btn:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding-top: 3rem;
  font-size: 0.9rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer-about h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--accent-color);
}
.footer-about p {
  margin-top: 0.5rem;
  max-width: 300px;
  color: #cfe3e1;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-col h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.25rem;
}
.footer-col a {
  color: #cfe3e1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}
.social-links {
  display: flex;
  gap: 0.5rem;
}
.social-links a {
  font-size: 1.3rem;
  color: #cfe3e1;
  transition: color 0.2s;
}
.social-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  color: #cfe3e1;
}
.footer-bottom a {
  color: #cfe3e1;
  text-decoration: none;
  margin-left: 0.5rem;
}
.footer-bottom a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .feature-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  .features {
    padding: 3rem 0;
  }
  .cta h2 {
    font-size: 1.75rem;
  }
}