/* ZNZ performance/mobile compatibility patch. No brand/theme redesign. */
img, video, iframe { max-width: 100%; }
img { vertical-align: middle; }
@media (max-width: 767px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body { width: 100%; }
  .navbar { padding-inline: 1.1rem; }
  .footer-content { width: 100%; margin: 0 auto; min-width: 0; }
  .footer-section { min-width: 0; }
  .footer-description, .footer-list, .contact-info { overflow-wrap: anywhere; }
  .bgi { min-width: 0; max-width: 100%; }
  .bgi img { width: 100%; max-width: 100%; height: auto; margin-left: 0; object-fit: cover; }
  #cont { flex-wrap: wrap; max-width: 100%; row-gap: 1.5rem; }
  #cont .about-content { min-width: 0; max-width: 100%; }
  .villa-wrapper { width: calc(100% - 24px); height: auto; min-height: 0; flex-direction: column; }
  .villa-info, .villa-gallery { width: 100%; min-width: 0; }
  .villa-info { padding: 24px; }
  .villa-gallery { height: min(65vw, 380px); min-height: 230px; }
  .resort-section { padding: 60px 18px; }
  .tree-container { padding-inline: 10px; }
  .tree-steps { flex-wrap: wrap; gap: 12px; }
  .tree-node { width: calc(50% - 12px); min-width: 0; padding: 10px 6px; }
  .tree-label { overflow-wrap: anywhere; }
  .tree-line { display: none; }
  .project-heading { width: 100%; height: auto; min-height: 70px; padding-inline: 12px; }
  .project-popup { width: min(300px, calc(100vw - 28px)); max-height: 58vh; overflow-y: auto; padding: 18px 58px 18px 15px; }
  .project-popup.active { left: 8px; }
  .hexagon-wrapper, .main-container, .cube-wrapper { max-width: 100%; }
  .scene { max-width: min(300px, calc(100vw - 32px)); }
  .hex-front { width: min(600px, calc(100vw - 32px)); max-width: 100%; }
  .hex-front h1 { overflow-wrap: anywhere; font-size: clamp(1.2rem, 5vw, 2rem); }
  .hexagon-wrapper { max-width: calc(100vw - 32px); }

  .hero-content, .about-content, .video-container { max-width: 100%; }
  .video-section { padding-inline: 12px; }
}
@media (max-width: 480px) {
  .cube-container { width: 120px; height: 120px; }
  .hexagon-wrapper { left: 0; width: calc(100vw - 32px); margin-left: 0; transform: translate(0, -50%) scale(.9); }
  .hexagon-wrapper.show { transform: translate(0, -50%) scale(1); }
  .main-container.show-hex .cube-wrapper { transform: translate(-68%, -50%) scale(.75); }
  .cube-container .face { width: 120px; height: 120px; }
  .cube-container .front { transform: translateZ(60px); }
  .cube-container .back { transform: translateZ(-60px) rotateY(180deg); }
  .cube-container .right { transform: translateX(60px) rotateY(90deg); }
  .cube-container .left { transform: translateX(-60px) rotateY(-90deg); }
  .cube-container .top { transform: translateY(-60px) rotateX(90deg); }
  .cube-container .bottom { transform: translateY(60px) rotateX(-90deg); }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.5rem); overflow-wrap: break-word; }
  .villa-info { padding: 20px 16px; }
  .tree-node i { font-size: 2rem; }
  .footer { padding-inline: 1rem; }
  .footer-section, .footer-list, .footer-heading { max-width: 100%; }
}
@media (max-width: 360px) {
  .navbar { padding-inline: 0.85rem; }
  .slogan-para { width: 85px; }
  .project-popup { max-height: 50vh; }
}
