@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #800020;
  --secondary-color: #131936;
  --font-family: "Poppins", sans-serif;
}

body {
  font-family: var(--font-family);
  padding: 0;
  margin: 0;
}

.space-all {
  padding-top: 70px;
}

@media (max-width: 1400px) {
  .space {
    padding-top: 60px;
  }
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-primary:hover {
  color: var(--secondary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: white;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Navbar Styling */
.navbar {
  top: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  transition: background-color 0.3s ease;
}

.navbar-brand img {
  height: 50px;
  transition: height 0.3s ease;
}

.navbar-toggler {
  border: none;
  outline: none;
}

/* Responsive Styles for Small Screens */
@media (max-width: 767px) {
  .navbar-brand img {
    height: 40px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('{% static "img/hero-1.jpg" %}') center center no-repeat;
  background-size: cover;
  min-height: 70vh;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-title {
  font-size: 3rem;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
  z-index: 2;
}

.hero-search {
  max-width: 600px;
  width: 100%;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-section {
    min-height: 55vh;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.15rem;
  }
}

@media (max-width: 992px) {
  .hero-section {
    min-height: 50vh;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 45vh;
    padding: 2rem 1rem;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-search input {
    padding: 0.7rem 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 40vh;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .hero-search {
    max-width: 100%;
  }
}

/* Sections */
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: var(--font-family);
}

/* Cards */
.cards .card {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.cards .card-body {
  padding: 1.5rem;
  text-align: center;
}

.cards .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.cards .card-text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cards .btn-outline-primary {
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  transition: background-color 0.3s, color 0.3s;
}

.cards .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cards .card-title {
    font-size: 1.15rem;
  }

  .cards .card-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .cards {
    flex-direction: column;
  }

  .cards .card {
    margin-bottom: 1rem;
  }

  .cards .card-title {
    font-size: 1.1rem;
  }

  .cards .card-text {
    font-size: 0.9rem;
  }
}

/* Main Content */
#main {
  margin-left: 250px;
  padding: 20px;
}
@media (max-width: 991px) {
  #main {
    margin-left: 0;
  }
}

body.space {
  padding-top: 50px;
}

/* Card Image */
.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: #f8f9fa;
}

/* Property Detail */
@media (max-width: 991.98px) {
  .property-card .col-bathrooms {
    border-right: none !important;
  }
  .property-card .col-sqft {
    border-top: 1px solid #dee2e6;
  }
}

@media (min-width: 992px) {
  .property-card .col-bathrooms {
    border-right: 1px solid #dee2e6;
  }
  .property-card .col-sqft {
    border-top: none;
  }
}
