/* 시설안내 페이지 스타일 */
.facility_guide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.facility_container {
  width: 100%;
}

.facility_section {
  margin-bottom: 100px;
}

.facility_section:last-child {
  margin-bottom: 0;
}

.section_title {
  text-align: center;
  margin-bottom: 50px;
}

.section_title h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section_title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #4168ad;
}

/* 전경 섹션 */
.panorama_gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.panorama_item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16 / 9;
}

.panorama_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.panorama_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 운동장 섹션 */
.playground_gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.playground_item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16 / 9;
}

.playground_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.playground_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 본관 본동 섹션 */
.main_building_section {
  background: #f8f9fa;
  padding: 60px 40px;
  border-radius: 16px;
}

.floor_section {
  margin-bottom: 60px;
}

.floor_section:last-child {
  margin-bottom: 0;
}

.floor_header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #4168ad;
}

.floor_header h3 {
  font-size: 28px;
  font-weight: 600;
  color: #4168ad;
  margin: 0;
}

.floor_content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.floor_image,
.floor_images {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 슬라이드가 있는 경우 음영 제거 및 여백 추가 */
.floor_image:has(.floor_slider) {
  box-shadow: none;
  padding-bottom: 20px;
}

.floor_image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.floor_image:hover img {
  transform: scale(1.05);
}

/* 1층 슬라이드 스타일 */
.floor_slider {
  position: relative;
}

.floor_slide_item {
  position: relative;
}

.floor_slide_item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.floor_slider .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  pointer-events: none;
}

.floor_slider .owl-nav button {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4168ad !important;
  font-size: 20px;
  transition: all 0.3s ease;
  pointer-events: all;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.floor_slider .owl-nav button:hover {
  background: #4168ad !important;
  color: #fff !important;
  transform: scale(1.1);
}

.floor_slider .owl-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 0;
}

.floor_slider .owl-dots .owl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd !important;
  margin: 0 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.floor_slider .owl-dots .owl-dot span {
  display: none;
}

.floor_slider .owl-dots .owl-dot.active,
.floor_slider .owl-dots .owl-dot:hover {
  background: #4168ad !important;
  transform: scale(1.2);
}

.floor_images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.floor_images .floor_image {
  aspect-ratio: 16 / 9;
}

.floor_images .floor_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floor_facilities {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.facility_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.facility_list li {
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 40px;
}

.facility_list li::before {
  content: '✓';
  position: absolute;
  left: 15px;
  color: #4168ad;
  font-weight: bold;
}

.facility_list li:hover {
  background: #4168ad;
  color: #fff;
  transform: translateX(5px);
}

.facility_list li:hover::before {
  color: #fff;
}

/* 별관동 섹션 */
.annex_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.annex_item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.annex_item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.annex_image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.annex_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.annex_item:hover .annex_image img {
  transform: scale(1.1);
}

.annex_info {
  padding: 25px;
  text-align: center;
}

.annex_info h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.annex_info p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* 모바일 반응형 */
@media screen and (max-width: 1024px) {
  .panorama_gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .floor_content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .annex_list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .facility_guide {
    padding: 0 15px 60px;
  }

  .facility_section {
    margin-bottom: 60px;
  }

  .section_title h2 {
    font-size: 28px;
  }

  .panorama_gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .playground_gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .main_building_section {
    padding: 40px 20px;
  }

  .floor_header h3 {
    font-size: 24px;
  }

  .floor_content {
    gap: 25px;
  }

  .floor_slider .owl-nav {
    padding: 0 10px;
  }

  .floor_slider .owl-nav button {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .floor_facilities {
    padding: 20px;
  }

  .facility_list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .facility_list li {
    padding: 12px 15px;
    padding-left: 35px;
    font-size: 15px;
  }

  .annex_list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .annex_info h3 {
    font-size: 20px;
  }
}

@media screen and (max-width: 480px) {
  .section_title h2 {
    font-size: 24px;
  }

  .section_title h2::after {
    width: 60px;
    height: 2px;
  }

  .floor_header h3 {
    font-size: 20px;
  }

  .facility_list li {
    font-size: 14px;
    padding: 10px 12px;
    padding-left: 30px;
  }

  .annex_info {
    padding: 20px;
  }

  .annex_info h3 {
    font-size: 18px;
  }

  .annex_info p {
    font-size: 14px;
  }
}

