/* Original background styles for admin and other pages */
.bg {
  background-color: #7BD16D;
  background-repeat: no-repeat;
  background-image: url('/web/images/bg.png');
  background-size: 100% auto;
  margin: 0;
}

/* Homepage-specific styles */
.homepage {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.homepage * {
  box-sizing: border-box;
}

/* Hero Section */
.homepage .hero-section {
  background: linear-gradient(135deg, #00D4C4 0%, #1BCEBD 100%);
  min-height: 100vh;
  position: relative;
  padding: 20px;
}

.homepage .social-links {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.homepage .social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.homepage .social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.homepage .social-btn img {
  width: 24px;
  height: 24px;
}

.homepage .hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 100vh;
  gap: 60px;
}

.homepage .hero-content {
  flex: 1;
  max-width: 500px;
}

.homepage .logo-container {
  margin-bottom: 45px;
}

.homepage .hero-logo {
  width: 120px;
  height: 120px;
}

.homepage .hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
}

.homepage .hero-subtitle {
  font-size: 1.0rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.homepage .download-container {
  display: flex;
  justify-content: flex-start;
}

.homepage .download-btn {
  display: inline-block;
  transition: transform 0.3s ease;
}

.homepage .download-btn:hover {
  transform: translateY(-2px);
}

.homepage .download-btn img {
  height: 60px;
  width: auto;
}

.homepage .hero-phone {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.homepage .phone-mockup {
  /* Screen safe-area inside the iPhone frame */
  --screen-top: 2.5%;
  --screen-right: 4.8%;
  /* Lower bottom inset so video reaches frame bottom */
  --screen-bottom: 2.5%;
  --screen-left: 4.8%;
  --screen-radius: 5.5%;
  position: relative;
  /* Reduce overall frame size ~50% from original */
  max-width: 220px;
  width: 100%;
  max-height: 80vh;
}

.homepage .phone-screen {
  position: absolute;
  top: var(--screen-top);
  right: var(--screen-right);
  bottom: var(--screen-bottom);
  left: var(--screen-left);
  width: calc(100% - var(--screen-left) - var(--screen-right));
  height: calc(100% - var(--screen-top) - var(--screen-bottom));
  display: block;
  object-fit: cover;
  object-position: center bottom;
  border-radius: var(--screen-radius);
  overflow: hidden;
  /* Ensure the rounded corners match the frame but avoid extra masking that might shrink content */
  mask-image: none;
  -webkit-mask-image: none;
  transform: translateZ(0);
  will-change: transform;
  z-index: 1;
}

.homepage .phone-frame-overlay {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none; /* allow interactions with the video if needed */
}

/* Reviews Section */
.homepage .reviews-section {
  background: #f8f9fa;
  padding: 80px 20px;
}

.homepage .reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.homepage .reviews-header {
  text-align: center;
  margin-bottom: 60px;
}

.homepage .reviews-rating {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.homepage .rating-number {
  font-weight: 600;
}

.homepage .reviews-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  line-height: 1.2;
}

.homepage .reviews-grid {
  column-count: auto;
  column-width: 280px;
  column-gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.homepage .review-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); */
  /* border: 1px solid #e5e7eb; */
  /* transition: transform 0.2s ease, box-shadow 0.2s ease; */
  break-inside: avoid;
  margin-bottom: 24px;
  display: inline-block;
  width: 100%;
}

/* .homepage .review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
} */

.homepage .review-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1;
}

.homepage .review-username {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}

.homepage .review-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
  line-height: 1.3;
}

.homepage .review-content {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* Collect & Expand Section */
.homepage .collect-section {
  background: #f8f9fa;
  padding: 80px 20px;
}

.homepage .collect-container {
  max-width: 1200px;
  margin: 0 auto;
}

.homepage .collect-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.homepage .collect-text {
  flex: 0 0 auto;
}

.homepage .collect-title {
  font-size: 4rem;
  font-weight: 800;
  color: #2d3748;
  line-height: 1;
  margin-bottom: 0;
}

.homepage .collect-images {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage .buildings-container {
  position: absolute;
  left: 0;
  top: 25%;
  width: 60%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 12px 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.homepage .buildings-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.homepage .mars-container {
  position: absolute;
  right: 0;
  top: 0;
  width: 65%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.homepage .mars-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Features Section */
.homepage .features-section {
  background: #f8f9fa;
  padding: 80px 20px;
}

.homepage .features-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 60px;
}

.homepage .feature-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.homepage .feature-item:last-child {
  margin-bottom: 0;
}

.homepage .feature-image {
  flex: 0 0 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.homepage .feature-img {
  width: 100%;
  height: auto;
  display: block;
}

.homepage .feature-content {
  flex: 1;
}

.homepage .feature-title {
  font-size: 2.0rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 20px;
  line-height: 1.2;
}

.homepage .feature-description {
  font-size: 1.0rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (min-width: 1200px) {
  .homepage .phone-mockup {
    max-width: 320px;
    max-height: 95vh;
  }
}

@media (max-width: 1024px) {
  .homepage .hero-container {
    gap: 40px;
  }
  
  .homepage .hero-title {
    font-size: 2.8rem;
  }
  
  .homepage .collect-title {
    font-size: 3rem;
  }
  
  .homepage .reviews-section {
    padding: 60px 20px;
  }
  
  .homepage .reviews-header {
    margin-bottom: 40px;
  }
  
  .homepage .reviews-title {
    font-size: 2.2rem;
  }
  
  .homepage .reviews-grid {
    column-width: 260px;
    column-gap: 20px;
  }
  
  .homepage .review-card {
    margin-bottom: 20px;
  }
  
  .homepage .collect-content {
    gap: 60px;
  }
  
  .homepage .collect-images {
    height: 350px;
  }
  
  .homepage .phone-mockup {
    max-width: 200px;
    max-height: 60vh;
  }
  
  .homepage .features-section {
    padding: 60px 20px;
  }
  
  .homepage .features-container {
    padding: 40px;
  }
  
  .homepage .feature-item {
    gap: 40px;
    margin-bottom: 60px;
  }
  
  .homepage .feature-image {
    flex: 0 0 350px;
  }
  
  .homepage .feature-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* Further reduce phone mockup on small screens */
  .homepage .phone-mockup {
    max-width: 180px;
    max-height: 50vh;
  }
  .homepage .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: 80px;
  }
  
  .homepage .hero-content {
    max-width: none;
  }
  
  .homepage .hero-title {
    font-size: 2.2rem;
  }
  
  .homepage .hero-subtitle {
    font-size: 1rem;
  }
  
  .homepage .download-container {
    justify-content: center;
  }
  
  .homepage .reviews-section {
    padding: 40px 20px;
  }
  
  .homepage .reviews-header {
    margin-bottom: 30px;
  }
  
  .homepage .reviews-title {
    font-size: 2rem;
  }
  
  .homepage .reviews-grid {
    column-count: 1;
    column-gap: 0;
  }
  
  .homepage .review-card {
    margin-bottom: 16px;
  }
  
  .homepage .review-card {
    padding: 20px;
  }
  
  .homepage .collect-section {
    padding: 40px 20px;
  }
  
  .homepage .collect-section {
    display: none;
  }
  
  .homepage .collect-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .homepage .collect-images {
    height: 300px;
  }
  
  .homepage .collect-title {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .homepage .features-section {
    padding: 60px 20px;
  }
  
  .homepage .features-container {
    padding: 30px;
  }
  
  .homepage .feature-item {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
  }
  
  .homepage .feature-image {
    flex: none;
    max-width: 100%;
  }
  
  .homepage .feature-title {
    font-size: 2rem;
  }
  
  .homepage .feature-description {
    font-size: 1rem;
  }

}

/* Bottom Download Section */
.homepage .bottom-download-section {
  background: #764F7A;
  padding: 80px 20px;
  text-align: center;
}

.homepage .bottom-download-container {
  max-width: 800px;
  margin: 0 auto;
}

.homepage .bottom-download-title {
  font-size: 2.0rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0px;
  line-height: 1.2;
}

.homepage .bottom-download-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.homepage .promo-video-container {
  margin: 30px 0 40px 0;
  display: flex;
  justify-content: center;
}

.homepage .promo-video-container video {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  border: none;
  outline: none;
}

.homepage .bottom-download-section .download-container {
  display: flex;
  justify-content: center;
}

.homepage .bottom-download-section .social-links {
  position: static;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.homepage .bottom-download-section .social-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.homepage .bottom-download-section .social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.homepage .bottom-download-section .social-btn img {
  width: 28px;
  height: 28px;
}

/* Footer */
.homepage .footer {
  background: white;
  padding: 60px 20px 40px;
  text-align: center;
}

.homepage .footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.homepage .footer-logo {
  margin-bottom: 30px;
}

.homepage .footer-logo-img {
  height: 80px;
}

.homepage .footer-copyright {
  margin: 0;
}

.homepage .footer-copyright p {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.7);
  margin: 0;
}

@media (max-width: 480px) {
  .homepage .hero-section {
    padding: 15px;
  }
  
  .homepage .social-links {
    top: 15px;
    right: 15px;
  }
  
  .homepage .hero-title {
    font-size: 1.8rem;
  }
  
  .homepage .reviews-section {
    padding: 40px 15px;
  }
  
  .homepage .reviews-title {
    font-size: 1.8rem;
  }
  
  .homepage .review-card {
    padding: 18px;
  }
  
  .homepage .collect-section {
    padding: 20px 15px;
  }
  
  .homepage .collect-title {
    font-size: 2rem;
  }
  
  .homepage .collect-images {
    height: 250px;
  }
  
  .homepage .features-section {
    padding: 40px 15px;
  }
  
  .homepage .features-container {
    padding: 20px;
  }
  
  .homepage .feature-item {
    margin-bottom: 40px;
  }
  
  .homepage .feature-title {
    font-size: 1.8rem;
  }
  
  .homepage .bottom-download-section {
    padding: 60px 15px;
  }
  
  .homepage .bottom-download-title {
    font-size: 2rem;
  }
  
  .homepage .bottom-download-subtitle {
    font-size: 1rem;
  }
  
  .homepage .promo-video-container {
    margin: 20px 0 30px 0;
  }
  
  .homepage .promo-video-container video {
    max-height: 250px;
  }
  
  .homepage .footer {
    padding: 40px 15px 30px;
  }
  
  .homepage .footer-logo-img {
    height: 60px;
  }

}

/* Legacy styles for backwards compatibility */
.menu-btn {
  margin-top:20px;
  margin-right:12px;
  float:right;
  float:top;
}

.map td {
    width: 50px;
    height: 50px;
}

.searchbar {
    border: none;
    border-radius: 5px;
    height:35px;
    width: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    -webkit-transition: width 100ms linear;
    transition: width 100ms linear;
}

.searchbar-active {
    width: 250px !important;
}

#privacy {
  width:40%;
  height: 100%;
  text-align:center;
}

#revenue:hover {
  color: white;
}

.invite-card {
  background: rgba(30, 30, 30, 0.92);
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 32px 18px 28px 18px;
  margin: 0 auto 24px auto;
  max-width: 420px;
  width: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 600px) {
  .invite-card {
    padding: 18px 6px 18px 6px;
    max-width: 98vw;
  }
}
