/* Location Page Specific Styles */

/* Page Header */
.page-header {
  padding: 8rem 0 4rem;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.header-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.header-content h1 {
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Location Info */
.location-info {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.detail-card:hover::before {
  transform: scaleX(1);
}

.detail-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.detail-card:hover .detail-icon {
  transform: scale(1.1) rotate(5deg);
}

.detail-content h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.detail-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.directions-btn:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  gap: 2rem;
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item span:first-child {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
  min-width: 140px;
}

.hours-item span:last-child {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: var(--primary-color);
}

.contact-item i {
  color: var(--primary-color);
  width: 1.25rem;
  text-align: center;
}

.location-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-large);
  transition: transform 0.3s ease;
}

.image-container:hover {
  transform: scale(1.02);
}

.store-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.image-container:hover .image-overlay {
  transform: translateY(0);
}

.overlay-content h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.overlay-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Map Section */
.map-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.map-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-large);
}

.location-map {
  display: block;
  border-radius: 1rem;
}

.map-placeholder {
  height: 400px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="maplines" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 0 20 L 20 0 M 0 0 L 20 20" stroke="rgba(30, 64, 175, 0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23maplines)"/></svg>');
  opacity: 0.5;
}

.map-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 500px;
  padding: 2rem;
}

.map-content i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.map-content h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.map-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.map-coordinates {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Landmarks */
.landmarks {
  padding: 6rem 0;
  background: var(--bg-tertiary);
}

.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.landmark-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.landmark-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.landmark-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.landmark-card:hover::before {
  transform: scaleX(1);
}

.landmark-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.landmark-card:hover .landmark-icon {
  transform: scale(1.1) rotate(5deg);
}

.landmark-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.landmark-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
}

/* Contact Form Section */
.contact-form-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-side h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contact-info-side p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-feature {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.contact-feature i {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-feature h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.contact-feature p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
}

.contact-form {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Active nav link */
.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .detail-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .detail-icon {
    align-self: center;
  }
  
  .hours-item {
    flex-direction: row;
    gap: 1rem;
    text-align: left;
    flex-wrap: wrap;
  }
  
  .hours-item span:first-child {
    min-width: 120px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-info-side {
    text-align: center;
  }
  
  .contact-features {
    align-items: center;
  }
  
  .contact-feature {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .landmarks-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .map-placeholder {
    height: 300px;
  }
  
  .location-map {
    height: 350px;
  }
  
  .map-content {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .detail-card {
    padding: 1.5rem;
  }
  
  .landmark-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .landmarks-grid {
    grid-template-columns: 1fr;
  }
  
  .location-map {
    height: 300px;
  }
  
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .location-info,
  .map-section,
  .landmarks,
  .contact-form-section {
    padding: 3rem 0;
  }
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: #ef4444;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
  border-color: #10b981;
}

/* Loading state for form */
.contact-form.loading .btn {
  opacity: 0.7;
  pointer-events: none;
}

.contact-form.loading .btn::after {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

