/* ============================================================
🌆 ASTRA CHILD THEME — PROPERTY SYSTEM (FINAL CLEAN CSS)
============================================================ */

/* ============================================================
1️⃣ PROPERTY LISTING GRID & CARDS
============================================================ */

.property-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  overflow: hidden;
}

.property-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.property-listing-grid::-webkit-scrollbar { display: none; }
.property-listing-grid { scrollbar-width: none; }

/* Card */
.property-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.18),
    0 8px 25px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Image + overlay */
.property-thumb {
  position: relative;
  overflow: hidden;
}

.property-thumb img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.property-card:hover .property-thumb img {
  transform: scale(1.04);
}

.property-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 40%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.property-thumb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0));
  z-index: 2;
  pointer-events: none;
}

/* Tags */
.property-tags {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.property-tag {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.property-featured {
  background: linear-gradient(90deg, #007bff, #66a3ff);
  background-size: 200% 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { background-position: 0 0; }
  100% { background-position: -200% 0; }
}

/* Info block */
.property-info {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
}

.property-info-text {
  max-width: 68%;
  line-height: 1.35;
}

.property-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.property-developer,
.property-location {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

.property-finish {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.property-finish strong {
  color: #c29b45;
  font-weight: 600;
}

.property-price {
  color: #c29b45;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 5px;
  line-height: 1.3;
}

/* Button */
.property-view-btn {
  background: #c29b45;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.property-view-btn:hover {
  background: #a88330;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25),
              0 0 10px rgba(194, 155, 69, 0.8),
              0 0 20px rgba(194, 155, 69, 0.6);
}

/* Slider arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 22px;
  border-radius: 50%;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  opacity: 1;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.property-slider-wrapper:hover .slider-btn {
  display: flex;
}

/* Responsive cards */
@media (max-width: 991px) {
  .property-listing-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .property-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .slider-btn {
    display: flex;
    opacity: 0.9;
  }
}

@media (max-width: 600px) {
  .property-thumb img {
    height: 420px;
  }

  .property-overlay {
    height: 80%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.95) 40%,
      rgba(0, 0, 0, 0.7) 70%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .property-info {
    bottom: 30px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .property-info-text {
    max-width: 90%;
    line-height: 1.4;
  }

  .property-title {
    font-size: 1.2rem;
  }

  .property-view-btn {
    align-self: flex-start;
    padding: 10px 20px;
  }
}

/* ============================================================
2️⃣ HERO SECTION (BACKGROUND + LEFT CONTENT + RIGHT FORM)
============================================================ */
/* =========================
   HERO — fixed image alignment + large logo + pill
   Replace existing hero CSS with this block
   ========================= */

:root { --site-content-width: 1140px; }

/* HERO wrapper full-bleed */
.acf-hero-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
  padding: 20px 0;
  overflow: hidden;
  background: transparent;
  -webkit-backface-visibility: hidden;
}

/* BACKGROUND container */
.acf-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #000; /* fallback while image loads */
}

/* BACKGROUND IMAGE: cover the area and align LEFT CENTER (so left edge is visible) */
.acf-hero-bg img {
  position: absolute;
  top: 50%;
  left: 0;                     /* pin left edge to the hero left boundary */
  transform: translateY(-50%); /* vertical center */
  width: 100%;                 /* span full width of hero area */
  height: 100%;                /* cover full hero height */
  object-fit: cover;           /* crop nicely */
  object-position: left center;/* crucial: show left side of the photo */
  display: block;
  max-width: none;
  max-height: none;
  -o-object-fit: cover;
}

/* contrast overlay */
.acf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.88) 6%,
    rgba(0,0,0,0.60) 22%,
    rgba(0,0,0,0.25) 46%,
    rgba(0,0,0,0.06) 78%,
    rgba(0,0,0,0) 100%
  );
}

/* INNER content: aligned to site grid */
.acf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--site-content-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 300px;
  background: transparent !important;
}

/* Left column */
.acf-hero-left { flex: 0 0 50%; max-width: 50%; background: transparent; }

/* Right spacer */
.acf-hero-right { flex: 1 1 50%; background: transparent; }

/* =========================
   LOGO — keep full size (no heavy compression)
   ========================= */
.acf-hero-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.06);
  z-index: 4;
}

/* Allow logo to be natural size up to a reasonable cap — not aggressively compressed */
.acf-hero-logo-box img {
  width: auto !important;
  height: auto !important;
  max-width: 320px;    /* big but capped to avoid overflow — raise if your logo is larger */
  display: block;
}

/* =========================
   TYPOGRAPHY & PILL
   ========================= */
.acf-hero-developer { text-transform: uppercase; font-size:0.85rem; color:rgba(255,255,255,0.85); margin-bottom:6px; }
.acf-hero-title { font-size:2.6rem; font-weight:700; margin:0 0 8px; line-height:1.05; color:#fff; }

/* Completion pill — restored and sits above overlay */
.acf-hero-pill {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight:700;
  font-size:0.95rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
  white-space:nowrap;
  margin:10px 0;
}

.acf-hero-location { font-size:1.15rem; font-weight:600; color:rgba(255,255,255,0.95); margin:6px 0; }
.acf-hero-price { color:#c29b45; font-weight:700; margin:14px 0 20px; }
.acf-hero-btn { display:inline-block; background:#c29b45; color:#fff; padding:11px 26px; border-radius:6px; text-decoration:none; font-weight:600; }

/* ensure inner elements don't force white backgrounds unexpectedly */
.acf-hero-inner, .acf-hero-left, .acf-hero-right { background: transparent !important; box-shadow: none !important; }

/* =========================
   RESPONSIVE: tablet & mobile
   object-position: left center preserved
   reduce hero height to content on small screens
   ========================= */
@media (max-width: 992px) {
  .acf-hero-inner { flex-direction: column; align-items:flex-start; gap:18px; padding:16px 18px; min-height:220px; }
  .acf-hero-bg img { object-position: left center; width: 120vw; left: 0; transform: translateY(-50%); } /* extra bleed so no gap */
  .acf-hero-logo-box img { max-width: 220px; }
  .acf-hero-title { font-size:1.9rem; }
  .acf-hero-location { font-size:1.05rem; }
  html, body { overflow-x: hidden !important; } /* safe on small screens */
}

@media (max-width: 480px) {
  .acf-hero-inner { padding:12px 14px; min-height:180px; gap:12px; }
  .acf-hero-bg img { width: 140vw; object-position: left center; left: 0; transform: translateY(-50%); }
  .acf-hero-logo-box img { max-width: 160px; }
  .acf-hero-title { font-size:1.4rem; }
  .acf-hero-location { font-size:1rem; }
  html, body { overflow-x: hidden !important; }
}

/* temporary debug outlines (uncomment while debugging) */
/*
.acf-hero-wrapper { outline: 2px solid rgba(0,255,0,0.12) !important; }
.acf-hero-bg { outline: 2px dashed rgba(255,0,0,0.12) !important; }
.acf-hero-bg img { outline: 2px dotted rgba(0,0,255,0.12) !important; }
*/



















/* ============================================================
3️⃣ COMPACT PROPERTY ENQUIRY FORM (INSIDE HERO FORM)
============================================================ */

.property-enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Hide labels for minimal layout */
.property-enquiry-form label {
  display: none;
}

/* Input fields */
.property-enquiry-form input,
.property-enquiry-form textarea,
.property-enquiry-form select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9rem;
  background: #fafafa;
  transition: border-color 0.3s, background 0.3s;
  box-sizing: border-box;
}

/* Smaller textarea */
.property-enquiry-form textarea {
  min-height: 45px;
  max-height: 70px;
  resize: none;
}

.property-enquiry-form input:focus,
.property-enquiry-form textarea:focus,
.property-enquiry-form select:focus {
  border-color: #c29b45;
  background: #fff;
  outline: none;
}

/* Submit button */
.property-form-submit {
  margin-top: 6px;
  text-align: center;
}

.property-enquiry-form input[type="submit"] {
  background: #c29b45;
  color: #fff;
  border: none;
  padding: 7px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.property-enquiry-form input[type="submit"]:hover {
  background: #a88330;
  transform: translateY(-1px);
}

/* ============================================================
4️⃣ ABOUT & AMENITIES SECTIONS
============================================================ */

.property-about-section {
  max-width: 960px;
  margin: 90px auto;
  padding: 0 24px;
}

.property-about-section .section-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: #9c9c9c;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.property-about-section .property-heading {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: #111;
}

.property-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

/* Amenities grid */
.property-amenities-section,
.property-about-section .amenities-grid-wrap {
  max-width: 1200px;
  margin: 70px auto;
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
}

.property-amenities-section .section-title,
.property-about-section .property-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 30px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px 40px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  font-weight: 500;
}

.amenity-icon {
  font-size: 20px;
  line-height: 1;
  width: 30px;
  text-align: center;
}

.amenity-label,
.amenity-name {
  color: #222;
}

@media (max-width: 768px) {
  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .property-about-section {
    margin: 60px auto;
  }
}
