/* ===== GENERAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  background: #f4f4f4;
}

/* ===== HERO SECTION ===== */
.listing-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 20px;
}

.listing-hero #heroVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.listing-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}

.listing-hero .hero-logo {
  position: relative;
  max-width: 200px;
  margin-bottom: 60px;
  z-index: 3;
}

.listing-hero .hero-content {
  position: relative;
  z-index: 4;
  color: #fff;
  max-width: 900px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.listing-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* ===== SEARCH FORM ===== */
.search-form {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 12px 45px 12px 20px;
  font-size: 1rem;
  border: 2px solid #FFD700;
  border-radius: 30px;
  outline: none;
  background: rgba(255,255,255,0.9);
  color: #000;
  transition: all 0.3s ease;
}

.search-form input[type="search"]::placeholder {
  color: #333;
}

.search-form input[type="search"]:focus {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

.search-form i.fas.fa-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 5;
}

/* ===== SUMMARY SECTION ===== */
.listing-summary {
  background: linear-gradient(135deg, #FFD700, #000000);
  padding: 60px 20px;
  text-align: center;
}

.listing-summary .summary-content {
  max-width: 900px;
  margin: 0 auto;
}

.listing-summary h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.listing-summary p {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ===== FILTERS SECTION ===== */
.listing-filters {
  padding: 40px 20px;
  background: #f4f4f4;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.filter-group label {
  margin-bottom: 5px;
  font-weight: 600;
}

.filter-group select {
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.apply-filters {
  padding: 10px 25px;
  border: none;
  background: #FFD700;
  color: #000;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.apply-filters:hover {
  background: #c2ba00;
}

/* ===== PROPERTY GRID ===== */
.property-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 40px 20px;
  scroll-behavior: smooth;
}

.property-grid::-webkit-scrollbar {
  height: 8px;
}

.property-grid::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 4px;
}

.property-grid::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}

/* ===== PROPERTY CARDS ===== */
.property-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.property-images-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow-x: auto;
  display: flex;
  align-items: center;
  scroll-snap-type: x mandatory;
}

.property-images-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.property-card:hover .property-images-wrapper img {
  transform: scale(1.05);
}

/* Property details */
.property-details {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-details h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #000;
}

.property-details p {
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: #333;
}

.view-btn {
  margin-top: auto;
  padding: 10px;
  border: none;
  background: linear-gradient(90deg, #FFD700, #000);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.view-btn:hover {
  background: linear-gradient(90deg, #c2ba00, #111);
}







/* ===== PROPERTY MODAL ONLY ===== */

.property-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.property-modal.active {
  display: flex;
}

/* Modal box */
.modal-content {
  background: #fff;
  color: #222;
  border-radius: 10px;
  padding: 25px;
  max-width: 750px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.close-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  background: transparent;
  color: #333;
  font-size: 28px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #FFD700;
  transform: scale(1.2);
}

/* Modal Title */
#modalTitle {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  text-align: center;
}

/* Images container */
.modal-images {
  position: relative;
  margin: 10px 0 15px 0;
  border-radius: 10px;
  overflow: hidden;
}

.modal-images img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: none;
  border-radius: 10px;
  transition: opacity 0.4s ease;
}

.modal-images img.active {
  display: block;
}

/* Navigation arrows */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FFD700;
  color: #fff;
  border: none;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
}

.modal-arrow.left {
  left: 15px;
}

.modal-arrow.right {
  right: 15px;
}

.modal-arrow:hover {
  background: #fff;
  color: #FFD700;
  box-shadow: 0 0 10px #FFD700;
}

/* Text details */
#modalDetails,
#modalPrice {
  text-align: center;
  color: #444;
  margin: 6px 0;
  font-size: 15px;
}

/* Buy / Contact button */
.modal-buy-btn {
  display: block;
  margin: 20px auto 5px;
  background: #FFD700;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.modal-buy-btn:hover {
  background: #fff;
  color: #FFD700;
  box-shadow: 0 0 10px #FFD700;
}







/* ===== PROPERTY MODAL (FINAL POLISHED VERSION) ===== */

.property-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.property-modal.active {
  display: flex;
}

/* Modal box */
.modal-content {
  background: #fff;
  color: #222;
  border-radius: 14px;
  padding: 25px;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  background: transparent;
  color: #333;
  font-size: 30px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #FFD700;
  transform: scale(1.2);
}

/* Modal Title */
#modalTitle {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
  text-align: center;
}

/* Images container */
.modal-images {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
}

.modal-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 12px;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.modal-images img.active {
  display: block;
  opacity: 1;
}

/* Arrows inside modal */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FFD700;
  color: #fff;
  border: none;
  font-size: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
}

.modal-arrow.left {
  left: 18px;
}

.modal-arrow.right {
  right: 18px;
}

.modal-arrow:hover {
  background: #fff;
  color: #FFD700;
  box-shadow: 0 0 10px #FFD700;
}

/* Text details */
#modalDetails,
#modalPrice {
  text-align: center;
  color: #444;
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Buy / Contact button */
.modal-buy-btn {
  display: inline-block;
  margin: 20px auto 10px;
  background: #FFD700;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.modal-buy-btn:hover {
  background: #fff;
  color: #FFD700;
  box-shadow: 0 0 12px #FFD700;
  transform: scale(1.05);
}

/* Responsiveness */
@media (max-width: 768px) {
  .modal-content {
    padding: 20px;
  }

  .modal-images {
    height: 300px;
  }

  .modal-arrow {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .modal-buy-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal-images {
    height: 240px;
  }

  #modalTitle {
    font-size: 18px;
  }
}











/* ===== SCROLLBARS ===== */
.property-modal .modal-images::-webkit-scrollbar,
.property-images-wrapper::-webkit-scrollbar {
  height: 6px;
}

.property-modal .modal-images::-webkit-scrollbar-thumb,
.property-images-wrapper::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 3px;
}

.property-modal .modal-images::-webkit-scrollbar-track,
.property-images-wrapper::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .listing-hero { height: 70vh; }
  .listing-hero h1 { font-size: 2.2rem; }
  .search-form { max-width: 90%; }

  .listing-summary h2 { font-size: 2rem; }
  .listing-summary p { font-size: 1rem; }

  .property-modal .modal-images img {
    width: 200px;
    height: 120px;
  }

  .filters-form {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .listing-hero { height: 60vh; }
  .listing-hero h1 { font-size: 1.8rem; }
  .search-form input[type="search"] { padding: 10px 40px 10px 15px; }
  .listing-hero .hero-logo { margin-bottom: 40px; }

  .listing-summary h2 { font-size: 1.5rem; }
  .listing-summary p { font-size: 0.95rem; }

  .property-card {
    flex: 0 0 90%; /* Full width on mobile */
  }

  .property-modal .modal-images img {
    width: 180px;
    height: 120px;
  }
}

/* ===========================
   LIST YOUR PROPERTY SECTION (FREE FEEL)
=========================== */
.list-your-property-section {
   /* original gold gradient */
  padding: 60px 20px;
  text-align: center;
  color: #000;
  margin: 40px auto;
  max-width: 1000px;
}

.list-your-property-section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #000; /* black heading */
}

.list-your-property-section p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #000; /* black text */
}

.primary-btn {
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF; /* white text */
  background: #000; /* black button */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: #333;
  color: #FFD700; /* gold hover text */
}

/* ===========================
   POPUP BACKGROUND
=========================== */
.list-property-popup {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 9999;
}

.list-property-popup.active {
  top: 0;
  opacity: 1;
  visibility: visible;
}

/* ===========================
   POPUP CONTENT
=========================== */
.popup-content {
  background: #fff; /* white background */
  padding: 30px 40px;
  width: 90%;
  max-width: 750px;
  border-radius: 12px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  color: #000; /* default black text inside popup */
  font-family: Arial, sans-serif;
}

/* Close Button */
.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  color: #000; /* black close icon */
  transition: 0.3s;
}

.close-popup:hover {
  color: #FFD700; /* gold hover */
}

/* Popup Heading & Description */
.popup-content h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  text-align: center;
  color: #FFD700; /* gold heading */
}

.popup-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-align: center;
  color: #000; /* black description text */
  line-height: 1.6;
}

/* ===========================
   FORM STEPS
=========================== */
.list-property-form {
  display: flex;
  flex-direction: column;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.form-step.active {
  display: flex;
}

.form-step h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #FFD700; /* gold step title */
}

/* Inputs and Textareas */
.list-property-form input,
.list-property-form select,
.list-property-form textarea {
  padding: 12px 15px;
  border: 1px solid #FFD700; /* gold border */
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  transition: 0.3s;
  color: #000; /* black text in inputs */
  background-color: #fff;
}

.list-property-form select {
  color: #000; /* black text in dropdown */
}

.list-property-form input:focus,
.list-property-form select:focus,
.list-property-form textarea:focus {
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  outline: none;
  color: #000; /* ensure black text on focus */
}

/* Navigation Buttons (Next/Previous side by side) */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.form-navigation button,
.form-step button {
  flex: 1;
  min-width: 120px;
  padding: 12px 25px;
  background: #FFD700; /* gold button */
  color: #000; /* black text */
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.form-navigation button:hover,
.form-step button:hover {
  background: #FFC107;
  color: #fff; /* white text on hover */
}

/* Image Preview */
.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-preview img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #FFD700; /* gold border */
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .popup-content {
    padding: 20px;
  }

  .list-your-property-section h2 {
    font-size: 2.5rem;
  }

  .list-your-property-section p {
    font-size: 1.1rem;
  }

  .form-step h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .popup-content {
    padding: 15px;
  }

  .primary-btn {
    width: 100%;
  }

  .form-navigation {
    flex-direction: row;
    gap: 10px;
  }

  .image-preview img {
    width: 80px;
    height: 60px;
  }
}

.packages-section {
  padding: 60px 20px;
  text-align: center;
  background: #fdf6e3;
  color: #000;
}

.packages-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns always */
  gap: 20px;
}

.package-card {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.package-card:hover {
  transform: scale(1.05);
}

.package-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.package-card .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 20px;
}

.package-card:hover .overlay {
  opacity: 1;
}

.package-card .overlay i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.package-popup {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 9999;
}

.package-popup.active {
  top: 0;
  opacity: 1;
  visibility: visible;
}

.package-popup .popup-content {
  background: #fff;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  position: relative;
  text-align: center;
}

.package-popup .close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
}

.package-popup form input,
.package-popup form textarea {
  width: 100%;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.package-popup form button {
  background: #FFD700;
  color: #000;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.package-popup form button:hover {
  background: #FFC107;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .package-card img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .packages-section h2 {
    font-size: 2rem;
  }

  .package-card img {
    height: 180px;
  }
}



/* Make overlays always visible on mobile */
@media (max-width: 768px) {
  .package-card .overlay {
    opacity: 1;
    background: rgba(0,0,0,0.5); /* still semi-transparent */
  }

  .package-card:hover .overlay {
    opacity: 1; /* hover effect does nothing extra */
  }
}



.reviews-section {
  padding: 60px 20px;
  background: #fff8e1; /* keep light background behind glass cards */
  color: #000;
  text-align: center;
}

.reviews-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* Desktop: 2x2 grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Glassy Review Card */
.review-card {
  background: rgba(255, 255, 255, 0.25); /* semi-transparent */
  backdrop-filter: blur(10px); /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.review-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid rgba(255,255,255,0.5);
}

.review-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #FFD700;
}

.review-card .stars {
  color: #FFD700;
  margin-bottom: 15px;
}

.review-card .stars i {
  margin: 0 2px;
  font-size: 1rem;
}

.review-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .reviews-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .review-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }
}

@media (max-width: 480px) {
  .reviews-section h2 {
    font-size: 2rem;
  }

  .review-card {
    flex: 0 0 90%;
  }
}








.back-btn {
  position: fixed;
  top: 35%; /* position on screen */
  left: -70px; /* start hidden off-screen */
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05); /* very transparent */
  backdrop-filter: blur(6px); /* subtle glass blur */
  -webkit-backdrop-filter: blur(6px);
  color: #FFD700; /* gold arrow */
  font-size: 22px;
  text-decoration: none;
  width: 60px;
  height: 70px; /* taller to fit text */
  border-radius: 15px; /* softer corners */
  display: flex;
  flex-direction: column; /* stack text above icon */
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* softer shadow */
  border: 1px solid rgba(255, 255, 255, 0.15); /* faint border */
  z-index: 9999;
  opacity: 0;
  animation: slideIn 0.8s ease forwards;
}

.back-btn .back-text {
  font-size: 12px;
  color: #fff; /* keep text white for readability */
  margin-bottom: 4px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.12); /* slightly stronger on hover */
  transform: translateY(-50%) scale(1.1);
}

@keyframes slideIn {
  0% {
    left: -70px;
    opacity: 0;
  }
  100% {
    left: 15px;
    opacity: 1;
  }
}






 



/* ===== PROPERTY CARD IMAGE ARROWS (Overlay) ===== */
.property-images-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
}

.property-image-container {
  position: relative;
  width: 100%;
}

.property-image-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: none;
  border-radius: 10px;
  transition: opacity 0.4s ease;
}

/* Show only the active image */
.property-image-container img.active {
  display: block;
}

/* Overlay arrow buttons (match modal look) */
.img-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FFD700;
  color: #fff;
  border: none;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
}

/* Left and Right positions */
.img-arrow.left {
  left: 12px;
}

.img-arrow.right {
  right: 12px;
}

/* Hover effect */
.img-arrow:hover {
  background: #fff;
  color: #FFD700;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .property-image-container img {
    height: 200px;
  }
  .img-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

/* Optional card structure styling for better alignment */
.property-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}









/* ===========================
   FOOTER (COMPACT SAME FOR ALL SCREENS)
=========================== */
footer {
  background-color: #FFD700;
  color: #111;
  padding: 12px 10px; 
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px; 
  position: relative;
  overflow: hidden;
}

/* Footer Grid */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px; 
  margin-bottom: 8px; 
  padding-bottom: 10px;
  position: relative;
}

/* Sleek black divider below grid with pointed ends */
.footer-grid::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.8) 10%,
    rgba(0,0,0,1) 50%,
    rgba(0,0,0,0.8) 90%,
    rgba(0,0,0,0) 100%
  );
  opacity: 1;
}

/* Newsletter Section */
.footer-col.newsletter {
  flex: 1 1 220px;
  min-width: 140px;
  margin: 4px 0; 
  text-align: left;
  padding-bottom: 12px;
  position: relative;
}

/* Sleek black divider below newsletter with pointed ends */
.footer-col.newsletter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.8) 10%,
    rgba(0,0,0,1) 50%,
    rgba(0,0,0,0.8) 90%,
    rgba(0,0,0,0) 100%
  );
  opacity: 1;
}

/* Headings & text */
.footer-col h4 {
  font-size: 16px; 
  margin-bottom: 6px;
  color: #111; 
}

.footer-col p,
.footer-col ul li a {
  font-size: 14px; 
  line-height: 1.6; 
  color: #111; 
  margin-bottom: 6px; 
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 4px; 
}

.footer-col ul li a {
  text-decoration: none;
  color: #111; 
}

/* Explore + Contact wrapper */
.explore-contact-wrapper {
  display: flex;
  gap: 8px; 
  flex: 1 1 380px;
  flex-wrap: wrap; 
  margin: 4px 0; 
}

.explore-contact-wrapper .footer-col {
  flex: 1 1 48%;
  min-width: 140px;
}

/* Newsletter form default (mobile) */
.footer-col.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.footer-col.newsletter input {
  width: 100%;
  padding: 10px 12px; 
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px; 
  box-sizing: border-box;
  outline: none;
  text-align: left; 
  color: #111;
}

.footer-col.newsletter button {
  width: 100%;
  padding: 10px 0;
  background-color: #111;
  color: #FFD700;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px; 
  transition: background 0.3s, color 0.3s;
  text-align: center;
}

.footer-col.newsletter button:hover {
  background-color: #fff;
  color: #111;
}

/* ===========================
   FOOTER BOTTOM
=========================== */
.footer-bottom {
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  gap: 10px; 
  padding-top: 10px;
  margin-top: 12px;
  text-align: center; 
  position: relative;
}

/* No extra shimmer at end */
.footer-bottom::before {
  display: none;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px; 
  color: #111;
}

.social-icons {
  display: flex;
  gap: 10px; 
  justify-content: center; 
}

.social-icons a {
  color: #111; 
  font-size: 20px; 
  padding: 6px; 
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
}

.social-icons a:hover {
  background-color: #fff;
  color: #111;
}

/* ===========================
   FOOTER POPUP MODAL
=========================== */
.footer-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.footer-popup.show {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.footer-popup-content {
  background: #fff; 
  padding: 18px 16px; 
  width: 90%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  position: relative;
  text-align: left;
  line-height: 1.6;
  color: #111; 
}

.footer-popup-content h2 {
  margin-bottom: 8px;
  font-size: 20px; 
  color: #FFD700;
}

.footer-popup-content p {
  margin-bottom: 8px;
  font-size: 15px; 
  color: #111; 
}

.close-footer-popup {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 22px; 
  font-weight: bold;
  color: #111; 
  cursor: pointer;
}

.close-footer-popup:hover { color: #FFD700; }

/* Animations */
@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .footer-grid,
  .explore-contact-wrapper,
  .footer-counters,
  .footer-bottom {
    flex-direction: initial !important; 
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .explore-contact-wrapper .footer-col {
    flex: 1 1 48% !important; 
  }

  .footer-counters .counter {
    flex: 1 1 calc(45% - 10px) !important;
  }

  .footer-col.newsletter {
    text-align: left;  
  }

  .footer-col.newsletter form { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 6px; 
    width: 100%;
  }

  .footer-col.newsletter input {
    width: 100%; 
    height: 36px;      
    text-align: left;
    padding: 6px 10px;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px; 
    color: #111;
  }

  .footer-col.newsletter button {
    width: 100%;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column !important; 
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px; 
  }

  .social-icons {
    gap: 12px;
  }

  .social-icons a {
    font-size: 22px; 
    padding: 8px;
  }
}

/* ===========================
   DESKTOP / TABLET FIX
=========================== */
@media (min-width: 769px) {
  .footer-col.newsletter {
    text-align: left;
  }

  .footer-col.newsletter form {
    display: flex;
    flex-direction: row;
    gap: 6px;
    max-width: 600px;
    width: 100%;
    margin: 0;
  }

  .footer-col.newsletter input {
    flex: 1 1 70%;
    height: 40px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #111;
  }

  .footer-col.newsletter button {
    flex: 1 1 30%;
    height: 40px;
    padding: 0 12px;
    background-color: #111;
    color: #FFD700;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
  }

  .footer-col.newsletter button:hover {
    background-color: #fff;
    color: #111;
  }
}

/* Sleek pointed divider after MacVillas description */
.footer-divider {
  width: 100%;
  height: 3px;
  margin: 10px 0 12px 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.8) 10%,
    rgba(0,0,0,1) 50%,
    rgba(0,0,0,0.8) 90%,
    rgba(0,0,0,0) 100%
  );
  opacity: 1;
  border: none;
}












.counters-section {
  position: relative;
  /* Animated black-gold gradient background */
  background: linear-gradient(135deg, #000000, #111111, #1a1a1a, #2a1b00, #d4af37);
  background-size: 400% 400%;
  animation: goldFlow 15s ease infinite;

  color: #fff;
  padding: 120px 20px;
  text-align: center;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Animate gradient flow */
@keyframes goldFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Subtle overlay to soften the gold */
.counters-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 0.8) 80%);
  z-index: 1;
}

/* Layout */
.footer-counters {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Glassy Gold Cards === */
.counter.glass-card {
  flex: 1 1 220px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 50px 25px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease, transform 1s ease;
  opacity: 0;
  transform: translateY(60px);
}

/* Gold reflective frame */
.counter.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #d4af37, #ffffff20, #d4af37);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Hover with gold glow */
.counter.glass-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 60px rgba(212, 175, 55, 0.3);
  background: rgba(255, 215, 0, 0.1);
}

/* === Slide-in Animation === */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delayed entrance for each card */
.counter.glass-card:nth-child(1) {
  animation: slideInUp 1s ease forwards;
  animation-delay: 0.2s;
}
.counter.glass-card:nth-child(2) {
  animation: slideInUp 1s ease forwards;
  animation-delay: 0.4s;
}
.counter.glass-card:nth-child(3) {
  animation: slideInUp 1s ease forwards;
  animation-delay: 0.6s;
}
.counter.glass-card:nth-child(4) {
  animation: slideInUp 1s ease forwards;
  animation-delay: 0.8s;
}

/* === Gold Counter Text === */
.counter .count {
  display: block;
  font-size: 3.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #d4af37, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* White-gold Label Text */
.counter p {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}




/* ===============================
   TERMS & CONDITIONS TRAY STYLES
   =============================== */

/* Overlay */
.tc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9998;
}

/* Tray */
.tc-tray {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 1000px;
  max-height: 90%;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  z-index: 9999;
  display: none;
  box-sizing: border-box;
}

.tc-tray.active {
  display: block;
}

/* Header */
.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tc-header h2 {
  color: #000;
  font-size: 28px;
}

.tc-close {
  font-size: 28px;
  cursor: pointer;
  color: #000;
}

/* Content Cards */
.tc-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tc-card {
  background: rgba(255, 215, 0, 0.2); /* FFD700 glassy gold */
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  color: #000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  box-sizing: border-box;
  word-wrap: break-word;
}

.tc-card h3, .tc-card h4 {
  color: #000;
  margin-bottom: 10px;
}

.tc-card p, .tc-card ul {
  color: #111;
  font-size: 14px;
  line-height: 1.5;
}

.tc-card ul {
  padding-left: 20px;
}

/* Scrollbar */
.tc-tray::-webkit-scrollbar {
  width: 8px;
}

.tc-tray::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

/* ===============================
   MOBILE RESPONSIVENESS
   =============================== */
@media (max-width: 768px) {
  .tc-tray {
    width: 95%;
    padding: 20px;
  }

  .tc-header h2 {
    font-size: 22px;
  }

  .tc-card {
    padding: 15px;
  }

  .tc-card p, .tc-card ul {
    font-size: 13px;
  }
}
