body {
  font-family: 'Segoe UI', sans-serif;
}
    
/*HERO HOME SECTION*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}
    .hero::before {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
    }
    .hero-content {
      position: relative;
      z-index: 2;
    }
    .category-card {
      transition: transform .3s;
    }
    .category-card:hover {
      transform: translateY(-8px);
    }
    .testimonial img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
    }
    .navbar{
    z-index: 100 !important;
    background-color: #01092c !important;
    }
    .navbar-brand img{
      width: 120px !important;
    }

    /* Sidebar */
.sidebar {
    width: 220px;
    position: fixed;
    height: 100%;
    background: #314E9D;
    color: #fff;
    padding-top: 20px;
}
.sidebar h4 { text-align: center; margin-bottom: 20px; }
.sidebar a {
    display: block; color: #fff; padding: 12px 20px;
    text-decoration: none; border-radius: 6px; margin: 5px 10px;
    transition: 0.3s;
}
.sidebar a:hover { background: #D10024; color: #fff; }
.content { margin-left: 240px; padding: 20px; }



.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: #314E9D;
  color: #fff;
  padding-top: 20px;
}

.sidebar h4 {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar a {
  display: block;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  transition: 0.3s;
}

.sidebar a:hover {
  background: #21336d;
}

.content {
  margin-left: 250px;
  padding: 20px;
}

.card {
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.table th {
  background: #f0f0f0;
}

.btn-info, .btn-danger {
  border-radius: 8px;
}

/*login*/

.auth-body {
  background: #f4f6f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.auth-container {
  width: 100%;
  max-width: 400px;
}
.card {
  border-radius: 15px;
}


/*card*/
.card-stats {
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.card-stats:hover { transform: translateY(-5px); }
.bg-sale { background: #111622; }
.bg-rent { background: #28a745; }
.bg-room { background: #ffc107; color: #212121; }
.bg-plot { background: #D10024; }


/* Floating / Hanging animation */
.float-card {
  animation: float 2.5s ease-in-out infinite;
  transition: transform 0.3s;
}

.float-card:hover {
  transform: translateY(-10px) scale(1.05);
}

/* Keyframes for gentle up-down floating */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Pop-up badge for new messages */
.msg-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #D10024; /* Accent Red */
  color: #fff;
  border-radius: 50%;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  animation: pop 0.6s ease-out;
}

@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.truncate {
  display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

/*contact*/
.contact-container {
      max-width: 900px;
      margin: 50px auto;
      background: #fff;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    h2 {
      color: #44C662;
      margin-bottom: 25px;
      text-align: center;
    }
    .form-control:focus {
      border-color: #44C662;
      box-shadow: 0 0 8px #44C662;
    }
    .btn-success {
      background-color: #44C662;
      border-color: #44C662;
    }
    .btn-success:hover {
      background-color: #3ba256;
      border-color: #3ba256;
    }
    .info-section {
      font-size: 1.1rem;
    }
    .info-section i {
      color: #44C662;
      margin-right: 8px;
    }

    /*form for adding listing*/
    .form-container {
    max-width: 800px !important;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    }
    h2 {
        text-align: center;
        margin-bottom: 25px;
        color: #314E9D;
    }

    /*search result*/
        .carousel-inner img {
      width: 100%;
      height: 300px;
      object-fit: cover;
    }
.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  }
    