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

body {
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  background: #ffffff;
  padding: 15px 32px;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.nav {
  display: flex;
  width: 100%;
}

.nav-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 12px;
  font-size: 1.2em;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  transition: all 0.25s;
}

.nav-item:hover {
  background: rgba(250, 112, 154, 0.08);
  color: #fa709a;
}

/* 현재 페이지 */
.nav-item.active {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
}

.back-btn {
  font-size: 0.95em;
  font-weight: 500;
  color: #fa709a;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.back-btn:hover {
  background: rgba(250, 112, 154, 0.08);
  color: #e85b87;
}

.header h1 {
  text-align: center;
  font-size: 1.4em;
  font-weight: 700;
  color: #222;
  letter-spacing: -0.3px;
}

.spacer {
  width: 100px;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
}

.info-container {
  background: white;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.5s ease;
}

.tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.tab {
  flex: 1;
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  background: none;
  font-size: 1.2em;
  font-weight: 600;
  color: #666;
  position: relative;
}

.tab:hover {
  background: rgba(250, 112, 154, 0.05);
}

.tab.active {
  color: #fa709a;
  background: white;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tab-content {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.building-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.building-btn {
  flex: 1;
  min-width: 200px;
  padding: 10px 30px;
  font-size: 1.2em;
  font-weight: 600;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
}

.building-btn:hover {
  border-color: #fa709a;
  background: rgba(250, 112, 154, 0.05);
}

.building-btn.active {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border-color: #fa709a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(250, 112, 154, 0.3);
}

.building-content {
  display: none;
}

.building-content.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.image-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.content-placeholder {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 60px;
  text-align: center;
  color: #999;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-placeholder-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.content-placeholder h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.content-placeholder p {
  font-size: 1.1em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .content {
    padding: 20px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    padding: 15px 10px;
    font-size: 1em;
    flex: 1 1 50%;
  }

  .tab-content {
    padding: 25px;
  }

  .building-selector {
    flex-direction: column;
  }

  .building-btn {
    min-width: auto;
  }

  .content-placeholder {
    padding: 40px 20px;
    min-height: 200px;
  }
}

.floor-layout {
  display: flex;
  gap: 30px;
  height: 100%;
}

/* 왼쪽 층 버튼 */
.floor-selector {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 100px;
}

.floor-btn {
  padding: 15px 10px;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
}

.floor-btn:hover {
  border-color: #fa709a;
  background: rgba(250, 112, 154, 0.05);
}

.floor-btn.active {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
  border-color: #fa709a;
}

/* 오른쪽 배치도 영역 */
.floor-content-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floor-content {
  display: none;
  width: 100%;
  text-align: center;
}

.floor-content.active {
  display: block;
}

.floor-content img {
  max-width: 95%;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.event-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block; /* 중요 */
}

/* 일정 리스트 */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

/* 일정 카드 */
.event-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* 날짜 박스 */
.event-date {
  min-width: 70px;
  height: 70px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

.event-date .month {
  font-size: 0.85em;
}

.event-date .day {
  font-size: 1.6em;
  line-height: 1;
}

/* 텍스트 영역 */
.event-info {
  flex: 1;
}

.event-title {
  font-size: 1.05em;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.event-time {
  font-size: 0.95em;
  color: #666;
}
