/* 오시는길 페이지 스타일 - KOIMA */
.location-page {
  font-family: "Pretendard GOV Variable", "Pretendard", -apple-system, sans-serif;
  padding: 0;
  max-width: 1480px;
  margin: 0 auto;
  font-size: 1.8rem;
  line-height: 1.6;
  color: #333;
}

/* 기본 정보 영역 - 40px 마진 */
.location-basic-info {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem 3.2rem;
  padding: 3rem 3.2rem;
  margin-bottom: 40px;
  background: #F7F9FA;
  border-radius: 1rem;
}

.location-basic-info p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-family: "Pretendard GOV Variable", "Pretendard", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 160%;
  color: #222222;
}

.location-basic-info p img {
  width: 2.4rem;
  height: 2.4rem;
  filter: invert(17%) sepia(96%) saturate(1576%) hue-rotate(199deg) brightness(93%) contrast(101%);
}

.location-basic-info p span {
  font-weight: 600;
  color: #003675;
}

.location-basic-info p a {
  color: #222222;
  text-decoration: none;
}

.location-basic-info p a:hover {
  color: #003675;
  text-decoration: underline;
}

/* 자가용 이용 안내 */
.car-info-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.car-info-item {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 2.4rem;
  background: #F7F9FA;
  border-radius: 1rem;
}

.car-info-item > img {
  width: 4rem;
  height: 4rem;
}

.car-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.car-info-content strong {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1A1A1A;
}

.car-info-content p {
  margin: 0;
  font-size: 1.6rem;
  color: #4D4D4D;
}

.car-info-content em {
  font-style: normal;
  font-weight: 600;
  color: #003675;
}

.kakao-navi-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.6rem;
  background: #FEE500;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #191919;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.kakao-navi-link:hover {
  background: #F5DC00;
}

.kakao-navi-link img {
  width: 3.2rem;
  height: 3.2rem;
}

/* 섹션 - 모든 간격 40px 통일 */
.location-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.location-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 2.4rem;
  padding-left: 1.4rem;
  border-left: 4px solid #003675;
}

/* 지하철 정보 */
.subway-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 4rem;
}

.subway-item {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.4rem 0;
}

.subway-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.8rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}

.subway-badge.line-2 { background: #00A84D; }
.subway-badge.line-7 { background: #54640D; }
.subway-badge.line-9 { background: #BDB092; }
.subway-badge.sinbundang { background: #D4003B; }

.subway-item .station-info {
  font-size: 1.8rem;
  color: #333;
}

.subway-item .station-info .station-name {
  font-weight: 600;
  color: #1A1A1A;
}

.subway-item .walk-time {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.4rem 1rem;
  background: #F5F5F5;
  border-radius: 0.4rem;
  font-size: 1.6rem;
  color: #666;
}

/* 버스 정보 */
.bus-info-table {
  width: 100%;
  border-collapse: collapse;
}

.bus-info-table th {
  padding: 1.8rem 2rem;
  background: #F8F9FA;
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  text-align: left;
  border-bottom: 2px solid #E0E0E0;
}

.bus-info-table td {
  padding: 1.6rem 2rem;
  font-size: 1.6rem;
  color: #4D4D4D;
  border-bottom: 1px solid #E4E4E4;
  vertical-align: middle;
}

.bus-info-table tbody tr:hover {
  background: #FAFBFC;
}

.bus-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-right: 0.6rem;
}

.bus-badge.blue { background: #0068B7; }
.bus-badge.green { background: #36B700; }
.bus-badge.red { background: #E60012; }
.bus-badge.yellow { background: #F5A623; color: #333; }

.bus-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.bus-route-tag {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: #F0F4F8;
  border-radius: 0.4rem;
  font-size: 1.6rem;
  color: #333;
  font-weight: 500;
}

/* 부서별 연락처 */
.contacts-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #E0E0E0;
  border-radius: 0.8rem;
  overflow: hidden;
}

.contacts-table thead {
  background: #003675;
}

.contacts-table th {
  padding: 1.8rem 2.4rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
}

.contacts-table tbody tr:nth-child(even) {
  background: #F8F9FA;
}

.contacts-table tbody tr:hover {
  background: #F0F4F8;
}

.contacts-table td {
  padding: 1.6rem 2.4rem;
  font-size: 1.6rem;
  color: #333;
  border-bottom: 1px solid #E4E4E4;
}

.contacts-table td:first-child {
  font-weight: 600;
  color: #1A1A1A;
}

.contacts-table tbody tr:last-child td {
  border-bottom: none;
}

/* 반응형 */
@media (max-width: 768px) {
  .location-page {
    padding: 0 2rem;
    font-size: 1.6rem;
  }

  .location-basic-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 2.4rem 2rem;
    margin-bottom: 30px;
  }

  .location-basic-info p {
    font-size: 1.6rem;
  }

  .location-section {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .location-section-title {
    font-size: 2rem;
  }

  .car-info-box {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .car-info-item {
    padding: 2rem;
  }

  .car-info-item > img {
    width: 3.2rem;
    height: 3.2rem;
  }

  .car-info-content strong {
    font-size: 1.6rem;
  }

  .car-info-content p {
    font-size: 1.5rem;
  }

  .subway-info-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .subway-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid #F0F0F0;
  }

  .subway-item .station-info {
    font-size: 1.6rem;
  }

  .bus-info-table,
  .contacts-table {
    display: block;
    overflow-x: auto;
  }

  .bus-info-table th,
  .bus-info-table td,
  .contacts-table th,
  .contacts-table td {
    padding: 1.2rem 1.4rem;
    font-size: 1.4rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .subway-badge {
    min-width: 5.5rem;
    font-size: 1.3rem;
    padding: 0.6rem 1rem;
  }

  .location-section-title {
    font-size: 1.8rem;
  }
}