/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  border-bottom: 1px solid #ccc; /* thin line separating header from hero */
  padding: 20px 30px;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ===== HERO / DESCRIPTION ===== */
.description {
  background: url('images/hero.jpg') no-repeat center center/cover; /* keep your hero image */
  text-align: center;
  padding: 80px 20px;
  color: #fff;
}

.description h1 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 900;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.description p {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.search-bar input {
  width: 70%;
  max-width: 500px;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #FFD700;
  border-radius: 25px;
  outline: none;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: #c2ba00;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}

.search-bar button {
  padding: 12px 15px;
  border: none;
  background: #FFD700;
  color: #000;
  font-size: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  background: #c2ba00;
}















/* ===== LISTINGS GRID ===== */
.listings-slider {
  position: relative;
  padding: 60px 20px;
  text-align: center;
}

.listings-slider h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 900;
}

.properties-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* desktop 4 columns */
  gap: 30px;
  justify-items: center;
}

/* ===== PROPERTY CARD ===== */
.property-slide {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* Set uniform height for images so cards align */
.property-images-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-bottom: 1px solid #ccc;
}

.property-images {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

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

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

/* ===== PROPERTY DETAILS ===== */
.property-details {
  padding: 15px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 180px; /* ensures uniform card height */
}

.property-details h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 900;
}

.property-details p {
  font-size: 16px;
  margin: 5px 0;
  flex-grow: 1; /* fill remaining space so button stays at bottom */
}

.property-details i {
  margin-right: 8px;
  color: #FFD700;
}

/* Separator + button wrapper */
.buy-btn-wrapper {
  margin-top: 15px;
  border-top: 1px solid #ccc; /* separator line */
  padding-top: 12px;
  text-align: center;
}

.buy-btn {
  padding: 10px 15px;
  background: #FFD700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  color: #000;
}

.buy-btn:hover {
  background: #c2ba00;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  margin: 60px auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  position: relative;
}

.modal-content .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

.modal-images-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

.modal-images {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.modal-images img {
  min-width: 100%;
  display: block;
  scroll-snap-align: start;
}

.modal-image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FFD700;
  border: none;
  font-size: 24px;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 50%;
  color: #000;
}

.modal-image-arrow.left {
  left: 10px;
}

.modal-image-arrow.right {
  right: 10px;
}

/* Modal form */
#contactForm {
  display: flex;
  flex-direction: column;
}

#contactForm label {
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 600;
}

#contactForm input,
#contactForm textarea,
#contactForm select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #000;
  font-size: 14px;
}

#contactForm button {
  margin-top: 15px;
  padding: 10px 15px;
  border: none;
  background: #FFD700;
  color: #000;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
}

#contactForm button:hover {
  background: #c2ba00;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .properties-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .properties-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
  }

  .property-slide {
    flex: 0 0 80%;
    min-width: 300px;
  }

  .property-images {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .property-images img {
    scroll-snap-align: start;
  }

  .image-arrow,
  .modal-image-arrow {
    display: none;
  }

  .modal-content {
    width: 90%;
    margin: 40px auto;
  }
}

@media (max-width: 480px) {
  .property-slide {
    flex: 0 0 90%;
  }
}



/* ===== VIEW DETAILS BUTTON ===== */
.toggle-details-btn {
  margin-top: 12px; /* space from above content */
  padding: 10px 15px;
  background: #000; /* changed from blue to black */
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: background 0.3s ease;
}

.toggle-details-btn:hover {
  background: #222; /* subtle darker black on hover */
}

/* Make button container align buttons at the bottom of card */
.button-container {
  display: flex;
  justify-content: space-between; /* Buy on one side, View Details on other */
  align-items: center;
  margin-top: auto; /* push buttons to the bottom */
  padding-top: 12px;
  border-top: 1px solid #ccc; /* separator line */
}




















/* ===== WHY RENT SECTION STYLING ===== */
.why-rent-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #FFD700 0%, #000000 100%);
  color: #fff;
  text-align: center;
}

.why-rent-section h2 {
  font-size: 36px;
  margin-bottom: 50px;
  font-weight: 900;
}

.why-rent-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

.why-card {
  background: rgba(255, 255, 255, 0.05); /* glassy effect */
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.why-card i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #FFD700;
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 900;
}

.why-card p {
  font-size: 16px;
  line-height: 1.6;
}










/* ===== RENT ASSISTANT BOT ===== */
.rent-bot {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;          /* fixed width */
  max-width: 300px;      /* prevent expansion on mobile */
  background: rgba(255,255,255,0.8);
  border: 2px solid #007BFF;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 1000;
}

.rent-bot.active {
  transform: translateY(0);
}

.bot-header {
  background: linear-gradient(90deg, #007BFF, #042591);
  color: #000;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
}

.bot-header i {
  cursor: pointer;
}

.bot-body {
  padding: 10px 15px;
  max-height: 250px;
  overflow-y: auto;
  font-size: 14px;
  color: #000;
}

.bot-message {
  background: rgba(0,123,255,0.2);
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  word-wrap: break-word;
}

/* New style for clickable bot option buttons */
.bot-option {
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 6px 10px;
  margin: 3px 3px 3px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
}

.bot-option:hover {
  background: #0056b3;
}

/* Footer for input */
.bot-footer {
  display: flex;
  padding: 8px 10px;
  border-top: 1px solid #007BFF;
  background: rgba(255,255,255,0.6);
}

.bot-footer input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  outline: none;
}

.bot-footer button {
  margin-left: 5px;
  background: #007BFF;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
}

/* Floating toggle button */
.bot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(90deg, #007BFF, #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 1000;
}

/* Optional: smooth scrolling for bot body */
.bot-body::-webkit-scrollbar {
  width: 6px;
}

.bot-body::-webkit-scrollbar-thumb {
  background: rgba(0,123,255,0.5);
  border-radius: 3px;
}

/* Prevent bot from being too wide on very small screens */
@media (max-width: 320px) {
  .rent-bot {
    width: 280px;
    max-width: 280px;
    right: 10px;  /* small offset from screen edge */
  }
}



















/* ===== LIST YOUR PROPERTY SECTION ===== */
.list-property-section {
  width: 100%;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.list-property-section h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #000;
}

.list-property-section p {
  font-size: 16px;
  max-width: 800px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #000;
}

/* ===== TOGGLE BUTTON ===== */
.toggle-form-btn {
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #FFD700;
  background: #000;
  color: #FFD700;
  border-radius: 12px;       /* only the button has rounded edges */
  transition: all 0.3s ease;
}

.toggle-form-btn:hover {
  background: #FFD700;
  color: #000;
}

/* ===== PROPERTY FORM WRAPPER ===== */
.property-form-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
  max-height: 0;                 
  overflow: hidden;              
  transition: max-height 0.5s ease, padding 0.5s ease, background 0.5s ease;
  padding: 0;                    
  background: transparent;       
  box-sizing: border-box;
  border: 1px solid transparent;
}

/* When active (expanded) */
.property-form-wrapper.active {
  padding: 25px 20px;
  max-height: 1500px;            
  background: #fff8dc;           
  border: 1px solid #FFD700;     
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  border-radius: 0;               
}

/* ===== FORM ===== */
#listPropertyForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

#listPropertyForm label {
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

#listPropertyForm input,
#listPropertyForm select,
#listPropertyForm textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #000;
  outline: none;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
}

#listPropertyForm textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== AMENITIES CHECKBOXES ===== */
#listPropertyForm .amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 10px 0 20px 0; 
}

#listPropertyForm .amenities label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  white-space: nowrap;
}

#listPropertyForm .amenities input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #FFD700; /* gold checkbox tick */
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
  padding: 12px 20px;
  background: #FFD700;
  color: #000;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #c2ba00;
  color: #000;
}

/* ===== SLIDE-IN ANIMATION ===== */
.list-property-section .property-form-wrapper,
.list-property-section h2,
.list-property-section p,
.list-property-section .toggle-form-btn {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.list-property-section.active h2,
.list-property-section.active p,
.list-property-section.active .toggle-form-btn {
  opacity: 1;
  transform: translateY(0);
}

.list-property-section.active .property-form-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .property-form-wrapper {
    width: 95%;
  }
}

@media (max-width: 480px) {
  #listPropertyForm .amenities label {
    width: 100%;
  }
}





/* === FIX: Stop page from moving on touch/scroll === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* === FIX: Responsive grid (auto-fit without breaking) === */
.properties-wrapper {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.why-rent-cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* === FIX: Mobile text scaling === */
@media (max-width: 480px) {
  .description h1 {
    font-size: 24px;
  }
  .description p {
    font-size: 14px;
  }
}







.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;
  }
}










/* ===== RENT ASSISTANT BOT ===== */
.rent-bot {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;          /* fixed width */
  max-width: 300px;      /* prevent expansion on mobile */
  background: rgba(255,255,255,0.8);
  border: 2px solid #007BFF;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 1000;
}

.rent-bot.active {
  transform: translateY(0);
}

.bot-header {
  background: linear-gradient(90deg, #007BFF, #042591);
  color: #000;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
}

.bot-header i {
  cursor: pointer;
}

.bot-body {
  padding: 10px 15px;
  max-height: 250px;
  overflow-y: auto;
  font-size: 14px;
  color: #000;
}

/* ====== MESSAGE BUBBLES ====== */
.bot-message {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
  font-size: 14px;
}

/* User messages on right */
.bot-message.user {
  justify-content: flex-end;
}

.bot-message.user .msg-text {
  background: #007BFF;
  color: #fff;
  border-radius: 10px 10px 0 10px;
  padding: 8px 12px;
  max-width: 70%;
  word-wrap: break-word;
}

/* Bot messages on left */
.bot-message.assistant {
  justify-content: flex-start;
}

.bot-message.assistant .msg-text {
  background: #f1f1f1;
  color: #000;
  border-radius: 10px 10px 10px 0;
  padding: 8px 12px;
  max-width: 70%;
  word-wrap: break-word;
}

/* Avatar for bot messages */
.msg-avatar {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  flex-shrink: 0;
}

.msg-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== BOT OPTION BUTTONS ===== */
.bot-option {
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 6px 10px;
  margin: 3px 3px 3px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
}

.bot-option:hover {
  background: #0056b3;
}

/* Footer for input */
.bot-footer {
  display: flex;
  padding: 8px 10px;
  border-top: 1px solid #007BFF;
  background: rgba(255,255,255,0.6);
}

.bot-footer input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 16px;             /* Prevent zoom on mobile Safari */
  -webkit-text-size-adjust: 100%; /* Stop iOS auto-resizing */
}

.bot-footer button {
  margin-left: 5px;
  background: #007BFF;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;             /* Match input font size */
}

/* Floating toggle button */
.bot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(90deg, #007BFF, #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 1000;
}

/* Optional: smooth scrolling for bot body */
.bot-body::-webkit-scrollbar {
  width: 6px;
}

.bot-body::-webkit-scrollbar-thumb {
  background: rgba(0,123,255,0.5);
  border-radius: 3px;
}

/* Prevent bot from being too wide on very small screens */
@media (max-width: 320px) {
  .rent-bot {
    width: 280px;
    max-width: 280px;
    right: 10px;  /* small offset from screen edge */
  }
}
















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

.property-images {
  display: flex;
  width: 100%;
  position: relative;
}

.property-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: none; /* Only the current one shows */
  border-radius: 10px;
  transition: opacity 0.4s ease;
}

/* Show first image by default */
.property-images img:first-child {
  display: block;
}

/* Overlay arrow buttons */
.image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FFD700;
  color: #fff;
  border: 2px solid #FFD700;
  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 */
.image-arrow.left {
  left: 10px;
}

.image-arrow.right {
  right: 10px;
}

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

/* Smaller screens */
@media (max-width: 768px) {
  .image-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}








/* ===========================
   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;
  }
}
