/* --- Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Navbar / Header --- */
.navbar {
  background-color: #ffffff;
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: #1a1a1a;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav ul li a:hover {
  color: #007BFF;
}

/* --- Hero Section --- */
.hero {
  background: url('/uploads/images/banner.jpeg') center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero .hero-content {
  width: 100%;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* --- Properties Section --- */
.section-properties {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.section-properties h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
}

.section-properties .section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
  font-size: 1rem;
}

/* Grid container */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center; /* centers cards when fewer than full row */
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Each property card --- */
.property-card {
  width: 100%;
  max-width: 295px; /* dati 280px, ngayon mas malapad */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Property Card Images --- */
.property-card img {
  width: 100%;
  height: 250px; /* fixed height para uniform */
  object-fit: cover; /* punuin ang box, i-crop kung kailangan */
  border-radius: 10px 10px 0 0;
}

/* --- Property Card Info --- */
.property-info {
  padding: 15px;
  text-align: left;
}

.property-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.property-info .meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.property-info .description {
  font-size: 0.9rem;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* truncate to single line */
  margin-bottom: 10px;
}

.property-info .price {
  font-weight: 700;
  color: #007BFF;
  margin-bottom: 10px;
}

/* --- View Details Button --- */
.property-info .btn-view-details {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 5px;
  transition: background 0.3s;
}

.property-info .btn-view-details:hover {
  background-color: #0056b3;
}

.property-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.property-info .location {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 5px;
}

.property-info .meta {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 5px;
}

.property-info .description {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Truncate long description */
}

.property-info .price {
  font-weight: 700;
  color: #007BFF;
  margin-bottom: 10px;
}

.property-info .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 0.95rem;
}


/* --- Property Details Page Hero Image --- */
/* Property Hero Image */
.hero-image {
  width: 100%;           /* punuin ang lapad ng container */
  height: auto;          /* automatic height base sa aspect ratio */
  max-height: 500px;     /* limitahan ang taas para hindi sobrang haba */
  object-fit: contain;    /* buong image makikita, may white space kung ibang ratio */
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Optional: Thumbnail images */
.thumbnail-list img {
  width: 100px;
  height: 70px;
  object-fit: cover;  /* para thumbnails ay punuin ang box */
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbnail-list img.active {
  border-color: #007bff;
}




/* --- Testimonials Section --- */
.section-testimonials {
  padding: 60px 0;
  background-color: #fff;
}

.section-testimonials h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-content: start; /* para hindi mag-stretch kung konti cards */
  max-width: 900px; /* limit sa tatlong cards per row */
  margin: 0 auto; /* i-center ang grid sa page */
}


.testimonial-card {
  background-color: #f1f1f1;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.testimonial-card .quote {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
}

.testimonial-card .client-name {
  font-weight: 700;
  color: #333;
}

.testimonial-card .client-role {
  font-size: 0.9rem;
  color: #777;
}
.section-testimonials h2 {
  font-weight: 400; /* tanggalin bold */
  font-style: italic; /* gawing pa-slant */
  letter-spacing: 1px; /* optional — medyo elegant tingnan */
}


/* --- About Section --- */
.section-about {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.section-about h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2rem;
}

.section-about p {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: #555;
  line-height: 1.6;
}

/* --- Contact Section --- */
.section-contact {
  padding: 60px 0;
  background-color: #fff;
  text-align: center;
}

.section-contact h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.section-contact p {
  margin-bottom: 25px;
  color: #555;
}

.section-contact a.btn-primary {
  font-size: 1rem;
}

/* --- Footer --- */
.footer {
  padding: 20px 0;
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .property-meta-row {
    flex-direction: column;
    gap: 5px;
  }
}
/* --- Contact Buttons --- */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* spacing between buttons */
  justify-content: center; /* center align */
  margin-top: 20px;
}

.contact-buttons .btn-primary {
  min-width: 180px;   /* fixed minimum width */
  max-width: 220px;   /* fixed maximum width */
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

/* Optional: adjust for smaller screens */
@media (max-width: 600px) {
  .contact-buttons {
    flex-direction: column;
    align-items: center; /* center align kapag stacked */
  }
  
  .contact-buttons .btn-primary {
    width: 100%; /* full width pag mobile para clean */
    max-width: 300px;
  }
}
.btn-primary small {
  display: block;
  font-size: 13px;
  color: #f0f0f0; /* lighter text para hindi overpower */
  margin-top: 3px;
}
/* --- Contact Form Page --- */
.section-contact-form {
  padding: 60px 20px;
  background: #f9f9f9;
}

.section-contact-form .container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.section-contact-form h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.section-contact-form p {
  text-align: center;
  margin-bottom: 25px;
  color: #555;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff; /* highlight color */
}

button.btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: #007bff;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

button.btn-primary:hover {
  background: #0056b3;
}

/* Response message */
#formResponse {
  text-align: center;
  font-weight: 500;
}
.section-properties h2, 
.section-properties .section-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
}

.section-properties .section-subtitle {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- Refined Contact Buttons (Smaller + Balanced) --- */
.contact-buttons .btn-primary {
  min-width: 160px;
  max-width: 200px;
  padding: 8px 15px; /* reduced height */
  font-size: 0.9rem; /* slightly smaller text */
  border-radius: 6px; /* softer curve */
}

.contact-buttons .btn-primary small {
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.9;
}

/* keep mobile responsiveness */
@media (max-width: 600px) {
  .contact-buttons .btn-primary {
    width: 100%;
    max-width: 260px;
  }
}
.section-testimonial-detail {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
}

.testimonial-card.full {
  max-width: 700px;
  text-align: center;
}

.testimonial-card.full img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.testimonial-card.full blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.see-all-container {
  text-align: center;
  margin-top: 1.5rem;
}

.see-all-btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.6rem 1.4rem; /* 🔹 mas maliit */
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem; /* 🔹 10–15% smaller */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.see-all-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}
/* --- Logo Styling --- */
.navbar .logo {
  display: flex;
  align-items: center; /* vertical align */
  gap: 10px; /* space between logo and text */
  margin-left: 0; /* 🔹 move slightly to the left */
}

.navbar .logo img {
  height: 45px; /* adjust mo kung gusto mo mas maliit */
  width: auto;
  object-fit: contain;
}

/* ============================= */
/* Properties Section - Responsive Layout */
/* ============================= */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}


.property-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.property-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-info {
  padding: 15px;
}

.property-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #222;
}

.property-info .location {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 6px;
}

.property-info .meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 8px;
}

.property-info .description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.property-info .price {
  font-size: 1rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 10px;
}

.property-info .btn-primary {
  display: block;        /* punuin ang parent width */
  width: 100%;           /* full width ng card */
  padding: 12px 0;       /* taas at space ng button */
  background-color: #007bff;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
}

.property-info .btn-primary:hover {
  background-color: #0056b3;
}

/* Responsive breakpoints */
@media (max-width: 992px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .property-card img {
    height: 180px;
  }

  .property-info {
    padding: 12px;
  }

  .property-info h3 {
    font-size: 1rem;
  }

  .property-info .description {
    font-size: 0.85rem;
  }

  .property-info .price {
    font-size: 0.95rem;
  }
}
/* --- Fix: Truncate long property titles --- */
.property-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Optional hover expand for desktop */
.property-info h3:hover {
  white-space: normal;
  overflow: visible;
}

/* Only for property details page */
.property-details-page .inquiry-section button {
    width: 100%;       /* full width ng container */
    min-width: 200px;  /* optional: minimum width */
    max-width: 100%;   /* siguraduhin hindi lalampas sa container */
    box-sizing: border-box;
}
/* ============================= */
/* Properties Section - 3 per row, bigger cards */
/* ============================= */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); /* 3 per row desktop */
  gap: 25px;
  justify-content: center; /* center items if row not full */
  margin: 0 auto;
  padding: 0 15px;
  max-width: 1200px;
}

/* --- Property Card --- */
.property-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- Property Image --- */
.property-card img {
  width: 100%;
  height: 260px; /* taller */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* --- Property Info --- */
.property-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.property-info h3 {
  font-size: 1.3rem; /* bigger title */
  margin-bottom: 6px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-info h3:hover {
  white-space: normal;
  overflow: visible;
}

.property-info .location {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 6px;
}

.property-info .meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.property-info .description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-info .price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 12px;
}

.property-info .btn-primary {
  width: 100%;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background-color: #007bff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.property-info .btn-primary:hover {
  background-color: #0056b3;
}

/* --- Responsive Breakpoints --- */
/* Tablet */
@media (max-width: 992px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .property-card img {
    height: 240px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
  .property-card img {
    height: 200px;
  }
  .property-info h3 {
    font-size: 1.2rem;
  }
  .property-info .description {
    font-size: 0.9rem;
  }
  .property-info .price {
    font-size: 1rem;
  }
}

