body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Section Styling */
.hero-section {
    background: url('/img/hero.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-section .search-bar {
    background-color: #3eccc4;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-section .search-bar input {
    flex: 1;
    min-width: 150px;
}

.btn-accent {
    background-color: #e54878;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.btn-accent:hover {
    background-color: #d33c6a;
}

/* Toast styling */
#toast-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none; /* Allows clicks through empty space */
}

#toast-container .toast {
  pointer-events: auto; /* Enable interaction within toasts */
  transition: opacity 0.4s ease-in-out, transform 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

#toast-container .toast:not(.show) {
  opacity: 0;
  transform: translateY(-10px);
}

/* IMAGE STYLING */
/* Container for image previews (used on desktop and responsive) */
.preview-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-top: 10px;
}

/* Used for existing images */
.uploaded-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Individual image+status block for new images */
.image-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f8f8f8;
}

/* Optional: handle rejected images more visibly */
.image-preview-item img[style*="red"] {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Mobile stacking for small screens */
@media (max-width: 576px) {
  .preview-container {
    flex-direction: column;
  }

  .image-preview-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Shared preview image style for QC + Property uploads + Report view */
.preview-thumb {
  max-width: 150px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.preview-thumb:hover {
  transform: scale(1.05);
}
/* IMAGE STYLING */

/* Property Cards */
/* Make the entire property card clickable without affecting text appearance */
.property-card-link {
    text-decoration: none;
    color: inherit; /* Keeps text looking normal */
    display: block;
}

.property-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    margin-bottom: 20px; /* Adds spacing between cards */
}

.property-card:hover {
    transform: scale(1.05);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.property-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    position: relative;
    z-index: 2; /* Keeps text above the clickable area */
}

.property-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: inherit;
    height: 3.2rem; /* Fixed height for two lines */
    line-height: 1.6rem; /* Each line takes 1.6rem */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ensures only two lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Ensure uniform card height */
.property-card-text {
    flex-grow: 1;
    font-size: 1rem;
}

.property-card-title:hover {
    text-decoration: none; /* Prevents underline on hover */
}

.btn-property {
    background-color: #e54878;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    position: relative;
    z-index: 2; /* Ensures button stays clickable */
}

.btn-property:hover {
    background-color: #d33c6a;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 40px 15px;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-section .search-bar input {
        margin-bottom: 10px;
    }
}

/* Footer Styling */
.footer {
    background-color: #6b3529;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

.footer a {
    color: #3eccc4;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
    color: #e54878;
}
