@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

:root {
  --pink-light: #fff0f5;
  --pink-main: #ffb6c1;
  --pink-dark: #ff69b4;
  --pink-deep: #e94560;
  --white: #ffffff;
  --text-dark: #333333;
}

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

body {
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--pink-light) 100%);
  color: var(--text-dark);
}

/* Global Container Styles */
.container, .mystery-container, .page-map-wrapper {
  text-align: center;
  padding: 2rem;
  margin: 2rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(255, 182, 193, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: fadeIn 1s ease-out;
  width: 100%;
  max-width: 800px;
}

.page-map-wrapper {
  max-width: 1000px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--pink-dark);
  text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.2);
}

p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(45deg, var(--pink-main), var(--pink-dark));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
  margin: 0.5rem;
}

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 105, 180, 0.6);
  color: var(--white);
}

.btn-back {
  background: transparent;
  border: 2px solid var(--pink-dark);
  color: var(--pink-dark);
  box-shadow: none;
}

.btn-back:hover {
  background: var(--pink-dark);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

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

/* Collage Styles */
.collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 0 auto 2rem auto;
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(255, 182, 193, 0.3);
}

.collage-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.collage-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.collage-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 105, 180, 0.4);
  z-index: 10;
}

.collage-item:hover img {
  transform: scale(1.1);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 240, 245, 0.9);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(255, 105, 180, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  object-fit: contain;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  color: var(--pink-dark);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
  color: var(--pink-deep);
  transform: scale(1.1);
}

/* Map Styles */
.map-responsive-container {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(255, 182, 193, 0.3);
  margin-bottom: 2rem;
}

.map-responsive-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Design */
@media (min-width: 768px) {
  .container, .mystery-container, .page-map-wrapper {
    padding: 4rem;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  .collage-item img {
    height: 250px;
  }
  
  .map-responsive-container {
    height: 60vh;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  
  .collage {
    grid-template-columns: 1fr;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}
