/* Modern Location Page Styles */
:root {
  --primary-color: #4779A9;
  --second-color: #EACC88;
  --primary-color-light: #5E8EBC;
  --primary-color-dark: #00274D;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 100%);
  --shadow-soft: 0 10px 30px rgba(71, 121, 169, 0.1);
  --shadow-medium: 0 15px 40px rgba(71, 121, 169, 0.15);
  --shadow-strong: 0 20px 50px rgba(71, 121, 169, 0.2);
  --border-radius: 20px;
  --border-radius-small: 12px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--primary-color-dark);
  font-family: 'DMSerifDisplayRegular';
}

body {
  font-family: 'WorkSansRegular', sans-serif;
  line-height: 1.6;
}

/* Main Container */
.location {
  background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
  min-height: 100vh;
  padding: 80px 0;
  overflow-x: hidden;
}

/* Hero Section */
.location-hero {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.location-hero::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: none;
  line-height: 1.2;
}

.second-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: none;
  position: relative;
  display: inline-block;
  font-family: 'DMSansRegular', 'WorkSansRegular', sans-serif;
}

.second-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--second-color);
  border-radius: 2px;
}

/* Location Info Cards */
.location-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid rgba(71, 121, 169, 0.1);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

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

.info-card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 24px;
}

.info-card h4 {
  color: var(--primary-color-dark);
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: none;
}

.info-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Map Container */
.map-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
  contain: layout style paint;
  isolation: isolate;
}

/* Prevent map scroll from affecting page */
.map-container * {
  scroll-behavior: auto !important;
}

.map-container iframe {
  scroll-behavior: auto !important;
  overscroll-behavior: contain;
}

.map-header {
  background: var(--gradient-primary);
  padding: 25px 30px;
  color: white;
  text-align: center;
}

.map-header h3 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.map-wrapper {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  contain: layout style paint;
  touch-action: manipulation;
}

.map {
  width: 100%;
  position: relative;
  min-height: 500px;
  contain: layout style paint;
  overflow: hidden;
}

.map .fa-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  color: var(--primary-color);
}

.map-embed {
  border: none;
  border-radius: 0;
  z-index: 10;
  position: relative;
  width: 100%;
  height: 500px;
  filter: grayscale(20%) brightness(1.1);
  transition: all 0.3s ease;
  pointer-events: auto;
  overflow: hidden;
  contain: layout style paint;
  touch-action: pan-x pan-y;
}

.map-embed:hover {
  filter: grayscale(0%) brightness(1);
}

/* Additional scroll containment */
.map-embed {
  overscroll-behavior: contain;
  scroll-snap-type: none;
}

/* Prevent map from capturing scroll events */
.map-container:focus-within {
  outline: none;
}

/* Ensure proper scroll containment on mobile */
@media (max-width: 768px) {
  .map-container {
    touch-action: pan-y;
  }
  
  .map-embed {
    touch-action: pan-x pan-y;
    overscroll-behavior: contain;
  }
}

/* Action Buttons */
.map-actions {
  padding: 30px;
  background: #f8fbff;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-direction {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 199px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'WorkSansBold', sans-serif;
  text-transform: uppercase;
}

.btn-direction:hover {
  background: var(--primary-color-light);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: 199px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'WorkSansBold', sans-serif;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* Additional Info Section */
.additional-info {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  margin-top: 40px;
}

.additional-info h3 {
  color: var(--primary-color-dark);
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
}

.additional-info h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8fbff;
  border-radius: var(--border-radius-small);
  border-left: 4px solid var(--primary-color);
}

.info-item i {
  color: var(--primary-color);
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.info-item span {
  color: var(--primary-color-dark);
  font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 991px) {
  .main-title {
    font-size: 2.5rem;
  }
  
  .second-title {
    font-size: 2rem;
  }
  
  .location-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .map-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-direction,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .location {
    padding: 40px 0;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .second-title {
    font-size: 1.5rem;
  }
  
  .map-embed {
    height: 350px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .additional-info {
    padding: 25px;
  }
}