/* Main CSS file for Real Estate Portal */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

.stamp-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Improve spacing for small stamps used in card listings */
.stamps-container img {
  height: 48px !important;
  width: auto !important;
  margin-bottom: 6px;
}
.stamps-container .stamp-badge {
  padding: 8px 12px;
  font-size: 0.95rem;
}

/* Constrain svg sizes inside stamps-container and hero-badges */
.stamps-container svg { height: 48px; width: auto; }
.hero-stamp svg { height: 160px; width: auto; }
.hero-badges { gap: 30px; }
.hero-badges { gap: 20px; }
.stamps-container { display:flex; gap:12px; flex-direction:column; }

:root {
  --primary-color: #1a3e45;
  --secondary-color: var(--color-primary);
  --gold-color: var(--color-primary);
  --red-color: #E24B17;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Inter', sans-serif;
}

body {
  font-family: var(--body-font);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-color: #1a3e45;
}

.hero-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 55, 65, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Property Cards */
.property-card {
  border: 1px solid #e7e7e7;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 1.5rem;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.property-img-container {
  position: relative;
  padding-top: 65%; /* Aspect ratio 3:2 */
  overflow: hidden;
}

.property-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  background-color: var(--gold-color);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

.property-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
  color: var(--primary-color);
}

.property-address {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--gold-color);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.property-details {
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #e9ecef;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Project 'Hot Deal' badge sizing */
.project-badge {
  font-size: 1.05rem;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
}

/* Shortlist (heart) button global style */
.shortlist-heart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  color: var(--primary-color);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  font-size: 1.05rem;
}
.shortlist-heart i { font-size: 1.05rem; }
.shortlist-heart:hover { transform: translateY(-2px); cursor: pointer; }
.shortlist-heart:active { transform: translateY(0); }
.shortlist-heart.active { background: var(--gold-color); color: #fff; border-color: transparent; }

/* Smaller version for inline card buttons (overrides default) */
.shortlist-btn-container .shortlist-heart { width: 36px; height: 36px; font-size: 0.95rem; box-shadow: none; }

/* Search Section */
.search-section {
  background-color: var(--light-color);
  padding: 3rem 0;
}

.search-box {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Featured Section */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--primary-color);
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 3rem;
  height: 0.25rem;
  background-color: var(--gold-color);
}

.section-title .highlight {
  color: var(--gold-color);
}

/* Hot Properties and Projects Slider Gallery */
.hot-properties-section, .hot-projects-section {
  padding: 3rem 0;
}

.property-slider-container {
  position: relative;
  margin-bottom: 3rem;
}

.property-img {
  height: 250px;
  background-position: center;
  background-size: cover;
  position: relative;
}

.hot-badge {
  background-color: var(--primary-color) !important;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.featured-badge {
  background-color: #28a745 !important;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.property-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-card:hover .property-overlay {
  opacity: 1;
}

.property-card {
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gold-hover:hover {
  border-color: var(--gold-color);
}

.btn-white-outline {
  color: white;
  background-color: transparent;
  border: 2px solid white;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-white-outline:hover {
  background-color: white;
  color: var(--gold-color);
}

/* Note: .btn-gold-outline and other button styles moved to utilities.css */

.property-features {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 1rem;
}

.location {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-color);
  margin-bottom: 0.75rem;
}

.custom-indicators {
  bottom: -40px;
}

.custom-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dee2e6;
  border: none;
  margin: 0 4px;
}

.custom-indicators button.active {
  background-color: var(--gold-color);
}

.custom-control {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-slider-container:hover .custom-control {
  opacity: 1;
}

.custom-control:hover {
  background-color: white;
}

/* Testimonials */
.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  height: 100%;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
}

.testimonial-role {
  font-size: 0.875rem;
  color: #6c757d;
}

/* For Builder/Project Pages */
.builder-header {
  padding: 3rem 0;
  background-color: var(--primary-color);
  color: white;
}

.builder-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Property Details Page */
.property-details-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.amenity-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--secondary-color);
}

/* CTA Sections */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Forms - basic styling only, detailed form styling in utilities.css */
.form-floating label {
  color: #6c757d;
}

/* Footer */
.footer-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.text-light-gray {
  color: #adb5bd !important;
}

.footer-link {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--gold-color) !important;
  text-decoration: none;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-info li {
  display: flex;
  align-items: center;
}

footer a:hover {
  color: var(--gold-color) !important;
}
