/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: #f8f8f8; font-size: 16px; color: #111; overflow-x: hidden; }

/* HEADER */
.heatmap-header {
  position: relative; top: 0; width: 100%; background: #fff;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); z-index: 1000;
  padding: 15px 20px; transition: all 0.3s ease-in-out;
}
.heatmap-header.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.heatmap-logo { height: 120px; transition: all 0.3s ease-in-out; }
@media (min-width: 768px) { .heatmap-logo { height: 150px; } }
@media (min-width: 1024px) { .heatmap-logo { height: 180px; } }
@media (max-width: 768px) { .heatmap-logo { height: 100px; } }
@media (max-width: 480px) { .heatmap-logo { height: 80px; } }






/* =========================
   FILTER BAR (STATIC, DOES NOT OVERLAY)
========================= */
.filter-bar {
  display: flex; 
  justify-content: center; 
  gap: 12px; 
  flex-wrap: wrap;
  background: #f8f8f8; 
  padding: 10px 0;
  margin: 20px auto; /* space between header and map */
  position: relative; /* scrolls naturally */
  top: auto; /* remove sticky offset */
  z-index: 0; /* no overlay */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-btn {
  padding: 8px 20px; 
  border-radius: 30px; 
  border: 1px solid #FFD700;
  background: #fff; 
  color: #333; 
  font-weight: 500; 
  cursor: pointer;
  font-size: 14px; 
  min-width: 60px; 
  white-space: nowrap;
  transition: all 0.3s ease;
}

.filter-btn:hover { 
  background: #FFD700; 
  color: #111; 
  transform: scale(1.05); 
}

.filter-btn.active { 
  background: #FFD700; 
  color: #111; 
  border-color: #e6c200; 
}







/* MAP */
#map { width: 100%; height: calc(100vh - 240px); }
@media (max-width: 768px) { #map { height: calc(100vh - 200px); } }
@media (max-width: 480px) { #map { height: calc(100vh - 180px); } }





/* =========================
   WIFI DOT WITH LABEL
========================= */
.wifi-dot-container {
  position: relative;
  width: 14px;
  height: 14px;
}

.wifi-dot {
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background-color: red;
  box-shadow: 0 0 6px red;
  animation: blink 1.5s infinite;
}

.wifi-dot::before,
.wifi-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  border: 2px solid red;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.6;
  animation: pulse 2s infinite;
}

.wifi-dot::after {
  animation-delay: 1s;
}

.wifi-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: red;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  animation: blink 1.5s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; transform: scale(1); }
  25%, 75% { opacity: 0.4; transform: scale(1.2); }
}

















/* =========================
   HEATMAP DESCRIPTION (PROFESSIONAL STYLE)
========================= */
.heatmap-description {
  text-align: center;
  margin: 160px auto 20px auto; /* space below header */
  padding: 20px 30px;
  max-width: 1000px;
  background: linear-gradient(135deg, #fff8e1, #fff1b8); /* soft golden gradient */
  border-left: 6px solid #FFD700; /* MacVillas gold accent */
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  color: #111;
  line-height: 1.8;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;
}

.heatmap-description p {
  margin: 0;
  padding: 0;
}

/* Highlight important keywords */
.heatmap-description span {
  font-weight: 600;
  color: #FFD700;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .heatmap-description {
    font-size: 15px;
    padding: 16px 20px;
    margin-top: 140px;
  }
}

@media screen and (max-width: 480px) {
  .heatmap-description {
    font-size: 14px;
    padding: 12px 16px;
    margin-top: 120px;
  }
}





.wifi-label-pulse {
  animation: label-pulse 1.5s infinite;
}

@keyframes label-pulse {
  0%, 50%, 100% { opacity: 1; transform: scale(1); }
  25%, 75% { opacity: 0.4; transform: scale(1.2); }
}











/* =========================
   FINAL SECTION BEFORE FOOTER
========================= */
.final-section {
  background: linear-gradient(135deg, #fff8e1, #fff1b8);
  border-left: 6px solid #FFD700;
  padding: 50px 20px;
  text-align: center;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.final-section h2 {
  font-size: 28px;
  color: #111;
  margin-bottom: 15px;
}

.final-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  max-width: 900px;
  margin: 0 auto 25px auto;
}

.final-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.final-btn {
  padding: 10px 25px;
  border-radius: 30px;
  background: #FFD700;
  color: #111;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.final-btn:hover {
  background: #e6c200;
  transform: scale(1.05);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .final-section h2 { font-size: 24px; }
  .final-section p { font-size: 15px; }
}

@media screen and (max-width: 480px) {
  .final-section h2 { font-size: 20px; }
  .final-section p { font-size: 14px; }
}








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









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







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