/* Address Modal Styles */

.address-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.address-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.address-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.address-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s, transform 0.2s;
  z-index: 1;
}

.address-modal-close:hover {
  color: #000;
  transform: scale(1.1);
}

.address-modal-body {
  padding: 40px 32px 32px;
}

.address-modal-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: #1a1a1a;
  font-family: 'Raleway', sans-serif;
}

.address-modal-section {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.address-modal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.address-modal-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.address-modal-subtitle {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #1a1a1a;
  font-family: 'Raleway', sans-serif;
}

.address-modal-text-large {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #2c2c2c;
  line-height: 1.5;
}

.address-modal-text-small {
  font-size: 14px;
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.address-modal-map {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.address-modal-map-img {
  width: 100%;
  height: auto;
  display: block;
}

.address-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.address-modal-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'Raleway', sans-serif;
}

.address-modal-btn-primary {
  background: #1a1a1a;
  color: #ffffff;
}

.address-modal-btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.address-modal-btn-secondary {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.address-modal-btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .address-modal {
    padding: 16px;
  }

  .address-modal-content {
    border-radius: 12px;
    max-height: 85vh;
  }

  .address-modal-body {
    padding: 32px 24px 24px;
  }

  .address-modal-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .address-modal-section {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .address-modal-icon {
    font-size: 24px;
  }

  .address-modal-subtitle {
    font-size: 15px;
  }

  .address-modal-text-large {
    font-size: 16px;
  }

  .address-modal-text-small {
    font-size: 13px;
  }

  .address-modal-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .address-modal-btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .address-modal-close {
    top: 12px;
    right: 12px;
    font-size: 28px;
  }
}

/* Small mobile */
@media screen and (max-width: 480px) {
  .address-modal {
    padding: 12px;
  }

  .address-modal-body {
    padding: 28px 20px 20px;
  }

  .address-modal-title {
    font-size: 22px;
  }

  .address-modal-text-large {
    font-size: 15px;
  }
}

/* Ensure modal appears above everything */
.address-modal {
  isolation: isolate;
}
