/* World Map Page Styles */

.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.map-wrapper {
  background: #f4e4c1;
  border: 4px solid #6d4c41;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 95vw;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
}

.map-title {
  text-align: center;
  margin-bottom: 25px;
  color: #2d1810;
  font-family: 'AnimeAce', serif;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.map-description {
  text-align: center;
  margin-bottom: 25px;
  color: #2d1810;
  font-family: 'AnimeAce', serif;
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.map-description p {
  margin-bottom: 15px;
}

#map-display {
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-svg, #map-display svg {
  width: 100%;
  height: auto;
  max-width: 1024px;
  border: 2px solid #8d6e63;
  border-radius: 8px;
  background: #e8f4f8;
  display: block;
  margin: 0 auto;
}

.clickable {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.clickable:hover {
  opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
  .map-title {
    font-size: 2em;
  }
  
  .map-wrapper {
    padding: 15px;
  }
  
  .map-description {
    font-size: 1em;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .map-container {
    padding: 10px;
  }
  
  .map-title {
    font-size: 1.8em;
  }
  
  .map-wrapper {
    padding: 10px;
  }
}

/* Map Disambiguation Modal Styles */
#map-disambiguation-container {
  position: relative;
  z-index: 10000;
}

.map-disambiguation-modal {
  display: none !important;
  position: fixed !important;
  z-index: 9999 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  justify-content: center !important;
  align-items: center !important;
}

.map-disambiguation-modal[style*="flex"] {
  display: flex !important;
}

.map-disambiguation-modal-content {
  background: linear-gradient(135deg, #f4e4c1 0%, #e8d5b0 100%);
  border: 3px solid #6d4c41;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #6d4c41;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background-color: rgba(109, 76, 65, 0.1);
}

.map-disambiguation-modal-content h3 {
  color: #2d1810;
  font-family: 'AnimeAce', serif;
  font-size: 1.8em;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.map-disambiguation-modal-content p {
  color: #5d4037;
  font-family: 'AnimeAce', serif;
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 25px;
}

.map-disambiguation-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.map-disambig-option {
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  border: 2px solid #8d6e63;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-family: 'AnimeAce', serif;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.map-disambig-option:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #2196f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.match-type {
  font-size: 0.8em;
  font-weight: bold;
  color: #6d4c41;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.match-name {
  font-size: 1.1em;
  font-weight: bold;
  color: #2d1810;
}

.match-description {
  font-size: 0.9em;
  color: #5d4037;
  line-height: 1.4;
}

.map-disambig-cancel {
  background: #8d6e63;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-family: 'AnimeAce', serif;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 0 auto;
}

.map-disambig-cancel:hover {
  background: #6d4c41;
}









/* Mobile responsive modal */
@media (max-width: 768px) {
  .map-disambiguation-modal-content {
    padding: 20px;
    margin: 20px;
  }
  
  .map-disambiguation-modal-content h3 {
    font-size: 1.5em;
  }
  
  .map-disambig-option {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .map-disambiguation-modal-content {
    padding: 15px;
    margin: 10px;
  }
  
  .map-disambiguation-modal-content h3 {
    font-size: 1.3em;
  }
}

/* Standard Site Disambiguation Modal Styles */
.disambiguation-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.disambiguation-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  border: 1px solid #dee2e6;
}

.disambiguation-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px 12px 0 0;
}

.disambiguation-modal-header h3 {
  margin: 0;
  color: #343a40;
  font-size: 1.3em;
  font-weight: 600;
}

.disambiguation-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.disambiguation-modal-close:hover {
  background-color: #dc3545;
  color: white;
  transform: scale(1.1);
}

.disambiguation-modal-body {
  padding: 0;
}

.disambiguation-option {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f3f4;
}

.disambiguation-option:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}

.disambiguation-option:hover {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  transform: translateX(4px);
}

.disambiguation-option-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 16px;
  border: 2px solid #dee2e6;
  transition: all 0.2s ease;
}

.disambiguation-option:hover .disambiguation-option-image {
  border-color: white;
  transform: scale(1.05);
}

.disambiguation-option-content {
  flex: 1;
}

.disambiguation-option-title {
  font-size: 0.85em;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.disambiguation-option:hover .disambiguation-option-title {
  color: rgba(255, 255, 255, 0.8);
}

.disambiguation-option-name {
  font-size: 1.1em;
  font-weight: 500;
  color: #495057;
  margin-bottom: 2px;
}

.disambiguation-option:hover .disambiguation-option-name {
  color: white;
}

.disambiguation-option-subtitle {
  font-size: 0.9em;
  color: #868e96;
}

.disambiguation-option:hover .disambiguation-option-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .disambiguation-modal-content {
    width: 95%;
    max-width: 400px;
  }
  
  .disambiguation-option {
    padding: 12px 16px;
  }
  
  .disambiguation-option-image {
    width: 50px;
    height: 50px;
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  .disambiguation-modal-header h3 {
    font-size: 1.1em;
  }
  
  .disambiguation-option-image {
    width: 40px;
    height: 40px;
  }
}