/* Hero Section Styles */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/hero-placeholder.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
  margin-top: 70px; /* To account for fixed header */
}

.hero-content {
  max-width: 800px;
  width: 100%;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--accent-font);
  font-style: italic;
}

/* Search Bar Styles */
.search-bar {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gold);
}

.search-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .search-inputs {
    flex-direction: row;
    align-items: center;
  }
}

.search-group {
  flex: 1;
}

.search-group input,
.search-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.9);
  font-family: var(--body-font);
}

.search-group input:focus,
.search-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.search-bar .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .search-bar .btn {
    width: auto;
  }
}

/* Featured Listings Section */
.featured-listings {
  padding: 5rem 0;
  background-color: var(--white);
}

/* About Agent Section */
.about-agent {
  padding: 5rem 0;
  background-color: var(--cream);
}

.agent-image {
  width: 100%;
  height: 400px;
  background-color: var(--charcoal);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .agent-image {
    margin-bottom: 0;
  }
}

.agent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Recent Sales Section */
.recent-sales {
  padding: 5rem 0;
  background-color: var(--white);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--cream);
  text-align: center;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-item {
  padding: 2rem;
}

.testimonial-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-content::before {
  content: '\201C'; /* Opening quote */
  font-family: var(--accent-font);
  font-size: 5rem;
  color: var(--red);
  position: absolute;
  top: -20px;
  left: 20px;
  opacity: 0.3;
}

.testimonial-text {
  font-family: var(--accent-font);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-name {
  font-weight: 600;
  color: var(--black);
}

.author-info {
  font-size: 0.9rem;
  color: var(--charcoal);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
  background-color: var(--black);
  color: var(--gold);
  border: 1px solid var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: all var(--transition-medium);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--gold);
  color: var(--black);
}

/* Call to Action Section */
.cta {
  padding: 5rem 0;
  background-image: linear-gradient(rgba(153, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../assets/images/cta-placeholder.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.cta-title {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* Social Media Section */
.social-media {
  padding: 5rem 0;
  background-color: var(--white);
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  background-color: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-medium);
  border: 1px solid var(--gold);
}

.social-icon:hover {
  background-color: var(--dark-red);
  color: var(--gold);
  transform: translateY(-5px);
}

.instagram-feed {
  margin-top: 2rem;
}

.instagram-item {
  height: 150px;
  background-color: var(--charcoal);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.instagram-item:hover img {
  transform: scale(1.1);
}
