body {
  margin: 0;
  overflow: hidden;
  font-family: 'Pretendard', Arial, sans-serif;
  color: #333;
  background-color: #f9f9f9;
}

#loading {
  background-color: white;
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#loading-screen {
  background-color:#c0bbbb;
  position: fixed;
  inset: 0;
  z-index: 9998;
  transform: translateY(100vh); 
  transition: transform 0.5s ease, opacity 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#club_logo {
  width: 200px;
  opacity: 0;
  animation: fadeInLogo 0.5s ease-in-out forwards;
}

.loading-text {
  font-size: 20px;
  opacity: 0;
  animation: fadeInText 0.5s ease-in-out forwards;
  animation-delay: 0.5s;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}


.dot {
  margin-left: 3px;
  animation: blink 1.0s infinite;
}
.dot:nth-child(2) {
  animation-delay: 0.3s;
}
.dot:nth-child(3) {
  animation-delay: 0.6s;
}

.loading-bar-background {
  --height: 30px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 5px;
  width: 200px;
  height: var(--height);
  background-color: #212121;
  box-shadow: #0c0c0c -2px 2px 4px 0px inset;
  border-radius: calc(var(--height) / 2);
}

.loading-bar {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  --height: 20px;
  width: 0%;
  height: var(--height);
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #ff8c42 0%,
    #ffa93f 25%,
    #ffd700 50%,
    #ffa93f 75%,
    #ff8c42 100%
  );
  border-radius: calc(var(--height) / 2);
  animation: loading 0.7s ease-out forwards;
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.8), 0 0 20px rgba(255, 138, 0, 0.6);
}

.loading-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  height: 100%;
  width: 50%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.2)
  );
  animation: shine 0.3s infinite;
}

.white-bars-container {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 18px;
}

.white-bar {
  background: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  width: 10px;
  height: 45px;
  opacity: 0.3;
  rotate: 45deg;
}

.wrap {
  position: relative;
  margin-top: 75px; 
  height: calc(100vh - 75px);
}

.map-container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  margin-top: -90px;
}

#map {
  width: calc(100vw - 400px);
  height: calc(100vh - 75px);
  position: relative;
}

.zoom-level-label {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.map-control-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 50px;
  background-color: white;
  color: #333;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.map-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-control-btn#wideAreaButton {
  background-color: #ffb402;
  color: white;
}

.map-control-btn#regionAreaButton {
  background-color: #4a7fff;
  color: white;
}

.map-control-btn#currentLocationButton {
  background-color: #2ecc71;
  color: white;
}

.map-right-content {
  width: 450px;
  background-color: #eee;
  height: calc(100vh - 75px);
  overflow-y: auto;
  position: relative;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.map_category_bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  background-color: white;
  padding: 15px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.category-btn {
  padding: 10px 18px;
  border: none;
  background-color: #f4f4f4;
  color: #555;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background-color: #ff7a00;
  color: white;
  box-shadow: 0 4px 8px rgba(255, 154, 2, 0.3);
  transform: translateY(-2px);
}

.category-btn.active {
  background-color: #ff7a00;
  color: white;
  box-shadow: 0 4px 8px rgba(255, 154, 2, 0.3);
}

.club-list {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex-direction: column;
}

.club-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 0 0 20px 0;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  overflow: hidden;
}

.club-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: #ff7a00;
}

.club-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 15px;
  border: none;
  border-bottom: 2px solid #ff7a00;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.club-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(255, 154, 2, 0.3);
}

.club-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 10px 0;
  color: #333;
}

.club-item p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
  width: 100%;
}
  
.club-item h3,
.club-item p,
.club-meta {
  padding: 0 20px;
}

.club-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  align-items: center;
}

.club-type-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.club-type-badge.local {
  background-color: #4a7fff;
}

.club-type-badge.wide {
  background-color: #ffb402;
}

.club-member-count {
  font-size: 13px;
  color: #666;
}

.map-right-content::-webkit-scrollbar {
  width: 8px;
}

.map-right-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.map-right-content::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.map-right-content::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

.loading-message, .no-results, .error-message, .initial-message {
  margin: 20px 0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.loading-message {
  background-color: #f9f9f9;
  color: #666;
}

.error-message {
  background-color: #fee;
  color: #e74c3c;
}

.no-results, .initial-message {
  background-color: #f8f8f8;
  color: #777;
}

.station-marker {
  transition: transform 0.3s ease;
}

.station-marker:hover {
  transform: scale(1.1);
}

.station-label {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.info-text {
  text-align: center;
  padding: 15px;
  color: #777;
  font-size: 0.9em;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

@keyframes loading {
  0% {
    width: 0;
  }
  80% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

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

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

@keyframes floatLoop {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  #map {
    width: calc(100vw - 350px);
  }
  
  .map-right-content {
    width: 350px;
  }
}

@media (max-width: 768px) {
  #map {
    width: 100%;
    height: 50vh;
  }
  
  .map-container {
    flex-direction: column;
  }
  
  .map-right-content {
    width: 100%;
    height: 50vh;
  }
  
  .map_category_bar {
    padding: 10px;
  }
  
  .category-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}