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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left, .nav-right {
  flex: 1;
}

.nav-center {
  flex: 0 0 auto;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background-color: #f8f9fa;
  border-radius: 20px;
  font-size: 14px;
  color: #5f6368;
  border: 1px solid #e0e0e0;
}

.beta-badge {
  padding: 6px 14px;
  background-color: #1a73e8;
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Google-style Logo */
.logo {
  font-family: 'Product Sans', Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.5px;
}

.logo-o1 { color: #4285f4; }
.logo-w { color: #ea4335; }
.logo-n { color: #fbbc04; }
.logo-l { color: #4285f4; }
.logo-a { color: #34a853; }
.logo-g { color: #ea4335; }
.logo-o2 { color: #fbbc04; }
.logo-s { color: #4285f4; }

.header {
  padding: 20px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

/* Pills Container */
.pills-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  margin-bottom: 10px;
}

.pill {
  padding: 12px 32px;
  border-radius: 25px;
  border: 2px solid #333;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pill:hover {
  background-color: #f5f5f5;
}

.pill.active {
  background-color: #333;
  color: #ffffff;
}

/* Change Location Button */
.location-container {
  display: flex;
  justify-content: center;
  padding: 20px;
  margin-bottom: 20px;
}

.change-location-btn {
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid #666;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.change-location-btn:hover {
  background-color: #f5f5f5;
  border-color: #333;
}

.location-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid #333;
  background-color: #ffffff;
  max-width: 400px;
  width: 100%;
}

.location-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.search-close-btn:hover {
  color: #333;
}

/* Map Container */
.map-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background-color: #f9f9f9;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.map-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.map-icon-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: white;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
}

.map-icon-btn:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.map-icon-btn svg {
  width: 18px;
  height: 18px;
}

.map-interactive {
  width: 100%;
  height: 500px;
  background-color: #e8f4f8;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.map-interactive iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* Property Pins */
.property-pin {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.property-pin:hover {
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 20;
}

.pin-marker {
  background-color: #2c5f7c;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  white-space: nowrap;
  border: 2px solid white;
}

.property-pin:hover .pin-marker {
  background-color: #1a4159;
}

/* Property Card */
.property-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  width: 320px;
  z-index: 100;
  overflow: hidden;
}

.close-card {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  line-height: 1;
  padding: 0;
}

.close-card:hover {
  background: rgba(0,0,0,0.8);
}

.property-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-details {
  padding: 15px;
}

.property-price {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.property-location {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.property-location::before {
  content: "📍";
}

.property-specs {
  color: #666;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  gap: 15px;
}

.property-agent {
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Embla Carousel Styles */
.embla {
  max-width: 90%;
  margin: 0 auto 30px;
  --slide-height: 19rem;
  --slide-spacing: 1rem;
  --slide-size: 50%;
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  backface-visibility: hidden;
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
}

.embla__slide {
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
}

.embla__slide__number {
  border-radius: 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--slide-height);
  user-select: none;
  background-color: #f5f5f5;
  border: 2px solid #e0e0e0;
  padding: 20px;
  text-align: center;
  color: #333;
}

.slide-content {
  width: 100%;
}

.slide-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

.slide-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.embla__controls {
  display: grid;
  grid-template-columns: auto 1fr;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.embla__buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.embla__button {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: inset 0 0 0 0.2rem #333;
  width: 3.6rem;
  height: 3.6rem;
  z-index: 1;
  border-radius: 50%;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embla__button:disabled {
  color: #999;
  box-shadow: inset 0 0 0 0.2rem #999;
}

.embla__button__svg {
  width: 35%;
  height: 35%;
}

.embla__selected-snap-display {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 500;
  color: #333;
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.launch-notify-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
  transition: all 0.3s ease;
}

.launch-notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.copyright {
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: #333;
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.modal-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-group input[type="email"] {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-group input[type="email"]:focus {
  outline: none;
  border-color: #1a73e8;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.radio-label:hover {
  border-color: #1a73e8;
  background-color: #f8f9fa;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.submit-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#formMessage {
  text-align: center;
  font-weight: 500;
}

#formMessage.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#formMessage.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
  .embla {
    --slide-size: 80%;
  }

  .pills-container {
    padding: 15px;
  }

  .pill {
    padding: 10px 24px;
    font-size: 14px;
  }

  .map-interactive {
    height: 300px;
  }
}
